- Одминский блог
- Ошибка 1006 noVNC соединения к виртуальной машине Proxmox VE
- [SOLVED] Promox 6: problem with noVNC — failed to connect to server
- hermelin
- starnetwork
- Problem with Novnc
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- dcsapak
- Fabio Araujo
- VNC Client Access
- Contents
- Standard Console Access
- Enabling Access from other VNC clients
- Configure VNC Access via Monitor
- Configure VNC Access via Configuration File
Одминский блог
Блог о технологиях, технократии и методиках борьбы с граблями
Ошибка 1006 noVNC соединения к виртуальной машине Proxmox VE
Неспешно знакомлюсь с системой виртуализации ProxMox VE, которая примечательна тем, что из коробки поддерживает одновременно KVM и OpenVZ. И, помимо этого, при крайне простом веб-интерфейсе, поддерживает все фичи виртуализации KVM в бесплатном режиме, хотя и выкидывает, при каждом заходе в админку, уведомление “у вас отсутствует подписка”. Что разительно отличает данную систему от VMware ESXi, которая в бесплатном режиме держит всего один камень, а также требует, как минимум, 2IP для создания виртуальной фермы серверов, ибо один забирает под сервер и не имеет собственной реализации NAT.
Всем удобная система, но напоролся на отвратительный баг, по которому в Mozilla Firefox с завидным постоянством отваливается браузерная noVNC консоль доступа к виртуальной машине через веб-консоль управления. Соединение просто прекращается, показывает форму логина и выдает ошибку Server disconnected (code: 1006). Причем наглухо, так что приходится скакать с бубном, пытаясь реанимировать noVNC соединение, ибо все новые начинают запускаться с этой же ошибкой.
Что только не ковырял, но лечится это только путем удаления куков для урла вебморды ProxMox и перечиткой сертификата, находящегося в разделе Дополнительно -> Сертификаты -> Просмотр сертификатов -> Серверы -> PVE Cluster Manager CA
Но поскольку noVNC консоль висла каждые пару минут, то стал искать пути как с этим жить и что делать, ибо в Vivaldi оказались те же проблемы. И случайно обнаружил очень занятный ценебаг-цефич: у меня установлена Mozilla Aurora, еще со времен протечки памяти Firefox. И вот при запуске Aurora стартует тот же самый Firefox 50.1.0, просто вторым окном. Но из него noVNC соединение работает вообще без нареканий, а из первого окна, где постоянно отваливалось – теперь максимум что, может зависнуть сессия noVNC, которую просто закрываешь и стартуешь новую консоль.
Очень странно конечно, но не менее странно, чем отвал сертификата ProxMox в процессе работы.
Для использования SPICE соединения, следует погасить виртуальную машину, после чего в управлении виртуальной машиной PROXMOX, драйвер дисплея виртуальной машины надо переключить в SPICE режим, как показано на картинке. После старта виртуалки можно запускать соединение, либо с помощью виндового Remote Viewer, либо дополнительно установленного VirtViewer – последний работает как то по-стабильней.
З.Ы в процессе поиска решения, нашел самый угарный коммент о том, что чел обнаружил на своем сервере виртуализации установленный netcat6, который и выдавал эту ошибку. После того как он запустил команду “apt-get remove netcat6″ у него отлично заработало novnc. Если кто не понял, то повторять не надо.
Источник
[SOLVED] Promox 6: problem with noVNC — failed to connect to server
hermelin
Active Member
after upgrade to Promox 6, I have probem with noVNC console from webbrowser (Chrome,Firefox tested). After some time I cannot connect noVNC console to VM with error «failed to connect to server». After shutdown and start of VM everything work ok — for some time. Same problem is on VM with linux and Windows. This behaviour is at random for different VM. Some VM with noVNC works, other doesn’t working, at the moment.
Thanks for help
Error in log is
starnetwork
Active Member
same for me:
# pveversion
pve-manager/6.0-6/c71f879f (running kernel: 5.0.18-1-pve)
# pveversion —verbose
proxmox-ve: 6.0-2 (running kernel: 5.0.18-1-pve)
pve-manager: 6.0-6 (running version: 6.0-6/c71f879f)
pve-kernel-5.0: 6.0-6
pve-kernel-helper: 6.0-6
pve-kernel-5.0.18-1-pve: 5.0.18-3
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph: 14.2.2-pve1
ceph-fuse: 14.2.2-pve1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.10-pve2
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-4
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-7
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-64
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-7
pve-cluster: 6.0-5
pve-container: 3.0-5
pve-docs: 6.0-4
pve-edk2-firmware: 2.20190614-1
pve-firewall: 4.0-7
pve-firmware: 3.0-2
pve-ha-manager: 3.0-2
pve-i18n: 2.0-2
pve-qemu-kvm: 4.0.0-5
pve-xtermjs: 3.13.2-1
qemu-server: 6.0-7
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.1-pve1
Источник
Problem with Novnc
Fabio Araujo
New Member
I am with problem to open console in Proxmox and all VMs
Anybody have this problem?
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
No, same problem.
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
# pveversion -v
proxmox-ve: 4.2-56 (running kernel: 4.4.13-1-pve)
pve-manager: 4.2-17 (running version: 4.2-17/e1400248)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.4.13-1-pve: 4.4.13-56
pve-kernel-4.4.10-1-pve: 4.4.10-54
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-43
qemu-server: 4.0-85
pve-firmware: 1.1-8
libpve-common-perl: 4.0-71
libpve-access-control: 4.0-18
libpve-storage-perl: 4.0-56
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6-1
pve-container: 1.0-71
pve-firewall: 2.0-29
pve-ha-manager: 1.0-32
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5.7-pve10
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
I Try with IE, mozilla and Chrome, I try too in another computer.
The command apt list | grep novnc-pve show me this:
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Thank you for help.
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
I execute this and not resolve.
I reboot server, but the problem persist.
I write this command and show me this now:
apt list | grep novnc-pve
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
novnc-pve/stable,now 0.5-6 amd64 [installed]
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
ls /usr/share/novc-pve
ls: cannot access /usr/share/novc-pve: No such file or directory
The links return blank page.
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
The command show the folder Images
I run this commands, and the problem persist.
dcsapak
Proxmox Staff Member
Best regards,
Dominik
Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation
Fabio Araujo
New Member
bpo80 amd64 Solaris name-value library for Linux
ii libpve-access-control 4.0-18 amd64 Proxmox VE access control library
ii libpve-common-perl 4.0-71 all Proxmox VE base library
ii libpve-storage-perl 4.0-56 all Proxmox VE storage management library
ii libuutil1 0.6.5.7-pve10
bpo80 amd64 Solaris userland utility library for Linux
ii libzfs2 0.6.5.7-pve10
bpo80 amd64 Native ZFS filesystem library for Linux
ii libzpool2 0.6.5.7-pve10
bpo80 amd64 Native ZFS pool library for Linux
ii lvm2 2.02.116-pve2 amd64 Linux Logical Volume Manager
ii lxc-pve 1.1.5-7 amd64 Linux containers usersapce tools
ii lxcfs 2.0.0-pve2 amd64 LXC userspace filesystem
ii novnc-pve 0.5-6 amd64 HTML5 VNC client
ii pve-cluster 4.0-43 amd64 Cluster Infrastructure for Proxmox Virtual Environment
ii pve-container 1.0-71 all Proxmox VE Container management tool
ii pve-docs 4.2-7 all Proxmox VE Documentation
ii pve-firewall 2.0-29 amd64 Proxmox VE Firewall
ii pve-firmware 1.1-8 all Binary firmware code for the pve-kernel
ii pve-ha-manager 1.0-32 amd64 Proxmox VE HA Manager
ii pve-kernel-4.4.10-1-pve 4.4.10-54 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-4.4.13-1-pve 4.4.13-56 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-4.4.13-2-pve 4.4.13-58 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-4.4.6-1-pve 4.4.6-48 amd64 The Proxmox PVE Kernel Image
ii pve-libspice-server1 0.12.8-1 amd64 SPICE remote display system server library
ii pve-manager 4.2-17 amd64 The Proxmox Virtual Environment
ii pve-qemu-kvm 2.6-1 amd64 Full virtualization on x86 hardware
ii spl 0.6.5.7-pve6
bpo80 amd64 Solaris Porting Layer user-space utilities for Linux
ii tar 1.27.1+pve.3 amd64 GNU version of the tar archiving utility
ii zfs-initramfs 0.6.5.7-pve10
bpo80 amd64 Native ZFS root filesystem capabilities for Linux
ii zfsutils 0.6.5.7-pve10
bpo80 amd64 command-line tools to manage ZFS filesystems
dpkg -L novnc-pve
/.
/usr
/usr/share
/usr/share/novnc-pve
/usr/share/novnc-pve/images
/usr/share/novnc-pve/images/mouse_left.png
/usr/share/novnc-pve/images/esc.png
/usr/share/novnc-pve/images/connect.png
/usr/share/novnc-pve/images/clipboard.png
/usr/share/novnc-pve/images/fullscreen.png
/usr/share/novnc-pve/images/mouse_middle.png
/usr/share/novnc-pve/images/mouse_none.png
/usr/share/novnc-pve/images/power.png
/usr/share/novnc-pve/images/screen_700x700.png
/usr/share/novnc-pve/images/alt.png
/usr/share/novnc-pve/images/drag.png
/usr/share/novnc-pve/images/favicon.ico
/usr/share/novnc-pve/images/ctrlaltdel.png
/usr/share/novnc-pve/images/mouse_right.png
/usr/share/novnc-pve/images/showextrakeys.png
/usr/share/novnc-pve/images/settings.png
/usr/share/novnc-pve/images/ctrl.png
/usr/share/novnc-pve/images/disconnect.png
/usr/share/novnc-pve/images/tab.png
/usr/share/novnc-pve/images/favicon.png
/usr/share/novnc-pve/images/keyboard.png
/usr/share/novnc-pve/images/screen_57x57.png
/usr/share/novnc-pve/images/screen_320x460.png
/usr/share/novnc-pve/include
/usr/share/novnc-pve/include/playback.js
/usr/share/novnc-pve/include/keyboard.js
/usr/share/novnc-pve/include/blue.css
/usr/share/novnc-pve/include/jsunzip.js
/usr/share/novnc-pve/include/keysym.js
/usr/share/novnc-pve/include/Orbitron700.woff
/usr/share/novnc-pve/include/pveui.js
/usr/share/novnc-pve/include/webutil.js
/usr/share/novnc-pve/include/black.css
/usr/share/novnc-pve/include/keysymdef.js
/usr/share/novnc-pve/include/logo.js
/usr/share/novnc-pve/include/websock.js
/usr/share/novnc-pve/include/des.js
/usr/share/novnc-pve/include/display.js
/usr/share/novnc-pve/include/inflator.js
/usr/share/novnc-pve/include/base.css
/usr/share/novnc-pve/include/base64.js
/usr/share/novnc-pve/include/rfb.js
/usr/share/novnc-pve/include/Orbitron700.ttf
/usr/share/novnc-pve/include/input.js
/usr/share/novnc-pve/include/util.js
/usr/share/doc
/usr/share/doc/novnc-pve
/usr/share/doc/novnc-pve/changelog.Debian.gz
/usr/share/doc/novnc-pve/README.md.gz
/usr/share/doc/novnc-pve/LICENSE.txt
/usr/share/doc/novnc-pve/SOURCE
/usr/share/doc/novnc-pve/copyright
dpkg -S /usr/share/novnc-pve/
novnc-pve: /usr/share/novnc-pve
Источник
VNC Client Access
Contents
Standard Console Access
As default Proxmox provides access via [noVNC] and/or SPICE and it is recommended to use this access whenever possible. If there are some reasons to have browser independent access it is possible to use an ordinary VNC client.
Enabling Access from other VNC clients
It is possible to enable the VNC access for use with usual VNC clients as RealVNC, TightVNC, Remmina etc.
Configure VNC Access via Monitor
- Go to VM´s ‘Monitor’ panel in the web interface.
- You can setup a plain VNC or also a password secured one:
- for the plain one type the following into the monitor:
100 denotes the port, this will get added to the VNC base port of 5900, so in this case the VNC server listens on all addresses on port 6000.
- for the password secured one type the following into the monitor:
note: the first «password» parameter after the IP address mustn’t be replaced by a password but is the word «password» itself, this is just a boolean parameter telling QEMU that the server needs a password.
- now you may connect via the ip address and port (6000 in the above example)
The configuration is not persistent, i.e. after the VM has been stopped and started again the above actions have to be repeated in order to enable VNC access via external client.
Configure VNC Access via Configuration File
- Add in the VM´s configuration file /etc/pve/local/qemu-server/ .conf a line which specifies the VNC display number as follows («77» in the example below):
The display number can be freely chosen, but each number must occur only once. VNC service listens then at port 5900+display_number. Note that connections via noVNC start using display number 0 consecutively therefore it´s recommended to use higher numbers in order to avoid conflicts.
- Connect from VNC client to Proxmox host ip address and port as specified (5977 in the above example)
Note: Using this method it not possible to set a VNC password.
Источник