From owner-freebsd-virtualization@FreeBSD.ORG Sun Aug 11 18:49:25 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BE61044A for ; Sun, 11 Aug 2013 18:49:25 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 80A572260 for ; Sun, 11 Aug 2013 18:49:25 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id C2A2C11C1F; Mon, 12 Aug 2013 04:49:23 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BNX71450 (AUTH peterg@ptree32.com.au); Mon, 12 Aug 2013 04:49:22 +1000 Message-ID: <5207DCB0.4030809@freebsd.org> Date: Sun, 11 Aug 2013 11:49:20 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Aryeh Friedman Subject: Re: tech questions and development priorities for bhyve References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 11 Aug 2013 18:49:25 -0000 Hi Aryeh, > 1. How do I add a second block device as a disk? You have 32 virtual PCI slots to play around with. Simply add another virtio-block device and back it with a file to represent the block device e.g. -s 2,virtio-blk,/first/filesys/image \ -s 3,virtio-blk,/second/filesys/image \ -s 4,virtio-blk,/third/filesys/image ... etc. (Actually, the virtio block/net can also be assigned to PCI functions with no side-effects, so there are 32*8 available 'slots'. The function syntax uses a colon appended to the slot e.g. "-s 1:0,virtio-blk,/file") > 2. Same question but for net interfaces? Same answer, though there has to be available tap devices created -s 6,virtio-net,tap4 \ -s 7,virtio-net,tap5 ... etc. > What are the relative priorities of the following bhyve features: > > 1. Eliminate need for guest OS to have virtio > 2. Boots via BIOS and not FreeBSD bootloader > 3. Non-virtio pass through (specifically USB) > 4. Nested virtualization Tough call - they are all important. Work is being done on all 4, though at various stages. With non-virtio guest o/s's, there is a current GSoC project for AHCI emulation which should take care of disk, and there is some work being done on Intel NIC emulation. For the BIOS boot, there was a GSoC project last year on this that was almost there for FreeBSD. Booting using UEFI as a BIOS was demo'd at BSDCan, though that is currently for EFI-aware o/s's, and is still in the process of being made available. Not quite sure what you mean by 3 - is that PCI pass-through ? Note there is a GSoC project for USB emulation in bhyve. For nested, I'm looking at it :) later, Peter.