I need to move my Guest installation from the physical slave drive on my desktop system (Using Ubuntu 8.10) to the physical master drive. This change needs to be made to be made for space reasons. I know it can be done by moving the .vdi to the other hard drive. I moved the vdi . . . and used Virtual Media Manager to add a new drive. When I try I get an error message stating:
Cannot register the hard disk '/home/gtm/.VirtualBox/HardDisks/XP.vdi' with UUID {207d0779-9f25-439a-bc48-6551b6921973} because a hard disk '/home/gtm/.VirtualBox/HardDisks/XP.vdi' with UUID {207d0779-9f25-439a-bc48-6551b6921973} already exists in the media registry ('/home/gtm/.VirtualBox/VirtualBox.xml').
Result Code:
NS_ERROR_INVALID_ARG (0x80070057)
Component:
VirtualBox
Interface:
IVirtualBox {339abca2-f47a-4302-87f5-7bc324e6bbde}
I guess I don't know where to go from here. It would be easier I guess to reinstall XP to that drive but then I would have to try to get it validated again. I have read elsewhere that it is possible to change drives and could someone tell me how to do it? I am very new to VirtualBox.
Moving Guest to another drive
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Moving Guest to another drive
Unregister the currently registered VDI from the old location and then register it again from the new location. Or you open the XML files (both generic VirtualBox.xml as the VM specific file) and change the location of the VDI from there. Be sure to have VB closed when editting the files.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
timothybythesea
- Posts: 5
- Joined: 19. Feb 2009, 21:08
Re: Moving Guest to another drive
Thanks for the help. I figured out how to unregister the vdi using the the gui program but stopped by the instructions that seem to say that a straight copy of the vdi file to another drive would not work. It suggested using VBoxManage clonehd command. But I can't figure how to use the command. Using:Sasquatch wrote:Unregister the currently registered VDI from the old location and then register it again from the new location. Or you open the XML files (both generic VirtualBox.xml as the VM specific file) and change the location of the VDI from there. Be sure to have VB closed when editting the files.
VBoxManage clonehd /.VirtualBox/HardDisks/XP.vdi /media/disk/VirtualBox/HardDisks/XP2.vdi
Simply returns an error message.
So it looks like before I can unregister or edit the location of the .xml I need to figure out how to clone the vdi.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Moving Guest to another drive
You don't need to clone the VDI. What your read is when you want to use the same image on two different locations for two VMs. You are just moving the file to a new location to preserver space on the original location.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
timothybythesea
- Posts: 5
- Joined: 19. Feb 2009, 21:08
Re: Moving Guest to another drive
GOT IT! Thanks for putting up with my questions. TimSasquatch wrote:You don't need to clone the VDI. What your read is when you want to use the same image on two different locations for two VMs. You are just moving the file to a new location to preserver space on the original location.
Re: Moving Guest to another drive
I use Ubuntu 8.04 and did what you are trying to do by simply copying (using ssh) the slave .Virtualbox directory and files to the master drive /home partition and everything worked.
Hope this helps.
Hope this helps.