From owner-freebsd-virtualization@FreeBSD.ORG Sat Oct 18 04:22:40 2008 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1720B1065688 for ; Sat, 18 Oct 2008 04:22:40 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id BD52F8FC1D for ; Sat, 18 Oct 2008 04:22:39 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id 9EC6711A2CA7; Sat, 18 Oct 2008 01:22:38 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54882-06; Sat, 18 Oct 2008 01:22:33 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id 813A511A2CA5; Sat, 18 Oct 2008 01:22:32 -0300 (ADT) Date: Sat, 18 Oct 2008 01:22:31 -0300 From: "Marc G. Fournier" To: "Alexandre \"Sunny\" Kovalenko" , "Marc G. Fournier" Message-ID: In-Reply-To: <1224297484.1118.28.camel@RabbitsDen> References: <48F88B2B.1080700@web.de> <1224245114.75001.7.camel@RabbitsDen> <1224297484.1118.28.camel@RabbitsDen> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-virtualization@freebsd.org Subject: Re: Software for virtualisation for FreeBSD needed X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 04:22:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Okay, *now* I'm intrigued ... can you recommend a good 'setup guide' for qemu=20 under FreeBSD? Or, a good generic one? - --On Friday, October 17, 2008 22:38:04 -0400 "Alexandre \"Sunny\" Kovalenko"=20 wrote: > On Fri, 2008-10-17 at 21:28 -0300, Marc G. Fournier wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> >> >> - --On Friday, October 17, 2008 08:05:14 -0400 "Alexandre \"Sunny\" >> Kovalenko" wrote: >> >> > I am using VMware extensively on Linux and Windows hosts and QEMU on >> > FreeBSD host (with Windows, Linux and OpenSolaris guests) >> >> Can you run multiple guest QEMU environments simultaneously? With >> networking? > Yes. Yes. ;) > > I can definitely run multiple QEMU guests simultaneously. Did you have > any problems doing that? > > Now, networking part is slightly trickier to answer. Let me try to map > this into VMware experience: > > -- assigning IP addresses. I am doing static configurations. It Should > Not Be Hard (sm) to beat isc-dhcp into serving different address ranges > to different tapX, but I have not done it. > > -- guest-to-guest internal networking. Easy: you have separate tapX with > their separate IP addresses, as long as you have > net.inet.ip.forwarding=3D1 set, it "just works". > > -- nat-to-outside-world. Slightly harder, but doable: > sunny:RabbitsDen>cat pf.nat.conf > # Internal interfaces (for QEMU and or Bluetooth clients) > int_if_0 =3D "tap0" > int_if_1 =3D "tap1" > > # Private network for QEMU and Bluetooth clients > private_network_0 =3D $int_if_0:network > private_network_1 =3D $int_if_1:network > > # External interface (if we are providing NAT for the clients above) > ext_if =3D "ath0" > > # Provide NAT services for private clients > nat on $ext_if from $private_network_0 to any -> ($ext_if) > nat on $ext_if from $private_network_1 to any -> ($ext_if) > > pass from { lo0, $private_network_0 } to any > pass from { lo0, $private_network_1 } to any > sunny:RabbitsDen>sudo pfctl -F nat > sunny:RabbitsDen>sudo pfctl -f pf.nat.conf > > We are done. Admittedly, if you have many clients which flicker in and > out of existence, this gets very messy very quickly. Some scripting is > advised. > > -- bridging-to-outside world. Have not tried it for the lack of need. > > HTH, > > -- > Alexandre "Sunny" Kovalenko = (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 = =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) > - --=20 Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkj5ZIcACgkQ4QvfyHIvDvOyqACgtjuEvVxw2TiGjAod8FwWJNZ5 hMMAoOqgK7SLuA7Y5TmgdioxnA7aIv/R =3DKgWI -----END PGP SIGNATURE-----