From owner-freebsd-virtualization@FreeBSD.ORG Mon Dec 30 17:16:39 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 ESMTPS id 56CF5DA for ; Mon, 30 Dec 2013 17:16:39 +0000 (UTC) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 11A381E14 for ; Mon, 30 Dec 2013 17:16:38 +0000 (UTC) Received: by mail-vc0-f178.google.com with SMTP id lh4so5871960vcb.23 for ; Mon, 30 Dec 2013 09:16:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=S5dr5HLssiAhfwnIbp2ZHKkfVXK9/uFy9C527oBi1KA=; b=WwcTieJ19nt3WNPZpdA/Hzr4m0Qe24CJhLFQLtdiy6aRhL6Hd/RVeFx94y+OwTPPBO OIy0wnjZ6XOSaYXR/sIAIWbE7QOpRN/1L7JXn7gbBQew80ta4prXtrw0zlZ6kEDSpYzD X8Cmft6r4VCb3ikBVXossvhwz8nnqcdF5sJGRRq4Hci6iYOhh7kkz62PofrUI89SIJgf GrYHIY1Bs63hS6Bw/Unmcub7vFKc58SgUR8YuJGhPuMvkLJjuOvq4i0XlBf5CwDvi/w9 QYoqvvzTioW7UxY7XQZZtQILBa8n8MDNp/eE1JKZgzk5rf37aJU83O2uGNagJD4XSgQJ 1y3g== X-Gm-Message-State: ALoCoQm2IBngIKiAee6jGL3fg/VCKazUGl98qBwGV7AQVx7vEvumHeT4HsoVYWr11Oq4ZtIheqDG MIME-Version: 1.0 X-Received: by 10.52.158.170 with SMTP id wv10mr2613485vdb.77.1388422101559; Mon, 30 Dec 2013 08:48:21 -0800 (PST) Received: by 10.52.245.67 with HTTP; Mon, 30 Dec 2013 08:48:21 -0800 (PST) X-Originating-IP: [2001:470:28:12b::3] Date: Mon, 30 Dec 2013 17:48:21 +0100 Message-ID: Subject: Real Device with BHyve From: Andrea Brancatelli To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Mon, 30 Dec 2013 17:16:39 -0000 Hello everybody. I'm doing some experiments with bhyve on 10.0-RC3 and I got stuck at a certain point. I was trying to have a VM use a direct device (/dev/da2) instead of a disk image. I was trying it in order to understand if there was any real performance difference between using a raw drive or an image-disk on the same drive. Well, the machine starts ok but when the "child" FreeBSD starts installation something strange happens. When I get to the partitioning screen I can see the device avaiable as /dev/vtdb0 with the correct size and such. I choose autopartitioning, the installer writes the partition table but when it start to write /dev/vtdb0p2 a very cryptic error appears about being unable to write - sorry, did not write it down. The installer then stops. If I do a fdisk /dev/vtdb0 in the VM I can see the GPT partition being there. If I do a fdisk /dev/da2 on the host machine, I can see the GPT partition as well, but the VM just doesn't want to write on it. I even tried changing kern.geom.debugflags=3D16 as I thought the host machi= ne could be locking somehow the drive, but that didn't seem to make any difference. I know it was a lame check but I was out of ideas. So I just wanted to understand if such a scenario is supposed to be supported.... What I was thinking of, for example, was of having an external iSCSI device connected on the hostmachine mapped as a virtual disk for a specific VM, in order to speed the VM disk performances. Just another quick question... I have seen some improvements by having the VM's virtual disk on ZFS against UFS. Is it just me or is there any real improvement by using ZFS? Thanks a lot. --=20 *Andrea BrancatelliSchema 31 S.r.l. - Socio UnicoResponsabile ITROMA - FIRENZE - PALERMO ITALYTel: +39. 06.98.358.472* *Cell: +39 331.2488468Fax: +39. 055.71.880.466Societ=C3=A0 del Gruppo SC31 ITALIA*