Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2017 10:37:18 -0500
From:      Benjamin Kaduk <bjk@FreeBSD.org>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: [bhyve] FreeBSD guest, Handbook, vmrun.sh
Message-ID:  <20170709153718.GM80947@kduck.kaduk.org>
In-Reply-To: <ea2abc9d-0b11-0944-f886-866e56f03663@passap.ru>
References:  <ea2abc9d-0b11-0944-f886-866e56f03663@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 09, 2017 at 01:02:26PM +0300, Boris Samorodov wrote:
> Hi All,
> 
> I try to create a FreeBSD guest as per TH, section "21.7.2. Creating
> a FreeBSD Guest". All is good up until the last command at the section.
> When I try to launch the installed client, I get:
> -----
> # sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d
> guest.img guestname
> Launching virtual machine "guestname" ...
> Installation CDROM image "./release.iso" is not readable
> 
> % uname -a
> FreeBSD latt.bsnet 12.0-CURRENT FreeBSD 12.0-CURRENT #14 r320821: Sun
> Jul  9 07:10:56 MSK 2017
> bsam@builder.bsnet:/usr/obj/usr/src/sys/PKG64X  amd64
> -----
> 
> Is it a bug at vmrun.sh or documentation?

Documentation looks okay, as -I <installer-image> is documented during
the install stage, and is not supposed to be needed during
normal operation.

The quoted error message from vmrun.sh happens when it thinks you
need to install on the given filesystem image
(if [ $force_install -eq 1 -o $need_install -eq 1 ];)
so it might be worth checking that your guest.img contains a valid
FFS filesystem on it.  (Hmm, maybe you used ZFS and vmrun.sh isn't
prepared to handle that?)

-Ben



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170709153718.GM80947>