Cloned VDI with Linux guest doesn't works

Discussions related to using VirtualBox on Windows hosts.
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

Yes. I actually know that. I just need better coffee Michael. Sorry :D
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

michaelv13 wrote: @Perryg - in logs I didn't see anything strange. Now, I tried to clone the guest (right mouse click on the working guest -> Clone)
After cloning was finished, I run the cloned guest - the same result as at previous times.
I really don't know what to do :(
You can't clone a guest with a fixed disk that way.
OSX, Linux and Windows Hosts & Guests
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: Cloned VDI with Linux guest doesn't works

Post by Perryg »

Sadly I don't either except to troubleshoot the guest. Like I said I don't see any issues in the log and that points to a guest issue. OpenSUSE is a different breed sometimes and it get really mad when you change things and needs to be told what to do. AFAIK the only thing that gets changed is the UUID when cloning and that is enough to cause some OSes to painc. You would need to ask the SUSE folks what to do if you do not know how to troubleshoot the system as it falls outside the scope of this forum.

As a suggestion I would boot to the recovery console and check the boot table to see if the new UUID is needing to be re-entered in the fstab.
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

Just cause I messed up so bad already I'm going to clone one of my OpenSUSE .vdis and see what happens.
OSX, Linux and Windows Hosts & Guests
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: Cloned VDI with Linux guest doesn't works

Post by Perryg »

Here is a quote from the manual about this:
Note that newer Linux distributions identify the boot hard disk from the ID of the drive. The
ID VirtualBox reports for a drive is determined from the UUID of the virtual disk image. So if you
clone a disk image and try to boot the copied image the guest might not be able to determine
its own boot disk as the UUID changed. In this case you have to adapt the disk ID in your boot
loader script (for example /boot/grub/menu.lst )
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

What if you create a new guest that never had a .vdi?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

Hmmm. I just cloned the .vdi for my OpenSUSE 13.2 guest, removed the original .vdi then attached the clone .vdi. It booted just fine.
Maybe the problem is starting with a fixed disk?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: Cloned VDI with Linux guest doesn't works

Post by loukingjr »

FWIW…
created a Fixed .vdi clone from the original OpenSUSE dynamic .vdi. Attached it and it booted fine.
Created a Dynamic .vdi clone from the Fixed .vdi clone. Attached it and it also booted without a problem.

I'm done "cloning" around.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply