[libvirt-users] adding devices and chardev in .xml configuration file ...
Jean-Pierre Ribeauville
jpribeauville at axway.com
Thu Jul 9 12:45:15 UTC 2015
Thx a lot.
J.P.
-----Message d'origine-----
De : Martin Kletzander [mailto:mkletzan at redhat.com]
Envoyé : jeudi 9 juillet 2015 14:43
À : Jean-Pierre Ribeauville
Cc : libvirt-users at redhat.com
Objet : Re: [libvirt-users] adding devices and chardev in .xml configuration file ...
On Thu, Jul 09, 2015 at 12:27:20PM +0000, Jean-Pierre Ribeauville wrote:
>Hi,
>
>As I want to start qemu by adding following parameters :
>
>
>-device virtio-serial
>-chardev socket,path=/tmp/foo,server,nowait,id=test
>-device virtserialport,chardev=test,name=port.0
>
>Is it possible to add them in the .xml configuration file of the guest , so they will be automatically added when the guest is started ?
>
If you don't actually care that much about the id and name, then yes:
<channel type='unix'>
<source type='bind' path='/tmp/foo'/>
<target type='virtio' port='0'/>
</channel>
If you do, then it's possible too, but unsupported.
>If yes , any doc describing the syntax ?
>
https://libvirt.org/formatdomain.html#elementsConsole
Martin
More information about the libvirt-users
mailing list