pfSense Gold Subscription

Author Topic: Unreliable pfsense reboot Hyperv 2012  (Read 368 times)

0 Members and 1 Guest are viewing this topic.

Offline Actionhenk

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Unreliable pfsense reboot Hyperv 2012
« on: October 19, 2017, 02:18:57 am »
Hi, I frequently reboot my pfsense box Running on hyperv server 2012std and every 4/5 reboots it wont start. Pfsense freezes during boot, always when it is trying to mount devices such as dvd drive. I removed everything I can from the machine settings but it still happens. I guess its noy able to mount the disk, im not sure because i dont have the knowledge to troubleshoot it with freebsd. I tried installing ufs and zfs. Zfs seems to freeze up alot more. This never happened with pfsense 2.3.

How can I find out what is causing this ? Anyone with similair issues ?

Thanks !

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 14484
  • Karma: +1343/-200
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #1 on: October 19, 2017, 03:52:59 am »
Why would you be rebooting it so much is the first question... But the fix for esxi has been setting

configure the VM to use the syscons console rather than vt by editing /boot/loader.conf.local and adding this line:
kern.vty=sc

this information was in the release notes..

Its related to this
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217282
panics during bootup due to a race between vt_change_font() and termcn_cnputc()

- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline Actionhenk

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #2 on: October 19, 2017, 11:14:15 am »
Thanks should have read the notes first, I will try it.

Offline red_cat1930

  • Newbie
  • *
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #3 on: October 21, 2017, 03:43:35 am »
I confirm that 2.4.0 as VM has problem with reboot on Hyper-V 2012R2
No matter which scenario is used for guest VM of 2.4.0 (save state, shutdown guest), after reboot guest makes output that filesystem was unmounted incorrectly. After checking everythig works good. But it's abnormal.

I've made several tests with snapshots and 2 different VM.

if VM is 2.3.X it correctly saves state (vm stops reply, hyper-v host continues reply to ping for a while before reboot), hyper-v hosts reboots, VM 2.3.X correctly restores.
if VM is 2.4.0 it incorrectly saves states (vm continues reply with host till the host's last ping reply before reboot), hyper-v hosts reboots, VM 2.4.0 starts like the power was failed.

Offline bimmerdriver

  • Sr. Member
  • ****
  • Posts: 507
  • Karma: +19/-3
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #4 on: October 24, 2017, 06:42:28 pm »
I have two pfsense vms running on a hyper-v 2012r2 server. One is a test system that I update and reboot frequently. I am not noticing any problems rebooting.

Offline red_cat1930

  • Newbie
  • *
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #5 on: October 25, 2017, 03:00:20 am »
I have two pfsense vms running on a hyper-v 2012r2 server. One is a test system that I update and reboot frequently. I am not noticing any problems rebooting.

Today my test VM was upgraded to 2.4.1
No problem with reboot.
But when you reboot host, VM on hyper-v 2012R2 does not save state. After Hyper-v hosts reboots the VM pfsense 2.4.1 starts as it was powered off.
The 2.3.4 on the same host restores states successfully.
Can you test this scenario, please?

Offline red_cat1930

  • Newbie
  • *
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #6 on: December 03, 2017, 03:55:57 am »
2.4.2 still cannot be saved on host reboot.
2.3.X works perfeclty on the same hyper-v host (2012 R2)

I don't know is it problem of hyper-v, pfsense or freebsd 11.1?
not really big problem because host reboot is always under control.

Offline provels

  • Jr. Member
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #7 on: December 16, 2017, 05:51:31 am »
2.4.2 still cannot be saved on host reboot.
2.3.X works perfeclty on the same hyper-v host (2012 R2)

I don't know is it problem of hyper-v, pfsense or freebsd 11.1?
not really big problem because host reboot is always under control.
Having a similar problem here with 2.4.2_1 on 2012R2, but I just configured the host to shutdown pfSense rather than trying to save state.  I also use fixed memory rather than dynamic, since it (either FreeBSD or Hyper-V) doesn't seem to honor it.  I've recently had pfSense marking the disk as dirty and going into a reboot loop after recognizing the hn interfaces.  Restore a checkpoint and back to working.  Not complaining, just offering feedback.
« Last Edit: December 16, 2017, 05:59:36 am by provels »

Offline ha100

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Unreliable pfsense reboot Hyperv 2012
« Reply #8 on: December 16, 2017, 08:23:09 am »
I'm having the dirty disk problem after I reboot my Hyperv 2012 R2 host server as well. What is the best course of action?