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

    Cannot console VM: Assigning interfaces and setting interface in advance

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 850 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.
    • D
      duzunov
      last edited by

      Hello! I really hope I'm not asking a too trivial question.

      So my plan is the following - install pfSense in Hyper-V, export .vhd file, upload it to Azure, start in Azure.

      I'm using DHCP to get the WAN IPv4 IP

      However, as soon as I start the VM in Azure pfSense sees the interface mismatch and then tries to reconfigure its interfaces. Azure, unfortunately, doesn't allow you to console the VMs, it only provides boot diagnostics that show me that the VM is expecting a response that is impossible to receive.

      So, I'll need to reupload the image and then:

      somehow prevent pfSense from going into that interactive mode when it boots in Azure and to reconfigure itself to use the new interface with DHCP

      Can someone provide a pointer for doing this?

      Best regards!
      azure_boot_diagnostics.png
      azure_boot_diagnostics.png_thumb

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        I am not familiar with the detail of running in Azure. But the principle is just that you need the physical interfaces names in config.xml to match up with those on the system (virtual or real hardware) that it ends up running on.

        So after getting things ready locally, edit config.xml and find the section where the WAN/LAN etc interface have their definition and change the "em0"… to "hn0"... that it looks like Azure has. If there are VLANs... then leave the VLAN bits of the device names as-is.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • D
          duzunov
          last edited by

          Thank you!

          Somehow I assumed that getting it to run in a VM means that the changes were saved in the config.xml file. Loading it with vi and saving it made it work for me, even hn0 was already filled in.

          done.png
          done.png_thumb

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