Re: bhyve current windows status

2021-04-08 Thread Peter Grehan
Hi Matt, I'm after some general information on the current status/best practises for Windows on bhyve. Not entirely the correct place for this but then at the moment no-one else seems to really know the answers. Maybe I can help some of the other people who are just as unclear as me on what is

Re: bhyve: regression in virtio-9p option parsing

2021-04-07 Thread Peter Grehan
Hi Roman, diff --git a/usr.sbin/bhyve/pci_virtio_9p.c b/usr.sbin/bhyve/pci_virtio_9p.c index e27159eb22cb..830e13878a71 100644 --- a/usr.sbin/bhyve/pci_virtio_9p.c +++ b/usr.sbin/bhyve/pci_virtio_9p.c @@ -232,7 +232,7 @@ pci_vt9p_notify(void *vsc, struct vqueue_info *vq) static int pci_vt9p_

Re: FreeBSD13/12 oddity

2021-04-02 Thread Peter Grehan
I was testing AlmaLinux on bhyve. > > works on FreeBSD 13> > but is crashes on 12 upon install. I tried on CURRENT and it also works (with UEFI). Were you using UEFI on 12 ? Same options as on 13 ? later, Peter. ___ freebsd-virtualization@freebsd.

Re: Extra dependency of the uefi-edk2-bhyve-csm firmware port

2021-03-17 Thread Peter Grehan
dependency on gcc48 ? PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254257 Being fixed by bcran in https://reviews.freebsd.org/D29254 later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinf

Re: About nested virtualization for bhyve

2021-02-21 Thread Peter Grehan
Hi, Does bhyve support the following schemes? Scheme A: Layer 0 - bhyve on FreeBSD Host Layer 1 - FreeBSD guest Layer 2 - bhyve guest Scheme B: Layer 0 - bhyve on FreeBSD Host Layer 1 - Windows guest Layer 2 - Hyper-V guest ... What about on a bhyve host? For example, any configruation in /

Re: What happened to hw.vmm.topology.cores_per_package?

2021-02-16 Thread Peter Grehan
Hi Patrick, What happened to those tunables? They've been rolled into a per-VM parameter. From the man page: [-c [[cpus=]numcpus][,sockets=n][,cores=n][,threads=n]] ... and there's more description of the '-c' parameter there. https://www.freebsd.org/cgi/man.cgi?query=bhyve&manpath=Fre

Re: bhyve on 14-CURRENT crashes trying to boot Windows 10 20H2 DVD

2021-02-14 Thread Peter Grehan
I've been testing some UEFI firmware changes, but even with the 0.2 > (2014.SP1) port version, I can't boot from the Windows 10 20H2 DVD > without causing bhyve to crash. The console output is: The command line I'm using is: bhyve -AH -s 0:0,hostbridge -s 31:0,lpc -c 1 -m 8G -l No need for

Re: UEFI -l com1, stdio floods console/Windows Server SAC with "rdmsr to register 0x198 on vcpu..."

2021-01-17 Thread Peter Grehan
Can the "rdmsr to register 0x198 on vcpu..." and similar messages on a -l com1,stdio console when using UEFI firmware be redirected or suppressed? The -w flag does not silence them, assuming, perhaps incorrectly, they are unsupported MSRs. If redirected, should these be logged? Please file

Re: [bhyve][arm64] Number of allowed vcpus

2021-01-15 Thread Peter Grehan
Hi Andrei, I've summed up your proposals and sketched and algorithm: N - the number of vcpus from the '-c' parameter X - the number of vcpus from the device tree if there isn't the parameter -> start the vm with X vcpus if there is the parameter --> if N <= X -> start the vm with N parameters

Re: [bhyve][arm64] Number of allowed vcpus

2021-01-14 Thread Peter Grehan
Hi Andrei, While working on enabling multiple virtual cpus for the arm64 virtual machine I used the bhyve's "-c N" parameter to create N cpus (it gets only the cpus, in contrast to the amd64). If N is smaller than the number of cores described in the device tree it will enable only N and if it's

Re: Bhyve office hours

2020-12-16 Thread Peter Grehan
 John Baldwin and myself will be doing a FreeBSD "office hours" streaming this Wednesday, Dec 16, at 1PM PST (21:00 UTC).  All are welcome. There will be some reports on recent work, though much of the session will be an interactive Q&A. Meeting notes and pdfs for the short talks up at h

Bhyve office hours

2020-12-15 Thread Peter Grehan
Hi all, John Baldwin and myself will be doing a FreeBSD "office hours" streaming this Wednesday, Dec 16, at 1PM PST (21:00 UTC). All are welcome. There will be some reports on recent work, though much of the session will be an interactive Q&A. Hope to see you there. https://live.freebs

