[libvirt-users] from command line to xml file
Daniel P. Berrange
berrange at redhat.com
Tue Aug 25 13:32:57 UTC 2015
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 :|
More information about the libvirt-users
mailing list