command line import with rename (--vmname) option

This is for discussing general topics about how to use VirtualBox.
Post Reply
Mark1342
Posts: 5
Joined: 14. Nov 2018, 11:54

command line import with rename (--vmname) option

Post by Mark1342 »

When using the command line import with rename option e.g.:

VBoxManage import ExampleVM.ovf --vsys 0 --vmname MyNewName

as expected a directory 'MyNewName' is created (C:\Users\<user name>\VirtualBox VMs\MyNewName) containing 'MyNewName.vbox'
However the disk image gets located at:

C:\Users\<user name>\VirtualBox VMs\ExampleVM_1\ExampleVM-disk001.vmdk

In my case I already had an 'ExampleVM' with the default name, I notice 'ExampleVM_1' is the default name that would of been used if I had imported a second VM without using the rename option.

So it looks to me that the import is ignoring the rename option as far as where to put the disk image.

Am I doing something wrong or is this a bug?


The VM functions OK, just that the disk image is separated from the .vbox file.
If I import from the GUI instead then the '.vmdk' is where I expect, alongside the '.vbox' file.
(Virtual box Version 5.2.22 r126460, on Windows)

Thanks in advance,
Mark.
Post Reply