| kvm |
|
|
|
| Written by Wink Saville | |
| Thursday, 10 May 2007 | |
|
Getting KVM working on my linux box.
=) KVM: http://kvm.qumranet.com =) KVM How-to: http://kvm.qumranet.com/kvmwiki/HOWTO 1) goto http://kvm.qumranet.com/kvmwiki/Code and use git to get the kernel and userspace code. 2) download the alsa library from http://www.alsa-project.org 3) Installed libuuid using synaptic 4) Installed libsdl1.2-dev using synaptic 5) Configure and compile the kernel *) enable Sound/Sound card support *) enable Sound/Advanced Linux Sound Architecture *) enable Sound/Advanced Linux Sound Architecture/RTC Timer support *) enable Sound/Advanced Linux Sound Architecture/Dynamic device file minor numbers *) enable Sound/Advanced Linux Sound Architecture/Support old ALSA API *) enable Sound/Advanced Linux Sound Architecture/Verbose procfs contents *) enable Device Drivers/Virtualization/Kernel-based Virtual Machine (KVM) support *) enable Device Drivers/Virtualization/KVM for Intel processors support (or AMD) *) enable Device Drivers/Network device support/Universal TUN/TAP device driver support *) enable Networking/Networking options/802.1d Ethernet Birding 6) for the userspace *) .configure --prefix=/usr --with-patched-kernel --kerneldir=/home/wink/linux/kvm-l *) make *) sudo make install 7) To install qemu documentation *) Install texi2html (via synaptic) *) Added BUILD_DOCS='YES' to qemu/Makefile *) make *) make install-doc 8) I'm using bridging to support networking for guests *) http://kidsquid.com/cgi-bin/moin.cgi/bridge -) Create /etc/qemu-ifup #!/bin/sh sudo /sbin/ifconfig $1 0.0.0.0 promisc up sudo /usr/sbin/brctl addif br0 $1 -) Create the bridge: brctl addbr br0 /etc/qemu-ifup eth0 chmod 666 /dev/net/tun -) Give the bridge an address dhclient3 br0 8) Create a disk image: *) qemu-img create -f qcow vdisk.img 10G 9) Download a ISO image, such as gentoo (http://torrents.gentoo.org/) 10) Start kvm booding from "d" the cdrom creating a nic if desired. *) qemu-system-x86_64 . -hda vdisk.img \ -cdrom gentoo-x86-minimal-2007.0-r1.iso \ -boot d -m 384 \ -net nic,vlan=0 -net tap,vlan=0 |
|
| Last Updated ( Sunday, 28 October 2007 ) |
| < Prev | Next > |
|---|


