Date: Mon, 19 Sep 2016 16:55:30 +0000 From: Justin Holcomb <me@justinholcomb.me> To: Zaphod Beeblebrox <zbeeble@gmail.com> Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: Directions Faulty. Message-ID: <CY4PR12MB14474A42385911075C7653D2A3F40@CY4PR12MB1447.namprd12.prod.outlook.com> In-Reply-To: <CACpH0Mes6wGJDhExXrEJFJBFRW9VY-XdX_fptqfqHQe4NuKeHQ@mail.gmail.com> References: <CACpH0MeR3PFWQmHH8kkKbED%2Bb2vsox9KdxcRRY2uv2hDqzwmUA@mail.gmail.com> <CAD-N7ODwG==3tnACChYy2v2uo1yvsL7yDQb_nQ5xZPioRa5QVw@mail.gmail.com> <CAD-N7ODYFuZLJ8kxbDq0qjvnHK0fMO1-V6qOcGAQcTtN30=VpA@mail.gmail.com> <CAD-N7OB5BxFWJvhzApL5jSz-xukQD4oY9Rit3zcUo3BvoXyVbA@mail.gmail.com> <CACpH0MeBpdHUWk6amE8o5Uq04nN1S9X5z1i3CAqStGU7oBgsQw@mail.gmail.com> <3a5ded2c-4add-4fda-1168-491b30148768@freebsd.org>, <CACpH0Mes6wGJDhExXrEJFJBFRW9VY-XdX_fptqfqHQe4NuKeHQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=A0 =A0 >On Mon, Sep 19, 2016 at 11:27 AM, Allan Jude <allanjude@freebsd.org> 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 =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CY4PR12MB14474A42385911075C7653D2A3F40>