home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

virsh detach-device <vm-name> [--persistent] <xml-filename>

Detaches a network interface from a vRouter .

virsh detach-device vm-name [ --persistent ] xml-filename

Nonpersistent. The interface is reattached after VM restarts or is powered on.

vm-name
The name of the guest VM (the vRouter ).
persistent

Causes the interface to remain detached from the device after the router is powered on after being shut down.

xml-filename
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.

If you hot-plug two interfaces and give them the same MAC address by mistake, use this command to detach one of these interfaces. In the XML file, specify the PCI slot to which the interface is plugged, as shown in the following example:

<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>