May 11, 201511 yr I'm trying to pass through my hosts's serial port to a Win7 domain. Using this as a guide https://libvirt.org/formatdomain.html#elementCharSerial I use the GUI to edit the xml, and change the serial section as follows: <serial type='pty'> <source path='/dev/ttyS0'/> <target port='0'/> </serial> but after I click update, if I go back in the <source... line has been removed. The timestamp on the file is updated: root@Tower:/etc/libvirt/qemu# ls -l total 8 -rw------- 1 root root 2878 May 11 10:00 DLNA.xml Any ideas?
May 12, 201511 yr Author OK, I will just try editing the xml directly under /etc/libvirt/qemu then to see if the changes stick.
May 12, 201511 yr Author OK, editing that doesn't help, seems it's a temporary output file. So I tried virsh edit DLNA, put in the changes, but they are still lost. Don't understand, guess some validation is going on and it fails?
May 12, 201511 yr Author OK, got it working Did a virsh edit and put: <serial type='dev'> <source path='/dev/ttyS0'/> <target port='0'/> </serial> not the type is 'dev' and not 'pty' Can now see my serial device in windows.
May 12, 201511 yr OK, got it working Did a virsh edit and put: <serial type='dev'> <source path='/dev/ttyS0'/> <target port='0'/> </serial> not the type is 'dev' and not 'pty' Can now see my serial device in windows. No virsh edit should be required then. You should be able to put this in the XML using the webgui based editor.
Archived
This topic is now archived and is closed to further replies.