Hi, thanks a lot. In Centos 5.5 there is no domxml-from-native but I get it working using virsh dumpxml and import.
Thanks!! Best regards, Bernhard -----Ursprüngliche Nachricht----- Von: Michal Novotny [mailto:[email protected]] Gesendet: Dienstag, 3. August 2010 16:02 An: Bernhard Suttner Cc: [email protected] Betreff: Re: AW: AW: [virt-tools-list] Add a manually configured XEN Hi Berhard, could you please try using the syntax like: virsh domxml-from-native <format> <config> where <format> is "xen-xm" and config is the path to config file? Something like running: virsh domxml-from-native xen-xm vm.cfg on the machine that's having Xen hypervisor installed and if you have multiple hypervisors something like: virsh -c xen:/// domxml-from-native xen-xm vm.cfg AFAIK, Xend should be running the time you try to do this. This will create the configuration within the libvirt and if 'virsh list --all' will be showing the guest, it's perfect and you should be seeing the guest in the virt-manager. Also, if you're having some guest you'd like to copy/clone you can do following: # virsh dumpxml existingGuest > temp.xml # vim temp.xml (to edit the paths, UUID, name etc.) # virsh define temp.xml (when it succeeds you can remove temp.xml if you want to) You should be having a new guest based on the config. Also, you may need to remove /etc/xen/{NAME} from the system but maybe it's not necessary. Hope this helps, Michal On 08/03/2010 02:59 PM, Bernhard Suttner wrote: > Hi, > > manually means, I did not use virt-install or the virt-manager to add the XEN > domU to the dom0. I set it up manually (created configuration manually, added > disk images and so on manually, ....). > > virsh list --all does show the domU BUT only if I start it manually with xm > create domU. If the domU does not run, it does not appear. Other virtual > manchines (domU) which I created with virt-manager or virt-install do also > appear, if the domU is currently not up (stopped). > > Best regards, > Bernhard > > -----Ursprüngliche Nachricht----- > Von: Michal Novotny [mailto:[email protected]] > Gesendet: Dienstag, 3. August 2010 14:17 > An: Bernhard Suttner > Cc: [email protected] > Betreff: Re: AW: [virt-tools-list] Add a manually configured XEN > > On 08/03/2010 02:14 PM, Bernhard Suttner wrote: > >> Hi, >> >> thanks. But this did not work. I think, this option does only connect to >> another dom0 - means, to another xen host system. I want, that virt-manager >> does show the domU (the guest) of the local xen installation which I >> manually added to this system. >> >> > Why do you mean that is manually added to the system? Does `virsh list > --all` show the guest? > > Regards, > Michal > > >> Best regards, >> Bernhard >> >> -----Ursprüngliche Nachricht----- >> Von: Michal Novotny [mailto:[email protected]] >> Gesendet: Dienstag, 3. August 2010 10:51 >> An: Bernhard Suttner >> Cc: [email protected] >> Betreff: Re: [virt-tools-list] Add a manually configured XEN >> >> Hi Bernhard, >> I'm not the expert but when you start virt-manager you can go to the >> File -> Add connection and add the connection there. The connection >> should be persistent and just connecting to it should fail when xend is >> not running AFAIK. >> >> Hope this helps, >> Michal >> >> On 08/02/2010 09:13 PM, Bernhard Suttner wrote: >> >> >>> Hi, >>> >>> I am using XEN and the virt-manager (which use libvirt). I have configured >>> the XEN domU manually within the shell. If I start the domU with xm create >>> config then the virtual machine appears in the virt-manager. If I stop the >>> XEN it will disappear. How could I add the XEN to the virt-manager like all >>> the other (with virt-manager) created domU that I have it listed with the >>> virt-manager and could start it from GUI? >>> >>> Best regards, >>> Bernhard Suttner >>> >>> _______________________________________________ >>> virt-tools-list mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/virt-tools-list >>> >>> >>> >> >> > > -- Michal Novotny<[email protected]>, RHCE Virtualization Team (xen userspace), Red Hat _______________________________________________ virt-tools-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-tools-list
