From owner-freebsd-virtualization@FreeBSD.ORG Mon Aug 25 12:20:48 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 5161BC32 for ; Mon, 25 Aug 2014 12:20:48 +0000 (UTC) Received: from bsd-ix0.plasmahost.ru (bsd-ix0.plasmahost.ru [46.4.109.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0E5BD34DC for ; Mon, 25 Aug 2014 12:20:47 +0000 (UTC) Received: from [119.224.17.161] (helo=[192.168.1.12]) by bsd-ix0.plasmahost.ru with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XLtxA-0000iG-TP for freebsd-virtualization@freebsd.org; Mon, 25 Aug 2014 17:04:57 +0400 Message-ID: <53FB2662.7090501@hawara.com> Date: Tue, 26 Aug 2014 00:04:50 +1200 From: Marat Bakeev User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: VirtIo errors inside VM with UFS-in-zvol References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: ClamAV 0.98.4; Mon, 25 Aug 2014 17:04:57 +0400 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: Mon, 25 Aug 2014 12:20:48 -0000 I would like to confirm this issue On 25/08/2014 01:05, Nikolay Denev wrote: > 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. > 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 > I would like to report the same problem. I'm using 10.0-RELEASE-p7 as a host, and 9.3-RELEASE as a guest. VM is created using vmrc script, it installed fine. But on attempt to create additional fs inside the vm, newfs just silently fails without writing anything to disk. file -s on a filesystem reports just 'data', instead of the usual "Unix Fast File system" for example, quotacheck also fails from inside the vm - quotacheck: Cannot find file system superblock: No error: 0. I'm getting this error message for a working filesystem, a filesystem created outside the vm and mounted inside it. bhyve uses zvol for a block device, mounted using ahci-hd. Commands used to start the vm are these: /usr/sbin/bhyveload -m 4096 -d /dev/zvol/data/vm/bsd-ix0 bsd-ix0 /usr/sbin/bhyve -c 4 -m 4096 -A -H -s 0,hostbridge -s 2,ahci-hd,/dev/zvol/data/vm/bsd-ix0 -s 3:0,virtio-net,tap8000 -s 5,lpc -l com1,/dev/nmdm0A bsd-ix0