Code: Select all
vboxmanage clonevm myvm --register --options=Link
VBoxManage: error: Linked clone can only be created from a snapshot
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "CloneTo(trgMachine, mode, ComSafeArrayAsInParam(options), progress.asOutParam())" at line 757 of file VBoxManageMisc.cpp
Code: Select all
vboxmanage clonevm myvm '--name=myvm2' --register '--snapshot=mysnapshot' --options=Link
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "myvm2"
BUT:
The latter doesnt produce a correct linked clone based off the snapshot. "mysnapshot" contains a Win11 Guest with desktop shortcuts - but the cloned snapshot tries to install Win11 from scratch (GUI as well as CLI). The correct linked clone is created with the GUI Version of 1.
Code: Select all
vboxmanage -v
7.2.6r172322