mount bhyve image

Allan Jude allanjude at freebsd.org
Sun Mar 6 18:15:51 UTC 2016


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.

-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20160306/d43d3b18/attachment.sig>


More information about the freebsd-virtualization mailing list