Tools: How to Configure Multi-Display with Virt-Manager and Virt-Viewer (Linux)

Tools: How to Configure Multi-Display with Virt-Manager and Virt-Viewer (Linux)

Background

Virt-Viewer Installation

Virtual Machine Manager GUI Configuration

Step 1

Step 2

Step 3

Step 4

Step 5

Running Virt-Viewer from the Terminal

Example 1

Example 2 I've been using Virtual Machine Manager for my virtual machine needs for a while now, such as testing new Linux distro's or development work. I wanted a way to use multiple displays with a single vm, so I did some research and this is what I've found. Virtual Machine Manager doesn't (from what I've found) allow for a multi-display setup. You will need to use a secondary program called Virt-Viewer. From it's GitLab, it says that: "Virt Viewer provides a graphical viewer for the guest OS display." This means that it can be used as the graphical console instead of Virt-Manager. These are 2 different programs that can be used separately or in tandem. We first have to verify that virt-viewer is installed. Open Virtual Machine Manager and select "Edit" tab and then "Preferences". In the "General" settings, make sure that "Enable XML editing" is selected and then click "Close" on the bottom right. (This will be needed for the next step) Open the VM you want to use with multiple displays and go to the "Details" view. Select "Video Virtio" in the list of configurations in details view. In the "XML" tab, in the "heads=" property, change it from "1" to "2" (Or the number displays you want), then click "Apply". There are multiple ways to start up virt-viewer from the terminal, but I will only show 2 of them. Now that you have the display configured, open a new terminal. The 1st and easiest way to get your vm displayed with virt-viewer is to use: virt-viewer <VM Name> The 2nd way is to reconnect with the UUID. The UUID can be found in the "Overview" of the details view in Virtual Machine Manager. virt-viewer --reconnect --wait <UUID> Hopefully this helps and serves as a future reference. Templates let you quickly answer FAQs or store snippets for re-use. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Code Block

Copy

Ubuntu/Debian: "sudo apt install virt-viewer" Ubuntu/Debian: "sudo apt install virt-viewer" Ubuntu/Debian: "sudo apt install virt-viewer" Fedora: "sudo dnf install virt-viewer" Fedora: "sudo dnf install virt-viewer" Fedora: "sudo dnf install virt-viewer"