Ask Your Question
0

Select VNC or SPICE console by default

asked 2014-04-15 07:47:01 -0500

Hi all,

I have configured VNC console and SPICE console in NOVA. Both of them are enabled on nova.conf file and if I create a new virtual machine /etc/libvirt/qemu/instance-whatever.xml file has 2 graphics-tag lines.

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

So far so good. Now, the new VM will use, by default, VNC console and not SPICE console... and I don't know why.

So, my question is: If I have enabled VNC and SPICE console on nova.conf file, Is there some configuration to achieve that you can choose the console you want for a new VM?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-16 03:22:43 -0500

After a lot of search, the answer is NO.

The virtual machines take their configuration from nova.conf and generate their XML configuration file in libvirt. Also, if you check this file https://github.com/openstack/horizon/... you can see that the selection of a console starts trying to get VNC console. If VNC console is not enabled or there is not config info on virtual machine XML file about VNC console, then the selection proccess try to get SPICE console.

edit flag offensive delete link more

Comments

As shown in that same link, on the Horizon side you can also set your preference manually in the settings if desired: https://github.com/openstack/horizon/... . This is only for Horizon though, not related to Nova as in the question.

jpichon gravatar imagejpichon ( 2014-04-16 05:45:31 -0500 )edit

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: 2014-04-15 07:47:01 -0500

Seen: 952 times

Last updated: Apr 16 '14