Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2019 17:36:38 +0000
From:      Paul Webster <paul.g.webster@googlemail.com>
To:        Victor Sudakov <vas@mpeks.tomsk.su>
Cc:        "freebsd-virtua." <freebsd-virtualization@freebsd.org>
Subject:   Re: mounting/exporting/importing a zfs volume
Message-ID:  <CADdqeiOQ=CoLPfB7f1uXG5yf9Ea86eKKQhMXGro-1xkNsLfnxg@mail.gmail.com>
In-Reply-To: <20190211170312.GA76683@admin.sibptus.ru>
References:  <20190211170312.GA76683@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@newserv:~ # mdconfig -a -f /dev/zvol/zroot/vm/mail/disk0
> mdconfig: /dev/zvol/zroot/vm/mail/disk0 is not a regular file
> root@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@fidonet http://vas.tomsk.ru/
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADdqeiOQ=CoLPfB7f1uXG5yf9Ea86eKKQhMXGro-1xkNsLfnxg>