how to set password when use the SPICE client to connect to a instance

asked 2017-08-04 04:16:12 -0600

chasingw gravatar image

updated 2017-08-06 20:11:18 -0600

Hi, I have installed openstack ocata on three nodes (Controller,Compute and Storage) on Ubuntu 16.04, and I can use spice client (like virt-viewer) to connect the instance.

The problem is there is no authentication. and I found I can set password by change the instance libvirt xml use virsh edit [instance-name], and change the following

<graphics type='spice' autoport='yes' listen='' keymap='en-us'>
      <listen type='address' address=''/>


<graphics type='spice' port='5910' autoport='no' listen='' passwd='somepassword' keymap='en-us'>
      <listen type='address' address=''/>

but it works only when I start instance by virsh start [instance-name] in the compute node.

if I start the instance by horizon panel, The config I add by virsh edit xxx doesn't work.

So how can I add authentication when I use spice client to connect to the instance? Thanks in advance!

edit retag flag offensive close merge delete