Outils pour utilisateurs

Outils du site


tech:notes_openstack_-_nova_-_console_vnc_novnc_spice_serial

Notes OpenStack - Nova - console VNC NOVNC spice serial

/opt/stack/horizon/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_console.html /usr/share/qemu/keymaps/

/etc/nova/nova-cpu.conf

[vnc]
# Keymap is depecated 
keymap = fr

/etc/libvirt/qemu/instance-00000023.xml

<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='fr'>
 
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='fr'>
    <graphics type='spice' autoport='yes' listen='0.0.0.0' keymap='fr'>
apt-get install spice-vdagent

/opt/stack/noVNC/vnc_auto.html

Slice à la place de VNC

Voir :

/etc/nova/nova-cpu.conf

[vnc]
server_proxyclient_address = 0.0.0.0
server_listen = 0.0.0.0
xvpvncproxy_base_url = http://192.168.56.11:6081/console
novncproxy_base_url = http://192.168.56.11:6080/vnc_auto.html
vnc_enabled = False
novnc_enabled = False
 
 
[spice]
html5proxy_base_url = http://192.168.56.11:6082/spice_auto.html
agent_enabled = True
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = 192.168.56.11

PS : Two keymap-related configuration options have been deprecated:

  • [vnc] keymap
  • [spice] keymap

Voir https://docs.openstack.org/releasenotes/nova/rocky.html

systemctl restart devstack@n-*

Certaines modif ne s’appliqueront que sur les nouvelles VMs déployées. puisque c'est la conf /etc/libvirt/qemu/ qui est définie.

apt-get install nova-spiceproxy
WebSocket error: Can't connect to websocket on URL: ws://192.168.56.11:6082/websockify

[object Event]

Log de la console KVM/Libvirt

/opt/stack/data/nova/instances/4aa28898-07ce-4f16-8666-4e33e32a7450/console.log

voir /etc/libvirt/qemu/instance-00000006.xml

A tester

aptitude install uwsgi-plugin-python
nova get-vnc-console INSTANCE_NAME VNC_TYPE
tech/notes_openstack_-_nova_-_console_vnc_novnc_spice_serial.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki