virsh detach-device <vm-name> [--persistent] <xml-filename>
Detaches a network interface from a vRouter .
Nonpersistent. The interface is reattached after VM restarts or is powered on.
- The name of the guest VM (the vRouter ).
Causes the interface to remain detached from the device after the router is powered on after being shut down.
- The name of the XML file that specifies the interface parameters.
Use this command to detach a network interface from a vRouter . If you do not use the persistent keyword, the interface remains attached, even after the router is restarted or powered on after being shut down. To ensure that the interface remains detached, use the persistent keyword.
<interface type='network'> <mac address='52:54:00:dd:dd:dd'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> <source network='net200'/> <model type='virtio'/> </interface>