Re: from command line to xml file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux