I would like to add a serial device (console) to a guest via the
virsh attach-device command.
I have a console.xml file containing:
<serial type="pty"> <target port="0"/> </serial>
And I run the following command:
sudo virsh attach-device VMNAME console.xml
But get the following error:
error: Failed to attach device from console.xml error: XML error: unknown device type
Here's my version information:
Compiled against library: libvir 0.9.8 Using library: libvir 0.9.8 Using API: QEMU 0.9.8 Running hypervisor: QEMU 1.0.0
What am I doing wrong? How can I add this from a script? Any help would be appreciated!!
Thanks in advance.