From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 17:38:03 2014 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 77F13B2 for ; Wed, 19 Feb 2014 17:38:03 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36D16106D for ; Wed, 19 Feb 2014 17:38:03 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id cm18so989804qab.12 for ; Wed, 19 Feb 2014 09:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oisHFqaKCjrwW6JiWNaE0ZxREUQ6YAVmRUaQ0HLto1w=; b=ZlgCTaApcQkOCKKLb0sZqmmqwfdEibJH1frOreZuZhOpJpk1mYQDaNLXdY9DJAaWfW jM4bZwRk1id5r/nXNy9WgFWQQgTqylCbe3UjsukN/SVk6Gnvu3VftWHRpAFgV/0ShSxs oTZFxHvDUeRUu/A2ufiZFabn8ccX/sF7RTqMn1g83A3paeLcAjZpf/PNa9D3SpcajGTM YIUKVJ5mLLqUaYbObVeIOCddZ/COKGoEF87uD0yELJYxVu5mJJAUaxUQeEbT2iMmlPWF XjgCh03bFUpbpfAme15Frgshy7oPnpAAwfMbGr8XTCn4/bCTL8bd2xWh1ldm1O7cVcWV KOyA== MIME-Version: 1.0 X-Received: by 10.140.88.180 with SMTP id t49mr2487990qgd.97.1392831482415; Wed, 19 Feb 2014 09:38:02 -0800 (PST) Received: by 10.140.51.176 with HTTP; Wed, 19 Feb 2014 09:38:02 -0800 (PST) Date: Wed, 19 Feb 2014 09:38:02 -0800 Message-ID: Subject: VirtIo errors inside VM with UFS-in-zvol From: Stephen Stuart To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 19 Feb 2014 17:38:03 -0000 I have VMs running on FreeBSD 10.0, for which I made zvols to provide the block IO device for bhyve. When I boot from the installation ISO, gpart works inside the VM, but newfs does not, reporting vtbd0 errors. Likewise, dump does not work inside the VM (failing with too many vtbd0 hard errors), but if I shut down the VM and dump the filesystem by specifying the partition name in the host machine's ZFS space (/dev/zvol/zroot/VOLNAMEp2), dump works just fine. With a different VM, where I got smart and did all the gpart and newfs work outside the VM: zfs create -V 10g zroot/WORKING gpart create -s GPT /dev/zvol/zroot/WORKING gpart add -t freebsd-boot -s 64k /dev/zvol/zroot/WORKING gpart add -t freebsd-ufs -s 7525m /dev/zvol/zroot/WORKING gpart add -t freebsd-swap /dev/zvol/zroot/WORKING newfs /dev/zvol/zroot/WORKINGp2 then install works fine inside the VM when I mount the filesystem and create fstab by hand, and dump inside the VM works fine. There's a somewhat related post here: https://groups.google.com/forum/#!msg/mailing.freebsd.fs/Iw7aONDm-3Y/gecBCQls8oYJ but I don't see anything specific to this issue. I'd like dump from inside the VM to work, the fact that it doesn't makes me concerned that there are issues lurking that might lead to data loss. Where do I go from here? Thanks, Stephen