Moving Linux VMs from Xen to Proxmox, virtio problems

LasseKongo

Renowned Member
Feb 14, 2016
19
0
66
50
Hi,

Just started using Proxmox, and I like it. I currently have a Xen 4.1 host with a bunch of Linux VMs that I intend to move to Proxmox. Different distributions and versions but all fairly modern. All VMs except one i "Fully virtualized" in Xen, so no special Xen kernel.
The VMs in Xen use different disk types, both Xen PV and IDE.

I have transferred two VM disk images to the Proxmox server, one Opensuse 13.2, and one Centos 7, and I attached the disks as virtio in Proxmox. When booting the VMs, they load the kernel and initrd, but hangs for a while before exiting to the emergency shell. If I reattach the disks as IDE, everything works fine.
I also tried installing the same O/S:es from scratch and it works like a charm with virtio.

Both O/S:es have the virtio modules, but probably not in the initrd since they were initially installed without virtio. I have tried adding the virtio.ko & virtio_blk.ko to the initrd, but I still get the same result, it can´t find the disk when booting.

The fstab on the Opensuse machine looks like this, so no hda/sda/vda problems I guess ?

UUID=180bb474-9476-4302-bf6b-df68174c7e84 swap swap defaults 0 0
/dev/system/root / ext4 acl,user_xattr 1 1

I guess it must be possible to convert the Xen VMs to KVM/virtio without reinstalling, but I´m obviously missing something here, any assistance would be helpful.
 
Now I have actually managed to get the Opensuse VM to run, in addition to adding the virtio.ko & virtio_blk.ko modules to the initrd, I also added virtio_pci.ko, and then the VM boots fine. Haven´t had time to test the Centos machine, but I guess it need the same fix.