Solved

Migrating Ubuntu server 10 lts - kernel 2.6.32-xx from ESXi to AHV


Badge +1
  • Adventurer
  • 6 replies
Hi all
I'm having trouble migrating ubuntu 10 server lts (kernels 2.6.30-xx) from ESXi to AHV. I tried Xtract and got this erros in different VMs:

Failed to execute guest command: '/tmp/vmware-root/vmware226/installAMD.sh' ExitCode: '127'.

SCSI VirtIO device driver not found. Please download and install the appropriate device driver before retrying the migration.

So I tried to migrate manually, i.e uploading vmdk into nutanix datastore (Image configuration ->Upload image)... but after disk atach in the AHV VM it doesnt boot. It doesnt recognizes the hard disk. I think that it havent virtio scsi driver.


In the kernel config files I can see virtio modules:
# grep -i virtio /boot/config-`uname -r`
CONFIG_NET_9P_VIRTIO=m
CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_CONSOLE=m
CONFIG_HW_RANDOM_VIRTIO=m
CONFIG_VIRTIO=y
CONFIG_VIRTIO_RING=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=m

I put this at the end of file /etc/initramfs-tools/modules:
virtio
virtio_net
virtio_blk
virtio_pci
virtio_scsi

So I updated initrd:
# update-initramfs -u

But if I query the resulting initrd, virtio modules are missing:
# zcat /boot/initrd.img-`uname -r` | cpio -it | grep virtio
60643 bloqueios

Are there some other way to install virtio drivers in old ubuntu 10?
icon

Best answer by jlaunier 14 February 2018, 20:11

@DASR this link shows how to do this at a high level but you may need to customize it for your VM. The difference in this case is that VMs migrated with Xtract get created with SCSI based disks. Since your kernel doesn't support virtio scsi, you'll need to switch to the next best thing which is bus type of pci.

http://vcdx56.com/2017/03/change-nutanix-ahv-virtual-machine-disk-bus-type/

View original

4 replies

Userlevel 7
Badge +34
Thanks for sharing @DASR
@jlaunier can you add any insight here ????
Thanks
Userlevel 1
Badge +7
@DASR Ubuntu 10 is not officially supported by AHV or Xtract. It may be possible to get it to boot on AHV but you will need to clone each vdisk to a PCI controller instead of a SCSI controller on AHV from acli.
Userlevel 1
Badge +7
@DASR this link shows how to do this at a high level but you may need to customize it for your VM. The difference in this case is that VMs migrated with Xtract get created with SCSI based disks. Since your kernel doesn't support virtio scsi, you'll need to switch to the next best thing which is bus type of pci.

http://vcdx56.com/2017/03/change-nutanix-ahv-virtual-machine-disk-bus-type/
Badge +1
Ok, I got it!
  1. On esxi, clone or move vm to nutanix NFS datastore
  2. On prism, image configuration -> upload image -> from url (vmdk nfs path)
  3. Create vm -> add new disk -> operation (clone from image service); bus type IDE; image (select uploaded disk image in step 2)
I know IDE bus is slower than scsi, but we had no performance problem. Even with the IDE disks the queue of processes (load average) is slower now. Before we had virtual scsi disks with esxi and san environment.

Reply