Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Running pfSense in Hyper-V on my media server?

    Scheduled Pinned Locked Moved Virtualization
    12 Posts 5 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ianmud
      last edited by

      Thanks for the thoughts...just to make sure I understand, are you suggesting that it might be smarter to use a different virtualization engine, or suggesting that I run both Emby and pfSense in the same hyper-v VM, or that I run one each in their own VM? Again, thanks

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        I'm suggesting you run a baremetal hypervisor like ESXi or Xen etc and run anything else you want as VMs in that.

        I would have doubts about running Windows 24/7 as a hypervisor even with the NIC passed through. There are people doing that though.

        I'm not really familiar with Emby or with what it's requirements might be in terms of direct hardware access and if that can be achieved in a VM. It looks like it's available for just about anything though.

        Steve

        1 Reply Last reply Reply Quote 1
        • provelsP
          provels
          last edited by

          Not familiar with Emby, but run pfSense in a Hyper-V VM myself. Sounds like you have enough resources. You'd only need 2 NICs; one for the WAN v-switch and one for the LAN v-switch. But if you have the ports, you can always assign one to the host itself. You can see my specs in my sig, pretty lightweight, and this is on a 10 year-old quad core. You would create a VM for pfSense itself. I don't think you can actually pass a NIC through directly though, you must use a v-switch, unless something has changed in Hyper-V. Yeah, direct access to hardware for Emby would be an issue, I think. I'd keep your server as is and install the Hyper-V Server Role and install the pfSense VM.

          Emby looks interesting, I'd love to dump cable.

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

          I 1 Reply Last reply Reply Quote 1
          • I
            ianmud @provels
            last edited by

            @provels Thanks for the help. Yes, I love Emby...have the lifetime subscription. I used to run Plex but its DVR was problematic. Since switching to Emby I haven't had a single serious issue (though playback while simultaneously recording is a bit slower than I would like). The developers are responsive and take satisfaction seriously. For live television/DVR, I have EMBY paired with a bullet proof Silicon Dust multi-tuner.

            1 Reply Last reply Reply Quote 0
            • B
              brians @ianmud
              last edited by

              I tried running pfsense in several different hyperv installations and it would always eventually end up with a corrupt file system.

              I provelsP 2 Replies Last reply Reply Quote 1
              • I
                ianmud @brians
                last edited by

                @brians was your instance stable for a period of time before becoming corrupted and if so, generally how long was it stable?

                B 1 Reply Last reply Reply Quote 0
                • provelsP
                  provels @brians
                  last edited by

                  @brians Good point. I found same if I let Hyper-V try to either save or shutdown pfSense on host reboot. Now when I do reboot, like after Windows Updates (done manually), I manually shut pfSense down first and have it set to start automatically. Been running as VM for several years now w/o issue. I also found pfSense seemed to ignore both dynamic disks and memory, so I set both fixed. And the host is UPS'd now, too.

                  Peder

                  MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                  BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                  1 Reply Last reply Reply Quote 1
                  • B
                    brians @ianmud
                    last edited by brians

                    @ianmud It seemed to be stable for weeks/months but not sure when it became corrupt because I would not notice a problem until it rebooted. In most cases I was able to re-install from ISO and do a recovery which simplified it.

                    @provels I don't think I used dynamic disks or memory. Sometimes cannot shut down pfsense gracefully always.

                    In general...
                    I was using pfSense in a VM mainly to run OpenVPN appliance behind an existing firewall. Good to experiment on but dedicated hardware is better.

                    After evaluating it, I have decided long time ago that pfSense is better solution for our customers (we are small IT company), and have since purchased and installed about a dozen Netgate pfSense appliances. For home I use a home built standalone i7 PC.

                    1 Reply Last reply Reply Quote 1
                    • provelsP
                      provels
                      last edited by

                      I use NUT (in remote APCUPSD mode) in pfSense as slave to monitor the host's UPS status (which is using the APCUPSD Windows port), and my XigmasNAS in turn monitors PFsense's UPS status using NUT. Kind of hokey, but seems to work.

                      Peder

                      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mats
                        last edited by

                        I see no problem here.
                        One nic connected to a v switch of type external (for example called INET). Connect the wan if of the pfsense vm to that. Make sure the host os cannot us it.

                        create a new v switch of type external (called Internal) and connect one physical nic to it.

                        last, connect the host os, lan nic of pfsense and any other internal vm to that v switch

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.