On 07/18/2012 04:22 PM, "Ján ONDREJ (SAL)" wrote:
On Tue, Jul 17, 2012 at 04:44:18PM -0400, Cole Robinson wrote:
On 07/17/2012 01:43 PM, Ján ONDREJ (SAL) wrote:
On Tue, Jul 17, 2012 at 04:49:21PM +0100, Frank Murphy wrote:
On 15/06/12 01:39, Cole Robinson wrote:
On 06/13/2012 04:56 AM, Frank Murphy wrote:
Q1: virsh start --console "some-guest" How can a different kernel be booted from? If kernel=0 won't complete boot.
Maybe try sgabios? Add this to your guest's <os> block:
<bios useserial='yes'/>
That was it
Can I add this using virt-isntall? Can virt-install configure sgabios with an option?
Is there any command line tool, which can add/remove/update XML parameters? Example:
tool --add domain.os.bios useserial=yes
SALThere's /usr/bin/xpath but that's for querying only it seems. Would be pretty straightforward to make one for setting arbitrary data.
OK, I wrote one. Please look at this:
http://www.salstar.sk/pub/salpack/usr/sbin/virsh-pyquery
This script uses pyquery, jquery based selector syntax. If you like jquery selectors, then you will like it. It can add/delete/remove/update entities or attributes.
Very cool! Something like that should be implemented as a virsh subcommand (but it would likely use xpath syntax since that's what libvirt uses internally).
Though in this case I think finishing off virt-xml is the best way to go, I've just never managed to give it the final push:
http://www.redhat.com/archives/virt-tools-list/2011-April/msg00159.html
Nice too, but limited to only supported options. :(
True, but support also comes with docs, --help discoverability, no need to know the XML syntax, and future proofing against XML changes. That said there is definitely a need for both tools.
Thanks, Cole