From owner-freebsd-virtualization@freebsd.org Thu Feb 9 15:36:02 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 906DFCD7C26 for ; Thu, 9 Feb 2017 15:36:02 +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 3162E1103 for ; Thu, 9 Feb 2017 15:36:02 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v19Fa0CC086102; Thu, 9 Feb 2017 16:36:00 +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 51494E2E; Thu, 9 Feb 2017 16:36:00 +0100 (CET) Message-ID: <589C8C5F.7060904@omnilan.de> Date: Thu, 09 Feb 2017 16:35:59 +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> <589C6CF9.3020707@omnilan.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 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 16:36:00 +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 15:36:02 -0000 Bezüglich Rajil Saraswat's Nachricht vom 09.02.2017 15:51 (localtime): > 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 >> > > The volmode was set as default. After changing it to geom, i was able > to access the zvol and copy the file. > > Thanks for the tip! Glad to hear you got it working. 'default' references "vfs.zfs.vol.mode": sysctl -d vfs.zfs.vol.mode vfs.zfs.vol.mode: Expose as GEOM providers (1), device files (2) or neither It's probably modified unintentionally on your host. On the other hand I remember someone documented that under unclear circumstances, it needs to be set explicitly to 'geom' even with the sysctl beeing still the default "1" (=geom). -harry