Hot-plugging interfaces on the KVM platform
- Add an Ethernet network interface.
- On the host KVM system, create an XML file that specifies the following information:
-
Interface type.
-
MAC address of the interface. You must ensure that this address is unique.
-
Label or name of the network device to which your router is connected.
-
(Optional) Virtualized PCI slot to which the interface is plugged.
-
Model type.
For more information about the contents of the XML file, refer to XML file contents.
-
- Use the virsh attach-device <vm-name> [--persistent] <xml-filename> command to hot-plug the interface into the router. Note: The virsh attach-device command does not check whether a MAC address is already assigned to another network interface. As a result, if you assign the same MAC address to multiple network interfaces and try to configure them, a vRouter might display error messages. To avoid these error messages, ensure that the MAC addresses you assign to hot-plugged interfaces are unique.