From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bader Subject: Re: Tool to migrate xm/xend managed domains into xl.cfg files Date: Wed, 02 Apr 2014 16:38:14 +0200 Message-ID: <533C20D6.4050707@canonical.com> References: <533BF95C.9000302@canonical.com> <20140402134224.GX3200@reaktio.net> <533C171C.60904@canonical.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9140650850320074134==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============9140650850320074134== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Sd72E4IRUwM3pAWho4OX6gopsrMPNM7x6" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Sd72E4IRUwM3pAWho4OX6gopsrMPNM7x6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02.04.2014 16:33, George Dunlap wrote: > On Wed, Apr 2, 2014 at 2:56 PM, Stefan Bader wrote: >> On 02.04.2014 15:42, Pasi K=E4rkk=E4inen wrote: >>> On Wed, Apr 02, 2014 at 01:49:48PM +0200, Stefan Bader wrote: >>>> Does anybody have such a tool which could be shared? I know with a r= ecent patch >>>> in libvirt (1.2.3~rc1) it is possible to create libvirt xml files fr= om the >>>> config.sxp ones. >>>> Just was wondering whether there might be a need of having something= similar for >>>> those that used to use xm/xend managed domains without anything else= than the >>>> xen-utils. >>>> >>> >>> With libvirt you can do at least: >>> >>> virsh dumpxml vm_name > /tmp/a.xml >>> virsh domxml-to-native xen-xm /tmp/a.xml > vmname.cfg >>> >>> Which gives you xm/xend text config files.. which should be mostly co= mpatible with xl cfgfiles. >> >> Right, you also could do a domxml-from-native xen-sxpr and re-e= xport that >> with domxml-to-native xen-xm as you said. >> The reason I am asking or looking into it is trying to figure out whet= her I can >> offer a nice way of don some of that automatically for people on upgra= de (and >> there might be some that don't have libvirt installed as well). >=20 > Would users really want that translation done automatically? I'd > rather be told how to do it myself so I can check the outcome; but > maybe I'm a bit strange that way. :-) I would only create files of a certain name if they do not exist. :) >=20 > In theory it seems like someone who knew what they were doing with > python should be able to rip out the sxp parsing stuff from xend, and > then once you had a structure with all the configuration in it, write > that out into a .cfg file. I'm sure that would be a useful tool to > have in-tree, particularly if we manage to actually get rid of xend > this release cycle. Yeah, that is exactly wht I started off. It is a bit erm difficult to dig= into it and I might be missing the easy why of getting the output from the lis= t of domains' XendConfig objects. But basically thats where I am right now and= just wanted to ensure I am not inventing yet another wheel. If I get something I am happy with I'll let the list know. :) -Stefan >=20 > -George >=20 --Sd72E4IRUwM3pAWho4OX6gopsrMPNM7x6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJTPCDXAAoJEOhnXe7L7s6jCbgQALiwlPNZxW/a+8kdem7FXfam oJ/e8IeZ9V0QU5idTe4K//E+Wk07vDoBXJyzo3YZevQSLSTo2SBb++2UHW6qHXnS 956he7IqVuPvK+bly2nUwF/WdqPBU2IeDuKPc4fkpHlmvDz4bYQuhy7+N7Xqwx+0 9zX0C4rvKFZk7Kauhmq4+g/k0zZraZGI30UYt4/sBQ3EACdUywkwW2gw4h/6k1zG GhOrvzhC7/TWgxYfFTuhfg7YejnbIQV8JW/fiyN6r68S2jVoe5veOmFMgoqD7SpY iHNNdYk/QEsIeKMXV0LjDZE5J8OyheiCkJFbSBIs+BFc+hzDXc6xz82vxN1iMbwR jfPJh5bYzpeGUApx/TKks5gGPeCeKDadmphR+SEY0zzKzSgr7JRhgSz5wLNJpIt5 ZkvtNtFnasATO+UsHEV0qnxMfktHOlMGx4uGzMi6yGMz4BAXQnV41mUvSsUvH95J ujM2EGj/4ALvjMq+jY2SxZuwIwhRO05hTNbWmy0hO+ZgPW9SRDkbgMZwCzGdMHQb nJLfCC2TSxqUEE3/oJCc3NSWuIqIu/In46cbHiqdCaWvTKkdOSMexKjjsH4pRbXc PSVXqyv3/zp9ZwKzbVk4p1xbp1XvyhFiX9r7A+dVFu/1SN/vQ0DgrodqUeNoxN6Y vlVT++yGGviu7XLqUydp =/ePu -----END PGP SIGNATURE----- --Sd72E4IRUwM3pAWho4OX6gopsrMPNM7x6-- --===============9140650850320074134== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============9140650850320074134==--