From owner-freebsd-current@freebsd.org Sun Jul 9 15:48:35 2017 Return-Path: Delivered-To: freebsd-current@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 93B7ED8D8A2 for ; Sun, 9 Jul 2017 15:48:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward2m.cmail.yandex.net (forward2m.cmail.yandex.net [IPv6:2a02:6b8:b030::19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 500E43A83; Sun, 9 Jul 2017 15:48:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp1m.mail.yandex.net (smtp1m.mail.yandex.net [IPv6:2a02:6b8:0:2519::121]) by forward2m.cmail.yandex.net (Yandex) with ESMTP id E5E14210C6; Sun, 9 Jul 2017 18:48:23 +0300 (MSK) Received: from smtp1m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1m.mail.yandex.net (Yandex) with ESMTP id 582B363C0491; Sun, 9 Jul 2017 18:48:22 +0300 (MSK) Received: by smtp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sz3Cz3vANd-mMnacc1L; Sun, 09 Jul 2017 18:48:22 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1499615302; bh=uAzPzYEs+N9VdVrizYM+OKC5Kwf/LJSILuwqXBxEGgg=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=VI2+75NfhUOjChC4H5HSKXpW1+S345+JCa18LlWWLkzImvriSQiUbKBFWth9CGfph SQzCt6ZwGet/nUmc6nBau36zwqZm5FIIdirMCe0xDYHeCMC95J8ocA91sgk7D2BAyE 0NvYImuxeyiv16BnIYccB92zfVhkotGe7Ec0O+F0= Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: [bhyve] FreeBSD guest, Handbook, vmrun.sh To: Benjamin Kaduk Cc: freebsd-current@FreeBSD.org References: <20170709153718.GM80947@kduck.kaduk.org> From: Boris Samorodov Message-ID: <0d526def-9e14-078a-5933-ab97cd643e8c@passap.ru> Date: Sun, 9 Jul 2017 18:48:22 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170709153718.GM80947@kduck.kaduk.org> Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2017 15:48:35 -0000 09.07.2017 18:37, Benjamin Kaduk пишет: > 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 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?) Yes, I used AutoZFS installer function to install FreeBSD. -- WBR, bsam