From owner-freebsd-virtualization@freebsd.org Tue Mar 8 10:01:01 2016 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 EF89AAC7665 for ; Tue, 8 Mar 2016 10:01:00 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98F55E2D; Tue, 8 Mar 2016 10:01:00 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id p65so142421648wmp.1; Tue, 08 Mar 2016 02:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=3TJTeUMQKhnVR/U3dq4oz+9ALMW3AME9tIRL5CCCVqk=; b=FtRjy/Kag8LIm3yl3E4EEYAU1bzMZra4oONMi+tUlmij+dwfhH+Y+T++GJho9/hhG1 qolo/jANQVLGOm3iahVp7bAVivClkg2BU3dnMFSRbW5F/eLo9vhBEYF4MWa3PRHQMjEi 9qgjtfW+Xd84icHPWo7Ci0kieWUeE7n/9O2CsGbh80LCFsRhEijeBSz7DKueUuUGuM5C 26reDrD2TWf3v2NctVCwa2yjN0kZti9GgOtH4dsls93oKS7AzVrCpPqEVhgQvMqchniJ xeKDtDDyB67XSVITCge0/Hfjxdl/Prr/hHeDRsEr5gwvJAwcBTWbwSfC4YqQQlSv+MFo 8A3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=3TJTeUMQKhnVR/U3dq4oz+9ALMW3AME9tIRL5CCCVqk=; b=EExYrJvLcqQUwPdE42XoydfsYUJo2Hbb10G/aYL45+HIEA8im8a+z9hQxSzqivnfjh V4RTbrz/z20b9hVlvOhoI/mrzH1Mq6G7zciRweh2OwRyRsgNboq9mQMX2lzkOX/b8KNW +I+6sd0jEait5A7xeXRUXq+hv01e6ODKJ7STUjN8F/sdjX7LBxI/vjlrcFfRhDu7LExJ zDYWWQBEGI2t+OQ0jlC2gVzRlB4HY9OrKNsUZ/OrP9CDpFzdZb3WPh2xstQVLDqRfTdI knKuDbZfUMhx8pW/noWQ8McvHIWwj1iWe4dLDgVXTc66yE+IPfhMb7h2jIxNfh7MlJ+w EqaA== X-Gm-Message-State: AD7BkJIwyuc9ElamZrLRu3r0ni3TY9+GteILQ/wFW0glvOZC20x1hb6R27AH4M92XokJXA== X-Received: by 10.28.182.136 with SMTP id g130mr18288745wmf.10.1457431259030; Tue, 08 Mar 2016 02:00:59 -0800 (PST) Received: from brick.home (adje68.neoplus.adsl.tpnet.pl. [79.184.212.68]) by smtp.gmail.com with ESMTPSA id l7sm2123830wjx.14.2016.03.08.02.00.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Mar 2016 02:00:58 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Tue, 8 Mar 2016 11:00:55 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Allan Jude Cc: freebsd-virtualization@freebsd.org Subject: Re: mount bhyve image Message-ID: <20160308100055.GB1872@brick.home> Mail-Followup-To: Allan Jude , freebsd-virtualization@freebsd.org References: <20160306145730.GA88508@potato.growveg.org> <56DC73CA.7080207@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56DC73CA.7080207@freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 08 Mar 2016 10:01:01 -0000 On 0306T1315, Allan Jude wrote: > On 2016-03-06 09:57, John wrote: > > Hello list, > > > > Can a bhyve image be mounted to the filesystem? Not an active image, I > > mean, say one has a problem loading a bhyve instance. Is it possible > > to mount the image as one would for example mount a cdrom image as per > > md(8) ? If it is possible, what are the parameters please? > > > > thanks, > > Yes, you mount it the same way as a cdrom image: > > mdconfig -a -t vnode -f /path/to/image > > then: mount -t /dev/md0p1 /mnt > > note that depending on your partitioning scheme, the exact device name > will different. md0p1 is the first GPT partition, it might be MBR > instead, which would be md0s1, etc. Or attach them using mdconfig (just as described above; note it can be shortened to "mdconfig /path/to/image") and use autofs media support, which takes care of figuring out the partitioning scheme and mounting stuff. See https://www.freebsd.org/doc/handbook/usb-disks.html, the last section.