Increasing XP.vdi
Increasing XP.vdi
I am trying to increase the size of my VDI. I've read all the posts on this an keep getting a syntax error.
I've used various versions of the following:
VBoxManage modifyhd "/Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
and get Syntax error: Invalid parameter 'VMs/XP/XP.vdi"'
Terminal doesn't seem to like the space between VirtualBox and VMs. I've also tried:
VBoxManage modifyhd /Users/[name]/VirtualBox VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd "/Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
and get the same syntax error message.
I've also tried using the UUID as follows:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi --resize 40960
and got the following error message:
VBoxManage: error: Could not find file for the medium '/Users/lindacollett/02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
Here is my hd info:
UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Parent UUID: base
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/XP.vdi
State: locked read
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea) [Snapshot 1 (UUID: d95e4d49-b450-4237-abd2-6a1110108f91)]
UUID: 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443
Parent UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi
State: locked write
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea)
I've also tried:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443 --resize 40960
Error message received:
VBoxManage: error: Failed to lock media when compacting '/Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, progress.asOutParam())" at line 539 of file VBoxManageDisk.cpp
I get the same error message when I try VBoxManage modifyhd 3ea5a80c-0955-4028-bfde-b0e786684944 --resize 40960 too.
I am a novice with this and any help would be greatly appreciated.
I've used various versions of the following:
VBoxManage modifyhd "/Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
and get Syntax error: Invalid parameter 'VMs/XP/XP.vdi"'
Terminal doesn't seem to like the space between VirtualBox and VMs. I've also tried:
VBoxManage modifyhd /Users/[name]/VirtualBox VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd "/Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
and get the same syntax error message.
I've also tried using the UUID as follows:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi --resize 40960
and got the following error message:
VBoxManage: error: Could not find file for the medium '/Users/lindacollett/02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
Here is my hd info:
UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Parent UUID: base
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/XP.vdi
State: locked read
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea) [Snapshot 1 (UUID: d95e4d49-b450-4237-abd2-6a1110108f91)]
UUID: 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443
Parent UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi
State: locked write
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea)
I've also tried:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443 --resize 40960
Error message received:
VBoxManage: error: Failed to lock media when compacting '/Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, progress.asOutParam())" at line 539 of file VBoxManageDisk.cpp
I get the same error message when I try VBoxManage modifyhd 3ea5a80c-0955-4028-bfde-b0e786684944 --resize 40960 too.
I am a novice with this and any help would be greatly appreciated.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Increasing XP.vdi
Drag the .vdi file to a terminal window, type VBoxManage modifyhd at the front of the path and --resize (new size) at the end of the path and hit return.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Increasing XP.vdi
what's with the [name] everywhere? Is that actually your real path or did you replace the real value everywhere?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: Increasing XP.vdi
Thanks for your relpy loukingjr. Unfortunately I had already tried that and still get the syntax error.
Yes, noteirak I replaced the real value everywhere for security reasons.
I'm still needing some help with this issue if anyone has any more ideas.
Thanks!
Yes, noteirak I replaced the real value everywhere for security reasons.
I'm still needing some help with this issue if anyone has any more ideas.
Thanks!
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Increasing XP.vdi
it looks like you have a snapshot. that could be the problem. you could merge the snapshot in the VB GUI and then resize. or you could create a full clone and resize that. then replace the .vdi. I think that may work.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Increasing XP.vdi
Try it again, and this time use the UUID of the disk, not the UUID of the VM. Also the "|XP.vdi" suffix should not be there, just the UUID (the "|" in the user manual syntax description means OR, i.e. the disk can be identified using its uuid OR filename).
Typing the full path will work if you get the path and filename correct, but some people have trouble anyway. Most such problems can be eliminated by wrapping the filename in quotes "like so", as this prevents any spaces or other special characters being treated as separators or switches.
Typing the full path will work if you get the path and filename correct, but some people have trouble anyway. Most such problems can be eliminated by wrapping the filename in quotes "like so", as this prevents any spaces or other special characters being treated as separators or switches.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Increasing XP.vdi
just so I don't give anyone the wrong info, do snapshots not matter when resizing a VM? At least one time she tried using the UUID of her snaphot.mpack wrote:Try it again, and this time use the UUID of the disk, not the UUID of the VM. Also the "|XP.vdi" suffix should not be there, just the UUID (the "|" in the user manual syntax description means OR, i.e. the disk can be identified using its uuid OR filename).
Typing the full path will work if you get the path and filename correct, but some people have trouble anyway. Most such problems can be eliminated by wrapping the filename in quotes "like so", as this prevents any spaces or other special characters being treated as separators or switches.
the reason I'm asking is three different users and myself have used the method of "dragging the .vdi file to the terminal..." on our Macs and it worked for them and myself. but we had no snapshots.Location: /Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi
I've also tried:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443 --resize 40960
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Increasing XP.vdi
Resizing the guests HDD does *not* work if you have snapshots. They must be merged first to create a single flat file.
Dragging the file into terminal with a Mac or Linux host is a fast way to get the absolute path into the terminal. You may need to be sure that the path does not contain spaces but usually the OS tries to fix this by placing a different separator that allows it to work into the path, like the "\" but you just need to be sure and if spaces exist you simply need to wrap in it quotes.
Cloning the original guest that has snapshots using the current state will also merge the snapshot/s for you if you want to be sure you don't loose the original by a merge that fails, which I have actually seen. Thus I stay away from snapshots and clone instead.
Edit: I must say that creating the default location to have a space in the name was a stupid idea IMHO. This single oversight has caused a lot of problems.
Dragging the file into terminal with a Mac or Linux host is a fast way to get the absolute path into the terminal. You may need to be sure that the path does not contain spaces but usually the OS tries to fix this by placing a different separator that allows it to work into the path, like the "\" but you just need to be sure and if spaces exist you simply need to wrap in it quotes.
Cloning the original guest that has snapshots using the current state will also merge the snapshot/s for you if you want to be sure you don't loose the original by a merge that fails, which I have actually seen. Thus I stay away from snapshots and clone instead.
Edit: I must say that creating the default location to have a space in the name was a stupid idea IMHO. This single oversight has caused a lot of problems.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Increasing XP.vdi
thanks Perry. that's what I thought.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Increasing XP.vdi
We are talking at cross purposes. I am addressing the syntax error that the OP has reported, not the mechanics of resizing a drive: there's a "Howto" already written to describe the latter.loukingjr wrote:just so I don't give anyone the wrong info, do snapshots not matter when resizing a VM? At least one time she tried using the UUID of her snaphot.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Increasing XP.vdi
Yes I see. I was trying to help her accomplish what she wanted to accomplish. Sorry.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
Re: Increasing XP.vdi
Hi Everybody!
I am new in mac, so please help me in these case:
I try to increase space of Virtual Disk on mac host / windows 7 guest.
After i'd type:
# /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
the terminal wrote: /Users/haohaizi/VirtualBox VMs/Windows 7 64/NewVirtualDisk1.vdi: Permission denied
How to increase disk space?
Pls, pls, pls!
I am new in mac, so please help me in these case:
I try to increase space of Virtual Disk on mac host / windows 7 guest.
After i'd type:
# /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
the terminal wrote: /Users/haohaizi/VirtualBox VMs/Windows 7 64/NewVirtualDisk1.vdi: Permission denied
How to increase disk space?
Pls, pls, pls!
-
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: Increasing XP.vdi
You forgot to include the *actual command*. Your command line should have been:HaohaiZi wrote:# /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
VBoxManage modifyhd /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
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: Increasing XP.vdi
oh, really! made change. and now is:
VBoxManage modifyhd /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
any idea?
VBoxManage modifyhd /Users/haohaizi/VirtualBox\ VMs/Windows\ 7\ 64/NewVirtualDisk1.vdi --resize 35000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
any idea?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Increasing XP.vdi
Assuming that the file really is a VDI, and not just something else that you renamed, this error usually means that you're trying to shrink the drive instead of expand it. Check the syntax in the user manual again, and pay attention to the meaning of the final numeric argument.