Directions Faulty.

Justin Holcomb me at justinholcomb.me
Mon Sep 19 23:29:01 UTC 2016


   
>On Mon, Sep 19, 2016 at 11:27 AM, Allan Jude <allanjude at freebsd.org> wrote:
>
>> On 2016-09-19 02:45, Zaphod Beeblebrox wrote:
>> >> ... which fails because the cd image doesn't contain /boot/grub.  I'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.  I've even mounted the cd9660 filesystem and wandered around
>reading the files.  I have tried the kernel and initrd in /isolinux and in
>/live ... they fail to boot with something about "/sbin/init missing" while
>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/debian-8.5.0-amd64-netinst.iso  -s 4,ahci-hd,/dev/zvol/pool/bhyve/guests/debian8/disk0 -s 5,virtio-net,tap0  -l com1,/dev/nmdm0A   -s 31,lpc debian8

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/nmdm0A -M 1G debian8

LVM installation (Because the grub folder is not in the standard '/boot/grub' 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/bhyve/guests/debian8/disk0  -s 4,virtio-net,tap0  -l com1,/dev/nmdm0A -s 31,lpc debian8


-Justin D Holcomb





    


More information about the freebsd-virtualization mailing list