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

_______________________________________________
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"

Reply via email to