2020年12月5日星期六

compile QUME

$ apt-get install build-essential zlib1g-dev pkg-config libglib2.0-dev binutils-dev libboost-all-dev autoconf libtool libssl-dev libpixman-1-dev libpython-dev python-pip python-capstone virtualenv


qemu$ mkdir build

qemu$ cd build

out-of-tree build


u@kde:~/prjs/qemu/build$ ../configure --target-list=i386-softmmu --enable-tcg-interpreter --enable-debug-tcg --enable-debug-info

u@kde:~/prjs/qemu/build$ make

test run bios

u@kde:~/prjs/qemu/build$ ./qemu-system-i386



use vnc to see the screen

 u@kde:~/prjs/qemu/build$ sudo apt-get install xtightvncviewer



Always crash when install win7 x64 sp1, with 0xc000001e

I tried branch stable-5.0, and it seems to have a bug.

Also tried branch stable-4.2, cannot make it install win7


Currently I use the master branch, at

commit d73c46e4a84e47ffc61b8bf7c378b1383e7316b5 (HEAD -> master, tag: v5.2.0-rc4, origin/master, origin/HEAD, list)

Author: Peter Maydell <peter.maydell@linaro.org>

Date:   Tue Dec 1 16:21:01 2020 +0000


tried 

[uty@u build]$ ../configure --target-list=x86_64-softmmu --enable-system

This works, it can install win7 x64.


Don't use --enable-sdl, it make the GUI worse.


Later I will try 

[uty@u build]$ ../configure --target-list=x86_64-softmmu --enable-system --enable-tcg-interpreter --enable-debug-tcg --enable-debug-info


Two sprits that I use to install vm and start vm.

[uty@u win7_testqemu]$ cat installwin7.sh 

#!/bin/bash

~/prjs/qemu/build/qemu-img create -f qcow2 win7.hd 60G

#qemu-system-x86_64 -m 2048 -enable-kvm -cdrom ~/iso/rutgers_windows7_sp1_x64.iso -boot d  win7.hd


~/prjs/qemu/build/qemu-system-x86_64 -m 2048 \

-monitor stdio \

-vga cirrus \

-cdrom ~/iso/en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso \

-boot d \

win7.hd

~/prjs/qemu/build/qemu-img create -f qcow2 -b win7.hd snapshot.hd


[uty@u win7_testqemu]$ cat installwin7.sh 

#!/bin/bash

~/prjs/qemu/build/qemu-img create -f qcow2 win7.hd 60G

#qemu-system-x86_64 -m 2048 -enable-kvm -cdrom ~/iso/rutgers_windows7_sp1_x64.iso -boot d  win7.hd


~/prjs/qemu/build/qemu-system-x86_64 -m 2048 \

-monitor stdio \

-vga cirrus \

-cdrom ~/iso/en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso \

-boot d \

win7.hd

~/prjs/qemu/build/qemu-img create -f qcow2 -b win7.hd snapshot.hd



Notice, qemu-img and qemu-system-x86_64 should use the ones with the same version