Host got no IP, VM is available

ny_unity

New Member
Dec 30, 2024
2
0
1
Hello all,

I set up a Proxmox Server for my dad in law (install and config in my homenetwork), there are running 1 Homeassistant OS and two LXC Container with DietPi. The VM and the both LXC are listed in the FritzBox and I am ablae to access in his network.

The host is not listed with an ipadress in the router. Only a connected device (LAN2 on ROuter). I made the /etc/hosts to the ip of my network (192.168.2.0) but his network is 192.168.178.0. My idea was, that I can let /etc/network/interfaces to dhcp... unfortunaly, it does not work :-(

So, is there a way to connect to the host during the LXC and then i can change the ip?

thx,
Erik
 
Proxmox VE puts its management port on a static IP. Dynamic IP via DHCP is a planned feature. For now, set it up to use a static IP.

VM and LXC containers have no issues with using DHCP even though the Proxmox host uses a static IP, which is why they're coming up as you expect.

The only time the Proxmox server uses DHCP is when it suggests a static IP (that you can then change) during the install. It seems to use DHCP during the install just to check that the suggested IP isn't in use.

You can theoretically use the LXC to SSH into the Proxmox host, but the Proxmox host has to actually be reachable over the network from the LXC. If you can get into the LXC and SSH into the IP of the Proxmox host, then you can edit the Proxmox host's /etc/network/interfaces to fix the static IP to match your father's network.

Proxmox is more complicated than a normal Linux install, so there's some extra steps. See: https://www.servethehome.com/how-to-change-primary-proxmox-ve-ip-address/ and https://www.youtube.com/watch?v=3JR5XPkab-c for examples of how to do it. Also don't forget to update the DNS server at /etc/resolv.conf .

You'll have to reboot after you change these values.
 
  • Like
Reactions: Kingneutron
thanks for your answer. But, I am able to connect via ssh to LXC but not to the proxmox host, because it got no ip. I thought there is a way to edit files on host while beeing logged in into lxc, you know my problem?
 
thanks for your answer. But, I am able to connect via ssh to LXC but not to the proxmox host, because it got no ip. I thought there is a way to edit files on host while beeing logged in into lxc, you know my problem?
LXCs and VMs are (intended to be) fully isolated from the host filesystem. Barring a security exploit that shouldn't exist, you can't break into a sealed off LXC or VM from the host. That's why we communicate between the host and guest with SSH, SMB, NFS, etc.

Right now, the host isn't on the network in a usable way.

You're going to need physical access to the Proxmox host, with a keyboard and monitor hooked up, to edit the files and get it back on the network.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!