Pages

Wednesday, July 15, 2009

Install Bochs on CentOS 5 from src

0. Install similar package as qemu, Download src from bochs.sourceforge.net
1. yum install gcc-c++ libXpm-devel
2. ./.conf.linux (./configure reports some error but .conf.linux works)
3. make
4. make install

Install QEMU on CentOS 5.3 from src

0. download qemu from qemu.org.
tar xzf qemu-0.10.5.tar.gz
1. Download zlib from http://www.zlib.net
tar xzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure
make
make install
2. Install SDL develop lib
yum install SDL-devel
3. cd qemu-0.10.5
./configure
make
make install

Friday, July 10, 2009

VM in VM: QEMU, Xen, VMware ESXi and HyperV

I am trying to test some virtualization technologies. I don't want to install them on the real hardware directly. It is hard to change and maintain. So I want to install a VM in another VM. Following is a short summary:

----------------------------------Xen------------ Hyper-V--------- VMware ESX i
Underlying virtualization:
QEMU 0.10.5 -----------------\/--------------- X-------------------------- X
Virtual Box 3 ------------------?-----------------X-------------------------- X
VMware WS 6.5 --------------\/----------------?---------------------------- \/

It means Xen can run in a QEMU VM, but hyper-v and ESXi cannot run on current QEMU.

Installing HyperV in QEMU VM.












fig 1


1. Use this cmd:


qemu-system-x86_64 -cdrom GRIC1HVxFRE1_DVD.iso -hda win2k8-2.img -m 2047 -boot d -no-kqemu -vga std

got BSOD in fig1. This happend when it lets the user choose the language.
Check the error code from here: http://msdn.microsoft.com/en-us/library/ms793648.aspx
It means: 1E is the error code of KeBugCheckEx(). The four parameters is defined in the above link. The exception code is 0xffffffffc0000005. It means access deny. The address of the exception occured is the second parameter: 0xFFFFF80010c1c3DE. The address that the driver attemps to access is the fourth parameter: 0xfffffffffffffff. It seems a serious problem.










2. Then I used this cmd:




qemu-system-x86_64 -cdrom GRIC1HVxFRE1_DVD.iso -hda win2k8-2.img -m 2047 -boot d -no-kqemu





Got BSOD in fig2. This happend when it lets the user choose the language.



Check the error code again.







Windows Driver Kit: Driver Development Tools
Bug Check 0xD1: DRIVER_IRQL_NOT_LESS_OR_EQUAL

The DRIVER_IRQL_NOT_LESS_OR_EQUAL bug check has a value of 0x000000D1. This indicates that a kernel-mode driver attempted to access pageable memory at a process IRQL that was too high.








3. Then I used this cmd:
qemu-system-x86_64 -cdrom GRIC1HVxFRE1_DVD.iso -hda win2k8-2.img -m 2047 -boot d -no-kqemu -vga vmware
Got BSOD in fig3. This happend when it lets the user choose the language.






4. On qemu 0.9.1 on Windows, cmd:



qemu-system-x86_64.exe -L . -hda win2k8.img -m 1024 -M pc -soundhw all -localtime -cdrom GRC1HVxFRE1_DVD.iso -boot d



Got BSOD in fig 4.




5. On qemu 0.10.5, CentOS 5.3 , cmd:

qemu-system-x86_64 -cdrom GRIC1HVxFRE1_DVD.iso -hda win2k8.img -m 2047 -boot d -no-kqemu

Got BSOD in fig 5.
Discussions about hyper-v:

Tuesday, July 7, 2009

qemu all the verisons for download

http://ftp.riken.go.jp/pub/FreeBSD/distfiles/qemu/

Monday, July 6, 2009

Using STREAM benchmark on CentOS 5

1. Download binary from here:
http://www.cs.virginia.edu/stream/ref.html#start
2. chomd +x stream_l
3. Download libstdc++-lib and install it:
http://rpm.pbone.net/index.php3/stat/4/idpl/8076489/com/compat-libstdc++-296-2.96-138.i386.rpm.html
4. Since stream_l is linked with a old version of the libstdc++-lib, we have to "fake" one:
ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.0-1.so.2
5. ./stream_l 2400 20