[02:43] <jayjo_> I'm trying to test running a pfsense VM on ubuntu as a router/firewall. I'm using netplan. Can I set the first ethernet port as a bridge to only forward to the pfsense VM, and then the second port for pfsense to use as the LAN?
[02:45] <jayjo_> This netplan example: https://netplan.io/examples/#configuring-network-bridges looks like it would forward all traffic to a VM. I have four ethernet ports. Can I use the first as a WAN, the second as a LAN for the VM, and the 3rd & 4th for the ubuntu host?
[02:47] <sarnold> jayjo_: it's possible the device passthrough described at  https://ubuntu.com/server/docs/virtualization-libvirt  could also do what you want
[03:20] <jayjo_> I've looked at that article a bit. Do you mean to generally use the xml file to make the edit permanent? I'd like to have the VM running like: https://bpa.st/LXNQ but that requires the network defined prior
[03:23] <jayjo_> Do I just need the VM to have access to both ethernets, and it's really a pfsense question?
[03:25] <sarnold> jayjo_: I think that's how I'd approach it first -- give pfsense both nics, and try to stay out of the way otherwise
[03:31] <jayjo_> each of those actual nics would have to have a separate bridge, right? So I can just expand the netplan.io examples by adding a second interface?
[03:33] <jayjo_> My ubuntu host has 4 NICs: enp1s0, enp2s0, enp3s0, and enp4s0
[03:34] <jayjo_> I would then have two virtual bridges for enp1s0 and enp2s0. The first still gets DHCP from the ISP https://netplan.io/examples/#configuring-network-bridges like using dhcp: true
[03:35] <jayjo_> is the second just a 'plain' bridge?
[03:41] <sarnold> jayjo_: I don't understand this terminology, and haven't used pfsense myself. I'm just accustomed to hearing folks using pci passthrough or interface passthrough to give the port to the VM *entirely* and let it do whatever it's going to do; then you use the other two nics on the machine for your host os, other guests, etc, with bridges etc as necessary
[03:41] <sarnold> jayjo_: it's time for me to run, have fun :)
[03:45] <jayjo_> thanks for your help! I appreciate it!
[18:00] <jayjo_> Is multipath a way to interact with SAN machines? Or with RAID arrays? Or is it an abstraction for both? (As you can probably tell, I'm not currently using it)
[19:01] <stgraber> jayjo_: it's a way to handle any storage device which can be access by more one path
[19:02] <stgraber> jayjo_: this is most commonly found with fiber-channel SANs that can have multiple controllers and/or go through multiple switchs, giving your HBA possibly dozens of paths to the drives
[19:02] <stgraber> jayjo_: but you can also get that just locally on some server when using a SAS backplane with multiple uplink ports
[19:02] <stgraber> jayjo_: and it should also be possible to have multipath for things like iSCSI devices or other ethernet/ip based storage
[19:33] <jayjo_> I have two extra HDDs not being used in my desktop (1TB and 500GB) via SATA connections. Can I use multipath + LVM with them to see it in action? I'm reading through a bit more of the docs.. it seems to be the layer above raid. Would multipath be used to access the RAID 1 array? Or, it could be, but only if there were multiple paths to the array? And in my case connected directly to the bus, there
[19:33] <jayjo_> aren't?
[19:51] <jayjo_> I do see "You cannot group different disks with multipath, only disks that have more than one path/connection."
[19:53] <TJ-> jayjo_: that's the point - multipath mean multiple physical paths/lanes/wires/fibres to the target device  (somewhat muddied when playing with multipath in virtualised environments)
[20:45] <Aison0> question to initramfs.conf: can I set MODULES to most and netboot? or can I only set one? does most include netboot?
[20:49] <tomreyn> Aison0: did you look at the man page, yet?
[20:49] <tomreyn> it explains what these settings do.
[20:50] <tomreyn> and you can only set one.
[20:53] <Aison0> I would like to use netboot, but also for most hardware ;)
[20:54] <Aison0> I think, the man page is not that helpful