From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alon Levy Subject: Re: [ANNOUNCE] Native Linux KVM tool Date: Sun, 3 Apr 2011 12:01:50 +0300 Message-ID: <20110403090149.GI4047@playa.redhat.com> References: <1301592656.586.15.camel@jaguar> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org To: Pekka Enberg Return-path: Content-Disposition: inline In-Reply-To: <1301592656.586.15.camel@jaguar> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Mar 31, 2011 at 08:30:56PM +0300, Pekka Enberg wrote: > Hi all, >=20 > We=E2=80=99re proud to announce the native Linux KVM tool! >=20 > The goal of this tool is to provide a clean, from-scratch, lightweigh= t > KVM host tool implementation that can boot Linux guest images (just a > hobby, won't be big and professional like QEMU) with no BIOS > dependencies and with only the minimal amount of legacy device > emulation. >=20 > Note that this is a development prototype for the time being: there's= no > networking support and no graphics support, amongst other missing > essentials. I've looked at how to add spice to this, the qxl device should be relat= ively easy to add as it's just another pci device and you already support the= virtio block pci device. But to add the spice server library there needs to be= some simple fd and timer (i.e. select/epoll) event loop, which I see is miss= ing. Are you planning on adding something like that? >=20 > It's great as a learning tool if you want to get your feet wet in > virtualization land: it's only 5 KLOC of clean C code that can alread= y > boot a guest Linux image. >=20 > Right now it can boot a Linux image and provide you output via a seri= al > console, over the host terminal, i.e. you can use it to boot a guest > Linux image in a terminal or over ssh and log into the guest without > much guest or host side setup work needed. >=20 > 1. To try out the tool, clone the git repository: >=20 > git clone git://github.com/penberg/linux-kvm.git >=20 > or alternatively, if you already have a kernel source tree: >=20 > git checkout -b kvm/tool > git pull git://github.com/penberg/linux-kvm.git >=20 > 2. Compile the tool: >=20 > cd tools/kvm && make >=20 > 3. Download a raw userspace image: >=20 > wget http://wiki.qemu.org/download/linux-0.2.img.bz2 && bunzip2 > linux-0.2.img.bz2 >=20 > 4. Build a kernel with CONFIG_VIRTIO_BLK=3Dy and > CONFIG_SERIAL_8250_CONSOLE=3Dy configuration options. Note: also make= sure > you have CONFIG_EXT2_FS or CONFIG_EXT4_FS if you use the above image. >=20 > 5. And finally, launch the hypervisor: >=20 > ./kvm --image=3Dlinux-0.2.img --kernel=3D../../arch/x86/boot/bzImag= e >=20 > The tool has been written by Pekka Enberg, Cyrill Gorcunov, and Asias > He. Special thanks to Avi Kivity for his help on KVM internals and In= go > Molnar for all-around support and encouragement! >=20 > See the following thread for original discussion for motivation of th= is > project: >=20 > http://thread.gmane.org/gmane.linux.kernel/962051/focus=3D962620 >=20 > Pekka >=20 > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html