VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails

Started by bunchofreeds, February 01, 2019, 12:16:07 AM

Previous topic - Next topic
Hi,

Creating a new VM of OPNsense 19.1 ISO under Hyper-V Server 2019 fails on booting.
OPNsense 18.7 ISO mounted against the exact same VM boots and installs successfully

The failure if soon after the OPNsense boot menu displays

Attached is a screenshot from Hyper-V Console of the OPNsense VM

Running Hyper-V under Windows Server 2019 Standard
Generation 2 (No Secure Boot)
Config Version 9.0 of VM
2 vCPU
4 GB Ram
127 GB Dynamic Disk

Hopefully this is enough to help out


What's the output of the `bt` command (without the backticks, of course)?

The boot is frozen on this output.
Can't enter any commands unfortunately

Image downloaded recently that isn't completely booting
OPNsense-19.1-OpenSSL-dvd-amd64.iso

Working image is
OPNsense-18.7-OpenSSL-dvd-amd64.iso

Boot hangs/freezes shortly after OPNsense boot menu

February 01, 2019, 02:59:00 AM #4 Last Edit: March 09, 2019, 06:23:39 PM by bimmerdriver
I haven't tried to install the release version but the beta was not installing properly on hyper-v. I'll give it a try on my WS 2012 hyper-v server and report back.

@Franco - did the last loader you sent out for test make it into the release version?


That one failed completely, at least with the older version I could get it to install using the CTRL-C method.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Hi,
I had similar Issues in my test environment. What helped was to configure the VM to be a Gen 1 VM which does not use UEFI boot.

Hopefully 19.1 can work using Gen 2 though, as the VM's can be built with only the virtual hardware that is required (No Comm, Serial and IDE etc.). This is good for minimising the virtual hardware and drivers for network appliances like firewalls and routers.

I can currently boot then install 18.7 using the Ctrl+C method for when the install hangs. So my next solution is to do this then upgrade to 19.1
Unfortunately with booting directly with the 19.1 ISO, it freezes entirely shortly after the boot menu for me?


Just confirmed that Gen 1 boots successfully with 19.1

After successfully installing 18.7 on a Gen 2 Hyper-V VM, then upgrading to 19.1. It fails on boot with the same error as attached in my earlier post.

So this seems to be the same error as others have posted after upgrading. It is possible this is not specific to Hyper-V as others have had the same 'Fatal trap 12: page fault while in kernel mode' when upgrading on a bare metal platform.

Hopefully this helps

bunchofreeds, could you also try booting with vm.pmap.pti set to 0?

@lattera  I have tried to update configuration in /boot/loader.conf but it seems to get reset after a reboot?

I have to boot OPNsense using the old kernel (option 5 from the boot menu)
Then I'm using WinSCP to SSH to OPNsense and update /boot/loader.conf.
The update commits and I can open the file again and it has updated, but resets after a reboot.
Have also tried using Vi

Sorry I'm not great with FreeBSD and mostly use Windows.

OK sorry I did some reading

Pressed ESC at the boot prompt
Typed   set vm.pmap.pti=0

Typed   boot (hopefully this is correct)

The OS still has the error unfortunately

Typed    show   at the OK prompt

Attached screenshot showing option set

Unfortunately boot still fails

This is a test VM so not important. Thankyou for your help so far in understanding this

February 02, 2019, 07:41:01 PM #14 Last Edit: February 02, 2019, 07:45:52 PM by bimmerdriver
I tried updating my 18.7 system to 19.1 and it would not boot. This is on windows server 2012R2 hyper-v. A screen capture is attached. It's not halted. It will accept commands. If anyone has a suggestion to try something, let me know.