Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Specify a serial/console pty in nova

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.

Specify How to specify a serial/console pty in novanova?

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.