Results 1 to 3 of 3

Thread: XEN .img to KVM

  1. #1
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,270
    Distro
    Xubuntu 16.04 Xenial Xerus

    XEN .img to KVM

    I have some .img files previously used as XEN images in CentOS which I would like to use now with KVM in Ubuntu server. Do you have any success on converting xen images to kvm compatible images? How did you do it? Any tutorial?

    I would very much appreciate your responses as I really need those xen images to run again.
    Thanks a lot.

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: XEN .img to KVM

    Easiest way is to use virt-v2v, see process described at https://access.redhat.com/site/docum...y_libvirt.html

    might need access to a fedora vm if you dont find virt-v2v on ubuntu
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-land
    Beans
    10,121
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: XEN .img to KVM

    I've migrated all our Xen VMs to KVM over the last year. It was fairly simple process.
    * Make a backup of the Xen VMs using normal backup tools. Don't necessarily backup everything - settings, data and non-packaged programs. Use dpkg --get-selections> package-list.txt to store all the installed packages.
    * Create a new KVM VM iwth the settings you desire running the exact same OS release.
    * Restore the Xen backup into the new VM - settings and data
    * Install the packages using dpkg --set-selections< package-list.txt and apt-get -f install to get them all reinstalled.
    * Profit.

    There are a few details like NIC MAC addresses that you'll want to watch carefully, but besides that it was really easy.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •