VirtualBox

Ticket #9588 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

VBM clonevm fails to recognise tilda as home directory

Reported by: ndastur Owned by:
Priority: major Component: VM control
Version: VirtualBox 4.1.0 Keywords: clonevm
Cc: Guest type: other
Host type: Linux

Description (last modified by frank) (diff)

If a virtual machine is cloned using

VBoxManage clonevm Machine2Clone \
  --mode=all --name=NewVMName --basefolder=~/VBox/NewVMName --register

The machine will get cloned into

.VirtualBox/~/VBox/NewVMName

So the initial tilda in basefolder is not translated into the user home directory as is expected.

Change History

comment:1 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)

The correct syntax is to insert a space between option and parameter instead of '=':

VBoxManage clonevm Machine2Clone \
  --mode all --name NewVMName --basefolder ~/VBox/NewVMName --register

If you use the syntax with '=' then the shell will not detect that this parameter has to be properly extracted. The '=' form is undocumented. It sometimes works in VBoxManage (but not always).

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use