Qemu

组合键

图形模拟

  • Ctrl-Alt-f : 全屏
  • Ctrl-Alt-n : 切换虚拟终端'n'.标准的终端映射如下:
    1. 目标系统显示
    2. 临视器
    3. 串口
  • Ctrl-Alt : 抓取鼠标和键盘
  • 在虚拟控制台中, Ctrl-Up, Ctrl-Down, Ctrl-PageUp 和 Ctrl-PageDown在屏幕中进行移动.

‘-nographic’选项,命令行模拟

  • Ctrl-a h : 打印帮助信息
  • Ctrl-a x : 退出模拟
  • Ctrl-a s : 将磁盘信息保存入文件(如果为-snapshot)
  • Ctrl-a b : 发出中断
  • Ctrl-a c : 在控制台与监视器进行切换
  • Ctrl-a Ctrl-a : 发送Ctrl-a

usage

  • dd of=winxp.img seek=2000000 count=0
  • qemu-img create -f raw gentoo.img 2G
  • qemu-img create -f qcow xp.cow 1300M -m 384 -localtime
  • qemu -hda gentoo.img -cdrom gentoo.iso -boot d
  • qemu -hda gentoo.img -cdrom /dev/cdrom -boot d -m 512 -kernel-kqemu
  • qemu -redir tcp:2222::22 olpc-redhat-stream-development-devel_ext3.img (将QEMU运行的虚拟机的 Port 22 和本机的 Port 2222 绑定)
  • ssh -X -o NoHostAuthenticationForLocalhost=yes -p 2222 root@localhost
  • scp -o NoHostAuthenticationForLocalhost=yes -P 2222 ./helloworld.py \ root@localhost:/home/olpc/hello_world.py
page_revision: 2, last_edited: 1205292842|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License