October 30, 20232 yr Hi all, I have some security appliances for whom I need to pass many vlans into the vm, without creating them in unraid. On an ESX I can archive that by simply set the related port/nic to vlan id 4095, how is this been done in unraid? Many Greetings Ulrich
June 13, 20251 yr Did you ever find the answer for this?I want to do the same for my OPNsense VM but the only way I can see to do it is to create each VLAN in unraids network settings, pass each VLAN through as a Virtual NIC to the VM and assigning each interfave as a native VLAN in the OPNsense VM. I believe this will get the job done but is not a virtual trunk and not very flexable.
June 13, 20251 yr Author 34 minutes ago, NerfyGeko said:Did you ever find the answer for this?I want to do the same for my OPNsense VM but the only way I can see to do it is to create each VLAN in unraids network settings, pass each VLAN through as a Virtual NIC to the VM and assigning each interfave as a native VLAN in the OPNsense VM.I believe this will get the job done but is not a virtual trunk and not very flexable.Sadly not ... it looks like it's a feature noone knows so they don't miss it... .I moved away from unraid for that usage szenario and again use my older esx 7 for that. Edited June 13, 20251 yr by NAS2-B650D4U-2L2T
June 13, 20251 yr It's called MACVTAP. It's supposed to be supported on Unraid since version 6, I believe. But it's nowhere to be found on the GUI nor the docs, which of course you already know.I'm not running Unraid baremetal for the same reasons as you, on top that I'm also passing though a storage controller to it, thus I can't run do nested virtualization in it to confirm but I think it's done with:# ip link add link eth0 name macvtap0 type macvtap (oh look! In-line code. About time! 🤰)Where you replace eth0 for your network adapter. macvtap0 is the name of the new adapter.I tried it:and...:(not there.)But as I mentioned, I can't actually run VMs, I can only pretend to make them, and a lot of things in Unraid don't present themselves unless you select something else and things of that nature. Also, ip commands are ephemeral; this wouldn't survive a reboot.It would be awesome if somebody from Unraid replied for once to this question as it's not the first time it's been asked. I came in today to ask the same thing because I have this other Unraid server that so big it's occupying the most of the resources of any of the servers of the cluster it's in. It would be much more efficient to run it baremetal in the server the other one that can't run VMs is and consolidate them. I'm not holding my breath though. :(I can sacrifice everything I'm used to on vSphere: I'm fine not being able to clone VMs (especially Debian that takes ages to install) again, not being to cluster servers, using templates. deploying OVAs, all that except for the ability to pass trunk ports. Even Hyper-V does that (surprisingly well actually, if you don't mind PowerShell).Unraid? You there?
June 16, 20251 yr I just found this:macvtap's libvirt XML definition... <devices> <interface type='network'> <mac address='52:54:00:0a:8a:c1'/> <source network='ovs-bridge-eth1'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/> </interface> <interface type='network'> <mac address='52:54:00:0a:8a:c2'/> <source network='macvtap-bridge-eth2'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/> </interface> ... </devices>Source: https://suhu0426.github.io/Web/Presentation/20150203/index.htmlI noticed the VM definition thingy now presents both the breakdown of the XML side by side together with much easier to digest boxes too, it should take out much of the guessing for the vSphere immigrants who've never had to deal with this sort of thing before. Since the last post, now I'm running Unraid baremetal, but I have yet to check it out to confirm it works on it. I tried a couple of things but then the DNS cache expired (DNS servers and edge firewall were offline; project got just a bit out of hand) and things got very ugly very fast after that. If it works I'll make sure to confirm back. 🤓 I've no objections on being beaten to it though.For what it's worth; in the logs and drivers section (in Tools→System Drivers) there is mention of macvtap being loaded. I'm optimistic.But still, Unraid? Buddy? You alive? Sh— Should I check on the news? Did a night time "employee" stole your wallet and keys when you fell asleep, again? 😒
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.