Two or three things about QEMU (1) monitor for special parameters of ———— Qemu

Source: Internet
Author: User


QEMU, as a very important virtualization tool, provides a wealth of features/parameters to support the various operations of virtualization.

The following is a brief introduction to the monitor parameter, or function, to combine your own actual experience.


How to enter the console of the QEMU monitor mode. Two paths:

1, ctrl+alt+1 or ctrl+alt+2 to enter and switch, but I don't seem to have succeeded .... I use the following second method:

2, directly when the QEMU started with-monitor parameters, generally to a-monitor stdio is very convenient, so you can have a very convenient shell script to operate the QEMU virtual machine in monitor state.


So what are the more useful features of QEMU monitor? Or what useful parameters it provides or supports.

Broadly divided into the following four categories:

1,help and Info

Help, this is basically the usage of each command-line-enabled program will provide a help parameter to show the parameter usage

Info, display some such as CPU, block, VNC and so on information and status, specifically support which parameters, in the QEMU Monitor console inside input help info look at it, quite a lot, not listed.

2,device related Operations

Change,the change command allows removable media (like CD-ROMs), change the display options for a VNC, and C hange The password used on a VNC.

Eject, release the device or file connected to the removable media device specified

Usb_add, add a host file as USB Flash device (you need to create in advance the host File:dd If=/dev/zero Of=/tmp/disk. USB bs=1024k count=32)

Usb_del, use info USB to get the USB device list and then delete it

Mouse_move, move the mouse cursor to the specified coordinates, for example Mouse_move 500 500

Mouse_button, left and right mouse button, 1=l, 2=m, 4=r

Mouse_set index, first use info mice to view and then operate

Sendkey keys, input keys on the keyboard, such as: Sendkey a sendkey shift-a sendkey ctrl-u sendkey ctrl-alt-f1 I've tried using Sendkey to log in Gu EST, you find that you must enter a short enough time or the login will fail.

It basically supports most keys on the keyboard, but some special keys are escaped:

Shift Shift_r Alt Alt_r AltGr Altgr_r
Ctrl Ctrl_r Menu Esc 1 2
3 4 5 6 7 8
9 0 Minus Equal Backspace tab
Q W E R T Y
U I O P Ret A
S D F G H J
K L Z X C V
B N M Comma Dot Slash
Asterisk Spc Caps_lock F1 F2 F3
F4 F5 F6 F7 F8 F9
F10 Num_lock Scroll_lock Kp_divide Kp_multiply Kp_subtract
Kp_add Kp_enter Kp_decimal SysRq Kp_0 Kp_1
Kp_2 Kp_3 Kp_4 Kp_5 Kp_6 Kp_7
Kp_8 Kp_9 < F11 F12 Print
Home PgUp PgDn End Left Up
Down Right Insert Delete

3, screen and audio capture:

Screendump

Wavcapture

Stopcapture

4, some operations on virtual machines:

Commit, as the name implies, is actually to write the operation and modification to the mirror, as to where to write to see if you use the snapshot, this remains to be tested.

Quit, quit Qemu, and this time the virtual machine is finished Duzi.

SAVEVM, save the virtual machine snapshot.

LOADVM, load a virtual machine snapshot, or restore to a virtual machine at some point in time.

DELVM, delete.

Stop, which is suspend, hangs.

Cont, i.e. resume, resume.

System_reset, like reset on a physical machine, is forced to restart.

System_powerdown, turn off the machine.

Log

LogFile, specifying the logfile path

Gdbserver, open port to facilitate the host side with GDB for debugging, this has not played, have the opportunity to try.

X, which is said to be similar to the X in GDB.

XP is said to be similar to the XP inside GDB.

Print, ibid.

Sum, it is said to calculate the checksum, did not play, have the opportunity to try.

Memsave, as the name implies, preserves the contents of memory.


Above, is the main function of the monitor parameter of QEMU, in my own experience, just used the part of the function,

For example, the frequently used help and Info,mouse commands, Sendkey and other commands, are not all used for all parameters.

has yet to be learned.


QUOTE:

1,wiki:qemu/monitor

2, monitor QEMU running status using Monitor command



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.