Using Virtual Machine Manager on Ubuntu Mate. Using a full installation moving from Unraid. One item that was useful in Unraid, it had a dummy proof way to configure VM’s to have their own IP address on the local network. Can anyone ELI5 the way to do this?
P.S. I tried to do a search, I am sure this exists somewhere in the forum. Please bear with me.
Set up a network bridge and assign the VM’s virtual NIC to the bridge
Set up macvlan (or ipvlan), which is similar to a bridge but it bypasses a bunch of unnecessary stuff and tends to be faster (but requires more setup)
Pass a dedicated physical interface through to the VM (PCIe passthrough), assuming you have or can add an extra PCIe or USB NIC
Pass a virtual interface through to the VM (manually or allocated from a pool), assuming your NIC supports SR-IOV
Option 1 is definitely the easiest and most flexible; Option 3 is my go-to for “important” VMs, like an always-on Windows VM; Option 4 is my favorite and I would do it everywhere if not for the additional hardware requirements.
ETA: I jumped on one of my VFIO hosts to capture some snippets to give examples of options 1 and 4. I have some virtual NICs assigned to the bridge and others assigned to an SR-IOV pool. You can see that the host itself can access both networks directly, and it’s easy to mix in VLANs so let me know if you’d like to see examples of that.
This is were my confusion started last time. Whether the creation of the network originates from the host or VMM.
If I use the Linux dot com guide and create a network I get an error saying the device is already in use.
If I create a bridge in network connections on the host, I am probably mis-configuring or not configuring enough. The VM never connects to the internet.
Yes, it does. You will need to create a NAT-based network (or use the default network) and optionally set up port forwarding rules to expose virtualized services to your local network over the wireless connection.
a bridge nic does not care if it is wifi or cat6 or fiber, so long as it has a connection. the bridged nic does not even need an IP address itself necessarily.
as the host machine is ubuntu it probably will have a software firewall enabled, but NAT is probably still not needed here.
@wwed26 can you post your interfaces file and we can fix it for you.
Typically you can only bridge a wireless interface when it’s in AP mode, not in station mode. Even if you could technically bridge a wireless interface in station mode, it’s highly probable that the AP it’s connected to will not allow traffic from any MAC addresses other than the one that originally authenticated. Ergo traffic from the virtual NICs on the bridge won’t get very far…