[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Configuration file guest deleted

On 21 Jul 2015, at 14:08, pietrop <pulsarpietro@xxxxxxx> wrote:

> Hi all,
> I've accidentally deleted the configuration file of my guest during a
> clean up, fortunately I am still able to restore and save the guest I
> was running but I'd like to regenerate the configuration file in order
> to shut it down and create it again when needed.
> Apparently I can generate a new config file running the command 'xl list
> -l <domainid>' but that command results in a file format - phyton ? -
> which is not recognized by the xl tool.
> I am running Xen 4.4.1 on a Debian 64 bits disto.
> Any tips ?

Hi Pietrop.

I’ve been fiddling with dumping xml configs from a running Xen PV guest.

Is this any help at all?


Creating a virtual machine XML dump (configuration file)

Output a guest's XML configuration file with virsh:

# virsh dumpxml {domain-id, domain-name or domain-uuid}

This command outputs the guest's XML configuration file to standard out 

You can save the data by piping the output to a file.

An example of piping the output to a file called guest.xml:

# virsh dumpxml GuestID > guest.xml

This file guest.xml can recreate the guest (see Editing a guest's configuration 
You can edit this XML configuration file to configure additional devices
or to deploy additional guests. See Section 34.1, “Using XML configuration 
files with virsh”
for more information on modifying files created with virsh dumpxml.

Kind Regards,

Keith Roberts
Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.