From patchwork Tue Jul 12 14:34:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 968462 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6CEYpXI026421 for ; Tue, 12 Jul 2011 14:34:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752876Ab1GLOet (ORCPT ); Tue, 12 Jul 2011 10:34:49 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:62298 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009Ab1GLOes (ORCPT ); Tue, 12 Jul 2011 10:34:48 -0400 Received: by wwe5 with SMTP id 5so5007654wwe.1 for ; Tue, 12 Jul 2011 07:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=ApZ5MjTY20SAEFzCyAH7+kPAHHgn2FGM2wzEU3Xn6tY=; b=dXDGi5kRIKiOXNfEjQ2D9UqrpWSdRlzPQehatao5zN3BuXzJWfMIV6VwSb4quBZ6r8 d5PSPY9wlP+GCARtSjW6eSnWEUxWirnD0f+tgV57ma78NRQ7z7UtON/WtcZkjAInViAl 7HfBHcMYTzE9kp7vPCMEAQXjYM0t9ZD4TDrY4= Received: by 10.216.160.19 with SMTP id t19mr5670wek.52.1310481287056; Tue, 12 Jul 2011 07:34:47 -0700 (PDT) Received: from localhost.localdomain ([31.210.184.36]) by mx.google.com with ESMTPS id m35sm3495938weq.36.2011.07.12.07.34.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jul 2011 07:34:46 -0700 (PDT) From: Sasha Levin To: penberg@kernel.org Cc: mingo@elte.hu, asias.hejun@gmail.com, prasadjoshi124@gmail.com, gorcunov@gmail.com, kvm@vger.kernel.org, Sasha Levin Subject: [PATCH] kvm tools: Update README Date: Tue, 12 Jul 2011 17:34:33 +0300 Message-Id: <1310481273-1208-1-git-send-email-levinsasha928@gmail.com> X-Mailer: git-send-email 1.7.6 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 12 Jul 2011 14:35:10 +0000 (UTC) Update required kernel config options and git info. Signed-off-by: Sasha Levin --- tools/kvm/README | 48 +++++++++++++++++++++++++++++++++++++----------- 1 files changed, 37 insertions(+), 11 deletions(-) diff --git a/tools/kvm/README b/tools/kvm/README index 3365659..7cb3ff0 100644 --- a/tools/kvm/README +++ b/tools/kvm/README @@ -21,8 +21,9 @@ much guest or host side setup work needed. or alternatively, if you already have a kernel source tree: - git checkout -b kvm/tool - git pull git://github.com/penberg/linux-kvm.git + git remote add kvm-tool git://github.com/penberg/linux-kvm.git + git remote update + git checkout -b kvm-tool/master kvm-tool 2. Compile the tool: @@ -33,17 +34,42 @@ or alternatively, if you already have a kernel source tree: wget http://wiki.qemu.org/download/linux-0.2.img.bz2 && bunzip2 linux-0.2.img.bz2 -4. Build a kernel with +4. The guest kernel has to be built with the following configuration: - CONFIG_VIRTIO_BLK=y - CONFIG_VIRTIO_NET=y - CONFIG_VIRTIO_CONSOLE=y - CONFIG_SERIAL_8250_CONSOLE=y - CONFIG_HW_RANDOM_VIRTIO=y + - For the default console output: + CONFIG_SERIAL_8250=y + CONFIG_SERIAL_8250_CONSOLE=y + + - For running 32bit images on 64bit hosts: + CONFIG_IA32_EMULATION=y + + - Proper FS options according to image FS (e.g. CONFIG_EXT2_FS, CONFIG_EXT4_FS). + + - For all virtio devices listed below: + CONFIG_VIRTIO=y + CONFIG_VIRTIO_RING=y + CONFIG_VIRTIO_PCI=y + + - For virtio-blk devices (--disk, -d): + CONFIG_VIRTIO_BLK=y + + - For virtio-net devices ([--network, -n] virtio): + CONFIG_VIRTIO_NET=y + + - For virtio-9p devices (--virtio-9p): + CONFIG_NET_9P=y + CONFIG_NET_9P_VIRTIO=y + CONFIG_9P_FS=y + + - For virtio-balloon device (--balloon): + CONFIG_VIRTIO_BALLOON=y + + - For virtio-console device (--console virtio): + CONFIG_VIRTIO_CONSOLE=y + + - For virtio-rng device (--rng): + CONFIG_HW_RANDOM_VIRTIO=y -configuration options. -Note: also make sure you have CONFIG_EXT2_FS or -CONFIG_EXT4_FS if you use the above image. 5. And finally, launch the hypervisor: