From owner-freebsd-virtualization@freebsd.org Mon Oct 2 12:56:02 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD9BCE3F021 for ; Mon, 2 Oct 2017 12:56:02 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE78167602 for ; Mon, 2 Oct 2017 12:56:02 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C9AEE228F1 for ; Mon, 2 Oct 2017 08:56:00 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 02 Oct 2017 08:56:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=oS3G8NdqWTGauiTcGcvDGVGD4eUzqn5NKzVlyxbw8 Ng=; b=anINseEP9nfzzsLsfjT9pT9Jgz7JGjk2OcZD1/UsbwbOrum8Uafp+Elva GknK0widWv/mQ6e7IQSl5ADPaNqgA228h0iZQAd14v3moUASMqyzAq1nhfWDjxzI 5RSBRKFHvFYqksnnRuNXZcBDa/ESrazsDPJjouzsNiFR2rTTT5L03G5kws9oREy1 qDB6EXn9dsYUmvHxVetyYEkV84TEH9wLZoe5e/KVFxuz3SHSkp6h2UQmvSKy640c V9DlfnivKTMLboUbLPTnAFKTdi0al8GqaUhvXs3I2rX/cAv+r6205tV1W46DI4qK kQSDnk2Rw/IFNvUTpK2Ek8WSFd55Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=oS3G8NdqWTGauiTcGc vDGVGD4eUzqn5NKzVlyxbw8Ng=; b=HakhEx357kjmgE9jgHRqfmQFzb+TPLNjUm iwAxeNzYbtTQjoiz3GMA8nNaqY6iyLzRzFmQPFXABp379rbr17boc8epAz6z4Vgu dhtzpvcE+XEC+SLEnkpiWZhGu4Y/nvsdu7U+VLC71bPKXBeQxg1kRDX3PSgBcEAP 2mnr9Dl9SmYfKGPdJkc3TM1tmebH2fNhzvVIcUqjpMRv3r/Crf+TzAJ27hTIa7hm La9QrT7pdJMmgpUdd5OYZg9arO5dM1DLuzkhlc5gEnt8XgLljEmw4eQdWfr8uaje pIzveDyOddwJVPjYq7jyKl8iUiX2qU96wP9jLztZ9u/KdzVUePxA== X-ME-Sender: X-Sasl-enc: EvkA3Wxz7gWCDd+0L3XfglIk8XTfvBPM7xrjfsAFWhmd 1506948960 Received: from v007.zyxst.net (v007.zyxst.net [89.145.100.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 341527FA6A for ; Mon, 2 Oct 2017 08:56:00 -0400 (EDT) Date: Mon, 2 Oct 2017 13:55:59 +0100 From: tech-lists To: freebsd-virtualization@freebsd.org Subject: Re: bhyve and backed-up dd disk image Message-ID: <20171002125558.GC31340@v007.zyxst.net> Mail-Followup-To: freebsd-virtualization@freebsd.org References: <20170929143714.GB87668@v007.zyxst.net> <898c695c-f5fc-1e1e-a36f-ac8c6e72f787@freebsd.org> <20171001192420.GA31340@v007.zyxst.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20171001192420.GA31340@v007.zyxst.net> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Oct 2017 12:56:03 -0000 Hi, I should have mentioned at the start - the disk image system ran ZFS as does the freebsd host. I tried to boot the image like this: sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 4096M -t tap0 -d disk.img diskimage It loads the spash screen and tries to boot but then drops me to the mountroot prompt after a screen or so of output: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Trying to mount root from zfs:zroot/ROOT/default []... Mounting from zfs:zroot/ROOT/default failed with error 5. Loader variables: vfs.root.mountfrom=zfs:zroot/ROOT/default Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> ? List of GEOM managed disk devices: gpt/zfs0 gpt/swap0 gpt/gptboot0 vtbd0p3 vtbd0p2 vtbd0p1 vtbd0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< I've tried various combinations for mountroot but I have no idea how to make it see zfs:zroot/ROOT/default which is what it was on the machine I got the image from. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> mountroot> zfs:gpt/zfs0 Trying to mount root from zfs:gpt/zfs0 []... Solaris: NOTICE: Cannot find the pool label for 'gpt' Mounting from zfs:gpt/zfs0 failed with error 5. mountroot> zfs:gpt/gptboot0 Trying to mount root from zfs:gpt/gptboot0 []... Mounting from zfs:gpt/gptboot0 failed with error 2: unknown file system. mountroot> zfs:zroot/gptboot0 Trying to mount root from zfs:zroot/gptboot0 []... Mounting from zfs:zroot/gptboot0 failed with error 5. mountroot> zfs:zroot/ROOT Trying to mount root from zfs:zroot/ROOT []... Mounting from zfs:zroot/ROOT failed with error 5. mountroot> ? List of GEOM managed disk devices: gpt/zfs0 gpt/swap0 gpt/gptboot0 vtbd0p3 vtbd0p2 vtbd0p1 vtbd0 mountroot> zfs:/zfs0 Trying to mount root from zfs:/zfs0 []... Solaris: NOTICE: Cannot find the pool label for '' Mounting from zfs:/zfs0 failed with error 5. mountroot> zfs:zroot/gpt/zfs0 Trying to mount root from zfs:zroot/gpt/zfs0 []... Mounting from zfs:zroot/gpt/zfs0 failed with error 2: unknown file system. mountroot> zfs:zroot/zfs0 Trying to mount root from zfs:zroot/zfs0 []... Mounting from zfs:zroot/zfs0 failed with error 5. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Please can anyone advise how to make the image boot? many thanks, -- J.