Re: Booting a disk image with GRUB in BHyve?

2013-12-24 Thread Michael Dexter
On 12/23/13 10:18 PM, Peter Grehan wrote:
>> How can I boot something which uses GRUB bootloader in BHyve?
> 
>  There is a user-space port of grub2 that allows a number of Linux
> distros to boot (sysutils/grub2-bhyve). However, for Linux distros such
> as rhel/centos 6.* that use grub-1, it's somewhat of a manual process.

I have made some significant improvements to my "bhyve-script" at:

http://bhyve.org/bhyve-script.tar

It now automatically retrieves and installs Ubuntu and Debian plus
FreeNAS with one manual step and pfSense with a few manual steps.

It also supports nmdm, lpc and tmux consoles/multiplexing.

Michael
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Booting a disk image with GRUB in BHyve?

2013-12-23 Thread Peter Grehan

Hi Craig,

(4)  Tried vmrun.sh:


 vmrun.sh is FreeBSD-only.


How can I boot something which uses GRUB bootloader in BHyve?


 There is a user-space port of grub2 that allows a number of Linux 
distros to boot (sysutils/grub2-bhyve). However, for Linux distros such 
as rhel/centos 6.* that use grub-1, it's somewhat of a manual process.


 Illumos/SmartOS is a different kettle of fish. It's grub-1, but the 
the o/s itself presents a number of issues that are still being worked 
through (BIOS calls, timer modes/calibration etc).


later,

Peter.

___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Booting a disk image with GRUB in BHyve?

2013-12-23 Thread Craig Rodrigues
Hi,

I tried the following:

(1)   Downloaded SmartOS USB image from:
http://wiki.smartos.org/display/DOC/Download+SmartOS

(2)  Uncompressed the bz2 file.

(3)  Ran "file" on the binary:

#  file smartos-latest-USB.img
smartos-latest-USB.img: x86 boot sector; GRand Unified Bootloader, stage1
version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1:
ID=0xc, starthead 1, startsector 63, 3903732 sectors, extended partition
table (last)\011, code offset 0x48

(4)  Tried vmrun.sh:

sh /usr/share/examples/bhyve/vmrun.sh -d ./smartos-latest-USB.img -m 4G
smartos_vm1

I got this error:

=
Launching virtual machine "smartos_vm1" ...
Consoles: userboot

FreeBSD/amd64 User boot, Revision 1.1
(rodrigc@pcbsd-4708, Mon Oct 14 14:36:53 PDT 2013)
\
can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK


How can I boot something which uses GRUB bootloader in BHyve?

Thanks.


--
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"