[SOLVED] spice the journey of an unitiated pleb.

ParasiticTwin

Active Member
Aug 30, 2018
5
0
41
Pittsburgh, Pennsylvania USA
Howdy,

I have been tearing out the stubble on my head trying to get a spice terminal to open just 'like' vnc terminal window opens. I watched a video where a gentlemen clicked on spice pulldown menu and it opened a terminal window with the desktop of the vm on the guest's desktop. I have installed spice-vdagent, qemu-guest-agent. opened ports on the proxmox and guest firewall

Code:
Linux pve 7.0.6-2-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.6-2 (2026-05-29T11:08Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@pve:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie
root@pve:~#

Code:
inxi -Fxs
System:
  Host: pve Kernel: 7.0.6-2-pve arch: x86_64 bits: 64 compiler: gcc v: 14.2.0
  Console: pty pts/1 Distro: Debian GNU/Linux 13 (trixie)
Machine:
  Type: Desktop System: Dell product: Precision Tower 7910 v: N/A serial: 26M9GK2
  Mobo: Dell model: 0NK5PH v: A00 serial: /26M9GK2/CNFCW0075200AF/ UEFI: Dell
    v: A34 date: 10/19/2020
CPU:
  Info: 2x 10-core model: Intel Xeon E5-2640 v4 bits: 64 type: MT MCP SMP
    arch: Broadwell rev: 1 cache: L1: 2x 640 KiB (1.2 MiB) L2: 2x 2.5 MiB (5 MiB)
    L3: 2x 25 MiB (50 MiB)
  Speed (MHz): avg: 3400 min/max: 1200/3400 cores: 1: 3400 2: 3400 3: 3400 4: 3400
    5: 3400 6: 3400 7: 3400 8: 3400 9: 3400 10: 3400 11: 3400 12: 3400 13: 3400
    14: 3400 15: 3400 16: 3400 17: 3400 18: 3400 19: 3400 20: 3400 21: 3400 22: 3400
    23: 3400 24: 3400 25: 3400 26: 3400 27: 3400 28: 3400 29: 3400 30: 3400 31: 3400
    32: 3400 33: 3400 34: 3400 35: 3400 36: 3400 37: 3400 38: 3400 39: 3400 40: 3400
    bogomips: 191560
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM204GL [Quadro M4000] driver: nouveau v: kernel arch: Maxwell
    bus-ID: 03:00.0 temp: 58.0 C
  Display: unspecified server: N/A driver: gpu: nouveau tty: 86x20
    resolution: 1920x1080
  API: EGL v: 1.5 drivers: nouveau,swrast platforms:
    active: gbm,surfaceless,device inactive: wayland,x11
  API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 25.0.7-2
    note: console (EGL sourced) renderer: NV124, llvmpipe (LLVM 19.1.7 256 bits)
  Info: Tools: api: eglinfo,glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel C610/X99 series HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0
  Device-2: NVIDIA GM204 High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 03:00.1
  API: ALSA v: k7.0.6-2-pve status: kernel-api
Network:
  Device-1: Intel Ethernet I217-LM vendor: Dell driver: e1000e v: kernel port: 9020
    bus-ID: 00:19.0
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: 50:9a:4c:4e:93:9d
  Device-2: Intel I210 Gigabit Network vendor: Dell driver: igb v: kernel
    port: 6000 bus-ID: 09:00.0
  IF: enp9s0 state: down mac: 50:9a:4c:4e:93:b5
  IF-ID-1: bonding_masters state: N/A speed: N/A duplex: N/A mac: N/A
  IF-ID-2: fwbr108i0 state: up speed: 10000 Mbps duplex: unknown
    mac: e2:ba:fc:5e:ac:df
  IF-ID-3: fwln108i0 state: up speed: 10000 Mbps duplex: full
    mac: e2:ba:fc:5e:ac:df
  IF-ID-4: fwpr108p0 state: up speed: 10000 Mbps duplex: full
    mac: c6:e5:9d:4d:ca:ff
  IF-ID-5: tap108i0 state: unknown speed: 10000 Mbps duplex: full
    mac: 5a:e8:02:59:e1:36
  IF-ID-6: veth105i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:a3:e0:ef:06:f8
  IF-ID-7: veth106i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:60:69:58:ac:1a
  IF-ID-8: veth107i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:cc:9d:d8:d0:4e
  IF-ID-9: vmbr0 state: up speed: 10000 Mbps duplex: unknown
    mac: 50:9a:4c:4e:93:9d
RAID:
  Device-1: BigData type: zfs status: ONLINE level: mirror-0 raw: size: 1.81 TiB
    free: 1.75 TiB zfs-fs: size: 1.76 TiB free: 1.55 TiB
  Components: Online: 1: sdc 2: sdd
Drives:
  Local Storage: total: raw: 7.28 TiB usable: 5.4 TiB lvm-free: 16.38 GiB
    used: 21.77 GiB (0.4%)
  ID-1: /dev/sda vendor: Western Digital model: WD2003FYYS-18W0B0 size: 1.82 TiB
  ID-2: /dev/sdb vendor: Western Digital model: WD2003FYYS-18W0B0 size: 1.82 TiB
  ID-3: /dev/sdc vendor: Toshiba model: DT01ACA200 size: 1.82 TiB
  ID-4: /dev/sdd vendor: Hitachi model: HUA722020ALA331 size: 1.82 TiB
Partition:
  ID-1: / size: 93.93 GiB used: 12.38 GiB (13.2%) fs: ext4 dev: /dev/dm-1
    mapped: pve-root
  ID-2: /boot/efi size: 511 MiB used: 352 KiB (0.1%) fs: vfat dev: /dev/sda2
Swap:
  ID-1: swap-1 type: partition size: 45 GiB used: 12 KiB (0.0%) dev: /dev/dm-0
    mapped: pve-swap
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A sodimm: 38.0 C gpu: nouveau
    temp: 58.0 C
  Fan Speeds (rpm): cpu: 1008 gpu: nouveau fan: 3384
Info:
  Memory: total: 64 GiB available: 62.79 GiB used: 21.05 GiB (33.5%)
  Processes: 789 Uptime: 10d 15h 48m Init: systemd
  Packages: 1220 Compilers: gcc: 14.2.0 Shell: Bash v: 5.2.37 inxi: 3.3.38
root@pve:~# inxi -Fx
System:
  Host: pve Kernel: 7.0.6-2-pve arch: x86_64 bits: 64 compiler: gcc v: 14.2.0
  Console: pty pts/1 Distro: Debian GNU/Linux 13 (trixie)
Machine:
  Type: Desktop System: Dell product: Precision Tower 7910 v: N/A serial: 26M9GK2
  Mobo: Dell model: 0NK5PH v: A00 serial: /26M9GK2/CNFCW0075200AF/ UEFI: Dell
    v: A34 date: 10/19/2020
CPU:
  Info: 2x 10-core model: Intel Xeon E5-2640 v4 bits: 64 type: MT MCP SMP
    arch: Broadwell rev: 1 cache: L1: 2x 640 KiB (1.2 MiB) L2: 2x 2.5 MiB (5 MiB)
    L3: 2x 25 MiB (50 MiB)
  Speed (MHz): avg: 2453 high: 3400 min/max: 1200/3400 cores: 1: 3400 2: 3400
    3: 3400 4: 3400 5: 3400 6: 3400 7: 3400 8: 3400 9: 3400 10: 3400 11: 1507 12: 1507
    13: 1507 14: 1507 15: 1507 16: 1507 17: 1507 18: 1507 19: 1507 20: 1507 21: 3400
    22: 3400 23: 3400 24: 3400 25: 3400 26: 3400 27: 3400 28: 3400 29: 3400 30: 3400
    31: 1507 32: 1507 33: 1507 34: 1507 35: 1507 36: 1507 37: 1507 38: 1507 39: 1507
    40: 1507 bogomips: 191560
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM204GL [Quadro M4000] driver: nouveau v: kernel arch: Maxwell
    bus-ID: 03:00.0 temp: 58.0 C
  Display: unspecified server: N/A driver: gpu: nouveau tty: 86x20
    resolution: 1920x1080
  API: EGL v: 1.5 drivers: nouveau,swrast platforms:
    active: gbm,surfaceless,device inactive: wayland,x11
  API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 25.0.7-2
    note: console (EGL sourced) renderer: NV124, llvmpipe (LLVM 19.1.7 256 bits)
  Info: Tools: api: eglinfo,glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel C610/X99 series HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0
  Device-2: NVIDIA GM204 High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 03:00.1
  API: ALSA v: k7.0.6-2-pve status: kernel-api
Network:
  Device-1: Intel Ethernet I217-LM vendor: Dell driver: e1000e v: kernel port: 9020
    bus-ID: 00:19.0
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: 50:9a:4c:4e:93:9d
  Device-2: Intel I210 Gigabit Network vendor: Dell driver: igb v: kernel
    port: 6000 bus-ID: 09:00.0
  IF: enp9s0 state: down mac: 50:9a:4c:4e:93:b5
  IF-ID-1: bonding_masters state: N/A speed: N/A duplex: N/A mac: N/A
  IF-ID-2: fwbr108i0 state: up speed: 10000 Mbps duplex: unknown
    mac: e2:ba:fc:5e:ac:df
  IF-ID-3: fwln108i0 state: up speed: 10000 Mbps duplex: full
    mac: e2:ba:fc:5e:ac:df
  IF-ID-4: fwpr108p0 state: up speed: 10000 Mbps duplex: full
    mac: c6:e5:9d:4d:ca:ff
  IF-ID-5: tap108i0 state: unknown speed: 10000 Mbps duplex: full
    mac: 5a:e8:02:59:e1:36
  IF-ID-6: veth105i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:a3:e0:ef:06:f8
  IF-ID-7: veth106i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:60:69:58:ac:1a
  IF-ID-8: veth107i0 state: up speed: 10000 Mbps duplex: full
    mac: fe:cc:9d:d8:d0:4e
  IF-ID-9: vmbr0 state: up speed: 10000 Mbps duplex: unknown
    mac: 50:9a:4c:4e:93:9d
RAID:
  Device-1: BigData type: zfs status: ONLINE level: mirror-0 raw: size: 1.81 TiB
    free: 1.75 TiB zfs-fs: size: 1.76 TiB free: 1.55 TiB
  Components: Online: 1: sdc 2: sdd
Drives:
  Local Storage: total: raw: 7.28 TiB usable: 5.4 TiB lvm-free: 16.38 GiB
    used: 21.77 GiB (0.4%)
  ID-1: /dev/sda vendor: Western Digital model: WD2003FYYS-18W0B0 size: 1.82 TiB
  ID-2: /dev/sdb vendor: Western Digital model: WD2003FYYS-18W0B0 size: 1.82 TiB
  ID-3: /dev/sdc vendor: Toshiba model: DT01ACA200 size: 1.82 TiB
  ID-4: /dev/sdd vendor: Hitachi model: HUA722020ALA331 size: 1.82 TiB
Partition:
  ID-1: / size: 93.93 GiB used: 12.38 GiB (13.2%) fs: ext4 dev: /dev/dm-1
    mapped: pve-root
  ID-2: /boot/efi size: 511 MiB used: 352 KiB (0.1%) fs: vfat dev: /dev/sda2
Swap:
  ID-1: swap-1 type: partition size: 45 GiB used: 12 KiB (0.0%) dev: /dev/dm-0
    mapped: pve-swap
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A sodimm: 38.0 C gpu: nouveau
    temp: 57.0 C
  Fan Speeds (rpm): cpu: 991 gpu: nouveau fan: 2962
Info:
  Memory: total: 64 GiB available: 62.79 GiB used: 21.08 GiB (33.6%)
  Processes: 790 Uptime: 10d 15h 50m Init: systemd
  Packages: 1220 Compilers: gcc: 14.2.0 Shell: Bash v: 5.2.37 inxi: 3.3.38

Code:
[virt-viewer]
ca=-----BEGIN CERTIFICATE-----\nMIIFzTCCA7WgAwIBAgIUb49b77HhK9WbPaCc2k9MM7wHAsEwDQYJKoZIhvcNAQEL\nBQAwdjEkMCIGA1UEAwwbUHJveG1veCBWaXJ0dWFsIEVudmlyb25tZW50MS0wKwYD\nVQQLDCQzZDZlZWZlYy05NjkxLTQxNzctOTc0Ni00MTkzMzM2OWVlYTkxHzAdBgNV\nBAoMFlBWRSBDbHVzdGVyIE1hbmFnZXIgQ0EwHhcNMjMwMTI3MjI1MjA4WhcNMzMw\nMTI0MjI1MjA4WjB2MSQwIgYDVQQDDBtQcm94bW94IFZpcnR1YWwgRW52aXJvbm1l\nbnQxLTArBgNVBAsMJDNkNmVlZmVjLTk2OTEtNDE3Ny05NzQ2LTQxOTMzMzY5ZWVh\nOTEfMB0GA1UECgwWUFZFIENsdX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A8ZsNvSgiNox\n8t4KZx3hPEe9JwL9XM7GCxz3wJRPDxeEfhcF2iFGEYacWXqD1jGCxJCdE2Ea2l9t\nyCZHiFJiECm2INOLIhNcrmsEfvYhho0iqSkbRdItGzaHgs6lpuBCFBjcEjM3POn6\n3gRPjAc87Ntrq3SRw8eKrWTuL2ieu+Q5NV5RVIG5DWxYlBWGW1ZDujRK0v0uOgX0\nKhAYz3c3aGb6YNe75WUKAevlfEm7F7F4HOb9NIewB1vmDw9RtoE3cPqeICMrBdHP\neX4yna31hkZVYXpQp3T5Z4kCQSWYCiIw9TXxFKTxleP9oldHJ+KLdK9pm8V7wEpt\naKEFqCRXStj44vW7PQFp09yjlY2m2yumN1Gz3IBnx7xduIfbCEkJqJuwqwHyTVcn\n5LO+so8qA3JaNMtAW9r3gLkrP3tl4pJgYlzW7MW5VfhqxTteoUh9Bpvkk9bKqSV4\n44/62Nrf6a+g2HJR22nZYXLFK9M/6Wh4pTCjXprkE2Zx80k8y/eY+n0VyMmDyBiF\nWQ==\n-----END CERTIFICATE-----\n
type=spice
toggle-fullscreen=Shift+F11
title=VM 108 - EndeavourOSTitan
tls-port=61000
secure-attention=Ctrl+Alt+Ins
delete-this-file=1
proxy=http://192.168.1.122:3128
password=notforpublicviewing
host-subject=OU=PVE Cluster Node,O=Proxmox Virtual Environment,CN=pve.local
release-cursor=Ctrl+Alt+R
host=pvespiceproxy:6a3bee64:108:pve:61000:Notforviewingpublic
the
Note the above cut'npaste of the dotvv file, there are alot of cr/lf characters (/n) characters in the output of this file. I was told (chatgpt) fwiw, that cr/lf were a no go in this file. Well anyhow. When, I attempt to use virt-viewer I get unable to connect to the graphical server. I know that I am not doing something right. I have attempted multiple options and urls.

So I hope someone can help me out with some troubleshooting steps.

Regards
 
hi, sorry for the late answer. did you make sure to also open the 3128 port? can the client reach the correct ip directly? (192.168.1.122 in this case)?

you could also try opening the file with remote-viewers 'verbose' and/or 'debug' output:

Code:
remote-viewer --verbose --debug <path-to-vv-file>
 
Hi, @dcsapak

Well Brave Browser seems to be the problem. I just opened Waterfox and clicked on spice terminal and I got an open with and I selected virt-viewer and wahla it just worked. However, I'm stubborn and I prefer Brave. I've been using it for 6mo or so and like it. I will try that on Brave momentarily.

Tx
 
hi, sorry for the late answer. did you make sure to also open the 3128 port? can the client reach the correct ip directly? (192.168.1.122 in this case)?

you could also try opening the file with remote-viewers 'verbose' and/or 'debug' output:

Code:
remote-viewer --verbose --debug <path-to-vv-file>
@dcsapak

Here is the output:

Code:
$ virt-viewer --verbose --debug pve-spice\(1\).vv
Opening connection to libvirt with URI <null>

I recall opening port 3128 on the client. So maybe its Brave?

Regards,
 
@dcsapak,

I have discovered a quasi-solution. From the proxmox server view I make sure that my vm is selected. Click on terminal and select spice. The file is downloaded. From the downloads history, I left ( for rh people its right click) I select open with virt-viewer and wahla it opens my vm in a spice terminal. I'll mark this as solved.
Tx.