6.10. Host Devices
6.10.1. Adding a Host Device to a Virtual Machine
Virtual machines can be directly attached to the host devices for improved performance if a compatible host has been configured for direct device assignment. Host devices are devices that are physically plugged into the host, including SCSI (for example tapes, disks, changers), PCI (for example NICs, GPUs, and HBAs), and USB (for example mice, cameras, and disks).
Procedure 6.15. Adding Host Devices to a Virtual Machine
- Select a virtual machine and click the Host Devices tab in the details pane to list the host devices already attached to this virtual machine. A virtual machine can only have devices attached from the same host. If a virtual machine has attached devices from one host, and you attach a device from another host, the attached devices from the previous host will be automatically removed.Attaching host devices to a virtual machine requires the virtual machine to be in a
Down
state. If the virtual machine is running, the changes will not take effect until after the virtual machine has been shut down. - Click Add Host Devices window.to open the
- Use the Pinned Host dropdown menu to select a host.
- Use the Capability dropdown menu to list the
pci
,scsi
, orusb_device
host devices. - Select the check boxes of the devices to attach to the virtual machine from the Available Host Devices pane and click the directional arrow button to transfer these devices to the Host Devices to be attached pane, creating a list of the devices to attach to the virtual machine.
- When you have transferred all desired host devices to the Host Devices to be attached pane, click to attach these devices to the virtual machine and close the window.
These host devices will be attached to the virtual machine when the virtual machine is next powered on.
6.10.2. Removing Host Devices from a Virtual Machine
Remove a host device from a virtual machine to which it has been directly attached using the details pane of the virtual machine.
If you are removing all host devices directly attached to the virtual machine in order to add devices from a different host, you can instead add the devices from the desired host, which will automatically remove all of the devices already attached to the virtual machine.
Procedure 6.16. Removing a Host Device from a Virtual Machine
- Select the virtual machine and click the Host Devices tab in the details pane to list the host devices attached to the virtual machine.
- Select the host device to detach from the virtual machine, or hold Ctrl to select multiple devices, and click Remove Host Device(s) window.to open the
- Clickto confirm and detach these devices from the virtual machine.
6.10.3. Pinning a Virtual Machine to Another Host
You can use the Host Devices tab in the details pane of a virtual machine to pin it to a specific host.
If the virtual machine has any host devices attached to it, pinning it to another host will automatically remove the host devices from the virtual machine.
Procedure 6.17. Pinning a Virtual Machine to a Host
- Select a virtual machine and click the Host Devices tab in the details pane.
- Click Pin VM to Host window.to open the
- Use the Host drop-down menu to select a host.
- Clickto pin the virtual machine to the selected host.