Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2016 11:00:55 +0100
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        Allan Jude <allanjude@freebsd.org>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: mount bhyve image
Message-ID:  <20160308100055.GB1872@brick.home>
In-Reply-To: <56DC73CA.7080207@freebsd.org>
References:  <20160306145730.GA88508@potato.growveg.org> <56DC73CA.7080207@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <filesystem type> /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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160308100055.GB1872>