mounting/exporting/importing a zfs volume
Paul Webster
paul.g.webster at googlemail.com
Mon Feb 11 17:36:49 UTC 2019
mdconfig -a -t vnode -f <path> afaik
once they are mounted you could dd them over to the zvols and then resize
them from within the vm
On Mon, 11 Feb 2019 at 17:04, Victor Sudakov <vas at mpeks.tomsk.su> wrote:
> Dear Colleagues,
>
> vm-bhyve keeps virtual machines on zfs volumes with volmode=dev. How can
> I access/mount the filesystems within the volume when the virtual host
> is offline?
>
> If I kept virtual disks in raw files, I could access them as devices
> with mdconfig. But:
>
> root at newserv:~ # mdconfig -a -f /dev/zvol/zroot/vm/mail/disk0
> mdconfig: /dev/zvol/zroot/vm/mail/disk0 is not a regular file
> root at newserv:~ #
>
> Also, how can I exchange those zfs volumes for use with other
> hypervisors? They are not real raw disk files so I cannot use
> sysutils/vmdktool etc.
>
> --
> Victor Sudakov, VAS4-RIPE, VAS47-RIPN
> 2:5005/49 at fidonet http://vas.tomsk.ru/
>
More information about the freebsd-virtualization
mailing list