Emma Anderson
2015-May-18 17:35 UTC
[libvirt-users] xl extra parameters equivalent for libvirt
hi, I use xl toolstack to manage vms on a Xen machine, and also pass some custom parameters when creating a vm, for example: xl create vm.cfg ' param="xyz" ' I am moving to libvirt for vm management. How I can pass those extra parameters using libvirt? Thanks.
Jim Fehlig
2015-May-18 19:02 UTC
Re: [libvirt-users] xl extra parameters equivalent for libvirt
On 05/18/2015 11:35 AM, Emma Anderson wrote:> hi, > > I use xl toolstack to manage vms on a Xen machine, and also pass some custom > parameters when creating a vm, for example: > > xl create vm.cfg ' param="xyz" 'Documentation on create subcommand in the xl man page describes the 'key=value' options as key=value It is possible to pass key=value pairs on the command line to provide options as if they were written in the configuration file; these override whatever is in the configfile.> > I am moving to libvirt for vm management. How I can pass those extra > parameters using libvirt?I'm not aware of similar functionality in libvirt. You would need to customize the domXML before feeding it to 'virsh create'. Regards, Jim
Eric Blake
2015-May-18 19:28 UTC
Re: [libvirt-users] xl extra parameters equivalent for libvirt
On 05/18/2015 01:02 PM, Jim Fehlig wrote:> On 05/18/2015 11:35 AM, Emma Anderson wrote: >> hi, >> >> I use xl toolstack to manage vms on a Xen machine, and also pass some >> custom parameters when creating a vm, for example: >> >> xl create vm.cfg ' param="xyz" ' > > Documentation on create subcommand in the xl man page describes the > 'key=value' options as > > key=value > It is possible to pass key=value pairs on the command line to provide > options as if > they were written in the configuration file; these override whatever is > in the > configfile. > >> >> I am moving to libvirt for vm management. How I can pass those extra >> parameters using libvirt? > > I'm not aware of similar functionality in libvirt. You would need to > customize the domXML before feeding it to 'virsh create'.Qemu domains have that ability, via an XML namespace that adds <qemu:commandline>: http://libvirt.org/drvqemu.html#qemucommand but no one has yet implemented that for Xen domains. If you want to add it, the src/qemu code would be the obvious starting point to copy from. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Apparently Analagous Threads
- Re: xl extra parameters equivalent for libvirt
- Re: xl extra parameters equivalent for libvirt
- Passing non-standard Options through Libvirt to QEMU
- Reg: Adding "edu" device using XML file
- [PATCH] qemu: Introduce VIRTIO_NET_F_STANDBY feature bit to virtio_net