kmdb in a Solaris VirtualBox Guest

When running Solaris as a guest under VirtualBox it can be difficult to use the "F1-A" trick to drop into the live kernel debugger in that guest. For example, your host window manager probably won't pass that key combination through to VirtualBox or you might be running on a Solaris host with kmdb and don't want to cause the host to drop into kmdb.

So to inject an "F1-A" keypress combination into the guest, use the following command:

VBoxManage controlvm solarisVMname keyboardputscancode 3b 1e 9e bb

where solarisVMname is replaced by the VirtualBox name of your Solaris virtual machine. The hex keyboard scan codes mean:

  • 3b press F1
  • 1e press A
  • 9e release A
  • bb release F1

Of course, don't do this while your guest is running X, as kmdb interacts with the plain text console.

Comments:

Post a Comment:
Comments are closed for this entry.
About

JoeBonasera

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News

No bookmarks in folder

Blogroll

No bookmarks in folder