0

Stupid question but this doesn't work, seems like it should. Is there a trick to access a booting Guest VM's bootmenu using KVM? I'm running the VM using virt-manager 0.8.7. KVM server is a CentOS 6.3 box running qemu-kvm-0.12.1.2-2.295.el6_3.8.x86_64. Guest is Windows 2008R2.

I added this to the Guest VM's XML:

% virsh edit DR-01
...
  <os>
    <type arch='x86_64' machine='rhel5.4.0'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>

Doesn't give me the ability to hit the F8 key. Any ideas how to accomplish this?

slm
  • 7,615
  • 16
  • 56
  • 76

2 Answers2

2

if you enable the boot menu in VM boot options, it will provide an extra delay, so you can refocus.

dyasny
  • 18,802
  • 6
  • 49
  • 64
1

The trick seems to be that you have to put the guest's virt-manager session in fullscreen mode. Here are the steps that I took to get this working:

1. Put guest in fullscreen mode

           Guest VM in fullscreen

2. Start the Guest VM

                                    start guest VM

3. Focus the VM immediately once it starts up by clicking inside its window w/ mouse

4. Start hitting the F8 key

5. Now you'll see the Guest VM's bootmenu

Guest VM's bootmenu

EDIT #1

If you're still having issue as I said in the question originally and as @dyasny mentioned in his answer, try giving yourself more time during boot up of the guest VM by adding the following to the guest's domain XML via the virsh command:

% virsh edit DR-01
...
<os>
  <type arch='x86_64' machine='rhel5.4.0'>hvm</type>
  <boot dev='hd'/>
  <bootmenu enable='yes'/>
</os>
slm
  • 7,615
  • 16
  • 56
  • 76
  • actually, the more complex virt management solutions (RHEV/oVirt) have an option to start a VM in paused mode. This way, you have the console open and ready for F8 (or whatever else) you hit play, and easily switch to the console without a hurry – dyasny Jan 06 '13 at 06:51