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.

freebsd-virtualization@freebsd.org mailing list
To unsubscribe, send any mail to 

Reply via email to