Ask Your Question

how to import xen vm to openstack kvm

asked 2018-07-06 03:14:46 -0500

Robby gravatar image

I want to move few of our existing vms in xenserver to openstack kvm environment, I tried converting the image using qemu-converter, glance image getting created and instance shows active but nothing visible in console nor in log files.

What is the best way to achieve this? Any help is much apreciated

edit retag flag offensive close merge delete


are you able to access via ssh or rdp to the instances on openstack

TijoV gravatar imageTijoV ( 2018-07-06 04:58:26 -0500 )edit

Any luck if you have anything on instance console log..

Mohit gravatar imageMohit ( 2018-07-07 08:56:45 -0500 )edit

No, I can only see a '?' there, do you know any proper mechanism to convert xem images to work with KVM?

Robby gravatar imageRobby ( 2018-07-09 03:53:49 -0500 )edit

Not even able to ping TijoV

Robby gravatar imageRobby ( 2018-07-09 06:36:58 -0500 )edit

Your vms are linux or windows;

tze gravatar imagetze ( 2018-07-10 03:29:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-09 08:33:14 -0500

tze gravatar image

The conversion of disk is the easy part. If the conversion done correctly you will see the boot screen but after a while maybe stack or blue screen will be appear. If you use virtio scsi disk controller, windows installation doesn't know about that driver and you must install them with rescue DVD and DISM utility. Alternative you can set property hw_disk_bus=ide on image and boot an instance. Secondly you need to remove any xen drivers that already exists in old installation, maybe the (search in google for it) will helps you how to uninstall the drivers with rescue DVD. In my cases i do: 1. Convert the Disk (maybe with snapshot and then create volume). 2. Set the system-properties on volume (hw_disk_bus, hw_scsi_model etc) 3. I create a vm from Windows DVD (ISO) and attach the previous volume, so start and installation with an existing disk. 4. I attached and extra volume with Virtio KVM Drivers. 5. I Started the windows installation and in the advanced partition i choose to load a driver from the virtio KVM volume. 6. After the Virtio scsi controller's driver loaded i canceled the installation and i am going to repair command line and i run 7. DISM /image:C:\ /add-driver /driver:F:\virtiosisci\and64\xxxx.inf (where F:\virtiosisci\and64\xxxx.inf is the virtio scsi drivers for your windows).
8. type regedit and go to system and file-load hive. Find c:\windows\system32\config\system (where c:\windows is your old installation). Then in the loaded hive you can delete the keys and values as describes.
9. After that you can delete vm and create a new with your volume.

P.S. Don't forger to set correct the system-properties on your volume before attach it to instances.

edit flag offensive delete link more


In my case I am exporting the vm to disk.raw and using that to create a image in openstack, instance is active but nothing is visible in console. I am doing it to a centos machine, what I see is only this "Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names"

Robby gravatar imageRobby ( 2018-07-09 09:04:03 -0500 )edit

Thanks much, I dont even see the boot screen in my case, what is the right approach in my case?

Robby gravatar imageRobby ( 2018-07-09 09:08:36 -0500 )edit

You could try this. Basically, our Xen instances didn't have the required virtio kernel modules. Before converting the disk you should install the modules, or in rescue mode after the instances already exist in openstack.

eblock gravatar imageeblock ( 2018-07-10 02:44:13 -0500 )edit

yes you are very correct @eblock, I used virt-v2v to add virtio it worked like a charm, thanks so much, you helped me a lot.

Robby gravatar imageRobby ( 2018-07-10 08:48:29 -0500 )edit

Great, I'm glad I could help!

eblock gravatar imageeblock ( 2018-07-10 09:10:15 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2018-07-06 03:14:46 -0500

Seen: 584 times

Last updated: Jul 09 '18