Background
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.
First
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.
Virt-Viewer Installation
We first have to verify that virt-viewer is installed.
Ubuntu/Debian: "sudo apt install virt-viewer"
Fedora: "sudo dnf install virt-viewer"
Virtual Machine Manager GUI Configuration
Step 1
Open Virtual Machine Manager and select "Edit" tab and then "Preferences".
Step 2
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)
Step 3
Open the VM you want to use with multiple displays and go to the "Details" view.
Step 4
Select "Video Virtio" in the list of configurations in details view.
Step 5
In the "XML" tab, in the "heads=" property, change it from "1" to "2" (Or the number displays you want), then click "Apply".
Running Virt-Viewer from the Terminal
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.
Example 1
The 1st and easiest way to get your vm displayed with virt-viewer is to use:
virt-viewer <VM Name>
Example 2
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.
Top comments (0)