Install kvm firstly
http://www.howtogeek.com/117635/how-to-install-kvm-and-create-virtual-machines-on-ubuntu/
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
sudo apt-get install uml-utilities
sudo adduser name libvirtd
virsh -c qemu:///system list
Install libsdl1.2-dev
so that virtual machine can show in graphic display
http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg01573.html
http://blog.sina.com.cn/s/blog_8588208901017nkm.html
sudo apt-get install libsdl1.2-dev
Modified qemu for Nahanni
Downlaod qemu-1.5.1.tar.bz2 from http://wiki.qemu.org/Download
tar -xvzf qemu-1.5.1.tar.bz2
cd qemu-1.5.1/hw/misc
vim ivshmem.c
Delete function qemu_chr_fe_claim_no_fail(chr) in line 297
Start debug mode #define DEBUG_IVSHMEM in line 43
Install depended package
Install zlib
1. Download the installation package
wget http://www.zlib.net/zlib-1.2.8.tar.gz
2. After downloading the package, extract it like that :
tar -xvzf zlib-1.2.8.tar.gz
3. Change to the directory we just created :
cd zlib-1.2.8
4. Configure the zlib library :
./configure --prefix=/usr/local/zlib
5. Compile it :
make
6. Install it :
sudo make install
That’s it, zlib should be installed properly
Install gettext
1. Download from http://www.gnu.org/software/gettext/
2. ./configure
3. make
4. sudo make install
Install glib
1. Download from http://www.linuxfromscratch.org/blfs/view/6.3/general/glib2.html
2. ./configure
3. make
4. sudo make install
Install pixman
1. Download from http://www.linuxfromscratch.org/blfs/view/svn/general/pixman.html
2. ./configure
3. make
4. sudo make install
Install qemu
cd qemu-1.5.1
./configure --prefix=/usr/local/qemu_four
sudo make
sudo make install