Search

14.3. Attaching Interface Devices

download PDF
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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.