Bug 212820 - FreeBSD 10-STABLE from latest HEAD and 11-RELEASE-RC3 fail to boot in Hyper-V on Windows 10
Summary: FreeBSD 10-STABLE from latest HEAD and 11-RELEASE-RC3 fail to boot in Hyper-V...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RC1
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-19 11:00 UTC by fbsd
Modified: 2018-06-15 17:55 UTC (History)
9 users (show)

See Also:
fbsd: mfc-stable10?


Attachments
hyperv-fail0 (34.16 KB, image/png)
2016-09-19 11:01 UTC, fbsd
no flags Details
hyperv-fail1 (45.21 KB, image/png)
2016-09-19 11:01 UTC, fbsd
no flags Details
hyperv-fail2 (41.26 KB, image/png)
2016-09-19 11:01 UTC, fbsd
no flags Details
hostinfo (37.37 KB, image/png)
2016-09-19 11:01 UTC, fbsd
no flags Details
exported hyperv machine (25.30 KB, application/zip)
2016-09-19 11:02 UTC, fbsd
no flags Details
hyperv-warn1 (15.23 KB, image/png)
2016-09-20 08:02 UTC, fbsd
no flags Details
systeminfo cmd snapshot (40.66 KB, image/jpeg)
2016-09-20 09:03 UTC, Hongjiang
no flags Details
workable windows 10 systeminfo (2.83 KB, text/plain)
2016-09-20 09:04 UTC, Hongjiang
no flags Details
hyperv-warn2 (14.85 KB, image/png)
2016-09-20 09:41 UTC, fbsd
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fbsd 2016-09-19 11:00:32 UTC
See the attached pictures for the information.
Comment 1 fbsd 2016-09-19 11:01:02 UTC
Created attachment 174951 [details]
hyperv-fail0
Comment 2 fbsd 2016-09-19 11:01:16 UTC
Created attachment 174952 [details]
hyperv-fail1
Comment 3 fbsd 2016-09-19 11:01:30 UTC
Created attachment 174953 [details]
hyperv-fail2
Comment 4 fbsd 2016-09-19 11:01:47 UTC
Created attachment 174954 [details]
hostinfo
Comment 5 fbsd 2016-09-19 11:02:23 UTC
Created attachment 174955 [details]
exported hyperv machine
Comment 6 fbsd 2016-09-19 11:04:14 UTC
How to reproduce:

