Page 1 of 1

[Invalid] VBoxManage modifymedium --setlocation unknown option

Posted: 14. Oct 2019, 03:52
by nisargshah95
I copied a VM directory from my machine to a remote machine with no GUI access, so I'm trying to figure out how to configure it on the remote machine using VBoxManage (version 5.1.38). I would like to point the VM's storage medium to a different location on the remote machine. From https://www.virtualbox.org/manual/ch08. ... -modifyvdi, I tried the following command -

Code: Select all

[remote machine] $ VBoxManage modifymedium disk fb872a9f-bf14-4119-a5a4-22b2f823fafc --setlocation /path/to/vdi/on/remote/machine 
Oracle VM VirtualBox Command Line Management Interface Version 5.1.38_Ubuntu
(C) 2005-2019 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifymedium     [disk|dvd|floppy] <uuid|filename>
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--property <name=[value]>]
                            [--compact]
                            [--resize <megabytes>|--resizebyte <bytes>]
                            [--move <path>]

Syntax error: unknown option: --setlocation
How do I change path for the hard disk to point to a new path?

Re: VBoxManage modifymedium --setlocation unknown option

Posted: 15. Oct 2019, 08:02
by nisargshah95
Well eventually I just changed the path in the .vbox XML file to the new path in remote machine.

Re: VBoxManage modifymedium --setlocation unknown option

Posted: 21. Oct 2019, 09:23
by socratis
nisargshah95 wrote:
Oracle VM VirtualBox Command Line Management Interface Version 5.1.38_Ubuntu
It looks like you're using the Ubuntufork version of VirtualBox, and a rather old one actually. You can either ask in their forums/channels for help, or completely remove/uninstall/delete/purge their version and install the official version from the Linux Downloads section of VirtualBox.

BTW, the command output was correct. The Move API (which includes the "setlocation" option) was introduced with 6.0.0, don't know why you'd expect it to be in an earlier version...

Marking as [Invalid].