Thanks Daniel, i did the next: 1- use dd command to get a copy from a vm: dd if=00_16_3E_32_0F_0F of=copia-00_16_3E_32_0F_0F 2- then, ( probably big mistake :-( ) use virsh command: virsh dumpxml 00_16_3E_32_0F_0F > ~/copia-vm.cfg 3- i modify the copia-vm.cfg and change the name field and remove the mac address field, defined inside of the interface tag: --------------------- virsh dumpxml output --------------------- <domain type='xen' id='-1'> <name>copia-00_16_3E_32_0F_0F</name> <uuid>dd9fe09e1155f9223779b6c28bf43488</uuid> <bootloader>/usr/bin/pygrub</bootloader> <os> <type>linux</type> </os> <memory>262144</memory> <vcpu>1</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <interface type='bridge'> <source bridge='xenbr0'/> </interface> <disk type='file' device='disk'> <driver name='file'/> <source file='/var/lib/xen/images/copia-00_16_3E_32_0F_0F'/> <target dev='xvda'/> </disk> </devices> </domain> --------------------- virsh dumpxml output --------------------- 4- virsh define copia-00_16_3E_32_0F_0F, (am i (re-)define the domain 00_16_3E_32_0F_0F ???) 5- virsh start copia-00_16_3E_32_0F_0F (boot ok!, can get into the root account, ping google.com, works! :-D) 6- but i don't need this domain anymore 'virsh undefine copia-00_16_3E_32_0F_0F' 7- boot again the original vm: [root@shutdown ~]# virsh start 00_16_3E_32_0F_0F libvir: Xen Daemon error : GET operation failed: error: failed to get domain '00_16_3E_32_0F_0F' 8- oops! :-( 9- i try to "recreate" the xml file, a- [root@shutdown ~]# virsh dumpxml /var/lib/xen/images/00_16_3E_32_0F_0F > original-vm.cfg libvir: Xen Daemon error : GET operation failed: error: failed to get domain '/var/lib/xen/images/00_16_3E_32_0F_0F' b- [root@shutdown ~]# virsh dumpxml 00_16_3E_32_0F_0F > original-vm.cfg libvir: Xen Daemon error : GET operation failed: error: failed to get domain '00_16_3E_32_0F_0F' is possible bring to alive the domain 00_16_3E_32_0F_0F? thanks! > On Wed, Jun 20, 2007 at 02:38:13PM -0400, John Sanabria wrote: >> Thanks Daniel for the answer, >> according to Xen Documentation (3.0), you can start a domain using: xm create <config_file> >> The <config_file> must be located in /etc/xen directory. However, for Xen >> 3.1 the configuration file is not "necessary", then, you can submit the command, >> virsh start <image_filename> >> and the domain is created. The <image_filename> must be a file located in >> /var/lib/xen/images directory. But, where is located the configuration file for a domain in xen 3.1? Thanks. > > Use virsh dumpxml <guest> to get it > > And once you've edited the XML, use virsh define <xmlfile> to load in the new config. > > Regards, > Dan. > -- > |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 > -=| > |=- Perl modules: http://search.cpan.org/~danberr/ > -=| > |=- Projects: http://freshmeat.net/~danielpb/ > -=| > |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 > -=| > > -- > Fedora-xen mailing list > Fedora-xen@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/fedora-xen > http://ece.uprm.edu/~s047267 http://del.icio.us/josanabr http://blog-grid.blogspot.com -- Fedora-xen mailing list Fedora-xen@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-xen