VM has no internet on boot

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
I have a Debian 11 VM running portainer. Whenever I start my NAS, it has no IP and I'm unable to reach it.
cmd_ayVlbXIfXe.png

(enp0s4)
After restarting the IP appears properly and I can connect to it no problem
cmd_xUXyDCsPzE.png

Restarting it further it works fine every time.
Specs/setup
chrome_KLxmdIfJH0.png

chrome_pAgD5eJVlL.png

Debian 11, 8 gb ram (64 gb total), 1 gbps nic is hooked up to a switch then into my router.
 

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
I don't have a screenshot but if I ping 8.8.8.8 I get "network not reachable" or smth, and pinging my PC's local IP it starts a ping but never gets a response
 

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
After restarting fully
1665588208718.png

This was what happened to the local ip i was talking about in the first place
 

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
I managed to fix the issue by assigning a static IP in the config /etc/network/interfaces
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Sorry, I would help, but I neither use SCALE nor do I use Docker or LXC's. If it was CORE or jails, I'd be of more help.
 
Top