OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« previous next »
  • Print
Pages: [1] 2 3 4

Author Topic: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails  (Read 27175 times)

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« on: February 01, 2019, 12:16:07 am »
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

Logged

lattera

  • Full Member
  • ***
  • Posts: 207
  • Karma: 82
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #1 on: February 01, 2019, 12:44:48 am »
What's the output of the `bt` command (without the backticks, of course)?
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #2 on: February 01, 2019, 02:09:36 am »
The boot is frozen on this output.
Can't enter any commands unfortunately
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #3 on: February 01, 2019, 02:22:45 am »
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
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #4 on: February 01, 2019, 02:59:00 am »
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.
« Last Edit: March 09, 2019, 06:23:39 pm by bimmerdriver »
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #5 on: February 01, 2019, 09:43:51 am »
@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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

amichel

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 8
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #6 on: February 01, 2019, 09:57:04 am »
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.
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #7 on: February 02, 2019, 01:04:11 am »
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?

 
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #8 on: February 02, 2019, 01:37:08 am »
Just confirmed that Gen 1 boots successfully with 19.1
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #9 on: February 02, 2019, 02:59:10 am »
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
Logged

lattera

  • Full Member
  • ***
  • Posts: 207
  • Karma: 82
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #10 on: February 02, 2019, 03:52:12 am »
bunchofreeds, could you also try booting with vm.pmap.pti set to 0?
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #11 on: February 02, 2019, 06:42:25 am »
@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.
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #12 on: February 02, 2019, 06:56:28 am »
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
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 203
  • Karma: 11
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #13 on: February 02, 2019, 07:03:27 am »
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
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
Re: VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
« Reply #14 on: February 02, 2019, 07:41:01 pm »
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.
« Last Edit: February 02, 2019, 07:45:52 pm by bimmerdriver »
Logged

  • Print
Pages: [1] 2 3 4
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • VM of OPNsense on Hyper-V Win Svr 2019 Std - Fails
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2