Jump to content

[SOLVED] Updates to domain's XML disappearing


fireplex

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...