Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

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 --config for an offline domain, and like --live for 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 are average, peak, and burst.
  • --outbound - controls the outbound bandwidth of the interface. Acceptable values are average, peak, and burst.
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.