ESXi to Proxmox - Ubuntu VM - Starts but not boot - VMDK Considerations

Hi all,

I am trying to get working a ESXi Ubuntu 8.04 Server to Proxmox KVM.

I have been googling, reading this forum and memorizing the migration guide but there is some questions that are not clear for me and it seems that are the ones that is giving me crazy.

I have 40 Ubuntu Servers to migrate from ESXi to KVM. All 8.04LTS.

As I have read, if the vmdk file is all space preallocated, you can simply copy the file, rename it as the VM configuration indicates, and ready. All that was done and the Server Starts... the grub boot menu appears (It indicates is reading the disk correctly, isn't it?). When I select the boot image, it waits 30 seconds and give me this error:

Code:
ALERT! /dev/disk/by-uuid/c8888808-7666-4c81-9c57-04a3b2c7034a does not exist. Dropping to a shell!

I have seen the original VM and the Disk UUID is correct. I have probed changing the root parameter to /dev/sda1 that is the boot partition, but no luck.

Considerations (Please indicate which is erroneus):
.- If the VM starts and arrives to the grub menu, it is indicating the vmdk file is being read correctly.
.- It is no necesary to run vmware-vdiskmanager on ESXi VM's vmdk files which are configured with all space allocated
.- It would be possible to migrate all the servers in batch mode.

Thanks in advance for your time.
Thanks for Proxmox.

Best Regards
Antonio Sanchez
[/LIST]
 
I have boot with a GParted Live CD.

I can see and mount /dev/sda

Can't copy paste from the console (I don't know how to do that) but my fstab is ok.

UUID=c8888808-7666-4c81-45f6-b339-4c78755ccde5 / ext3 relatime,errors=remount-ro 0

The /dev/sda1 is mountable and accesible, so the vmdk is ok.

It seems some kind of strange behavior with Grub or SCSI.

Thanks
 
You should verify that the UUID in the kopt=root option in /boot/grub/menu.lst matches the UUID in your /etc/fstab for /. You can determine the correct UUID by booting from your rescue CD and issuing the blkid command. After you make sure they match you can do an update-grub. If this doesn't work, your /dev is inconsistent with the KVM virtual hardware. In these cases I usually just copy /dev from a working VM to the new one (shut it down and use the rescue CD).
 
The root options are;

linux /boot/vmlinuz-2.6.28-19-server root=/dev/disk/by-uuid/c8888808-7666-4c81-9c57-04a3b2c7034a ro quiet splash apparmor=0

I have tested it without apparmor, and without quiet and splash. With the same results. Also tested changing the root to /dev/sda1.

Could it be some kind of issue with vmdk file? It is fully accesible but it is possible some trouble with logical geometry or block issues?

Thanks again.
 
I have tested that the blkid and the fstab and the menu.lst UUID were the same. I have also done the update-grub, with no results.

If I chroot the disk it is fully accesible with /dev binding I can see the /dev/disks/by-uudi correctly but in initramfs /dev/disks/by-uuid is not available and /dev/sda* not too.

Thanks
 
I'm wondering if Ubuntu 8.04 contains the virtio drivers. Have you tried with IDE emulation? I don't see a clear indication of it in this thread.
 
Re: ESXi to Proxmox - Ubuntu VM - Starts but not boot - VMDK Considerations - SOLVED

Thanks a lot....

I have removed the HD and reconnect it as IDE and the system boot. Perfect!

Now I have a question. Why?

Why if this VM was configured in VMWare ESXi as SCSI it must be bringed up to Proxmox as IDE?

Thanks a lot.
 
Re: ESXi to Proxmox - Ubuntu VM - Starts but not boot - VMDK Considerations - SOLVED

Thanks a lot....

I have removed the HD and reconnect it as IDE and the system boot. Perfect!

Now I have a question. Why?

Why if this VM was configured in VMWare ESXi as SCSI it must be bringed up to Proxmox as IDE?

Thanks a lot.
Hi,
you have connected as scsi before?! I guess you don't have the scsi-driver in the initramfs - so you cant find the disk sda...

Udo
 
Re: ESXi to Proxmox - Ubuntu VM - Starts but not boot - VMDK Considerations - SOLVED

I guess all OP needs is the correct virtio driver in both his installed system and the initramfs. It could be tedious since it requires the upgrade of at least the kernel and the modules in all of the moved VMs. Of course they can run on IDE as well, with somewhat lower performance - but it all depends on the load required to be handled in those VMs. On another note, using the UUIDs can eliminate the need to depend on a variable naming scheme (I've seen IDE and SCSI and various other technologies behind an SCSI interface named sd*).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!