Jump to content

How to Access Proxmox VE Virtual Machines and LXC Containers Remotely via SPICE Protocol using Virt-Viewer


Recommended Posts

Virt-Viewer is a SPICE client that is used to access the KVM/QEMU/libvirt virtual machines remotely. Proxmox VE is built using the KVM/QEMU/libvirt technologies. So, you can use Virt-Viewer to remotely access the Proxmox VE virtual machines as well. Virt-Viewer can also be used to access the Proxmox VE LXC containers remotely via SPICE.

In this article, we will show you how to install Virt-Viewer on Windows 10/11, Ubuntu, Debian, Linux Mint, Kali Linux, and Fedora operating systems and access the Promox VE virtual machines and LXC containers remotely via SPICE protocol using Virt-Viewer.

Topic of Contents:

Installing Virt-Viewer on Windows 10/11

To download Virt-Viewer for Windows 10/11, visit the official website of Virtual Machine Manager from your favorite web browser.

Once the page loads, click on “Win x64 MSI” from the “virt-viewer 11.0” section as marked in the following screenshot:

Picture1-4.png
Your browser should start downloading the Virt-Viewer installer file. It takes a while to complete.

Picture2-4.png
At this point, the Virt-Viewer installer file for Windows 10/11 should be downloaded.

Picture3-4.png
To install Virt-Viewer on your Windows 10/11 system, double-click (LMB) on the Virt-Viewer installer file (that you just downloaded). The Virt-Viewer installer file should be found in the “Downloads” folder of your Windows 10/11 system.

Picture4-4.png
Click on “Yes”.

Picture5-3.png
Virt-Viewer is being installed on your Windows 10/11 system. It takes a while for it to complete the installation.

Picture6-3.png

Installing Virt-Viewer on Ubuntu/Debian/Linux Mint/Kali Linux

Virt-Viewer is available in the official package repository of Ubuntu/Debian/Linux Mint/Kali Linux. So, you can easily install it on your computer if you’re using Ubuntu/Debian or any Ubuntu/Debian-based operating systems (i.e. Linux Mint, Kali Linux).

First, update the APT package database cache with the following command:

$ sudo apt update

 
Picture7-2.png
To install Virt-Viewer on Ubuntu/Debian/Linux Mint/Kali Linux, run the following command:

$ sudo apt install virt-viewer

 
To confirm the installation, press “Y” and then press <Enter>.

Picture8-2.png
Virt-Viewer is being installed. It takes a while to complete.

Picture9-1.png
Virt-Viewer should now be installed.

Picture10-1.png

Installing Virt-Viewer on Fedora

Virt-Viewer can be easily installed from the official package repository of Fedora.

First, update the DNF package database cache with the following command:

$ sudo dnf makecache

 
Picture11-1.png
To install Virt-Viewer on Fedora, run the following command:

$ sudo dnf install virt-viewer

 
To confirm the installation, press “Y” and then press <Enter>.

Picture12.png
You might be asked to confirm the GPG key of the official Fedora package repository. To do that,  press “Y” and then press <Enter>.

Picture13.png
Virt-Viewer should now be installed on your Fedora system.

Picture14.png

Configuring the SPICE/QXL Display for the Proxmox VE Virtual Machines and LXC Containers

SPICE is enabled for LXC containers by default on Proxmox VE. So, you don’t need to do anything to access the Proxmox VE LXC containers with Virt-Manager via SPICE protocol.

SPICE is not enabled for Proxmox VE virtual machines. To access the Proxmox VE virtual machines with Virt-Viewer via SPICE protocol, you must configure SPICE for the display of the virtual machines that you want to access.

To configure the SPICE access for a Proxmox VE virtual machine, navigate to the “Hardware” section of the virtual machine from the Proxmox VE web management interface[1]. Double-click (LMB) on the “Display” hardware[2], select SPICE from the “Graphic card” dropdown menu[3], and click on “OK”[4].

Picture15.png
SPICE should be enabled for your Proxmox VE virtual machine. Now, you can access the Proxmox VE virtual machine with Virt-Viewer via SPICE protocol.

Picture16.png

Accessing the Proxmox VE Virtual Machines Remotely via SPICE Protocol Using Virt-Viewer

To acess a Proxmox VE virtual machine remotely via SPICE protocol using Virt-Viewer, open the virtual machine in the Proxmox VE server and click on Console > SPICE from the top-right corner of the Proxmox VE dashboard.

Picture17.png
A SPICE connection file for the virtual machine should be downloaded. To access the virtual machine with Virt-Viewer, click on the downloaded SPICE connection file.

Picture18.png
The Proxmox VE virtual machine should be opened with Virt-Viewer via the SPICE protocol.

Picture19.png
Figure 1: Ubuntu 22.04 LTS Proxmox VE virtual machine remotely accessed with Virt-Viewer from Windows 10

Picture20.png
Figure 2: Ubuntu 22.04 LTS Proxmox VE virtual machine remotely accessed with Virt-Viewer from Fedora

Accessing the Proxmox VE LXC Containers Remotely via SPICE Protocol Using Virt-Viewer

You can access a Proxmox VE LXC container with Virt-Viewer in the same way as you access a Proxmox VE virtual machine.

To access a Proxmox VE LXC container remotely via SPICE protocol using Virt-Viewer, open the LXC container in the Proxmox VE server and click on Console > SPICE from the top-right corner of the Proxmox VE dashboard.

Picture21.png
A SPICE connection file for the LXC container should be downloaded. To access the LXC container with Virt-Viewer, click on the downloaded SPICE connection file.

Picture22.png
The Proxmox VE LXC container should be opened with Virt-Viewer via the SPICE protocol.

Picture23.png

Sharing the Remote Access to Proxmox VE Virtual Machines and LXC Containers with Others

If you want to share a Proxmox VE virtual machine with someone, all you have to do is share the SPICE connection file (ending in “.vv” file extension) of the virtual machine that you downloaded from the Proxmox VE web management interface.

Picture24.png
Anyone can access the Proxmox VE virtual machine only once using the SPICE connection file.

NOTE: The person with whom you shared the SPICE connection file must be able to access your Proxmox VE server to be able to access the Proxmox VE virtual machine. If your Proxmox VE server has a private IP address, only the people connected to your home network will be able to connect to the shared virtual machines. If your Proxmox VE server has a public IP address, anyone can connect to the shared virtual machines.

Conclusion

In this article, we showed you how to install Virt-Viewer on Windows 10/11, Ubuntu, Debian, Linux Mint, Kali Linux, and Fedora. We also showed you how to access the Proxmox VE virtual machines and LXC containers remotely with Virt-Viewer via SPICE protocol. We showed you how to share the access to Proxmox VE virtual machines and LXC containers with other people as well.

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...