[libvirt-users] can someone explain why the domain, function bus, slot function is used in this xml

Eric Blake eblake at redhat.com
Wed Jan 2 16:51:13 UTC 2013


On 01/02/2013 09:43 AM, lei yang wrote:

> 
> 1)I'm using guest as guest,I don't assgin address(disk or nic) to
> guest,but it works well, any risk here?

No - libvirt intentionally allows you to omit address assignment when
first defining the guest, at which point libvirt will then fill in the
information for you, so that future uses of the guest will have an
assigned address.

> 
> 2)I don't know how to set the address for guest, or just set a host
> unused address to guest

The easiest way is to omit the guest assignment from your XML, and let
libvirt manage it.  The guest view is completely independent from the
host view, so you don't need to worry about address collisions with the
host.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130102/7b9b2d1a/attachment.sig>


More information about the libvirt-users mailing list