resize the virtualbox vdi, while the file is on the external hard drive
resize the virtualbox vdi, while the file is on the external hard drive
LuWeichendeMacBook-Air:~ luweichen$ VBoxManage modifyhd --resize 100000 ~/Volumes/G-DRIVE\ mobile\ USB/VirtualBox\ VMs/win\ 10/win\ 10.vdi
VBoxManage: error: Could not find file for the medium '/Users/luweichen/Volumes/G-DRIVE mobile USB/VirtualBox VMs/win 10/win 10.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
Can someone help me plz. Thx
Last edited by clsa on 16. Jul 2017, 18:16, edited 1 time in total.
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: resize the virtualbox vdi, while the file is on the external hard drive
Please post a screenshot of your hosts file browser window opened to that folder. Or, listing the folder in a terminal window would be just as good.
I.e. please prove that the error message is wrong, and that file really is at that location.
I.e. please prove that the error message is wrong, and that file really is at that location.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: resize the virtualbox vdi, while the file is on the external hard drive
I'll focus on the part of the command line that's wrong:
Do you see that tilde (~) in front of the "/Volumes/..."? That shouldn't be there. That tilde translates to "your home directory". And your VDI is not in your home directory, it's in the "G-DRIVE...". i.e. "/Volumes/G-DRIVE...".VBoxManage modifyhd --resize 100000 ~/Volumes/G-DRIVE...
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.
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.
Re: resize the virtualbox vdi, while the file is on the external hard drive
That works. Thx a lot
Re: resize the virtualbox vdi, while the file is on the external hard drive
I'm getting an error in trying to resize a Windows 10 guest .vdi under macOS 10.12.6. I've dragged the .vdi file into Terminal, and surrounded it with quotes. I usually have success with this form of an escaped path name, but wanted to check if that is the correct method. Secondly, the first recipe I used (from other parts of the forums) places the full path after "modifyhd"; however in this thread, it appears the path is at the end. I tried it at the end as well, but this did not change the results.
$ VBoxManage modifyhd "/Users/bob/VirtualBox\ VMs/Windows\ 10\ Enterprise\ 64-bit/Windows\ 10\ Enterprise\ 64-bit.vdi" --resize 35000
VBoxManage: error: Could not find file for the medium '/Users/bob/VirtualBox\ VMs/Windows\ 10\ Enterprise\ 64-bit/Windows\ 10\ Enterprise\ 64-bit.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
thanks
Bob
$ VBoxManage modifyhd "/Users/bob/VirtualBox\ VMs/Windows\ 10\ Enterprise\ 64-bit/Windows\ 10\ Enterprise\ 64-bit.vdi" --resize 35000
VBoxManage: error: Could not find file for the medium '/Users/bob/VirtualBox\ VMs/Windows\ 10\ Enterprise\ 64-bit/Windows\ 10\ Enterprise\ 64-bit.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
thanks
Bob
Re: resize the virtualbox vdi, while the file is on the external hard drive
I just tried running the command without quotes surrounding the path, and it worked.
Bob
Bob
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: resize the virtualbox vdi, while the file is on the external hard drive
I'm no expert on OS X command line, but looking at the syntax you were using I would expect that you should either "escape" the spaces as you were doing, or you surround the string in quotes. Not both.BobOra wrote:I just tried running the command without quotes surrounding the path, and it worked.
Re: resize the virtualbox vdi, while the file is on the external hard drive
I believe you are correct. It has been a long while, and I'd forgotten the usage.