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>
index | next in thread | raw e-mail
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@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canadahelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98a58bad-56ea-c598-2944-e4c70c2841a3>
