alberto2132
Dabbler
- Joined
- Mar 30, 2023
- Messages
- 28
I just installed a virtual machine inside the Truenas Scale and I have a network problem. My vm does not have internet and I don't know why, here I leave the screenshots of my configuration.
Moved.Maybe a moderator could move the question to the correct section of the forum?
It doesn't work for me, I have followed this video https://www.youtube.com/watch?v=7clQw132w58&ab_channel=Haydn-San . when I have configured everything and I give it to test changes, when it comes out: "Connecting to TrueNas... make sure that the TrueNas system is turned on and connected to the network" I don't get that, I load it and after a minute I get: waiting for the active truenas driver to appear, and then I enter the network administration, but nothing has changed, I only get the interface I had before, that is, the changes are not applied to me.I see no mention of a bridge in here. Typically you need a bridge, which is like an ethernet switch in software, so that the physical ethernet port on your NAS is shared with both the NAS kernel of the physical host but also it can be tapped into to allow VM's to access the physical ethernet port as well.
The problem is that this is mildly complicated to set up. I expect something like this would work:
1) Create a bridge
2) Remove the IP address from your primary interface, and apply that change
3) Assign that primary interface as a member of the bridge
4) Assign the IP formerly on the physical interface to the bridge interface, and apply that change
5) Test network changes (might take awhile, you need to be able to confirm the change relatively quickly)
6) Under virtualization, you should have an option to set the VM's ethernet interface to brX.
The problem is that you're doing brain surgery on self, so I'm not clear on what the easiest method to get through this actually is. Removing the IP address of the primary interface is the procedurally correct thing to do, but it means you may lose connectivity to the NAS. If you have a second physical ethernet port on the server, I would set that up temporarily as a management interface and do it that way; that should work trouble-free.
I realized I don't have any recent vintage of SCALE around here to try any of this out. I'll see if I can get around to fixing that later this morning.
If you set a physical NIC as a bridge member in the Scale 'add a bridge' dialogue, is that NIC automatically set in promiscuous mode, or is there a way to set promiscuous mode so it actually passes relevant packets to the bridge?It doesn't work for me, I have followed this video https://www.youtube.com/watch?v=7clQw132w58&ab_channel=Haydn-San . when I have configured everything and I give it to test changes, when it comes out: "Connecting to TrueNas... make sure that the TrueNas system is turned on and connected to the network" I don't get that, I load it and after a minute I get: waiting for the active truenas driver to appear, and then I enter the network administration, but nothing has changed, I only get the interface I had before, that is, the changes are not applied to me.
What? I don't know what you want to tell me?If you set a physical NIC as a bridge member in the Scale 'add a bridge' dialogue, is that NIC automatically set in promiscuous mode, or is there a way to set promiscuous mode so it actually passes relevant packets to the bridge?
Well the bridge did work as suggested in the YouTube video quoted above, and it seems to work without setting promiscuous mode, so I am not sure how the physical NIC knows to pass packets to the bridge MAC address; but it does.It was a question, but also a possible reason a bridge might not work. I'm about to set one up, I was just hoping someone who already had would comment.
In VirtualBox, do I have to add any more network interface? I'm doing it like in the video and it doesn't work.Well the bridge did work as suggested in the YouTube video quoted above, and it seems to work without setting promiscuous mode, so I am not sure how the physical NIC knows to pass packets to the bridge MAC address; but it does.
I suggest you go through the video again paying particular attention as to when, and when not, to "test changes" . It is important to save the bridge without an IP address and without a bridge member, and test changes. But then to modify the bridge to add the above two, save it but don't test changes, then remove the IP from the NIC, save that and test both changes together. Provided you can get back into the UI within one minute it should be possible to save the changes.
Actually, I think the time to wait before changes revert can be configures somewhere, and that could help!