Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i have managed to cobble something that works using edits to the XML on the libvirt level. I edit the XML of two windows instances on the same hypervisor to get the serial ports to communication via broadcast to a tcp port. of course this unknown to openstack so you have to trick reboot the instance so openstack doesn't rewrite the XML

one instance
<serial type='tcp'>
<source mode='connect' host='0.0.0.0' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

second instance
<serial type='tcp'>
<source mode='bind' host='127.0.0.1' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

then,this is how I got these settings applied to the instance without openstack overwriting the settings. while the instance is running do this from the hypervisor's command line

virsh edit instance-00003a37 <-- add the serial-tcp changes mentioned above
cd /etc/libvirt/qemu
virsh destroy instance-00003a37; virsh define instance-00003a37.xml; virsh start instance-00003a37

i have managed to cobble something that works using edits to the XML on the libvirt level. I edit the XML of two windows instances on the same hypervisor to get the serial ports to communication via broadcast to a tcp port. of course this unknown to openstack so you have to trick reboot the instance so openstack doesn't rewrite the XML

one instance
<serial type='tcp'>
<source mode='connect' host='0.0.0.0' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

second instance
<serial type='tcp'>
<source mode='bind' host='127.0.0.1' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

then,this is how I got these settings applied to the instance without openstack overwriting the settings. while the instance is running do this from the hypervisor's command line

virsh edit instance-00003a37 <-- add (add the serial-tcp changes mentioned above
above bu changing the existing port not adding a new port)
cd /etc/libvirt/qemu
virsh destroy instance-00003a37; virsh define instance-00003a37.xml; virsh start instance-00003a37

i have managed to cobble something that works using edits to the XML on the libvirt level. I edit the XML of two windows instances on the same hypervisor to get the serial ports to communication via broadcast to a tcp port. of course this unknown to openstack so you have to trick reboot the instance so openstack doesn't rewrite the XML

one instance
<serial type='tcp'>
<source mode='connect' host='0.0.0.0' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

second instance
<serial type='tcp'>
<source mode='bind' host='127.0.0.1' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

then,this is how I got these settings applied to the instance without openstack overwriting the settings. while the instance is running do this from the hypervisor's command line

virsh edit instance-00003a37 (add the serial-tcp changes mentioned above bu buy changing the existing port not adding a new port)
cd /etc/libvirt/qemu
virsh destroy instance-00003a37; virsh define instance-00003a37.xml; virsh start instance-00003a37

i have managed to cobble something that works using edits to the XML on the libvirt level. I edit the XML of two windows instances on the same hypervisor to get the serial ports to communication via broadcast to a tcp port. of course this unknown to openstack so you have to trick reboot the instance so openstack doesn't rewrite the XML

one instance
<serial type='tcp'>
<source mode='connect' host='0.0.0.0' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

second instance
<serial type='tcp'>
<source mode='bind' host='127.0.0.1' service='2445'/>
<protocol type='raw'/>
<target port='1'/>

then,this is how I got these settings applied to the instance without openstack overwriting the settings. while the instance is running do this from the hypervisor's command line

virsh edit instance-00003a37 (add the serial-tcp changes mentioned above buy changing the existing port not adding a new port)
cd /etc/libvirt/qemu
virsh destroy instance-00003a37; virsh define instance-00003a37.xml; virsh start instance-00003a37
(in some cases you may need to go a step further and virsh define instance-00003a37.xml after you destroy and before you start)