From owner-freebsd-virtualization@FreeBSD.ORG Sun Aug 24 13:05:25 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ED90B407 for ; Sun, 24 Aug 2014 13:05:24 +0000 (UTC) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD5B53A9B for ; Sun, 24 Aug 2014 13:05:24 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id lf12so13960321vcb.40 for ; Sun, 24 Aug 2014 06:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pvy/S9exV1kp3fwUwmqn7t9XVMU7BWm/CegP7WyUAM4=; b=d/NQVajg1SLv38ovYKuk1swYPCQWnx1hWn1RyVj2GH6i6XG5WBBjW/he1s3Z62fVAC wv6xOWMVNsEQwTlrdXwMKIYIKYH6a31ZzVVwrRLiAAV1mgyP1Ye8+SQ+qy+yBd0klwbO mJyOr7lqA1qChD91lDRXM1seW/mqINQfN8uG3Nzj4MOcZKqAzdjjrMhNIUJxhj277Bqy aCkV7nE90lgJwMgHx7R3TTFtdnjL50xkWyLQVqWThK5xS3NrtArZNpgbu0mDdK9R9wB2 nnMPOhz39kXLxri+fwK0oAvX/3YR3r1xlcsipZ2MKnNT+a5BJancmQBqRfSivnfXe8dx VxCA== MIME-Version: 1.0 X-Received: by 10.53.12.225 with SMTP id et1mr10701550vdd.5.1408885523205; Sun, 24 Aug 2014 06:05:23 -0700 (PDT) Received: by 10.221.46.133 with HTTP; Sun, 24 Aug 2014 06:05:23 -0700 (PDT) In-Reply-To: References: Date: Sun, 24 Aug 2014 15:05:23 +0200 Message-ID: Subject: Re: VirtIo errors inside VM with UFS-in-zvol From: Nikolay Denev To: Stephen Stuart Content-Type: text/plain; charset=UTF-8 Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 24 Aug 2014 13:05:25 -0000 On Wed, Feb 19, 2014 at 6:38 PM, Stephen Stuart wrote: > 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 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" Just to say I'm seeing the same issue. I want to create i386 virt on an amd64 host, and downloaded FreeBSD-10.0-RELEASE-i386-disc1.iso I've created a zvol: zfs create -V20G zfs/freebsd-i386 Then starting bhyve: sh /usr/share/examples/bhyve/vmrun.sh -m2048m -d /dev/zvol/zfs/freebsd-i386 -I FreeBSD-10.0-RELEASE-i386-disc1.iso -i freebsd-i386 Installer starts, I'm going with the default of GPT partition using the whole disk, but then I get this error: Error mounting partition /mnt: mount: /dev/vtbd0p2: Invalid argument Trying to mount the partiton from the shell produces the same error, and in dmesg I see this: vtbd0: hard error cmd=write 290-305 Running newfs outside of the virt works, and then I can mount inside the virt and installer continues. I'm running: FreeBSD nas.home.lan 10.0-STABLE FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC 2014 root@nas.home.lan:/usr/obj/usr/src/sys/NAS amd64 --Nikolay