Simplify the serial config 33/64333/2
authorManuel Buil <mbuil@suse.com>
Wed, 31 Oct 2018 17:44:37 +0000 (18:44 +0100)
committerManuel Buil <mbuil@suse.com>
Fri, 2 Nov 2018 15:53:27 +0000 (16:53 +0100)
The current configuration only dumps the booting info into a file and
the pty does not work (i.e. virsh console opnfv returns a failure
because it cannot find a character device). After some investigations,
it is apparently impossible to have both active:

https://github.com/Mirantis/virtlet/issues/249

Therefore, we should remove the pty part of the xml. To connect to the
VM in case of network problems, we can always use vnc.

Apart from that, the console part is not necessary as libvirt will
create that one for us

Change-Id: I80a59163b4ba4e6bff34cb5378893201e93ddb87
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/playbooks/roles/create-nodes/templates/vm.xml.j2

index 6061fc5..9fad42b 100644 (file)
     </video>
     <serial type='file'>
       <source path='{{ vm_log_file }}'/>
-      <target port='0'/>
-      <alias name='serial0'/>
-    </serial>
-    <serial type='pty'>
-      <source path='/dev/pts/49'/>
       <target port='1'/>
       <alias name='serial1'/>
     </serial>
-    <console type='file'>
-      <source path='{{ vm_log_file }}'/>
-      <target type='serial' port='0'/>
-      <alias name='serial0'/>
-    </console>
     <memballoon model='virtio'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </memballoon>