[CentOS-virt] migrating from xend to libxl after xen

Tue Apr 19 09:45:58 UTC 2016
Pasi Kärkkäinen <pasik at iki.fi>

Hello,

On Mon, Apr 18, 2016 at 04:02:54PM -0600, rgritzo wrote:
> 
>  > i have tried for a couple of hours this morning to find a way to do the conversion in a post xend world, but canâ**t seem to do it.
>  > I still have all my disk images, and i see the domain config.sxp configuration files in /var/lib/xend/domains/<uuid> but i am not enough of a xen expert to figure out how to migrate those.
>  >
>  > is there a simple way to move to libxl now that xend is gone and i did not dump the xml files?
> 
>  So just checking -- the issue here is that you're not using the
>  ".cfg"-style config files, but the sxp-style config files?  You're not
>  using libvirt, is that right?
> 
>    at the time i set all this up i donâ**t think i understood what i was
>    doing very well.  i certainly am using libvirt (i use virsh and
>    virt-manager), so i am not sure what fork in the road i took to wind up
>    making sxp-style config files.  :}
> 

When you have xend + libvirtd running, you can do:

virsh dumpxml vm1 > vm1.xml
virsh domxml-to-native xen-xm vm1.xml > /etc/xen/vm1



>  Unfortunately parsing sxp config files and running "managed domains"
>  are one feature that was explicitly chose as something we wouldn't be
>  supporting in xl going forward [1].  You'll probably have to do some
>  sort of manual conversion.
> 
>   -George
> 
>  [1] [2]http://wiki.xen.org/wiki/XL#Anti-Features
> 
>    got it.  i think i read thru that page too quickly before.
>    since the images are there, and all i need to do is to effectively
>    reconfigure the domUs, i think i will do that manually.  that will
>    accomplish two things:
>    a) force me to document how i set them up better, and
>    b) drive me to understand some aspects of this betterâ*Š  :}
>    fortunately i had hosed up my dev host and dev VMs, and was smart enough
>    to catch this mistake before i broke the production ones :}
>    thanks again for all the help.
>    r.
> 


-- Pasi