Thx a lot.
J.P.
-----Message d'origine-----
De : Martin Kletzander [mailto:mkletzan@redhat.com]
Envoyé : jeudi 9 juillet 2015 14:43
À : Jean-Pierre Ribeauville
Cc : libvirt-users(a)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