How to specify a serial/console pty in nova?

asked 2013-10-10 11:12:48 -0600

McDice gravatar image

updated 2013-10-11 17:33:14 -0600

smaffulli gravatar image


I have a user that would like to run a non-pv-enabled VM (VXWorks) in our openstack cluster.

This VM runs a serial console on on '/dev/pts/2'. So, I have a simple libvirt.xml file where I can boot the VM and access it's console, using this stanza:

<console type='pty' tty='/dev/pts/2'>
  <source path='/dev/pts/2'/>
  <target type='serial' port='0'/>
  <alias name='serial0'/>

I notice that when I import this qcow2 image into glance and boot it, openstack creates the following:

<serial type='pty'>
  <source path='/dev/pts/0'/>
  <target port='1'/>
  <alias name='serial1'/>

I wonder how I can specify a different source path/target when booting this instance using nova.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-13 21:58:58 -0600

fifieldt gravatar image

updated 2013-11-13 22:06:07 -0600

sgordon gravatar image


These are specified by OpenStack Compute's libvirt.xml.template file. In many deployments this can be found under /usr/share/pyshared/nova/virt/libvirt.xml.template - a quick hack would be to change this.

To provide a more robust solution changes are required to Nova to expose this functionality from Libvirt and other Hypervisor drivers that support it. This blueprint tracks this requirement:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-10-10 11:12:48 -0600

Seen: 3,843 times

Last updated: Nov 13 '13