Re: [arm64][bhyve] Hypervisor implementation proposal

2020-11-19 Thread Peter Grehan
Hi Andrei, I have updated the revision by removing the armv7 support and host platform support. Thanks for the update: that's going to make the review a lot easier. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.fre

Re: [arm64][bhyve] Hypervisor implementation proposal

2020-11-09 Thread Peter Grehan
Hi Andrei, The UPB team made a revision for the bhyve on arm/arm64 on phabricator[1]. Any feedback is greatly appreciated. [1] https://reviews.freebsd.org/D26976 Thanks for putting up the review: that is a sizeable amount of work. I'd suggest removing

Re: HD audio problem on FreeBSD 12.1 bhyve VM

2020-09-28 Thread Peter Grehan
Hi Ali, It doesn't work for me... See below. ... I'm booting with the following script. VM=freebsd12.1 ifconfig tap1 up bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \ -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \ -c 1 -m 4096M \ -s 19,xhci,tablet \ -s 11,fbuf,tcp=0.0.0.0:5920,w=1280,h=1024

Re: bhyve: vnc limited to 1920x1080?

2020-09-24 Thread Peter Grehan
I used the following option for bhyve command: > > -s 29,fbuf,rfb=192.168.1.6:8001,wait,w=2560,h=1440> > ...and got rather confusing error message:> > Invalid fbuf emulation option "w"> fbuf: {wait,}{vga=on|io|off,}rfb=:port{,w=width}{,h=height}> device emulation initialization error: Inappropri

Re: HD audio problem on FreeBSD 12.1 bhyve VM

2020-09-24 Thread Peter Grehan
Hi Ali, I tested the following combinations: 1) 12.1 guest on 12.1 host (with the HD audio from 13-current). 2) Same 12.1 guest on 13-current host. 2) worked ok for me, at least with very limited testing and a simplistic config On the guest, root@:~ # uname -a FreeBSD 12.1-RELEASE FreeB

Re: HD audio problem on FreeBSD 12.1 bhyve VM

2020-09-23 Thread Peter Grehan
Hi Ali, However, on FreeBSD 12.1 only noise comes out. Using /dev/dsp4 (which is a USB sound device), audio works fine, but not on /dev/dsp0, the default sound device on my system. ... Note that: The above problem is also reproducible on 13-Current 20200917. Just to confirm: that was a 12.

Re: grub-bhyve device map file usage

2020-09-14 Thread Peter Grehan
Hi Chuck, I'm working on an update to grub-bhyve and wanted to know if people's map files differ from: (hd0) /some/path/to/the/disk.img Primarily, I'm interested if the map files use a device other than 'hd', but I'd also be curious about use cases involving more than one entry. TIA! I use 'c

Re: Nested Virtualization Under KVM Hypervisor

2020-09-12 Thread Peter Grehan
Hi Pete, Ah I see - once I realized we had a newer kernel I didn't focus too much on the first bug - here's the MSR's MSR 0x480: 0x00981000 0x11e57ed0 MSR 0x482: 0xfff9fffe 0x0401e172 MSR 0x48b: 0x03fb 0x MSR 0x48c: 0x0f01 0x04114040 This looks very similar to comment 14 in

Re: Nested Virtualization Under KVM Hypervisor

2020-09-10 Thread Peter Grehan
Hi Pete, Sep 10 03:25:01 bells kernel: vmx_init: processor does not support desired basic capabilities ^^^ This is what's causing the issues, and is covered in the first bug report I mentioned (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203994) Would you be able to dump the MSRs

Re: Nested Virtualization Under KVM Hypervisor

2020-09-09 Thread Peter Grehan
Hi Pete,   VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr That's just a warning: bhyve will attempt to enable VT-x on module load, and will only fail if BIOS has locked the disable. Do you know if the vmm module fails to load ? (there will be an error in syslog "vmx_i

Re: bhyve/e1000: Assertion failed: (dtype == ntype), function e82545_transmit with win10 guest

2020-08-31 Thread Peter Grehan
This appears to be an MP issue: if the number of vCPUs in the win10 guest is set to 1, I'm unable to trigger this. However, it happens almost immediately with vCPUs > 1. Even with a single vCPU there looks to be some false triggering of the transmit process: still debugging that. later, Pet

Re: bhyve/e1000: Assertion failed: (dtype == ntype), function e82545_transmit with win10 guest

