autotest/autotest — pull request #169 by LaneWolf (2012-02-08 07:02:50+00:00)
Title: virt/libvirt_vm: Use virsh console for serial port handling

Patch b76ff50 changed notification of installation end from network
to serial port. To read serial port tail utility is used as we try
to specify serial port file. However, this is not working with older
virt-install version that does not support parameter for serial console.

Libvirt support acces to serial console via virsh console command. So we
use this access in case we can't specify serial port configuration with
virt-install.

However, there's another issue with xen hypervisor. For PV guests, serial
console is installed as hvc device instead of ttyS. So we add writing
notification message to this device too to ensure it's delivered to autotest
host script.

Signed-off-by: Miroslav Rezanina