Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 2013 11:32:18 -0800
From:      Peter Grehan <grehan@freebsd.org>
To:        Matt Donovan <kitchetech@gmail.com>, freebsd-virtualization@freebsd.org
Subject:   Re: Bhyve not able to get CentOS to boot
Message-ID:  <52A61AC2.8050308@freebsd.org>
In-Reply-To: <CAD-N7ODczMCfsMXT1tNE3vbdY6NT3yN-jCgLmG%2Bg=smz9w8QjQ@mail.gmail.com>
References:  <CAD-N7OA4GZ9fTxvM-39eBx8WB7nP=RFBk2KObKz25s9RD%2BgBKQ@mail.gmail.com> <CAD-N7ODTVRV72Zxktq=QGGzKPVDDo8dwMDT1O0ab1yosD96vJg@mail.gmail.com> <CAD-N7ODczMCfsMXT1tNE3vbdY6NT3yN-jCgLmG%2Bg=smz9w8QjQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Matt,

> Ok the following is what I do get/
>
> grub> linux (hd0,msdos1)/vmlinuz-2.6.32-431.el6.x86_64 ro
> root=/dev/mapper/vg_server-lv_root rd_LVM_LV=vg_server/lv_swap rd_NO_L
> UKS LANG=en_US.UTF-8 rd_NO_MD  KEYTABLE=us SYSFONT=latarcyrheb-sun16
> rd_LVM_LV=vg_server/lv_root console=ttyS0 rd_NO_DM
> grub> initrd (hd0,msdos1)/initramfs-2.6.32-431.el6.x86_64.img
> grub> boot
> vps#

  That looks good. The "boot" command doesn't actually start the VM - it 
finalizes setting register state so that usr/sbin/bhyve can then run it. 
The bhyve.org script hides that from you.

> I am not sure what I am doing wrong exactly
>
> /usr/local/sbin/grub-bhyve -r hd0 -m vm/vm0/device.map -M 1024 vm0
>
> grub> ls
> (cd0) (hd0) (hd0,msdos2) (hd0,msdos1) (host) (lvm/vg_server-lv_swap)
> (lvm/vg_server-lv_home) (lvm/vg_server-lv_root)
> grub>

  Using "-r hd0,msdos1" will allow "ls /" to work, though the 
(hd0,msdos1) qualifier in the first example does the right thing.

later,

Peter.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52A61AC2.8050308>