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

Re: [libvirt-users] vnetX interface name persistence



On Fri, May 08, 2015 at 12:31:34PM -0300, Lucas Brasilino wrote:
> Hi!
> 
> I'm aware that (host side) vnetX are created when VM boots. But I'm trying to
> figure out a way ti create a persistence in vnetX names. What I mean is,
> say, I want to associate VMs vm0 to vnet0, vm1 to vnet1, vm2 to vnet2 and
> so forth, no matter which order the VMs are booted. I looked around network
> XML format, but did't find something...

The <target dev="xxxx"/> element inside the <interface> controls the
name. You just have to use a prefix that is /not/ 'vnet' - if libvirt
sees 'vnetXXX' it'll throw it away & auto-generate a name

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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