Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 00:50:35 -0800
From:      "Rudy (bulk)" <crapsh@monkeybrains.net>
To:        freebsd-virtualization@freebsd.org
Subject:   SOLVED - Re: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1
Message-ID:  <5304705B.8000901@monkeybrains.net>
In-Reply-To: <53046315.5090804@monkeybrains.net>
References:  <53046315.5090804@monkeybrains.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/18/14, 11:53 PM, Rudy (bulk) wrote:
>
> I am trying this method and can't quite figure out what root device to 
> pass grub.
>
> # Step 0, clear old vm1
> bhyvectl --vm=vm1 --destroy
>
> # Step 1, Launch grub-bhyve and configure grub.
> grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1
>
> # Step 2, type in the following commands
> set root=(hd0,msdos1)
> linux /vmlinuz root=/dev/vda1
> initrd /initrd.img
> boot
>
> # Step 3, launch bhyve
> bhyve -c 2 -m 2048M -A -H -P -s 0:0,amd_hostbridge -s 1:0,lpc -s 
> 2:0,virtio-net,tap0 -s 3:0,virtio-blk,vm1.img -l com1,stdio -W vm1

Getting rid of the W flag fixed my issues.

I have a Ubnutu log-in prompt!


Also, I switched to zvol.
cat device.map
(hd0) /dev/zvol/data/vm1
(cd0) /data/images/vm1/vm1.iso


Here was the installation step:
  bhyvectl --vm=vm1 --destroy
  grub-bhyve -r cd0 -m ./device.map -v -M 2048 vm1
  bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 
2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 
3,ahci-cd,vm1.iso -l com1,stdio -A vm1

And here is how to launch:
  bhyvectl --vm=vm1 --destroy
  grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1
   set root=(hd0,msdos1)
linux /vmlinuz root=/dev/vda1
initrd /initrd.img
boot
bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 
2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 
3,ahci-cd,vm1.iso -l com1,stdio -A vm1




Rudy




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5304705B.8000901>