fireplex Posted May 11, 2015 Share Posted May 11, 2015 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? Link to comment
jonp Posted May 12, 2015 Share Posted May 12, 2015 Any one? Not sure. We haven't experimented with that yet. Link to comment
fireplex Posted May 12, 2015 Author Share Posted May 12, 2015 OK, I will just try editing the xml directly under /etc/libvirt/qemu then to see if the changes stick. Link to comment
fireplex Posted May 12, 2015 Author Share Posted May 12, 2015 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? Link to comment
fireplex Posted May 12, 2015 Author Share Posted May 12, 2015 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. Link to comment
jonp Posted May 12, 2015 Share Posted May 12, 2015 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. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.