Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 09:00:10 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   mounting from zfs:zroot/ROOT/default failed with error 45
Message-ID:  <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net>

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=
d0p2
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

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.


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


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





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?98a58bad-56ea-c598-2944-e4c70c2841a3>