Hello,
I’m bit lost in the new setup how to create VMs (and LXCs).
I got a Debian up and running using its installer. Using the linuxcontainer.org images causes troubles.
Still wondering how to do the network configuration to allow to ssh into it from outside, if possible with an deticated IP requested from the DHCP server on my router.
Currently network configuration is set on auto.
Hallo,
merci for supporting me here.
You can assume the IP instance (vm) is know and ssh server is installed during OS install.
Thé challenge rather is that TN creates ita own bridge for communication between instances and outside.
This bridge does not show up in network configuration of TN neither any internal Routing configuration (as instance is able to reach www).
In the documentation it is said, that I can e. g. MACVLAN interface during instance création but I cannot remember that I was able to do so.
So the question remains how can I reach the instance via SSH from a différent device in the same network if network configuration of the instance is not shown somewhere in TN menu ?
(I am away till saturday, not able to reach the system)
I have a similar problem - no way to route incoming traffic to a VM using the default bridge. Using a MACVLAN interface for the other NIC in the system, the VM does not get DHCP IPv4 address.
If you are using a macvlan network, communication between the Incus host and the instances is not possible. Both the host and the instances can talk to the gateway, but they cannot communicate directly.
So if you create an container or VM with a macvlan NIC, then you can SSH into the instance after you have installed the OpensSSH server as mentioned before. But SSH will not work from the TrueNAS Host to the instance, you need to use a different comuputer.
I forgot to add: in Incus you can also assign a VLAN to a maclan NIC. I haven’t tried it out but I assume you can create a VLAN interface in TrueNAS and then use this new interface as a macvlan NIC for an instance.
I’m not sure where the confusion is. I created a bridge interface (br0) on my NAS. The IP address on my NAS is assigned to br0, not to the underlying interface. The global instance settings are set to use br0. Both a LXC instance and a VM are set to “use default network settings.” And both work fine, including being able to SSH to each.