[libvirt] how virbr0-nic is created

Michal Privoznik mprivozn at redhat.com
Fri Mar 8 08:36:09 UTC 2013


On 08.03.2013 08:40, yue wrote:
> libvirt has a default NAT network,  it create a bridge based on virbr0-nic, 
> how virbr0-nic is created?
> 
> thanks
> 

It's created in networkStartNetworkVirtual and subsequent functions
which all boils down to:

fd = open("/dev/net/tun", O_RDWR));

in virNetDevTapCreate.

Michal




More information about the libvir-list mailing list