Q1: virsh start --console "some-guest" How can a different kernel be booted from? If kernel=0 won't complete boot.
Q2: On one Guest, cannot enter luks pw. It shows where to enter it, just no asterisks. even though all console=tty* is in last position on grub2 cmd line.
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'/>
Make sure sgabios is installed. You'll probably need to create a manual symlink until this bug is fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=791344
Q2: On one Guest, cannot enter luks pw. It shows where to enter it, just no asterisks. even though all console=tty* is in last position on grub2 cmd line.
Not sure about that one.
- Cole
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
Make sure sgabios is installed. You'll probably need to create a manual symlink until this bug is fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=791344
Q2: On one Guest, cannot enter luks pw. It shows where to enter it, just no asterisks. even though all console=tty* is in last position on grub2 cmd line.
Not sure about that one.
- Cole
Needed rd_NO_PLYMOUTH on the kernel line.
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
SAL
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
SAL
There's /usr/bin/xpath but that's for querying only it seems. Would be pretty straightforward to make one for setting arbitrary data.
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
- Cole
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
SAL
There'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.
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. :(
SAL
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
SAL
There'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
There'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).
OK, try to look at xpath version with some enhancements:
http://www.salstar.sk/pub/salpack/usr/sbin/virsh-xpath
It's still beta quality, but functional.
Example options: # Query boot options: --guest NAME --query //os/boot # Add an element with attributes: --guest NAME //os --add bios --attr useserial=yes # Update attribute of an element: --guest NAME //devices/disk/driver --update --attr cache=none # Remove attributes: --guest NAME //disk/driver --remove cache --remove type # Delete element: --guest NAME '//os/boot[@dev="hd"]' --delete
SAL