Date: Sun, 11 Aug 2013 11:49:20 -0700 From: Peter Grehan <grehan@freebsd.org> To: Aryeh Friedman <aryeh.friedman@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: tech questions and development priorities for bhyve Message-ID: <5207DCB0.4030809@freebsd.org> In-Reply-To: <CAGBxaXkZsKeU9NOxacknYobA6xE0gq0VovO4s73JropY7c3LGQ@mail.gmail.com> References: <CAGBxaXkZsKeU9NOxacknYobA6xE0gq0VovO4s73JropY7c3LGQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5207DCB0.4030809>