Export, import to different PC (OpenSuse 11.1): disk/by-id

Discussions about using Linux guests in VirtualBox.
Post Reply
AdamReed
Posts: 7
Joined: 14. Sep 2009, 07:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: openSuse 11.1

Export, import to different PC (OpenSuse 11.1): disk/by-id

Post by AdamReed »

I recently tried exporting an OpenSuse 11.1 guest from my old PC (VirtualBox on Windows XP) and importing to a new one (VirtualBox on W7.) It fails to boot because it tries to mount the virtual /dev/disk/by-id, and the disk id is different on the new PC. Has anyone done this successfully? Is there anything that can be done to fix or to work around this problem?
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Export, import to different PC (OpenSuse 11.1): disk/by-id

Post by MarkCranness »

You have two options:
Edit: Corrected to apply to by-id rather than to by-uuid.
AdamReed
Posts: 7
Joined: 14. Sep 2009, 07:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: openSuse 11.1

Re: Export, import to different PC (OpenSuse 11.1): disk/by-id

Post by AdamReed »

Thank you, Mark. I added the symbolic links for the old id in /dev/disk/by-id and booted the system. Then replaced the old with the new ID in /boot/grub/device.map, /boot/grub/map.lst, and /etc/fstab. Then re-booted, and the system came up fine. This solves the problem. Thanks again!
Post Reply