Configure SPICE in vm.conf to avoid GUI/WEB to generate connection file

qrcode

New Member
Jan 23, 2024
2
0
1
Hi,

I can generate a file via WEB/GUI without any problems and connect to my Ubuntu VM, but as you know the file that is downloaded on my PC is not usable after 30 seconds.

I want to configure VM to always be available for ma Remote Viewer by simply typing "spice://172.19.0.20:6005", without me needing to generate a file via GUI/WEB.

Yes, I know there is solution with the script, but I do not want that solution, I want simply to connect to the VM using Remote Viewer as explained above.

This is the configuration that I placed in my vm.conf file:

boot: order=scsi0;ide2;net0
cores: 3
ide2: local:iso/ubuntu-22.04.3-desktop-amd64.iso,media=cdrom,size=4919592K
memory: 20500
meta: creation-qemu=7.2.0,ctime=1706864165
name: workstation-user
net0: virtio=B2:C4:1E:F1:5A:7F,bridge=vmbr0,firewall=1,tag=19
numa: 0
ostype: l26
scsi0: local-lvm:vm-105-disk-0,iothread=1,size=200G
scsihw: virtio-scsi-single
smbios1: uuid=45520f6e-885c-46cd-a482-55bf8c44ae29
sockets: 2
usb0: spice
usb1: spice
vga: qxl2
vmgenid: 78b913e3-ccbe-463e-8657-cf468a573467
args: -spice port=6005,addr=0.0.0.0,disable-ticketing=on

But, when I try to connect to the VM using Remote Viewer I get this error:

"Unable to connect to the graphic server spice://172.19.0.20:6005"

As you can see in the picture that I attached, in the "Hardware" Display section is configured to be Spice. I did try to change this to Default, but I got the same error.

Thank you in advance!
 

Attachments

  • Capture.PNG
    Capture.PNG
    2.8 KB · Views: 7

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!