From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 18 23:26:14 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7885D1065687 for ; Sun, 18 Apr 2010 23:26:14 +0000 (UTC) (envelope-from xdong.yi@gmail.com) Received: from mail-bw0-f214.google.com (mail-bw0-f214.google.com [209.85.218.214]) by mx1.freebsd.org (Postfix) with ESMTP id 06DF18FC0A for ; Sun, 18 Apr 2010 23:26:13 +0000 (UTC) Received: by bwz6 with SMTP id 6so3627359bwz.13 for ; Sun, 18 Apr 2010 16:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1rMqRKoglwcKPQNxtby+V02lewGTQNkRLZ8majYM41E=; b=PsEGzbYD29ocZGtHB/1uiE+ZGYY7qHp2qoM0rpgBMW2ANo/0KDXENXAOmW8pBu9nyJ hpLAzX2DhajpJb7SkUeP6zeInktMP15hcF2/thYJ3CjLH6WqIlErK3kEBZDn3gYG2xxC 3tYqyNToaYTgQjQBVL6QdosLkTBl/8PhuQUK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rTXnbw+dPzXpXp4fOknsNorT+c7y7/uv0zG4CRMmgD6p/S24+26AtMZFrXUC/xk5sP qZ0DWmBfq8EjyaYSv17hnrqXTNmDj9Hc26JW4FJWrKZJrpxu99pYoO9SZdIoEskKccww L3Doo8MYoUouZ7FnvumfPKuwMSIbQQxAKE+rg= MIME-Version: 1.0 Received: by 10.204.71.197 with HTTP; Sun, 18 Apr 2010 15:54:44 -0700 (PDT) In-Reply-To: <20100418191752.GA72730@triton8.kn-bremen.de> References: <20100418191752.GA72730@triton8.kn-bremen.de> Date: Mon, 19 Apr 2010 06:54:44 +0800 Received: by 10.204.33.131 with SMTP id h3mr3999081bkd.53.1271631284497; Sun, 18 Apr 2010 15:54:44 -0700 (PDT) Message-ID: From: Xiaodong Yi To: Juergen Lock Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org Subject: Re: Testing Luvalley with FreeBSD as dom0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2010 23:26:14 -0000 Hi, dear all, First, I would like to thank Juergen for his long-time hard work on porting and testing Luvalley/Qemu stuff to let it run with FreeBSD. As said by Juergen, Luvalley is designed to enable arbitrary operating system to utilize the hardware virtualization extensions to host virtual machines as pure userland applications. That is to say, in theory, Luvalley may run arbitrary OS as the so-called dom0 OS and then host multiple guests/domU OSs on top of it. Luvalley neither modify OS kernels, nor insert modules into the OS kernel. The virtualized guests/domU OSs are executed as userland applications by the modified Qemu. I am very glad that Juergen introduced Luvalley to the FreeBSD society. We hope you like the idea of it. And we will be much more pleased for the feedbacks. Luvally now is only experimental and may be not stable or low performance. But I will continue working to improve it. Best regards, Xiaodong Yi 2010/4/19 Juergen Lock : > Hi! > > =A0I had been watching the Luvalley project for a while, > > =A0 =A0 =A0 =A0http://sourceforge.net/projects/luvalley/files/ > =A0 =A0 =A0 =A0http://sunet.dl.sourceforge.net/project/luvalley/luvalley/= luvalley-7/README > =A0 =A0 =A0 =A0http://www.mail-archive.com/kvm@vger.kernel.org/msg11896.h= tml > > and a few weeks ago I was able to run Linux and FreeBSD domU.s on a > Linux dom0 on my box for the first time, and then I ported a version > of qemu-kvm 0.12.3 that Xiaodong Yi (Luvalley author) had adapted to > Luvalley to FreeBSD and got that running domU.s with FreeBSD as dom0 too.= :) > > =A0At the moment Luvalley still has major issues and is far from being > production-ready yet, but for FreeBSD users who want have a look for > themselves I've now made an experimental port of the mentioned > qemu-kvm-luvalley 0.12.3: > > =A0 =A0 =A0 =A0http://people.freebsd.org/~nox/qemu/luvalley/qemu-kvm-luva= lley-0.12.3.shar > > =A0If you want to test it without deinstalling a qemu port you can build > the port with DISABLE_CONFLICTS=3Dyes and run the Luvalley qemu-kvm from > within the build dir: > > =A0 =A0 =A0 =A0work/qemu-kvm-0.12.3/x86_64-softmmu/qemu-system-x86_64 ... > resp. > =A0 =A0 =A0 =A0work/qemu-kvm-0.12.3/i386-softmmu/qemu ... > > =A0And before I forget, your cpu needs to be amd64/x86_64/em64t (i.e., > able to run 64 bit) and it needs to have Intel VT or AMD-V aka vmx or svm= . > I only tested amd64 dom0s (Linux and FreeBSD stable/8), but afaik i386 > dom0s are supported as well. =A0And this is still experimental code, it > may crash, eat your dog, whatever... > > =A0Here is the pkg-descr: > > Luvalley is a lightweight type-1 Virtual Machine Monitor (VMM) with > novel architecture, to enable any OS to run virtual machines by utilizing > hardware virtualization extensions such as Intel VT and AMD-V. > > This is an experimental port of qemu-kvm adapted to Luvalley by > Xiaodong Yi (Luvalley author - files/patch-luvalley) and preliminary > patched for FreeBSD my me (nox, files/patch-z-kvm-bsd) so that FreeBSD > can run domU (guests) using Luvalley. =A0Luvalley still has many limitati= ons > and is definitely far from being production-ready, but it already seems > to be able to run domUs partway faster than kqemu with -kernel-kqemu. :) > (and also works better than kqemu for amd64 domUs.) > > Note: =A0You need grub to boot the Luvalley `kernel', > > =A0 =A0 =A0 =A0http://sourceforge.net/projects/luvalley/files/luvalley/lu= valley-7/luvalley/download > > which (hopefully) will then boot the first disk again from which you > _then_ select the FreeBSD slice for booting the FreeBSD loader and > kernel to run as Luvalley dom0 if you want to test this port. =A0More inf= o > is here: > > =A0 =A0 =A0 =A0http://sunet.dl.sourceforge.net/project/luvalley/luvalley/= luvalley-7/README > > Since FreeBSD users rarely have a grub installed I've made a grub iso > with a menu.lst configured to boot the Luvalley `kernel' from /boot/luval= ly > on the root of the first FreeBSD slice on the first disk (if your FreeBSD > install is elsewhere you have to either edit the grub menu entry on the f= ly > using grub's `e'dit command or unpack the iso using e.g. bsdtar, edit the > menu.lst, and then make a new iso, see the README.txt within the iso.) > > =A0 =A0 =A0 =A0http://people.freebsd.org/~nox/qemu/luvalley/grub-luvalley= .iso > > If you have a working serial port (`COM1' aka /dev/tty[du]0) you can try > to catch Luvalley's debug messages (115200bps, 8N1), this is especially > useful should Luvally crash, otherwise there's probably no chance to > fix the bug. =A0One known crash at the moment happens when Luvalley runs > out of ioctl object slots of which by default there are only 32 > ("IOCTL_SIZE" in the Luvalley source, I haven't tried to build that on > FreeBSD yet) and atm they never get released so in practice for the momen= t > you should reboot your dom0 (FreeBSD) after running a few domUs to avoid > that crash. =A0Another known problem is atm when a domU shuts down the > luvally qemu will hang and you have to manually kill it. > > WWW: http://sourceforge.net/projects/luvalley/files/ >