Show Table of Contents
188.8.131.52. Generic Ethernet connection
Provides a means for the administrator to execute an arbitrary script to connect the guest virtual machine's network to the LAN. The guest virtual machine will have a
tundevice created with a name of
vnetN, which can also be overridden with the
targetelement. After creating the
tundevice a shell script will be run which is expected to do whatever host physical machine network integration is required. By default this script is called
/etc/qemu-ifupbut can be overridden (refer to Section 184.108.40.206, “Overriding the target element”).
The generic Ethernet connection parameters are defined in the following part of the domain XML:
... <devices> <interface type='ethernet'/> ... <interface type='ethernet'> <target dev='vnet7'/> <script path='/etc/qemu-ifup-mynet'/> </interface> </devices> ...
Figure 20.40. Devices - network interfaces- generic Ethernet connection