OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [WORKAROUND] problems updating to 19.1 on a Freebsd 12p3 bhyve VM
« previous next »
  • Print
Pages: [1]

Author Topic: [WORKAROUND] problems updating to 19.1 on a Freebsd 12p3 bhyve VM  (Read 4408 times)

_Raúl_

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
[WORKAROUND] problems updating to 19.1 on a Freebsd 12p3 bhyve VM
« on: February 06, 2019, 09:51:00 am »
This is my first post here so first things first, thanks a lot to everyone that makes opnsense possible.

I've read on release notes that is a known error on uefi / bhyve and it is under investigation. I use it with bhyveload instead uefi and it hangs booting after update to 19.1, probably related. I've looked for several days, threads, tweets ... without success, where can I find the progress on this situation?

Thanks a lot in advance.
« Last Edit: February 06, 2019, 08:42:03 pm by _Raúl_ »
Logged

lattera

  • Full Member
  • ***
  • Posts: 200
  • Karma: 80
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #1 on: February 06, 2019, 04:32:46 pm »
If you're using FreeBSD as the host, make sure you're passing in the -w option to ignore unimplemented MSRs.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #2 on: February 06, 2019, 06:07:27 pm »
I did test 12.0-p3 yesterday with this script https://github.com/opnsense/tools/blob/master/build/boot.sh#L43-L51 and whatever this is some people are seeing it's not a general issue with 19.1 or 11.2 as this boots fine.

Any help with providing the steps to reproduce is highly appreciated.


Cheers,
Franco
Logged

lattera

  • Full Member
  • ***
  • Posts: 200
  • Karma: 80
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #3 on: February 06, 2019, 06:11:12 pm »
In this particular case, it's because we at HardenedBSD ported over a cool security feature from OpenBSD: disabling a specific Intel backdoor called Intel SDBG. We have to toggle a not-well-known MSR that FreeBSD's bhyve freaks out on. We implemented a workaround in HardenedBSD's bhyve that FreeBSD refuses to import upstream, though they initially promised they would.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #4 on: February 06, 2019, 06:12:50 pm »
But why did it not freak in my test?
Logged

lattera

  • Full Member
  • ***
  • Posts: 200
  • Karma: 80
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #5 on: February 06, 2019, 06:14:01 pm »
Were you already passing in the -w option? How were you booting opnsense 19.1 in bhyve?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #6 on: February 06, 2019, 06:14:33 pm »
*click* https://github.com/opnsense/tools/blob/master/build/boot.sh#L43-L51
Logged

lattera

  • Full Member
  • ***
  • Posts: 200
  • Karma: 80
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #7 on: February 06, 2019, 06:18:28 pm »
Interesting. Perhaps it's not the Intel SDBG disable, then. Lemme double-check a few things and I'll get back to you soon-ish. Probably around a week or so.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #8 on: February 06, 2019, 06:19:51 pm »
ok, thanks <3
Logged

_Raúl_

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: problems updating to 19.1 on a Freebsd 12p3 bhyve VM, also with bhyveload
« Reply #9 on: February 06, 2019, 08:39:00 pm »
Quote from: lattera on February 06, 2019, 04:32:46 pm
If you're using FreeBSD as the host, make sure you're passing in the -w option to ignore unimplemented MSRs.

I use churchers/vm-bhyve to manage vm's. Looking at the sources, there is a config parameter called 'ignore_bad_msr' witch translates on that -w parameter. After adjust the config, log reports: [bhyve options: -c 4 -m 2G -AHPw .... it was '-AHP' before, without that 'w' you suggested .

Now it works here flawlessly. Thanks a lot!.
Logged

sjorge

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
    • View Profile
Re: [WORKAROUND] problems updating to 19.1 on a Freebsd 12p3 bhyve VM
« Reply #10 on: February 07, 2019, 12:26:44 pm »
I can also confirm '-w' works for opnsense 19.1.x and vanilla HBSD 11.
HBSD 12 does not need it, so I asume once opnsense is based on that we can drop it again.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [WORKAROUND] problems updating to 19.1 on a Freebsd 12p3 bhyve VM
 

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