[Invalid] VBoxManage modifymedium --setlocation unknown option

Discussions related to using VirtualBox on Linux hosts.
Post Reply
nisargshah95
Posts: 6
Joined: 7. Mar 2014, 08:32

[Invalid] VBoxManage modifymedium --setlocation unknown option

Post 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?
Last edited by socratis on 21. Oct 2019, 09:23, edited 1 time in total.
Reason: Marked as [Invalid].
nisargshah95
Posts: 6
Joined: 7. Mar 2014, 08:32

Re: VBoxManage modifymedium --setlocation unknown option

Post by nisargshah95 »

Well eventually I just changed the path in the .vbox XML file to the new path in remote machine.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VBoxManage modifymedium --setlocation unknown option

Post 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].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply