Ask Your Question
3

How to specify a serial/console pty in nova?

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

McDice gravatar image

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

smaffulli gravatar image

Hi,

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'/>
</console>

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'/>
</serial>

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

edit retag flag offensive close delete

1 answer

Sort by ยป oldest newest most voted
1

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

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

Hi,

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 publish link more

Your Answer

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

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

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

Seen: 448 times

Last updated: Nov 13 '13