Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 09:00:10 -0400
From:      Mike Tancsa <>
To:        freebsd-questions <>
Subject:   mounting from zfs:zroot/ROOT/default failed with error 45
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
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=C2=A0=C2=A0=C2=A0=
 #these files
are taken from the RELENG_10 image
zpool create -f -o altroot=3D/mnt2 -O canmount=3Doff -m none zroot /dev/m=
gzcat zroot.0.gz | zfs recv -vF zroot
zpool import -f -o altroot=3D/mnt2=C2=A0 zroot
zpool set bootfs=3Dzroot/ROOT/default zroot
zpool export zroot
mdconfig -d -u0

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

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


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.

=C2=A0=C2=A0=C2=A0 ---Mike

Mike Tancsa, tel +1 519 651 3400 x203
Sentex Communications,
Providing Internet services since 1994
Cambridge, Ontario Canada  =20

Want to link to this message? Use this URL: <>