From owner-freebsd-virtualization@freebsd.org Mon Sep 19 23:29:01 2016 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 16993BE13E9 for ; Mon, 19 Sep 2016 23:29:01 +0000 (UTC) (envelope-from me@justinholcomb.me) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0073.outbound.protection.outlook.com [104.47.41.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF051229 for ; Mon, 19 Sep 2016 23:28:59 +0000 (UTC) (envelope-from me@justinholcomb.me) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG622321.onmicrosoft.com; s=selector1-justinholcomb-me; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/3RynUFeUdxWMwM85QWsWjmdbthVIyMDFXPwyhaCqPc=; b=PxzkvXvtnMuN5xASVUzxfb0Bi/bAN9BWxsuJtu9YApqS3Gmwb+IoNVgKRXJdLk+w3eGOOgR7IwpD9HXeUsRNVVYWPLC7EmWrCgpwmuuHuBeHsRx2VIhSALevVueAtlTckzStx1LzKM0sLS3vYgp1SuvVnxH36D2ihqSWJjP1dtQ= Received: from CY4PR12MB1447.namprd12.prod.outlook.com (10.172.71.139) by CY4PR12MB1447.namprd12.prod.outlook.com (10.172.71.139) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.10; Mon, 19 Sep 2016 16:55:31 +0000 Received: from CY4PR12MB1447.namprd12.prod.outlook.com ([10.172.71.139]) by CY4PR12MB1447.namprd12.prod.outlook.com ([10.172.71.139]) with mapi id 15.01.0619.016; Mon, 19 Sep 2016 16:55:31 +0000 From: Justin Holcomb To: Zaphod Beeblebrox CC: "freebsd-virtualization@freebsd.org" Subject: Re: Directions Faulty. Thread-Topic: Directions Faulty. Thread-Index: AQHSEjln5H08/7IukU25cZMIAPia96CAXaGAgAAApoCAAJHsAIAADkmAgAAJR6Y= Date: Mon, 19 Sep 2016 16:55:30 +0000 Message-ID: References: <3a5ded2c-4add-4fda-1168-491b30148768@freebsd.org>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=me@justinholcomb.me; x-originating-ip: [25.163.250.4] x-ms-office365-filtering-correlation-id: 5c7b06b8-6379-4e67-0482-08d3e0adc42c x-microsoft-exchange-diagnostics: 1; CY4PR12MB1447; 6:9J9bmpfBZhBJkua4B+Wr0N1d8eJ8K7ieFwB2U72hBPz6lBvBL726jRQifY1k32RVpgxPp5R0ohF5TjXATbZIkjKL93Ey07ubYpwVqFa4nUZD+xrHQHkiRRq0nFvxxEW+Tf+GdSxpNVhjp++lYmykI6Je5GCMJxO0tABulH/HNpPjhJ49PN5Z961v9OZCsckjKLmxQwcYezJ1oVSJs/plFGsTsvBGnIv2elq2vAAFNSejmradWGvzgUt7voJW1/wHcbhKn8Zz0Vlr2LZ5CeeZHNadx2WS8qBiYYiBnY2M09x8LmNR0KFZ1o1rNRnoUaEM; 5:GDjIH1Oap/Cp2NHXFPT1jvVPVdmkcGtqIYJ0XA7tJqe6js0gaglC2QZOWOC36x549J/+edAMQ+TGTK8g+KaBd+k5l52sqMY/nK7ZQsLl4+xsbZhP21D33+hfb53Yy9Cn9MtpWY43XpVW6GXnWupckQ==; 24:BzLgVzML+e7JDwscZG0tqSUYiIzKMFY1pmUVc0mXVoJ85oGDPvtOgIalnLl96/q74DmdNSuCQ//8Y2Y8iv6jt6d0gSvgXI/B2ACxvks1gsE=; 7:di1+eqXMtkH35ypKTUtmKGivaSmMDexAXyuG02t08x9osHguspKlY3hnwNV5MmDYrwsh9zc9CMJaL9jzPM787ojRDsPlfcZK3JDPXjPRKsDW+ir9t8nD9NlEKYMpyk+2xHI03whZmYblDchQItSzrMGHBcot5VmBzphV+A63F2iuZOReid1+wvd0cT4cKHGypjRTIENk1y9cT6J3YFVfN//1i0jNpa6wH2mhCbOQu/D+ZPKNjWlc6fRvgo7ojelsU5FTOpzw7Agn9VSzkqjB7GPp4brtHTGiJpzaqLN17Xh5NCoUHSWgapvaAEmFBGPh x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR12MB1447; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6042046)(6043046); SRVR:CY4PR12MB1447; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1447; x-forefront-prvs: 0070A8666B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(377454003)(189002)(20264003)(24454002)(199003)(377424004)(305945005)(586003)(74316002)(7116003)(8676002)(81156014)(81166006)(87936001)(99286002)(106116001)(7846002)(8936002)(86362001)(575784001)(105586002)(106356001)(3846002)(102836003)(6116002)(5660300001)(2906002)(7696004)(19580395003)(5002640100001)(11100500001)(4326007)(19580405001)(76576001)(3660700001)(93886004)(33656002)(9686002)(2900100001)(3280700002)(92566002)(7736002)(77096005)(3480700004)(54356999)(1411001)(50986999)(76176999)(68736007)(74482002)(189998001)(10400500002)(122556002)(97736004)(66066001)(2950100001)(110136003)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1447; H:CY4PR12MB1447.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: justinholcomb.me does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: justinholcomb.me X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2016 16:55:30.9941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c7d5abe1-1510-4ced-8e7f-cfc5eb7f6997 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1447 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, 19 Sep 2016 23:29:01 -0000 =A0 =A0 >On Mon, Sep 19, 2016 at 11:27 AM, Allan Jude wrote= : > >> On 2016-09-19 02:45, Zaphod Beeblebrox wrote: >> >> ... which fails because the cd image doesn't contain /boot/grub. =A0I= 've >> >> tried directing it with -d /isolinux and -g /isolinux/isolinux.cfg ..= . >> >> but the magic isn't there. >> >> >> >> Frustration. >> >> The earlier instructions for doing the install from the CD, include >> instructions on using grubs interactive interface to poke around and >> find the initramfs and kernel and load them manually. > > >Obviously, since I talked about what was on the disk, I was doing that. > >The problems are that there are several vmlinuz and several initrd.img on >the CD. =A0I've even mounted the cd9660 filesystem and wandered around >reading the files. =A0I have tried the kernel and initrd in /isolinux and = in >/live ... they fail to boot with something about "/sbin/init missing" whil= e >iniitrd is still mounted. > >I gather that some set of kernel boot options is what I'm missing, but I >haven't been able to find those yet. Zaphod: Try these commands with the following file contents: Installation: # cat device.map (hd0) /dev/zvol/pool/bhyve/guests/debian8/disk0 (cd0) /folder/path/to/debian-8.5.0-amd64-netinst.iso # grub-bhyve -m /folder/path/to/debian8/device.map -r cd0 -c /dev/nmdm0A -M= 1G debian8 # bhyve -A -H -P -c 2 -m 1G -s 0,hostbridge -s 3,ahci-cd,/folder/path/to/de= bian-8.5.0-amd64-netinst.iso =A0-s 4,ahci-hd,/dev/zvol/pool/bhyve/guests/de= bian8/disk0 -s 5,virtio-net,tap0 =A0-l com1,/dev/nmdm0A =A0 -s 31,lpc debia= n8 After installation: # cat device.map (hd0) /dev/zvol/pool/bhyve/guests/debian8/disk0 Non-LVM installation: # grub-bhyve -m /folder/path/to/debian8/device.map -r hd0,msdos1 -c /dev/nm= dm0A -M 1G debian8 LVM installation (Because the grub folder is not in the standard '/boot/gru= b' but '/grub' instead.): # grub-bhyve -m /folder/path/to/debian8/device.map -r hd0,msdos1 -d /grub -= c /dev/nmdm53A -M 1G debian8 # bhyve -A -H -P -c 2 -m 1G -s 0,hostbridge -s 3,ahci-hd,/dev/zvol/pool/bhy= ve/guests/debian8/disk0 =A0-s 4,virtio-net,tap0 =A0-l com1,/dev/nmdm0A -s 3= 1,lpc debian8 -Justin D Holcomb =