Jean-Pierre Ribeauville
2015-Aug-25 13:20 UTC
[libvirt-users] from command line to xml file
Hi, In order to use a virtio-serial to exchange data between host and its guests, I'd like to modify the .xml Guest conf file by adding these parameters ( as found in the command line) : -device virtio-serial \ -chardev socket,path=/tmp/foo,server,nowait,id=foo \ -device virtserialport,chardev=foo,name=org.fedoraproject.port.0 How should I build the XML tags ? Thx for help. J.P. Ribeauville P: +33.(0).1.47.17.27.87 Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez à l'environnement avant d'imprimer.
Daniel P. Berrange
2015-Aug-25 13:32 UTC
Re: [libvirt-users] from command line to xml file
On Tue, Aug 25, 2015 at 01:20:41PM +0000, Jean-Pierre Ribeauville wrote:> Hi, > > In order to use a virtio-serial to exchange data between host and its guests, I'd like to modify the .xml Guest conf file by adding these parameters ( as found in the command line) : > > -device virtio-serial \ > -chardev socket,path=/tmp/foo,server,nowait,id=foo \ > -device virtserialport,chardev=foo,name=org.fedoraproject.port.0 > > How should I build the XML tags ?Take a read of this: http://libvirt.org/formatdomain.html#elementsConsole It should be approx <channel type="unix"> <source mode='bind' path='/tmp/foo'/> <target type='virtio' name='com.fedoraproject.port.0'/> </channel> Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Seemingly Similar Threads
- adding devices and chardev in .xml configuration file ...
- Re: operation forbidden Read Only Access
- failure when trying to add a channel device via virsh attach-device
- On which /dev/pts/x is channel source mapped ?
- When adding a channel device, we need a shutdown