Of course I do. Check out my first post in this thread.I assume that you know IOHYVE?
https://github.com/pr1ntf/iohyve
Of course I do. Check out my first post in this thread.I assume that you know IOHYVE?
https://github.com/pr1ntf/iohyve
bhyve \
> -c 2 \
> -s 0,hostbridge \
> -s 3,ahci-hd,win.img \
> -s 4,ahci-cd,win_repack.iso \
> -s 10,virtio-net,tap0 \
> -s 31,lpc \
> -l com1,/dev/nmdm0A \
> -l com2,/dev/nmdm1A \
> -l bootrom,BHYVE_UEFI_20151002.fd \
> -m 2G -H -w \
> windows
cu -l /dev/nmdm1A -s 9600
cu -l /dev/nmdm0B -s 9600
just after you run bhyve
Thank you, this was it. My bad for not reading nmdm(4) man page.You need to runcu -l /dev/nmdm0B -s 9600
just after you runbhyve
# vm create -s 30G -t windows winguest
# vm install winguest win_repack.iso
(wait 20-25 minutes while the guest installs and reboots twice - reboots visible in the guest log file /path/to/vm/dir/winguest/vm-bhyve.log)
# vm console winguest
(then type 'i' to get the IP address assigned by DHCP)
pr1ntf I'll happily commit the port when 0.7 is out![]()
Sure!Thank you! I would love to learn about the process during if you don't mind. Best practices and all. I'll ping you when things are baked.![]()
Is it possible with BHYVE to pass just a single USB port or just a single plugged device like with Virtualbox?I'd like to report that Windows 2012 in bhyve(8) works fine, and I was able to pass through USB3 controller to it. My Thinkpad T430 has two USB controllers, so I kept one with FreeBSD, and use another with Windows.
That's definitely a great think which makes me getting rid of VirtualBox.
OK thank you! I'll give it a try... VNC is rather slow as per my experience.If you build the latest bhyve code from the projects/bhyve_graphics svn you can get VNC access to the guest. The graphics performance is nothing spectacular though, it's mainly useful for installation or tasks you can't do via RDP/ssh/whatever.
As mentioned by aragats, you can't pass through individual USB devices at the moment (there was supposed to be a GSOC project for this a few years ago but I have no idea what happened to it). However, most motherboards have more than one USB controller, so it is possible to pass through one of them to the guest. It might just take a bit of trial-and-error to find out which physical ports are on which controller. In aragats case he passed through a USB3 controller, which will have made it simpler if he only had one USB3 controller, as the ports are fairly easy to tell apart.
It is possible to convert a vmdk file into a raw file using the qemu-image tool. I don't know whether this would work with Windows though unless the old hypervisor happened to use the exact same disk emulation as bhyve (AHCI). Windows is funny about moving between different hardware.
My fault, picked up the first google reply, it happened to be qemu....Confession: I have never used QEMU.
...
# ll -h
total 3173988
-rwxr-xr-x 1 root wheel 2.0M Sep 12 01:15 BHYVE_UEFI.fd*
-rw-r--r-- 1 root wheel 3.0G Sep 12 01:27 install.iso
drwxr-xr-x 8 root wheel 512B Sep 12 01:16 iso-win/
-rw-r--r-- 1 root wheel 20G Sep 12 01:28 windows7.img
# bhyve -c 1 -s 0,hostbridge -s 3,ahci-hd,windows7.img -s 4,ahci-cd,install.iso -s 10,virtio-net,tap0 -s 31,lpc -l com1,/dev/nmdm0A -l bootrom,BHYVE_UEFI.fd -m 2G -H -w windows7
# cu -l /dev/nmdm0B -s 9600
Computer is booting, SAC started and initialized.
Use the "ch -?" command for information about using channels.
Use the "?" command for general help.
SAC>
EVENT: The CMD command is now available.
SAC>
-s 7,fbuf,tcp=0.0.0.0:5900,wait -s 8,xhci,tablet
To be honest, if you're running 11-RC2 it will probably be easier to just use a standard windows CD and install via VNC. At least then you can run through the graphical install like normal and see any errors if they come up. With the unattended install you have to get everything just right, then you're flying pretty blind when it actually installs.
To do that you'll want to make sure you have the most recent firmware (I don't know where yours came from). The easiest way these days is to install sysutils/bhyve-firmware which will put it in /usr/local/share/uefi-firmware/.
Then just add a graphics device to bhyve
Code:-s 7,fbuf,tcp=0.0.0.0:5900,wait -s 8,xhci,tablet
Once started you can connect to the FreeBSD's IP address with a VNC client and install the guest.
# bhyve -c 1 -s 7,fbuf,tcp=0.0.0.0:5900,wait -s 8,xhci,tablet -s 0,hostbridge -s 3,ahci-hd,windows7.img -s 4,ahci-cd,MSDN_CD_Win7x64_Ultimate.iso -s 10,virtio-net,tap0 -s 31,lpc -l bootrom,BHYVE_UEFI.fd -m 2G -H -w windows7