Show Table of Contents
14.3. Attaching Interface Devices
The
virsh attach-interfacedomain type source command can take the following options:
--live- get value from running domain--config- get value to be used on next boot--current- get value according to current domain state--persistent- behaves like--configfor an offline domain, and like--livefor a running domain.--target- indicates the target device in the guest virtual machine.--mac- use this to specify the MAC address of the network interface--script- use this to specify a path to a script file handling a bridge instead of the default one.--model- use this to specify the model type.--inbound- controls the inbound bandwidth of the interface. Acceptable values areaverage,peak, andburst.--outbound- controls the outbound bandwidth of the interface. Acceptable values areaverage,peak, andburst.
The type can be either
network to indicate a physical network device, or bridge to indicate a bridge to a device. source is the source of the device. To remove the attached device, use the virsh detach-device.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.