mounting from zfs:zroot/ROOT/default failed with error 45

Mike Tancsa mike at sentex.net
Fri Apr 5 13:00:27 UTC 2019


I have a couple of ZFS boxes I want to upgrade from RELENG_10 to
RELENG_11 and before doing it, I wanted to clone them into a VM to test
out the upgrades. In the past, this was easy enough using actual
hardware. However, I cant seem to get it going in a VM. I tried doing
the following steps

truncate -s 999G server.img
mdconfig -f server.img
gpart create -s gpt md0
gpart add -s 222 -t freebsd-boot md0
gpart add -t freebsd-zfs md0
gpart bootcode -b /tmp/pmbr -p /tmp/gptzfsboot -i 1 md0    #these files
are taken from the RELENG_10 image
zpool create -f -o altroot=/mnt2 -O canmount=off -m none zroot /dev/md0p2
gzcat zroot.0.gz | zfs recv -vF zroot
zpool import -f -o altroot=/mnt2  zroot
zpool set bootfs=zroot/ROOT/default zroot
zpool export zroot
mdconfig -d -u0

Then I imported the file server.img into a KVM instance. 

and everything starts to boot fine, but then fails with

mounting from zfs:zroot/ROOT/default failed with error 45

if I hit ? it shows

List of GEOM managed disk devices:

vtbd0p2 vtbd0p1 vtbd0

mountroot>

if I try

mountroot> zfs:zroot
Trying to mount root from zfs:zroot [] ...
Mounting from zfs:zroot failed with error 45

same with zfs:zroot/ROOT/default

error 45.


    ---Mike


-- 
-------------------
Mike Tancsa, tel +1 519 651 3400 x203
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   




More information about the freebsd-questions mailing list