Re: creating a domain

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

 



On Wed, May 09, 2012 at 02:26:47PM -0700, John Wayne wrote:
> looks like i have to use virDomain.create, however virDomain.create
> needs a defined domain xmldesc as a parameter and i am not sure on how to get that

Have you tried one of these?

  lookupByID(self, id)
      Try to find a domain based on the hypervisor ID number
      Note that this won't work for inactive domains which have
      an ID of -1,
      in that case a lookup based on the Name or UUId need to be
      done instead.
  
  lookupByName(self, name)
      Try to lookup a domain on the given hypervisor based on
      its name.
  
  lookupByUUID(self, uuid)
      Try to lookup a domain on the given hypervisor based on
      its UUID.
  
  lookupByUUIDString(self, uuidstr)
      Try to lookup a domain on the given hypervisor based on
      its UUID.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux