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

lei yang yanglei.fage at gmail.com
Thu Jan 3 13:29:52 UTC 2013


On Wed, Jan 2, 2013 at 8:51 AM, Eric Blake <eblake at redhat.com> wrote:
> 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.
>

Thanks, I always see some explain assgin them to guest. and use linux as guest.
I'm wondering why they don't leave it to libvirt manage it. if they
want to assgin it by
themselves,Is there a rule to this assginment

Lei


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




More information about the libvirt-users mailing list