From owner-freebsd-virtualization@freebsd.org Thu Feb 9 13:22:07 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BEEDCD6A5F for ; Thu, 9 Feb 2017 13:22:07 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (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 BE6ED16B6 for ; Thu, 9 Feb 2017 13:22:06 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v19DM2Tn084917; Thu, 9 Feb 2017 14:22:02 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id B937FE13; Thu, 9 Feb 2017 14:22:01 +0100 (CET) Message-ID: <589C6CF9.3020707@omnilan.de> Date: Thu, 09 Feb 2017 14:22:01 +0100 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Rajil Saraswat CC: freebsd-virtualization@freebsd.org Subject: Re: Zvol, Bhyve/Pfsense and config restore References: <101c40b4-55fe-20ec-6ed0-ff77df9d2618@gmail.com> In-Reply-To: <101c40b4-55fe-20ec-6ed0-ff77df9d2618@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Thu, 09 Feb 2017 14:22:02 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 09 Feb 2017 13:22:07 -0000 Bezüglich Rajil Saraswat's Nachricht vom 09.02.2017 14:04 (localtime): > Hello, > > I am trying to setup a pfsense instance under bhyve. Until now i had a > standalone machine for pfsense but it is going away for RMA so i am > trying to replace it with a bhyve instance. The /cf/conf/config.xml file > needs to be copied over to the bhyve instance. > > I created the zvol (zfs create -sV 8G "vmpool/os5") and used this zvol > in the bhyve vm. To copy the config.xml, i mounted the zvol on the host > which worked. But I am unable to list the contents of the zvol. > > # mount /dev/zvol/vmpool/os5 /mnt/tst > > #df > > /dev/zvol/vmpool/os5 > 8106716 6992 7451188 0% /mnt/tst > > #ls -la /mnt/tst > > ls: /mnt/tst: Bad file descriptor > > How can i access the vm filesystem on the host? Which volmode is in use for vmpool/os5 ('zfs get volmode vmpool/os5')? I don't know what patritioning scheme pfsens uses, but 'gpart show /dev/zvol/vmpool/os5' would be of interest. You need volmode "geom" and something like /dev/zvol/vmpool/os5p2 or /dev/zvol/vmpool/os5a for your mount special I guess. -harry