Ask Your Question
0

switching from vnc to spice

asked 2017-04-14 14:12:55 -0500

minimike gravatar image

hi there

I would like to switch about nova from vnc to spice protocol to get remote access for my tenant's. But I don't have success to do it.

[DEFAULT]
.......
web = /usr/share/spice-html5
vnc_enabled = False
novnc_enabled = False
.......
[spice]
agent_enabled = True
enabled = True
html5proxy_base_url = http://openstack.webterrorist.local:6082/spice_auto.html
html5proxy_host = 0.0.0.0
html5proxy_port = 6082
keymap = en-us
server_listen = 192.168.253.10
server_proxyclient_address = 192.168.253.10
.......
[vnc]
enabled = False
vncserver_listen = 0.0.0.0
agent_enabled = False
vncserver_proxyclient_address = 192.168.253.10
novncproxy_base_url = http://openstack.webterrorist.local:6080/vnc_auto.html
.......

But by testing it I get only these result

dhojnik@sackjeseech:~$ openstack console url show 580a7e3c-f207-4b55-93d6-a0087200a998 --spice
Unavailable console type spice. (HTTP 400) (Request-ID: req-ce378836-6c80-4fcb-8ede-67b9eb9f4f4b)

The current behavior is for new and also existing VM's. Nova-Services has been restarted at all on every node. I am using Ubuntu 16.04. OpenStack Ocata with XEN 4.6 on my compute nodes. Is there something else what I could do?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-14 16:00:55 -0500

luowei gravatar image

updated 2017-04-14 16:10:07 -0500

The following worked for me on Ocata (kvm). Note: existing VM's must be recreated to get the new console.

        On controller:

        apt-get install nova-spiceproxy spice-html5

        --- controller nova.conf ---
        [DEFAULT]
        vnc_enabled= False
        novnc_enabled= False
        web=/usr/share/spice-html5

        [vnc]
        #vncserver_listen = $my_ip
        #vncserver_proxyclient_address = $my_ip
        vnc_enabled= False
        novnc_enabled= False
        web=/usr/share/spice-html5

        [spice]
        enabled= True
        html5proxy_host = 0.0.0.0
        html5proxy_base_url=http://controller.junk.org:6082/spice_auto.html
        server_listen=192.168.2.82
        server_proxyclient_address=192.168.2.82
        keymap=en-us

        --------------------------
        On compute:
        apt-get install spice-vdagent

        --- compute nova.conf ---
        [DEFAULT]
        vnc_enabled = False
        novnc_enabled = False

        [vnc]
        #vnc_enabled = True
        #vncserver_listen = 0.0.0.0
        #vncserver_proxyclient_address = 192.168.2.84
        #novncproxy_base_url = http://controller.junk.org:6080/vnc_auto.html
        vnc_enabled = False
        novnc_enabled = False

        [spice]
        agent_enabled= True
        enabled= True
        html5proxy_base_url=http://controller.junk.org:6082/spice_auto.html
        keymap=en-us
        server_listen= 0.0.0.0
        server_proxyclient_address=192.168.2.84
    -----------------------------------------------------
    Restart nova services on controller and compute
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-04-14 14:12:55 -0500

Seen: 1,282 times

Last updated: Apr 14 '17