VBOX V4 problem with modifyhd command
-
kevthekelt
- Posts: 3
- Joined: 29. Dec 2010, 23:47
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: XP PRO SP3
VBOX V4 problem with modifyhd command
Currently using vbox 4.0.0r69151 on ubuntu 10.04 LTS - Lucid Lynx Host with XP Pro SP3 guest.
When I try to enlarge the VDI with :-
sudo VBoxManage modifyhd /media/disk2/.VirtualBox/VDI/xppro.vdi --resize 30
I get the following :-
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
Can anyone please help! I thought this was now a new feature. Is it only implemented for windows hosts?
When I try to enlarge the VDI with :-
sudo VBoxManage modifyhd /media/disk2/.VirtualBox/VDI/xppro.vdi --resize 30
I get the following :-
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
Can anyone please help! I thought this was now a new feature. Is it only implemented for windows hosts?
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: VBOX V4 problem with modifyhd command
Have not checked this.
But there is an alternative: Use CloneVDI. On Linux Hosts it works with WINE.
But there is an alternative: Use CloneVDI. On Linux Hosts it works with WINE.
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
kevthekelt
- Posts: 3
- Joined: 29. Dec 2010, 23:47
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: XP PRO SP3
Re: VBOX V4 problem with modifyhd command
I've tried Clonevdi on ubuntu wine but it doesn't like the source pathname, so I mounted the drive on my current 10gb XP vdi and run clonevdi from there which appears to have worked. I will test and report back to this post.
-
kevthekelt
- Posts: 3
- Joined: 29. Dec 2010, 23:47
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: XP PRO SP3
Re: VBOX V4 problem with modifyhd command
unfortunately didn't work, all went well with the clone process and the vdi attaches in VBOX ok, but errors when booting with 'no bootable medium'. Not sure if the compact did anything to the image, but will try again without and post results here.
-
chrdou
- Posts: 1
- Joined: 19. Jan 2011, 12:57
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: XP Pro
Re: VBOX V4 problem with modifyhd command
I don't know if your problem comes from that but I noticed that 30 is not a good parameter since unit is Megabytes.
So, for 30 Gigabytes, it should be :
sudo VBoxManage modifyhd /media/disk2/.VirtualBox/VDI/xppro.vdi --resize 30000
So, for 30 Gigabytes, it should be :
sudo VBoxManage modifyhd /media/disk2/.VirtualBox/VDI/xppro.vdi --resize 30000
-
aproposnix
- Posts: 6
- Joined: 17. Feb 2011, 09:30
- Primary OS: Ubuntu other
- VBox Version: OSE other
- Guest OSses: XP pro
Re: VBOX V4 problem with modifyhd command
I'm having the exact same problem on an Ubuntu 10.10 host with WinXP guest. I was also trying to resize to 30gb. Tried this suggestion but had same result.chrdou wrote:I don't know if your problem comes from that but I noticed that 30 is not a good parameter since unit is Megabytes.
So, for 30 Gigabytes, it should be :
sudo VBoxManage modifyhd /media/disk2/.VirtualBox/VDI/xppro.vdi --resize 30000
-
ruidc
- Posts: 7
- Joined: 13. Feb 2011, 21:13
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: many
Re: VBOX V4 problem with modifyhd command
same problem on windows 7x64 host, ubuntu 10.04 guest, dynamic VDI with snapshots. CloneVDI worked for me.
-
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: VBOX V4 problem with modifyhd command
Perhaps others in this thread should also clarify particular VDI format variants they happen to be using, mentioning snapshots if any, and of course, say if not using VDI at all.ruidc wrote:same problem on windows 7x64 host, ubuntu 10.04 guest, dynamic VDI with snapshots. CloneVDI worked for me.
-
aproposnix
- Posts: 6
- Joined: 17. Feb 2011, 09:30
- Primary OS: Ubuntu other
- VBox Version: OSE other
- Guest OSses: XP pro
Re: VBOX V4 problem with modifyhd command
Same here... dynamic size vdi with snapshot. But in my case host is Ubuntu 10.10 (x64) with XP guest.
-
aproposnix
- Posts: 6
- Joined: 17. Feb 2011, 09:30
- Primary OS: Ubuntu other
- VBox Version: OSE other
- Guest OSses: XP pro
Re: VBOX V4 problem with modifyhd command
So after reading the previous post regarding the type of VDI I investigated a little further. It seems that I used an existing machine (listed as a Normal VDI) when I created my current virtual (listed as a differencing VDI under the above mentioned normal VDI)). Could this be the issue?
My other question is, how do I merge the differencing VDI to the normal VDI so that I can have only 1 normal VDI (and no differencing children)?
Any help would be most appreciated.
My other question is, how do I merge the differencing VDI to the normal VDI so that I can have only 1 normal VDI (and no differencing children)?
Any help would be most appreciated.
-
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: VBOX V4 problem with modifyhd command
I refuse to trust snapshots or any other form of differencing image, which also means that I don't have much experience of their operational details.
However, yes it would not surprise me that if you share a disk image between two VMs then VirtualBox might assume that you want to employ a differencing child image, ensuring that VM A cannot corrupt the drive contents of VM B.
How to merge, creating a stand alone VDI? Just clone the child image using "VBoxManage clonehd", the clone will be a merge of the child and parent(s) which you can build a new VM around. CloneVDI has in the past provided a simpler alternative for cloning snapshots, and can resize in the same step, but snapshot management changed in VBox v4 and CloneVDI hasn't yet been updated. It can still be done, but its no longer the simpler option.
However, yes it would not surprise me that if you share a disk image between two VMs then VirtualBox might assume that you want to employ a differencing child image, ensuring that VM A cannot corrupt the drive contents of VM B.
How to merge, creating a stand alone VDI? Just clone the child image using "VBoxManage clonehd", the clone will be a merge of the child and parent(s) which you can build a new VM around. CloneVDI has in the past provided a simpler alternative for cloning snapshots, and can resize in the same step, but snapshot management changed in VBox v4 and CloneVDI hasn't yet been updated. It can still be done, but its no longer the simpler option.
-
aproposnix
- Posts: 6
- Joined: 17. Feb 2011, 09:30
- Primary OS: Ubuntu other
- VBox Version: OSE other
- Guest OSses: XP pro
Re: VBOX V4 problem with modifyhd command
Thanks for the useful info. I have never used "VBoxManage clonehd" so I'll try to give this a try this evening.
UPDATE: The cloning worked successfully. I now have a cloned normal VDI which I succesfully resized to 30gb. From there I created a new virtual using this VDI. Now the issue is, though in the virtual machine settings it shows a HDD with 30gb, when I log into the machine it still shows the previous value for space (15gb total w/ 6gb free). Do I actually have to resize the partition of the image? I would assume that if I resized (using modifyhd) it would use the full 30gb. Is this assumption wrong?
UPDATE: The cloning worked successfully. I now have a cloned normal VDI which I succesfully resized to 30gb. From there I created a new virtual using this VDI. Now the issue is, though in the virtual machine settings it shows a HDD with 30gb, when I log into the machine it still shows the previous value for space (15gb total w/ 6gb free). Do I actually have to resize the partition of the image? I would assume that if I resized (using modifyhd) it would use the full 30gb. Is this assumption wrong?
-
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: VBOX V4 problem with modifyhd command
Yes, it's wrong. VirtualBox simulates hardware - it knows nothing about the guest OS's software frills such as partitions, NTFS, FAT, EXTx etc etc. Use a gparted live cd to adjust the guest partition size to whatever you want.aproposnix wrote:I would assume that if I resized (using modifyhd) it would use the full 30gb. Is this assumption wrong?