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

Re: [Xen-users] Making config files from a running machine

To: jp.pozzi@xxxxxxxxx
Subject: Re: [Xen-users] Making config files from a running machine
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 17 May 2010 22:07:07 +0700
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 17 May 2010 08:08:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1274093957.3272.2.camel@xxxxxxxxxxxx>
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>
References: <1274093957.3272.2.camel@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, May 17, 2010 at 5:59 PM, JP P <storm66@xxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> Is there a command to generate a config file from a running virtual
> machine ?
> As I use the commands through virt-manager I didn't have config files to
> put in my SVN archives.

Try either
- xm -l domU_name > domU_config.sxp

or (in the case of xend-managed domUs)

- virsh domuuid domU_name
- copy /var/lib/xend/domains/<uuid_from_first_step>/config.sxp, store
it on your SVN archive

Either way, you'd get new (sxp-style) domU config file. If you have a
recent-enough libvirt, you might be able to do this

- virsh dumpxml domU_name > domU_name.xml
- virsh domxml-to-native xen-xm domU_name.xml

... which should give you old-style xen config file

-- 
Fajar

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

<Prev in Thread] Current Thread [Next in Thread>