Skip to content

14.3.0 - Can't find zvol for vm disk while creating a snapshot #817

@jas-s2r

Description

@jas-s2r

The version is 14.3.0 but with the changes applied to fix the error reported about unable to log in as user=x
[freebsd:/usr/home/jas $]> sudo cbsd version 14.3.0

I tried to create a snapshot for a vm and I got an error that cbsd couldn't find zvol for a vm disk.
[freebsd:/usr/home/jas $]> sudo cbsd jsnapshot jname=ubuntu2 mode=create snapname=20250729 bhyve zfs_snapshot_create: unable to find zvol for /usr/jails/vm/ubuntu2/dsk1.vhd

Here's a list of available datasets:

[freebsd:/usr/home/jas $]> zfs list | grep jails

zroot/jails                                    554G  1.13T  35.1G  /usr/jails
zroot/jails/adc1                              2.03G  1.13T  2.03G  /usr/jails/jails-data/adc1-data
zroot/jails/cbsd-cloud-Debian-x86-12.8.1.raw  3.03G  1.14T  1.27G  -
zroot/jails/cbsd-cloud-openbsd-75.raw         5.04G  1.14T  1.08G  -
zroot/jails/mailrelay                         83.1M  1.13T  83.1M  /usr/jails/jails-data/mailrelay-data
zroot/jails/smbshare                          11.3G  1.13T  11.1G  /usr/jails/jails-data/smbshare-data
zroot/jails/ubuntu2                           49.6G  1.13T  12.2G  /usr/jails/vm/ubuntu2
zroot/jails/ubuntu2/dsk_sqldata.vhd           2.57G  1.16T  2.57G  -
zroot/jails/w2008r2                           11.0G  1.13T   284K  /usr/jails/vm/w2008r2
zroot/jails/w2008r2/dsk1.vhd                    56K  1.15T    56K  -

I was able to create a snapshot for the vm ubuntu2 using the zfs command directly:

sudo zfs snapshot zroot/jails/ubuntu2@20250729

zfs list -t snapshot | grep ubuntu2
zroot/jails/ubuntu2@zrep_000000           7.37G      -  12.3G  -
zroot/jails/ubuntu2@20250729              8.70M      -  12.2G  -

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions