Re: mount bhyve image

2016-03-08 Thread Edward Tomasz NapieraƂa
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.

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: mount bhyve image

2016-03-07 Thread John

On Sun, Mar 06, 2016 at 01:15:38PM -0500, Allan Jude wrote:


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.


Thanks for the confirmation, thats useful info.

--
John 
___

freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: mount bhyve image

2016-03-06 Thread Allan Jude
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.

-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature