From owner-freebsd-current@freebsd.org Sun Jul 9 15:58:15 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 5C9B9D8DC3A for ; Sun, 9 Jul 2017 15:58:15 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5h.cmail.yandex.net (forward5h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::15]) (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 0F83C3EFF; Sun, 9 Jul 2017 15:58:15 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward5h.cmail.yandex.net (Yandex) with ESMTP id 2826620C65; Sun, 9 Jul 2017 18:58:11 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 747BE1300AB3; Sun, 9 Jul 2017 18:58:09 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 8tkDj9RiOl-w9Ba9qDx; Sun, 09 Jul 2017 18:58:09 +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=1499615889; bh=QqTEjGuqWuX/MH362vlDkKzIK7R+c/26GLvuzJ8iWD4=; h=Subject:From:To:Cc:References:Message-ID:Date:In-Reply-To; b=gcAD//QwAejxMTbq1VyFm1H3vob9gX8WYyRWEpCK776/ONydj7BTBOuBDcLk9rFAp P9nDqxyUykCah4d5WUcKHFZAnrMNS5wsu6I6JkyEcAqRbPPV+y2aC+/V5tRmgeHByz F69W72unyBpz91XW2Fs8B9xPSwqC8PYeCsFzNkAY= Authentication-Results: smtp1o.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 From: Boris Samorodov To: Benjamin Kaduk Cc: freebsd-current@FreeBSD.org References: <20170709153718.GM80947@kduck.kaduk.org> <0d526def-9e14-078a-5933-ab97cd643e8c@passap.ru> Message-ID: <8ac4e8a3-35c9-0054-0e5f-c663b80fd97b@passap.ru> Date: Sun, 9 Jul 2017 18:58:09 +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: <0d526def-9e14-078a-5933-ab97cd643e8c@passap.ru> 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:58:15 -0000 09.07.2017 18:48, Boris Samorodov пишет: > 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. ----- % sudo mdconfig -f quest.img mdo0 % gpart show md0 => 40 16777136 md0 GPT (8.0G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-swap (2.0G) 4196352 12578816 3 freebsd-zfs (6.0G) 16775168 2008 - free - (1.0M) ----- So, that seems the same bug as at my previous email: https://lists.freebsd.org/pipermail/freebsd-current/2017-July/066514.html -- WBR, bsam