Page 1 of 1

[SOLVED] Path to the cloned new machine

Posted: 6. Nov 2017, 14:56
by makh
Hi

I just cloned a machine. It got cloned in the group named "Linux M/c". But it was under the main path VM, not under the group folder "VM".

Please inform how to avoid this.

Code: Select all

VM
|- Linux M/c
|  |- Mc1
|-Mc1 Cloned
The only way will be to delete the virtual machine without files, and then correct the path, and then make a new machine one, but in this way it makes two paths for the same machine. One having vdi, and the other having the snap save.

Thankyou

Re: Path to the cloned new machine

Posted: 6. Nov 2017, 14:58
by mpack
The path for new VMs is an option in your UI preferences.

Re: Path to the cloned new machine

Posted: 6. Nov 2017, 16:59
by makh
Hi

Sir! theres only one option: Default machine folder. Thats where the cloned machine is created, not the folder of group.

Thankyou.

Re: Path to the cloned new machine

Posted: 6. Nov 2017, 17:16
by Perryg
You need to use the command line option to do what you want. See https://www.virtualbox.org/manual/ch08. ... ge-clonevm for the syntax.

Re: Path to the cloned new machine

Posted: 7. Nov 2017, 06:38
by makh
Perryg wrote:....
Hi

It worked with:

Code: Select all

VBoxManage clonevm vmkolibri --mode all --name vmkolibri2 --basefolder /path-to-vm/Linuxes/ --register
:)

Though the mentioning of the default group with using --groups gave me this error at the first try:
VBoxManage: error: Invalid machine group 'Linuxes'
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "ComposeMachineFilename(Bstr(pszTrgName).raw(), bstrPrimaryGroup.raw(), createFlags.raw(), Bstr(pszTrgBaseFolder).raw(), bstrSettingsFile.asOutParam())" at line 464 of file VBoxManageMisc.cpp
I used with Linuxes, 'Linuxes', and "Linuxes", but didnt worked for me. :(

According to the manual:
By default, clones are always assigned membership of the group /.
It seems the problem I am actually having shouldnt have been there at all. :idea:

Thankyou