Jean-Pierre Ribeauville
2015-Jul-09 12:27 UTC
[libvirt-users] adding devices and chardev in .xml configuration file ...
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 yes , any doc describing the syntax ? Thx. Regards, J.P. Ribeauville P: +33.(0).1.47.17.27.78 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.
Martin Kletzander
2015-Jul-09 12:43 UTC
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
Jean-Pierre Ribeauville
2015-Jul-09 12:45 UTC
Re: [libvirt-users] adding devices and chardev in .xml configuration file ...
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@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