神刀安全网

Bhyve now with graphics support

bhyve UEFI

The bhyve hypervisor supports Unified Extensible Firmware Interface Graphics Output Protocol or "UEFI-GOP" as of FreeBSD Projects SVN tagr300829

Retrieve and Build the Project Branch and Firmware Binary

svnlite co http://svn.freebsd.org/base/projects/bhyve_graphics  cd bhyve_graphics  make BHYVE_SYSDIR=/usr/src/ -m /usr/src/share/mk  fetch http://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_20160526.fd

Hypervisor, Network and Storage Preparation

Modify to suit your system, particularly with regard to the hardware network device (example is em0):

kldload vmm ifconfig tap0 create up ifconfig bridge0 create up ifconfig bridge0 addm em0 ifconfig bridge0 addm tap0 truncate -s 5G disk.img

Boot a Virtual Machine

./bhyve -c 2 -m 4096 -w -H /         -s 0,hostbridge /         -s 3,ahci-cd,/path/to/uefi-OS-install.iso /         -s 4,ahci-hd,disk.img /         -s 5,virtio-net,tap0 /         -l bootrom,BHYVE_UEFI_20160526.fd /         -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait /         -s 30,xhci,tablet /         -s 31,lpc -l com1,stdio /         vm0

This will create a virtual machine with 4GB of RAM with a display resolution of 800 by 600 that can be accessed via VNC at: 0.0.0.0:5900

The fbuf wait parameter instructs bhyve to only boot upon the initiation of a VNC connection, simplifying the installation of operating systems that require immediate keyboard input. This can be removed for post-installation use.

The xhci,tablet parameter provides precise cursor synchronization, but is not supported by FreeBSD.

Desktop versions of Microsoft Windows require the presence of a CD/DVD device, which can be an empty file created with touch(1) .

bhyveload and sysutils/grub2-bhyve are not required for UEFI.

This has been tested with FreeBSD/UEFI, popular GNU/Linux distributions and various versions of Microsoft Windows Desktop and Server on FreeBSD the 11-CURRENT r300097 snapshot.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Bhyve now with graphics support

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址