WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Tool to generate a domu.sxp from a running DomU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Tool to generate a domu.sxp from a running DomU
From: Michael Schmidt <michael.schmidt@xxxxxxxxxx>
Date: Sat, 08 May 2010 22:52:24 +0200
Delivery-date: Sat, 08 May 2010 13:53:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
Hi,

i had the problem, if i migrate a domU to another Dom0, i have to copy the sxp file tool (and the same problem in a few other scenarios too). For an easier solution, i created a tool to generate a domU-sxp-file from/for a running DomU.

If anyone need it too, it is available here (compiled for amd64):
http://www.xncore.com/download/stuff/xntool-running2sxp.gz

Usage:
xntool-running2sxp vm001 > /etc/xen/domains/vm001.sxp

Example for all running DomUs:
for U in `xm list | grep -v "Name" | grep -v "Domain-0" | awk {'print $1'} | tr "\n" " "`; do xntool-running2sxp $U > /etc/xen/domains/${U}.sxp ; done

I dont test it for a HVM DomU. There could be bugs.
If you find a bug, send me your "xm li -l domu" output and i can fix it.

--
Best Regards

Michael Schmidt


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Tool to generate a domu.sxp from a running DomU, Michael Schmidt <=