Re: bhyve graphics support
>Hello, > > As far as I know UEFI supports ahci-* boot devices only. For the basic > > UEFI support without GOP the AHCI devices needed to be mapped on slot 3 > > and 4. I don't know if that's still the case. > > Depends on the o/s being booted - if it needs legacy interrupt > support, the only available slots with routing set up are 3/4/5/6. > > UEFI operates in polled-mode so it has no constraints on it's own. Ah okay. That's good to know. At least for the Windows 2016 case. > > I've got working VNC access to a FreeBSD 10.3 VM. My Windows 7 install > > disc starts up, but the mouse is not working. Keystrokes through VNC > > give "atkbd data buffer full" errors. I'll open a new thread for that > > if I can't figure it out. > > XHCI isn't in Windows7 so you can just remove that config line, > pushing mouse input through the PS2 mouse. That was a little bit strange, it seemed like the emulated ps/2 devices just wouldn't work on a Win 7 VM. The "atkbd data buffer full" may be an indication for not delivered interrupts or something like that. After I've rebooted the host things suddenly started to work. Maybe some kind of system inconsistency. It was some 11-CURRENT with about 4 weeks uptime. It may be a good idea to add a note to the Windows installation guide at https://people.freebsd.org/~grehan/bhyve_uefi/windows_install.txt that Window 7 requieres AHCI disks with a blocksize if 512 bytes. Otherwise the installation will fail with "Windows Setup could not configure Windows on this computer?s hardware" and Windows Update will bail out with error 0xc8000247. Regards, Yamagi -- Homepage: www.yamagi.org<http://www.yamagi.org> XMPP: yam...@yamagi.org GnuPG/GPG: 0xEFBCCBCB ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org" Hi Peter, I've been looking forward to this feature and having a graphical console in Windows for something, thank you for your effort. I'm currently using Bhyve on Freenas 9.10 ( FreeBSD 10.3). I've built from source in FreeBSD 11 r301289 and copied the Bhyve binary over. There were a few other hoops to jump through, but I can now launch Bhyve with the GOP UEFI binary. If I execute Bhyve without the fbuf device, Bhyve runs and Windows boots normally. If I include the fbuf, Bhyve returns without error, but does not run. If I include the XHCI tablet backend, again Bhyve executes and Windows boots as normal. Am I missing something that is required by fbuf outside of the Bhyve binary? Regards James Lodge ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: a bhyve and Windows Server 2012R2 story
I've booted my first Windows Server 2012R2 VM in bhyve. It took about 1 day's setup but I finally have it working. My notes below detail a couple pitfalls and things which I did differently than described in online references I used. The further I progressed in this, the more I realized that the directions I started from are based on directions from other places on the net. Started here: https://jameslodge.com/freebsd-bhyve-hypervisor-running-windows-server-2012-r2-standard/ Discovered this: https://people.freebsd.org/~grehan/bhyve_uefi/windows_install.txt And this: https://people.freebsd.org/~grehan/bhyve_uefi/windows_iso_repack.txt Finally, saw this: https://wiki.freebsd.org/bhyve/Windows Anyways, my machine is TRUEOS 11.0-CURRENTMAY2016 [root@true11] ~# uname -a FreeBSD true11 11.0-CURRENTMAY2016 FreeBSD 11.0-CURRENTMAY2016 #19 5bab0d2(master): Fri May 6 17:56:25 UTC 2016 root@devastator:/usr/obj/usr/src/sys/GENERIC amd64 CPU is AMD 6366 HE Motherboard is SuperMicro H8DGU-F In the guide, the p7zip-9.38.1_2 package is used. Here is the latest version that I installed: [root@true11] /mnt/vm0/ds0/iso# pkg info | grep 7z p7zip-15.14File archiver with high compression ratio Unfortunately, it seems this version of 7z was not able to extract the UDF ISO correctly. Also, the version on this TrueOS11 machine required a different syntax to specify the output folder, compared to the syntax shown in the link above. Many error messages have been omitted, but here is basically what happened: [root@true11] /mnt/vm0/ds0/iso# //usr/local/bin/7z x msdn/en_windows_server_2012_r2_with_update_x64_dvd_6052708.iso -o{win2012iso} ERROR: Data Error : support/logging/setupcletw.dll ERROR: Data Error : support/logging/setupetw.dll ERROR: Data Error : support/logging/setupugcetw.dll ERROR: Data Error : support/logging/sysprepetw.dll ERROR: Data Error : support/logging/windeployetw.dll ERROR: Data Error : support/logging/winsetupetw.dll ERROR: Data Error : support/samples/headlessunattend.xml Sub items Errors: 2075 Archives with Errors: 1 Open Errors: 1 Sub items Errors: 2075 ^ this is the output For each of the files that "ERROR: Data Error" was shown, their z7 extracted contents were 0 bytes in size. Here is an example of the last file's word count: [root@true11] /mnt/vm0/ds0/iso# wc win2012iso/support/samples/headlessunattend.xml 0 0 0 win2012iso/support/samples/headlessunattend.xml I decided to try extraction on Windows using graphical 7zip. The version my computer had installed was 15.06. It worked. Here is the word count for the same file, computed in Cygwin: ejr@win7box1 ~ $ wc /cygdrive/c/Users/ejr/Downloads/Win2012R2/support/samples/headlessunattend.xml 108 301 6475 /cygdrive/c/Users/ejr/Downloads/Win2012R2/support/samples/headlessunattend.xml I also added NetKVM drivers from this version virtio-win-0.1.102.iso, not virtio-win-0.1.96.iso as was specified in the guide. After editing the set files on my Windows machine according to the guide, I transferred the files back to my TrueOS 11 machine using smbclient. The mkisofs command to create the new ISO worked flawlessly. I decided to use the 2016 version of the UEFI loader: https://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_20160526.fd Here is the command I used to boot the VM: bhyve \ -c 1 \ -s 0,hostbridge \ -s 3,ahci-hd,/dev/zvol/vm0/ds0/test/w2012R2-0/disk0 \ -s 4,ahci-cd,/mnt/vm0/ds0/iso/Win2012R2.iso \ -s 10,virtio-net,tap0 \ -s 31,lpc -l com1,/dev/nmdm0A \ -l bootrom,/mnt/vm0/ds0/test/w2012R2-0/BHYVE_UEFI_20160526.fd \ -m 2G -H \ -w w2012R2-0 My VM had a problem. It did boot and the SAC channels did start - but somewhere after WIMApplyImage message was displayed in the SACSetupAct - the VM would hang and top would show the bhyve process at 99% WCPU. I destroyed the VM after it hanged like this for 1 hour. It took some guessing, but eventually I recalled reading somewhere - possibly on a KVM/QEMU/Xen wiki page - that IOMMU is needed for more than 1 core. I suspected that this machine's IOMMU was disabled because I've set the SuperMicro BIOS to Optimized Defaults a couple times before and noticed that IOMMU would get turned off. I couldn't recall if I had re-enabled it. Rather than reboot the machine and set IOMMU to Enabled, I decided to re-launch the bhyve VM with only 1 core. This way I was able to compete the installation. Later, enabling IOMMU and relaunching the VM with 2 cores worked. I had difficulty at first with the network configuration. TrueOS has ipfw enabled and I suspect it was originally blocking my RDP traffic. Also, I did not have any successful network connections before I set and loaded what's described in 21.7.7 Persistent Configuration: https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html At first, I attempted to RDP to an IP I had assigned from the SAC channel using the i <#>command. This never worked and I am
Re: does FreeBSD 10.3 bhyve support windows guests?
> On 28 Apr 2016, at 09:14, Yamagi Burmeisterwrote: > > It was merged to 10.2-STABLE in r295124 and was releases as part of > FreeBSD 10.3-RELEASE. > > On Wed, 27 Apr 2016 09:33:40 -0400 > Aryeh Friedman wrote: > >> Or is this support only in -CURRENT? >> >> -- >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> ___ >> freebsd-virtualization@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >> "freebsd-virtualization-unsubscr...@freebsd.org" > > > -- > Homepage: www.yamagi.org > XMPP: yam...@yamagi.org > GnuPG/GPG: 0xEFBCCBCB > ___ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscr...@freebsd.org" Not self promoting but I wrote this blog post that might help https://jameslodge.com/freebsd-bhyve-hypervisor-running-windows-server-2012-r2-standard/ ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Bhyve - EPT/Real Address Mode - Unrestricted Guest
>Hi James, > Can someone please confirm that having EPT support in the CPU is not > necessarily enough to run Bhyve. I have an Intel Xeon L5520 (Nehalem > family) that supports EPT but when trying to run an VM, receive ... > My understanding is that the L5520 does not have support for > "Unrestricted Guest/Real Address Mode" which was introduce with the > release of the Westmere architecture. > Yes, that's correct. > I assume its a non starter without the unrestricted guest feature. > Mostly. You'll only be able to run single vCPU FreeBSD guests since >they boot directly into 64-bit mode: everything else (including multiple >vCPU guests) requires either 16-bit support or 32-bit non-paged >protected mode, both of which are only available on Intel with the >'unrestricted guest' feature. >later, >Peter. Hi Peter, Thank you for the clarification. It looks like I'll need to purchase a couple to Westmere X5650 CPU's that do have the 'unregistered guest' feature as I need to be able to running multi vcpu FreeBSD vms and Windows. Thank you again for your help. Regards James Lodge ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Bhyve - EPT/Real Address Mode - Unrestricted Guest
Hello all, Can someone please confirm that having EPT support in the CPU is not necessarily enough to run Bhyve. I have an Intel Xeon L5520 (Nehalem family) that supports EPT but when trying to run an VM, receive Windows VM UEFI 2 vCPUs requested but only 1 available ROM boot failed: unrestricted guest capability not available Linux MV Grub VM unrestricted guest capability required Error in initializing VM My understanding is that the L5520 does not have support for "Unrestricted Guest/Real Address Mode" which was introduce with the release of the Westmere architecture. I assume its a non starter without the unrestricted guest feature. Running FreeBSD 11.0-CURRENT r294227 Regards James ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: FreeBSD 11 - Bhyve - Spoof MAC address
> >> On Jan 4, 2016, at 9:32 AM, James Lodge <ja...@lodge.me.uk> wrote: >> >> Hi All, >> >> >> I'm just getting started with Bhyve. So far everything is working as >> expected. My original goal was to be running Ubuntu 12.04 i386 as I need it >> for a particular project. One issue I'm having is MAC address spoofing. I'm >> aware I can change the MAC address within Ubuntu but I'd like to configure >> the tap interface from the host which should be possible according to man >> pages. >> >> >> Bhyve Man Page: https://www.freebsd.org/cgi/man.cgi?query=bhyve=8 >> >> >> >> The issue I have is that by setting the below, the vm boots, I can console >> via null modem, but there is no eth0 interface, only the loopback. Removing >> the static MAC, reboot and everything is present and correct. >> >> >> -s 2:0,virtio-net,tap0,mac=xx:xx:xx:xx:xx:xx > > It looks like you are setting the MAC correctly on your bhyve command line > and bhyve is running; so far so good. Is it possible that Ubuntu has a > different MAC saved for its idea of eth0 and is therefore not doing what you > expect? (Perhaps udev is renaming the device?) > > Can you run these two commands within the VM and post the output? > ip link show > lspci > > > JN > > ___ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscr...@freebsd.org" > > >That is the most likely scenario > >try 'ifconfig -a' and see if there is an eth1 with no configuration > >-- >Allan Jude >___ >freebsd-virtualization@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >To unsubscribe, send any mail to >"freebsd-virtualization-unsubscr...@freebsd.org" Thanks Guys Exactly that. By spoofing the MAC Ubuntu populated another interface 'eth1' hidden (surprisingly to myself) as it had no L3 config in /etc/network/interface and administratively down, only for eth0. Thanks also to pr1ntf in the Bhyve channel. Regards James ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
FreeBSD 11 - Bhyve - Spoof MAC address
Hi All, I'm just getting started with Bhyve. So far everything is working as expected. My original goal was to be running Ubuntu 12.04 i386 as I need it for a particular project. One issue I'm having is MAC address spoofing. I'm aware I can change the MAC address within Ubuntu but I'd like to configure the tap interface from the host which should be possible according to man pages. Bhyve Man Page: https://www.freebsd.org/cgi/man.cgi?query=bhyve=8 The issue I have is that by setting the below, the vm boots, I can console via null modem, but there is no eth0 interface, only the loopback. Removing the static MAC, reboot and everything is present and correct. -s 2:0,virtio-net,tap0,mac=xx:xx:xx:xx:xx:xx I've gone through dmesg in Ubuntu, but see nothing obvious. Any guidance gratefully received. Regards James ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"