2020-08-30 Thread Peter Grehan
I'm getting the following periodically when Windows 10 (2004) guest is > booting:> > Assertion failed: (dtype == ntype), function e82545_transmit, file > /usr/src/usr.sbin/bhyve/pci_e82545.c, line 1139.> Abort trap> > It's especially unhelpful when booting the guest first time after > installat

Re: bhyve boot order?

2020-08-09 Thread Peter Grehan
Hi Danny, I got bhyve running mainly using vm (thanks Matt), and though I succeeded to boot diskless, as soon as I configure a disk, it will boot of it. So Q: is there a ‘simple’ way to change/set the boot order? I’m using the uefi boot. Not yet: UEFI boot order is currently fixed (removable, t

rdtscp support (was Re: bhyve guest illegal instruction)

2020-07-31 Thread Peter Grehan
Hi Chuck, 12              time1 = __builtin_ia32_rdtscp(&dummy); rdtscp shouldn't be used without checking that it's available via CPUID first, but as you mentioned the feature is available on the host, just hidden from the guest. This same program works on the FreeBSD 12-stable machine h

Re: bhyve, Windows guest and trim support

2020-07-14 Thread Peter Grehan
Hi Andrea, Where would I download a fresher driver? Do I need RedHad's virtio-win-latest? Is it in there? Or else, what? The link in the PR pointed to https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.185-1/ (currently an alias of https://fedo

Re: bhyve, Windows guest and trim support

2020-07-14 Thread Peter Grehan
Hi Andrea, Thanks for this hint, I can now confirm this also works with virtio-blk (applied Allan's patch to 12.1). REFER for the zvol backing my Windows Server 2016 dropped from 315G to 72.5G. Hmm... I applied the same patch and, still using virtio-blk, when trying to retrim, Windows says "O

Re: [Bug 246121] [bhyve][PATCH] Append Keyboard Layout specified option for using VNC.

2020-05-28 Thread Peter Grehan
Hi Henrik, When I wrote my Video BIOS code one year ago, I noticed that bhyve is sending updates continuously from rfb_wr_thr(), without any requests. On the other hand, the RFB protocol specification says that "an update is only sent from the server to the client in response to an explicit requ

Re: [Bug 245392] bhyve: PCI passthru built-in rtl8168 to OpenBSD no packets (AMD Ryzen 3 1200)

2020-04-15 Thread Peter Grehan
Hi Anatoli, Sorry, didn't get any reply to the details provided. Don't know if it's insufficient or the issue is so complex that nobody wants to investigate it further. Please let me know what's the status and what are the options/directions to investigate it further. Debugging this might ne

Re: [Bug 245392] bhyve PCI passthru built-in rtl8168 to OpenBSD no packets (AMD Ryzen 3 1200)

2020-04-06 Thread Peter Grehan
Hi Anatoli, I just submitted a bug as to not send here all the attachments. Saw that: thanks. Is this something known? Or maybe I'm missing some configuration option? Should I submit more details? That should be enough detail. I'll follow-up in the bug. . later, Peter ___

Re: grub-bhyve

2020-04-02 Thread Peter Grehan
Grub-bhyve is using Gcc 4.8.5 to copile with. > > I recall compiling with gcc 9.0 with a few updates needed to the> code. Has anyone else tried this? The ports version is using gcc 9 so no issues there. The grub2-bhyve github README has just been updated to remove the versions from gcc/gdb -

Re: USB device passthrough implementation

2020-03-17 Thread Peter Grehan
Hi Daniel, * We need to disconnect the USB device from host: we are currently not very familiar with the kernel API to perform this See usbconfig(8) and the detach_kernel_driver command. It's probably fine to request a user to issue that command, similar to how external commands are required

Re: Passthru a VF to Windows guest cause BSOD, chelsio T520BT, SR-IOV

2020-03-12 Thread Peter Grehan
When I pass the same VF1 to Windows 10 guest, ver 1909, the guest got BSOD during installation. I also try to add VF1 post installation. also got BSOD. the message is IRQL_NOT_LESS_OR_EQUAL. I also try Windows server 2012, during installation of Chelsio Driver, BSOD too. Any suggestions? driver i

Re: [GPU pass-through] no compatible bridge window for claimed BAR

2020-03-11 Thread Peter Grehan
Hi Alex, dmesg | grep "no compatible bridge window" pci :00:01.0: can't claim BAR 1 [mem 0xd0-0xd00fff 64bit pref]: no compatible bridge window ...> From what I can read from all the info above, somehow the requested memory space for BAR1 for that device is 0xd0-0xd0

Re: Patch for Nominal Media Rotation Rate field of AHCI disk.

2020-03-11 Thread Peter Grehan
Hi Qian, I have a patch for Nominal Media Rotation Rate field. currently bhyve will not report this field. Nice ! I was thinking another way to do this would be to change the device emulation name for this i.e. "ata-ssd" instead of "ata-hd" with an additional parameter. That way some a

Re: System (ps/top) & bhyvectl memory usage differences

2020-01-30 Thread Peter Grehan
Hi Matt, Is there a reason why the resident memory used by a bhyve guest is quite different when comparing ps/top & bhyvectl? Does bhyvectl take in account something in kernel space that top/ps doesn't see? USER PID %CPU %MEM VSZRSS TT STAT STARTED TIME COMMAND root 12670 0.1

Re: Ubuntu 18.04 and bhyve

2018-05-19 Thread Peter Grehan
Has anybody managed to run Ubuntu 18.04 under bhyve? I was unable to get it working with churchers vm-bhyve tool. You either need the latest UEFI port, or run it under grub-bhyve. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list ht

Re: Centos7 uefi boot problem with bhyve after update

2018-05-04 Thread Peter Grehan
Hi Mike, the fault here could be that of bootrom not reading the files it should That is exactly the issue. The current UEFI code does not save non-volatile variables to persistent storage. Guest o/s's are increasingly writing their efi loaders to non-standard locations and using nv vars t

Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest

2018-05-01 Thread Peter Grehan
* rosemary_disk0.lzma (the LZMA compressed zvol) I was able to boot this image on a 12-current Ryzen system. Debian 9.4 also installed fine with the netinstall ISO and could boot. later, Peter. ___ freebsd-virtualization@freebsd.org mailing lis

Re: Greetings from SmartOS

2018-04-27 Thread Peter Grehan
Hi Patrick, Good to see you on the list :) Now that the project is stabilizing on our end, we would like to reach out about upstreaming fixes or feature work back into FreeBSD. One small fix to posted interrupt handling on Intel (https://smartos.org/bugview/OS-6829) might be a good starting p

Re: bhyve pci passthrough usb controller

2018-03-24 Thread Peter Grehan
I surely will try this out, but what about device 4/0/0 showing the same issue. Both tests where performed separately showing the exact same result, of course I'd be happy if either one of them worked. I think what is happening here is that Windows is enabling legacy interrupts on the device

Re: Issue encountered booting FreeBSD STABLE and CURRENT snapshots with EFI

2018-03-23 Thread Peter Grehan
Hi Kyle, FYI- I've created PR #2 [1] against the freebsd/uefi-edk2 repository and have confirmed that this fixes the broken-looking firmware along with the booting problem experienced in this thread. [1] https://github.com/freebsd/uefi-edk2/pull/2 Thanks - merged. I've asked Fabian to update

Re: Issue encountered booting FreeBSD STABLE and CURRENT snapshots with EFI

2018-03-15 Thread Peter Grehan
I believe the problem may have been introduced with this commit: > > https://svnweb.freebsd.org/base/stable/?view=log&pathrev=329114 Any chance of being able to work out where in that list of commits in CURRENT the loader stopped working ? later, Peter. __

Re: Call for testing bhyve cpu topology additions

2018-03-07 Thread Peter Grehan
I shall iterate again, this change makes no change to what the guests sees if you use the old method sysctl hw.vmm.topology.cores_per_package or hw.vmm.topology.threads_per_core to set these values, it is purely a interface enhancement that makes these tuneables easy to access from userland bhyve(

Re: Call for testing bhyve cpu topology additions

2018-03-07 Thread Peter Grehan
And as mentioned in the review, I'd also like to see your Windows desktop guest test results with this change. I do not run any windows in bhyve as bhyve can not run the windows I use due to missing/broken ATA support. The person I was helping with bhyve windows regression tests has become un

Re: Call for testing bhyve cpu topology additions

2018-03-07 Thread Peter Grehan
I would like to ask that if people can test this and provide feedback that they do so. And as mentioned in the review, I'd also like to see your Windows desktop guest test results with this change. If I can get some significant test results back I plan to commit D9930 to ^head and merge it

[Differential] D14473: userboot: add callbacks to set unrestricted guest mode

2018-03-07 Thread grehan (Peter Grehan)
grehan added a comment. So a comment on this: in general, api's are not added to FreeBSD that don't have base-system clients that use them, or for a good reason. I think this falls into the latter but I'd like to cut it down a bit. - can the get_unrestricted_guest() routine be removed ?

Re: rumpkernel and bhyve: triple faults

2018-03-06 Thread Peter Grehan
Hi Fabian, For a page-fault, the virtual address that resulted in the fault will be in the CR2 register. I don’t see a CR2 register in the output of bhyvectl --get-all, I was looking for that too. Oops, I'll add that to bhyvectl. I’m pretty sure it’s tooling that’s displaying something

Re: rumpkernel and bhyve: triple faults

2018-03-06 Thread Peter Grehan
Hi Fabian, 657 0 350887309700 vm testing[0]: handled exception vmexit at 0x102a56 656 0 350887309570 vm testing[0]: Exception 14 pending 655 0 350887309442 vm testing[0]: Setting intr_shadow to 0 succeeded 654 0 350887305126 vm testing[0]: Reflecting excep

Re: Ryzen lockup on bhyve was (Re: new Ryzen lockup issue ?)

2018-03-01 Thread Peter Grehan
On the Epyc it seemed to take a longer, but eventually the box locked up and the watchdog ended up rebooting the server. I started 3, vCPU guests all with separate CPU's pinned. It lasted 9hrs. The Ryzen board also locked up with just 2 VMs running, and all vCPUs pinned to separate cores

Re: Ryzen lockup on bhyve was (Re: new Ryzen lockup issue ?)

2018-02-27 Thread Peter Grehan
Hi Mike,  I could reproduce this on a Ryzen 1700 with HT enabled - it took ~700 seconds, and the entire machine locked up.  An interesting point is a single VM was able to run to completion.  I'll keep testing with various combinations of numbers of VMs, different vCPUs per VM, and pinning

Re: Migrate from real server to virtual

2018-02-27 Thread Peter Grehan
But I think the bigger problem is that this is an MBR disk with Windows 7 in it, I do not believe that bhyve can run Windows 7 at this time. Bhyve has been able to run Win7 since 2015, though x64 only and in UEFI mode. later, Peter. ___ freebsd-v

Re: Migrate from real server to virtual

2018-02-26 Thread Peter Grehan
Have you tried using the CSM UEFI firmware that came in same bundle as the one above? It's worth a try. Unfortunately that is known not to work with Windows :( later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.o

Re: bhyve and mmap(2)

2018-02-26 Thread Peter Grehan
Hi Fabian, Would be possible to use mmap(2) around libvmmapi to map a file (MAP_PRIVATE) and or shared memory segments (MAP_SHARED) into guest physical address space? It currently isn't - doing that will just insert the mappings into the user process's view, and not into guest address space.

Re: Ryzen lockup on bhyve was (Re: new Ryzen lockup issue ?)

2018-02-25 Thread Peter Grehan
Hi Mike, (moving this to -virtualization) Actually I can confirm the same sort of hard lockup happens on my Epyc board with RELENG11. It also happens in current. I will file a PR and post on freebsd-current in case someone has any suggestions on how to try and figure out whats going on. I

[Differential] D14473: userboot: add callbacks to set unrestricted guest mode

2018-02-22 Thread grehan (Peter Grehan)
grehan added inline comments. INLINE COMMENTS > bhyveload.c:566 > +{ > + return (vm_get_capability(ctx, vcpu, > + VM_CAP_UNRESTRICTED_GUEST, retval)); Minor style(9) - should be an empty line before the rreturn - see the routine above. > bhyveload.c:567 > + return (

[Differential] D14473: userboot: add callbacks to set unrestricted guest mode

2018-02-22 Thread grehan (Peter Grehan)
grehan accepted this revision. grehan added a comment. You may be able to get away with just the "set" call. Given that all h/w that is supported by bhyve, with the exception of only Nehalem systems, support this, you may want to use just the error from the set call to handle this low-probab

Re: VMX exit reason=33 and general userboot.so questions

2018-02-21 Thread Peter Grehan
Hi Fabian, >exit_reason 33 From the Intel SDM, vol 3B Appendix C, this error is "VM-entry failure due to invalid guest state". These errors can be difficult to debug given the large amount of guest state involved :( However, looking at the state from your dump: > tr desc[0]

Re: bhyve and contention

2018-02-13 Thread Peter Grehan
2. In the following context, the server is the same but this time all five guests have -c 4 per guest, so bhyve is asking 12 more cores than that existing in hardware. Does the guest fail to load, do either guest or server crash? The is core over commit, very common in the virtualization world,

Re: Bhyve passthrough problems (update)

2018-02-07 Thread Peter Grehan
Hi Mario, Well, now, even without setting up passthrough, the VM doesn't start (which it did, before I svned up /usr/src). ... working: 321652 not working (current): 328163 ... Any updates on this issue? Can you verify if the issue still occurrs if you destroy the guest bef

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-25 Thread grehan (Peter Grehan)
grehan abandoned this revision. grehan added a comment. Closing this revision - moving to https://reviews.freebsd.org/D14022 REVISION DETAIL https://reviews.freebsd.org/D13995 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: grehan, trasz, imp, sux2mfgj_

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-25 Thread grehan (Peter Grehan)
grehan commandeered this revision. grehan edited reviewers, added: sux2mfgj_gmail.com; removed: grehan. REVISION DETAIL https://reviews.freebsd.org/D13995 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: grehan, trasz, imp, sux2mfgj_gmail.com Cc: chuck, sean

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-25 Thread grehan (Peter Grehan)
grehan added a comment. Yep, that's correct. The code in the new review is based on this code so it's really a continuation of the effort. REVISION DETAIL https://reviews.freebsd.org/D13995 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sux2mfgj_gmail

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-25 Thread grehan (Peter Grehan)
grehan requested changes to this revision. grehan added a comment. This revision now requires changes to proceed. Chuck - the review for this is now in https://reviews.freebsd.org/D14022, where I believe your comments have already been addressed. REVISION DETAIL https://reviews.freebsd.org/

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-23 Thread grehan (Peter Grehan)
grehan added a comment. The updated version of this code is at https://reviews.freebsd.org/D14022 I've moved the reviewer/subscriber list over as well. REVISION DETAIL https://reviews.freebsd.org/D13995 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ T

[Differential] D13995: NVMe controller emulator for bhyve.

2018-01-20 Thread grehan (Peter Grehan)
grehan added a comment. Leon Dang has also been working on NVMe emulation, and his version works with Linux, Windows and UEFI boot. I'll post that code for review since it is a bit more recent and tested. In the meantime, that version can be seen at www.freebsd.org/~grehan/pci_nvme.c (T

Re: Bhyve passthrough problems

2018-01-18 Thread Peter Grehan
Hi Mario, I'm trying to passthrough a firewire pci card to a windows 7 64 guest. First, you'll need to verify if that card supports MSI or MSI-x since that is required by bhyve for passthru support. This can be seen with 'pciconf -lbc' on the FreeBSD host. VM exits with: Assertion faile

Re: bhyve/amd: interrupt delivered when it shouldn't be?

2017-12-29 Thread Peter Grehan
Hi Andriy, The hardware is AMD. Ryzen ? But what I see suggests that at this point a Local APIC timer interrupt gets delivered to the thread. And that causes all the mess as the thread holding the spinlock gets preempted. Does this ring a bell to anyone? I have seen something similar t

Re: Recovering an ZFS vm

2017-12-05 Thread Peter Grehan
Hi Randy, I have a Centos vm that has suddenly stopped booting. At the console, grub tells me the following if I attempt to list any of the available partitions. error: not a correct XFS inode. error: not a correct XFS inode. error: not a correct XFS inode. error: not a correct XFS inode. error

Re: Bhyve. Unable install Windows 7/Server 2008R2

2017-12-04 Thread Peter Grehan
Hi, bhyve -c 2 -s 0,hostbridge -s 3,ahci-hd,/dev/zvol/my_zroot/VM/img/win7/disk0 For win7/2k8*, the sector size presented to the guest has to be forced to 512 bytes i.e. for the ahci-cd slot, the config would look like: -s 3,ahci-hd,/dev/zvol/my_zroot/VM/img/win7/disk0,sectorsize=512 l

Re: bhyve uses all available memory during IO-intensive operations

2017-12-01 Thread Peter Grehan
bargs -A -H -P -S The -S flag to bhyve wires guest memory so it won't be swapped out. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To

Re: Onboard USB controller passthrough

2017-11-05 Thread Peter Grehan
The controllers looks like this # pciconf -l -BbcV ppt2@pci0:0:26:0 ppt2@pci0:0:26:0: class=0x0c0320 card=0x72708086 chip=0x8d2d8086 rev=0x05 hdr=0x00 bar [10] = type Memory, range 32, base 0xc6134000, size 1024, enabled ^^

Re: bhyve and backed-up dd disk image

2017-09-30 Thread Peter Grehan
Hi, Would I be able to spin up in bhyve a disk image that had been obtained from the disk of a bare-metal standard freebsd installation? In theory, yes. There will always be some issues with differences in devices (e.g. using igb0 on the host, but vtnet0 in the guest). later, Peter. _

Re: Bhyve detaches my hard disk

2017-09-25 Thread Peter Grehan
Hi Roberto, Attached to this email is the script that I am using to launch the bhyve machine and the output from the console at the moment of the crash, the output of pciconf -lv and uname -a. The attachment didn't have the bhyve launch script. Would you be able to resend that, along with a

Re: bhyve passthrough fails

2017-09-07 Thread Peter Grehan
Hi Rod, Hi Farhan, bhyve: PCI device at 2/0/0 is not using the ppt(4) driver. Just noticed this myself: looks like a regression :( I'll see if I can work it out and get a fix in. What is the state of bhyve in 10.4? Do we need to fire off some quick tests Always worth some quick t

Re: bhyve passthrough fails

2017-09-07 Thread Peter Grehan
I would not mind sending you on-going feedback or debugging information > if it helps.> > Could it be a chipset issue? This is a lower-end laptop. It can do > virtualization, but the passthrough issue seemed to fail. I was on > FreeBSD 11.1. It may be due to this (and also my issue which was on

Re: bhyve passthrough fails

2017-09-07 Thread Peter Grehan
Hi Farhan, bhyve: PCI device at 2/0/0 is not using the ppt(4) driver. Just noticed this myself: looks like a regression :( I'll see if I can work it out and get a fix in. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://l

Re: openbsd 6.0 or 6.1 guest on freebsd-12 (current) host

2017-09-05 Thread Peter Grehan
There is a bug in the early Intel Skylake CPU series. The Silicon Debug (SDBG) flag is turned on as a default and this causes the OpenBSD 6.1 .iso to refuse installation. The '-w' option for bhyve can be used to work around this. later, Peter. ___

Re: Xeon E5 (PowerEdge 320) bailing out

2017-08-28 Thread Peter Grehan
Hi, Trying to run Bhyve on a PowerEdge 320 system which DOES have a POPCNT instruction which shows support for VT-x support via EPT but I still get the this error there sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 2048M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso fbsd10

Re: My USB card is a bhyve killer

2017-08-17 Thread Peter Grehan
Hi, Any further thoughts on this? Seems a bit of a mystery. The PCI dump looked fine. I would like to return this card back to Amazon in the next few days. So if anybody needs any more debug info please let me know. I'll contact you off-list. I do plan to retain the other NEC uPD720201

Re: My USB card is a bhyve killer

2017-08-16 Thread Peter Grehan
Hi, I have a PCIe USB card which is exported to the bhyve vm using passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos 7. Each time the OS has given a segmentation fault on bootup and killed the bhyve session. This is what i get in the bhyve-log: Is stderr logged anywhere

Re: Bhyve Broken: whose fault (AMD, FreeBSD, ZFS ...?)

2017-07-21 Thread Peter Grehan
On 7/21/17 5:54 PM, Peter Grehan wrote: remember that the quoted problem is spit out by the guest, not the host. That said, the 'top' line on the frozen bhyve was: 29380 root 22 200 1060M 928M kqread 5 218:32 399.30% bhyve ... indicating that the bhyve had almos

Re: Bhyve Broken: whose fault (AMD, FreeBSD, ZFS ...?)

2017-07-21 Thread Peter Grehan
remember that the quoted problem is spit out by the guest, not the host. That said, the 'top' line on the frozen bhyve was: 29380 root 22 200 1060M 928M kqread 5 218:32 399.30% bhyve ... indicating that the bhyve had almost all it's memory... and the system had also 500M free

Re: Bhyve Broken: whose fault (AMD, FreeBSD, ZFS ...?)

2017-07-21 Thread Peter Grehan
oh ... and ... the console spit out: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 4522, size: 8192 (swap is on a separate zVol). Ok - you may have hit a separate issue. Is ZFS ARC limited on your setup ? If bhyve and ZFS (and other consumers) end up fighting for memory, everyone lo

Re: Bhyve Broken: whose fault (AMD, FreeBSD, ZFS ...?)

2017-07-21 Thread Peter Grehan
Hi, What should be next steps here? This is repeatable. The host is stable (it can makeworld -j32 in about 25 minutes ... so it's hardware seems good). Is this an AMD bug? Is it bad to use ZFS ZVols? ZVols are fine. Is the guest panic a spinlock timeout ? I believe this is a bug in bhyv

Re: VNC stuff

2017-06-12 Thread Peter Grehan
Hi Rod, r302504 is not likely to be MFC'ed at this time, this is the e1000 driver and man page. This code has known issues at this time and is an action item list on the bhyve developers work list. The e1000 driver was MFC'd 11 months ago. The issues are currently only with Windows - it wor

Re: VNC stuff

2017-06-12 Thread Peter Grehan
Hi Rod, Do we want the VNC/Auth fix (once cleaned up for Coverty issues) in the 11.1 release? Doesnt this allow a lot more clients to connect to the fb? Or is it only a few clients that are being pendandic about using a questionable authentication means? The main one is the OSX built-in cli

Re: VNC stuff

2017-06-12 Thread Peter Grehan
Hi Zane, I assume that means the VNC/fbuf stuff as well? Not seeing that that currently in 11-STABLE. Sure you don't mean 10-STABLE ? The uefi graphics code was committed 11 months ago: https://svnweb.freebsd.org/base/stable/11/usr.sbin/bhyve/pci_fbuf.c?view=log later, Peter. __

Re: Windows Server 2016 as guest on bhyve 4k emulated drive

2017-05-05 Thread Peter Grehan
Hi Artur, I can not explain how Windows comes to 8192 bytes. As explained in Jeremya F's email, that's the zvol default record size. about 512E drives. According to

Re: Windows Server 2016 as guest on bhyve 4k emulated drive

2017-05-03 Thread Peter Grehan
Hi Artur, if the option 'sectorsize=4096/4096' for the emulated drive specified, the installation process of "Windows Server 2016" completes the first stage ('Copying Windows files', 'Getting files ready for installation', 'Installing features' etc.) and fails after rebooting to the second stage

[Differential] D10540: vmx: explicit checking for necessary invvpid/invept types

2017-05-01 Thread grehan (Peter Grehan)
grehan added inline comments. INLINE COMMENTS > ept.c:68 > + (((cap) & INVEPT_REQUIRED_TYPES_MASK) == INVEPT_REQUIRED_TYPES_MASK) > > #define EPT_PWLEVELS4 /* page walk levels */ Might be worth splitting these out into individual tests, since I have a change

Re: dos in bhyve

2017-04-13 Thread Peter Grehan
Hi Andriy, I wonder if anyone was able to run any DOS variant in bhyve. I've run vm86 mode in Linux but that doesn't really count :) I tried FreeDOS using BHYVE_UEFI_CSM firmware, but it seems to just hang. Try looking at the CSM/BIOS debug output that is available on the bvmcons debug

Re: bhyve fbuf and keys on the numeric part of the keyboard

2017-04-08 Thread Peter Grehan
Hi Christian, After having used bhyve for servers for quite a while, I have just started using it with the graphical console using vnc a few days ago. This stuff is awesome. Having a native solution for virtualization on FreeBSD is great. However, I had some trouble with keyboard mappings and

Re: OpenBSD 6.1-snapshot no longer works in bhyve

2017-04-04 Thread Peter Grehan
Hi Jason, FYI, 6.1-release and 6.1-snapshots will not boot at this stage. I have my new production kit arriving so I can test on different hardware to determine if this is a CPU rev. issue but thought I'd put it here to get the thought processes working on it. I am running 11.0-release p8 Y

Re: Host filesystem in Bhyve

2017-03-26 Thread Peter Grehan
Hi Jakub, We've been using FreeNAS 10 (now Corral) as our testbed for virtio-9p for over a year now and I think at this point it's stable enough to be upstreamed. :-) Please expect phabricator diffs in the upcoming weeks! Great to hear ;) So... any news on a FreeBSD 9p client ? later, Pet

Re: Host filesystem in Bhyve

2017-03-26 Thread Peter Grehan
Hi Rajil, It seems that FreeNAS 10 is able to expose the host filesystem to bhyve sessions. Is there any plan to bring that feature into FreeBSD? I'd like to see it happen but it's really up to the iX guys who wrote that code to get it in. later, Peter. __

Re: bhyve passthrough problem after updated host to 10.3

2017-02-26 Thread Peter Grehan
Hi Sergey, Now, after experiments I can say the card can work only on 2 slot and function=function on host. Example: -s 2:1,passthrough,3/0/1 It's even worse I thought. The network card work only if spare slot with a disk device (may be any device, I did not try). So, it works: -s 2:1,passthr

Re: Windows XP

2017-02-22 Thread Peter Grehan
Hi Frank, bhyve doesn't support anything older than Vista, That's correct, though I'm hoping to support XP and Server 2003 at some point. and I'm unclear as to whether it supports 32-bit versions of that. It doesn't, nor any 32-bit version of Windows after that, mainly since they requ

Re: Ubuntu UEFI Won't Reboot

2017-02-07 Thread Peter Grehan
Hi Vincent, So after a minute or two, I get the UEFI Shell and when I exit, I get something that appears to be the bhyve BIOS (?) when I go from there to the Boot Maintenance Manager, and then « Boot From File » I can select the block device, then , then , then grubx64.efi and then I get the Gru

  1   2   3   4   5   >