From owner-freebsd-questions@freebsd.org  Fri Mar 15 15:55:05 2019
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66F351509A44
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Fri, 15 Mar 2019 15:55:05 +0000 (UTC)
 (envelope-from byrnejb@harte-lyne.ca)
Received: from mx32.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mx32.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id C2FC96DF03
 for <freebsd-questions@freebsd.org>; Fri, 15 Mar 2019 15:54:54 +0000 (UTC)
 (envelope-from byrnejb@harte-lyne.ca)
Received: from mx32.harte-lyne.ca (unknown [127.0.32.1])
 by mx32.harte-lyne.ca (Postfix) with ESMTP id 880821068D
 for <freebsd-questions@freebsd.org>; Fri, 15 Mar 2019 11:54:48 -0400 (EDT)
X-Virus-Scanned: amavisd-new at harte-lyne.ca
Received: from mx32.harte-lyne.ca ([127.0.32.1])
 by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new,
 port 10024)
 with ESMTP id boESkkv3cnDJ for <freebsd-questions@freebsd.org>;
 Fri, 15 Mar 2019 11:54:46 -0400 (EDT)
Received: from webmail.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 88DAB10680
 for <freebsd-questions@freebsd.org>; Fri, 15 Mar 2019 11:54:46 -0400 (EDT)
Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll)
 by webmail.harte-lyne.ca with HTTP; Fri, 15 Mar 2019 11:54:46 -0400
Message-ID: <c4abd7c3ce8f6b211f247ac1d0864148.squirrel@webmail.harte-lyne.ca>
Date: Fri, 15 Mar 2019 11:54:46 -0400
Subject: centos6 on byhive freebsd-11.1
From: "James B. Byrne" <byrnejb@harte-lyne.ca>
To: freebsd-questions@freebsd.org
Reply-To: byrnejb@harte-lyne.ca
User-Agent: SquirrelMail/1.4.23 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Rspamd-Queue-Id: C2FC96DF03
X-Spamd-Bar: --------
X-Spamd-Result: default: False [-8.48 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 HAS_REPLYTO(0.00)[byrnejb@harte-lyne.ca];
 RBL_COMPOSITE_RCVD_IN_DNSWL_MED_DWL_DNSWL_LOW(0.00)[];
 R_SPF_ALLOW(-0.20)[+ip4:216.185.71.0/26]; TO_DN_NONE(0.00)[];
 RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; REPLYTO_ADDR_EQ_FROM(0.00)[];
 DKIM_TRACE(0.00)[harte-lyne.ca:+];
 RCVD_IN_DNSWL_MED(-0.20)[32.71.185.216.list.dnswl.org : 127.0.4.2];
 HAS_X_PRIO_THREE(0.00)[3];
 MX_GOOD(-0.01)[mx32.harte-lyne.ca,mx31.harte-lyne.ca,mx132.harte-lyne.ca];
 DMARC_POLICY_ALLOW(-0.50)[harte-lyne.ca,quarantine];
 NEURAL_HAM_SHORT(-0.98)[-0.984,0]; FROM_EQ_ENVFROM(0.00)[];
 MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[];
 ASN(0.00)[asn:12021, ipnet:216.185.64.0/20, country:CA];
 IP_SCORE(-3.78)[ip: (-9.91), ipnet: 216.185.64.0/20(-4.95), asn: 12021(-3.96),
 country: CA(-0.09)]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 R_DKIM_ALLOW(-0.20)[harte-lyne.ca:s=dkim_hll];
 RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0];
 MIME_GOOD(-0.10)[text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org];
 RCPT_COUNT_ONE(0.00)[1];
 DWL_DNSWL_LOW(0.00)[harte-lyne.ca.dwl.dnswl.org : 127.0.4.1]
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Mar 2019 15:55:05 -0000

I wish to install a CentOS-6 guest on a FreeBSd-11.1 host using BHyve.

I have configured the template file as follows:

loader="grub"
cpu=2
memory=4G
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
grub_install0="linux /isolinux/vmlinuz"
grub_install1="initrd /isolinux/initrd.img"
grub_run0="linux /vmlinuz-2.6.32-573.el6.x86_64
root=/dev/mapper/VolGroup-lv_root"
grub_run1="initrd /initramfs-2.6.32-573.el6.x86_64.img"

The ISO image is /zroot/vm/.iso/CentOS-6.10-x86_64-minimal.iso

The command to vm used to create the guest is:

vm create -s 100G -t centos6-2x4 inet09 &&  vm install inet09
CentOS-6.10-x86_64-minimal.iso


When I start the vm I see this:

NAME            DATASTORE       LOADER      CPU    MEMORY    VNC      
           AUTOSTART    STATE
inet09          default         grub        2      4G        -        
           No           Bootloader (73220)


When I connect to the console then I see this:

  Booting `inet09 (bhyve run)'

error: disk `hd0,1' not found.
error: you need to load the kernel first.

Press any key to continue...

Which eventually turns into this:

                             GNU GRUB  version 2.00

 +------------------------------------------------------------------+
 |inet09 (bhyve run)                                                |
 |                                                                  |
. . .
 |                                                                  |
 +------------------------------------------------------------------+

      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS, `e' to edit the commands
      before booting or `c' for a command-line.

Selecting the only entry highlighted gives the initial error message. 
Dropping into the grub shell I see this:

grub> ls
(hd0) (host)
grub> ls hd0
error: disk `hd0,1' not found.

At this point I am at a loss as to how to proceed.  What do I do next
to get CentOS-6 to boot for initial configuration?


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3