* choose a V2 version of new Hyper-V VM
* insert an installer built from latest 10-STABLE (2016.06.19.) or a 11.0-RC3
* boot it
* it's failed with a lost installer medium
* then it's spam the console with vm_pager related broken panic messages
Comment 7 fbsd 2016-09-19 11:17:00 UTC
It would be really nice to generate a new 10-STABLE snapshot officially too.
Comment 8 Glen Barber freebsd_committer freebsd_triage 2016-09-19 14:44:49 UTC
Try turning off Secure Boot in the VM Security settings.
Comment 9 Glen Barber freebsd_committer freebsd_triage 2016-09-19 14:46:54 UTC
Actually, no, this isn't the problem.  The installer is being detached during boot, which is what is causing the vm_pager() console spam.
Comment 10 Sepherosa Ziehau 2016-09-20 01:19:40 UTC
Use gen1 VM, gen2 VM is not really supported yet.
Comment 11 fbsd 2016-09-20 08:01:35 UTC
Sure, with V1 working better, but there are still some issues. See the newly attached screenshot.
Comment 12 fbsd 2016-09-20 08:02:00 UTC
Created attachment 174989 [details]
hyperv-warn1
Comment 13 fbsd 2016-09-20 08:05:16 UTC
This was at the end of the installer, when it shuts down.
Comment 14 Sepherosa Ziehau 2016-09-20 08:29:23 UTC
Hongjiang, Dexuan, please help check the host info and configure.  I never hit the the last warning.
Comment 15 Dexuan Cui 2016-09-20 08:58:40 UTC
(In reply to Sepherosa Ziehau from comment #14)
I installed 10.3 (FreeBSD-10.3-RELEASE-amd64-dvd1.iso) on my Win10 last week. My VM worked fine without the issue in Comment 12.
Comment 16 Hongjiang 2016-09-20 09:02:40 UTC
I installed FreeBSD11 RC3 on my windows 10 Enterprise, and I did not see that warning. Could you please check whether your windows 10 version?
Comment 17 Hongjiang 2016-09-20 09:03:17 UTC
Created attachment 174992 [details]
systeminfo cmd snapshot
Comment 18 Hongjiang 2016-09-20 09:04:01 UTC
Created attachment 174993 [details]
workable windows 10 systeminfo
Comment 19 fbsd 2016-09-20 09:06:10 UTC
PS C:\Users\Training>  [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      10586  0
Comment 20 fbsd 2016-09-20 09:07:05 UTC
Hotfix(s):                 9 Hotfix(s) Installed.
                           [01]: KB3116278
                           [02]: KB3124200
                           [03]: KB3150513
                           [04]: KB3161102
                           [05]: KB3172729
                           [06]: KB3173428
                           [07]: KB3181403
                           [08]: KB3188128
                           [09]: KB3185614
Comment 21 fbsd 2016-09-20 09:41:52 UTC
Created attachment 174995 [details]
hyperv-warn2

It's reproducible.

1. boot
2. select install
3. select
4. f11r; ok
5. select src and test too; ok
6. auto (ufs); ok
7. enter
8. enter
9. select gpt; enter
10. enter
11. enter
12. on config passwd; a; enter; a; enter
13. enter
14. select no; enter
15. select no; enter
16. end; enter
17. enter
18. enter
19. enter
20. enter
21. enter
22. enter
23. on add user accounts; no; enter
24. enter
25. enter
26. on manual config...; yes; enter
27. init 0; enter
Comment 22 Hongjiang 2016-09-21 03:19:20 UTC
I followed your steps, but I cannot see any issues. Could you please try the VHDX https://honzhancustomer.blob.core.windows.net/freebsd11rc3issues/FreeBSD11RC3.vhdx on your machine? That is my newly installed VHDX on windows 10.
Comment 23 Hongjiang 2016-09-21 03:20:00 UTC
login user: root
login passwd: User@123
Comment 24 Hongjiang 2016-09-21 04:36:09 UTC
Another VHDX was created on win2012R2 with the same login account
https://honzhancustomer.blob.core.windows.net/freebsd11rc3issues/f11r_2012r2.vhdx
Comment 25 fbsd 2016-09-21 07:27:46 UTC
This messages comes at the end of the installer, and not at the end of normal installed instance.
Comment 26 Hongjiang 2016-09-21 08:33:35 UTC
(In reply to fbsd from comment #25)
All right. Do you encounter any issue when you restart the machine after installation?
Comment 27 fbsd 2016-09-21 10:11:39 UTC
Not really, I just see this error message. Otherwise seems like the system is fully working with V1 install.
Comment 29 Val Packett 2017-07-18 11:05:59 UTC
11-STABLE works perfectly for me in a Gen 2 VM on Windows 10
Comment 30 John Baldwin freebsd_committer freebsd_triage 2018-04-16 18:04:28 UTC
Given comment #27, is there anything left to work on for this bug still or can it be closed?
Comment 31 Dexuan Cui 2018-04-16 20:16:24 UTC
(In reply to John Baldwin from comment #30)
This is a bug opened 1.5 years ago. We have made a lot of fixes to the storage driver since then, and we also improved the support of Hyper-V Generation-2 FreeBSD VM a lot since then.

It would be great if fbsd@hmamail.com can re-test this bug and I expect this bug doesn't exist any more. In case there is no response from fbsd@hmamail.com for a long period of time (say, 1 month?), I suggest we close the bug in 1 month.
Comment 32 John Baldwin freebsd_committer freebsd_triage 2018-06-15 17:55:17 UTC
Never got a confirm from the reporter, but it's been two months since it was requested.