Re: sttic vnet device for guest

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

 



On 28.10.2016 11:09, Anton Gorlov wrote:
> Can i assign static  vnet* device for some guests?
> 

What do you mean?
vnet* devices are created by libvirt when a domain is being started (or
on device hotplug). In general, unless all devices would be statically
allocated, it would be impossible to guarantee certain vnet name.

However, what you can do is to create the device yourself and then just
tell libvirt to use it:

    <interface type='bridge'>
      <source bridge='vnetX'/>
    </interface>

 But most likely, the problem you are trying to solve looks for a
different solution. If you need the device name in order to set up some
environment (e.g. apply some FW rules on the device), we have network
hooks and domain hooks - user defined scripts that are run by libvirt on
various events (e.g. domain startup, device hotplug, etc.). You should
consider those.

Michal

_______________________________________________
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