OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • OPNsense on Hyper-V
« previous next »
  • Print
Pages: 1 [2]

Author Topic: OPNsense on Hyper-V  (Read 24213 times)

weust

  • Hero Member
  • *****
  • Posts: 644
  • Karma: 57
    • View Profile
Re: OPNsense on Hyper-V
« Reply #15 on: January 31, 2016, 01:02:19 pm »
@DirtySpiv, Because FreeBSD can make use of options offered by the Integration Tools.
Maybe you don't need all of them, but for automation they can come in handy. Like the save state/pause/shutdown of the VM when shutting down the host server.
FreeBSD may have support for some virtual hardware offered by Hyper-V, but the Hyper-V cannot control the VM.

The Hyper-V VMSwitch is a Layer 2 switch. You cannot create multiple VMSwitches using the same physical (or teamed) network adapter. You even get a message saying you can't because the adapter is already bound to another VMSwitch.
So if you want to use multiple networks you would need to setup VLANs on your physical switch, and use VLAN tagging on the vNIC or inside the guest OS to be able to work with multiple networks.

If you did something else, you're not explaining it well.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

DirtySpiv

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: OPNsense on Hyper-V
« Reply #16 on: January 31, 2016, 01:57:00 pm »
franco, there are no issues on FreeBSD 10.1/pfSense, but with FreeBSD 10.2/OPNsense port forwarding is not working and my routing table being reset after any config change from the web UI (i'm setting upstream gateway for wan interface manually).

weust, this functionality comes with FreeBSD from the box, you don't need to install additional software, except KVP daemon, as stated on FreeBSD wiki. So I can control my VM from hypervisor.

Quote
You cannot create multiple VMSwitches using the same physical (or teamed) network adapter. You even get a message saying you can't because the adapter is already bound to another VMSwitch.
So if you want to use multiple networks you would need to setup VLANs on your physical switch, and use VLAN tagging on the vNIC or inside the guest OS to be able to work with multiple networks.
Are you talking about two External virtual switches binded to the same NIC? I have only one External, and one Internal, and can create as many Internal virtual switches as I want. There is some misunderstanding between us. Keep in mind that I'm not a nix guru or professional sysadmin. I can provide screenshot of my setup, just say what you are actually interested in.
Logged

weust

  • Hero Member
  • *****
  • Posts: 644
  • Karma: 57
    • View Profile
Re: OPNsense on Hyper-V
« Reply #17 on: January 31, 2016, 02:02:14 pm »
Internal and Private VMSwitches are fine. Now I get you.
Though that means you can only use VM's on the same Hyper-V host to connect to and through the OPNsense VM for internet connectivity.

I never disable the Integration Tools, and when I forget to enable some options upon enabling them the console will detect them.
I will check the wiki page later.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

DirtySpiv

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: OPNsense on Hyper-V
« Reply #18 on: January 31, 2016, 02:16:39 pm »
Quote
Though that means you can only use VM's on the same Hyper-V host to connect to and through the OPNsense VM for internet connectivity.
It depends how much additional IPs do you have. If you have enough - just bind them on guest OS network interface and expose it to internet without routing.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: OPNsense on Hyper-V
« Reply #19 on: January 31, 2016, 06:17:46 pm »
Quote from: DirtySpiv on January 31, 2016, 01:57:00 pm
franco, there are no issues on FreeBSD 10.1/pfSense, but with FreeBSD 10.2/OPNsense port forwarding is not working and my routing table being reset after any config change from the web UI (i'm setting upstream gateway for wan interface manually).

That may be the issue that weust is having in a different wrapping. We've had no such issues in 15.7 with 10.1, 10-STABLE works again according to weust.

When you install 15.7.18 (images are still up on the mirrors), one can safely upgrade to 15.7.25 with one update. It should be relatively easy to verify this with a snapshot + ISO installer config import/quick install if you find the time.

Meanwhile, we are working on pinning down with patch is missing here on 10.2.
Logged

Hektor

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: OPNsense on Hyper-V
« Reply #20 on: February 01, 2016, 11:16:40 pm »
Just a short info:

I updated to 16.1 via opnsense-update. Besides it didn't boot anymore because I did set up the VM with /dev/ada and changing it to /dev/da... (thanks to weust for confirming my change) -> network is dead here, too. See here for details:
https://forum.opnsense.org/index.php?topic=2114.0

I'm running Hyper-V Server 2012 R2 (free edition) on a HP ProLiant ML370 G5. I didn't install integration services manually.

So it seems to be a general issue when using Hyper-V Server 2012 R2.
Logged

  • Print
Pages: 1 [2]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • OPNsense on Hyper-V
 

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