Proxmox connexion web

Solved
Thonnerre Posted messages 6 Status Membre -  
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   -

Hello,

I have set up a Proxmox on a machine and I can't access the machine on the web. Is this a recurring problem?

6 réponses

mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

Your message #4 confirms what I suspected: you need to configure your Linux to obtain an IP via DHCP. Once started, you can initiate a DHCP request with the following command as root:

dhclient -v

You should then have a valid IP configuration. To check:

ip addr ip route cat /etc/resolv.conf ping -c2 192.168.1.1

It might be a good idea to install nmcli and automate the retrieval of an IP via DHCP at startup as explained here. Let us know your Linux distribution if you want more details.

Furthermore, since you are using a Livebox, local IPs start with 192.168.1.*, as evidenced by the results of IP route (your Windows has IP 192.168.1.30 and your Livebox 192.168.1.1). So your Proxmox machine should, once the DHCP request is made, receive an IP that starts with 192.168.1.* which you can attempt to ping from your Windows machine.

Good luck

2
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

The problem is currently described too vaguely for us to respond precisely. I guess you are trying to access a remote virtual machine.

Whatever solution is implemented in the network, the IP address of the machine you are trying to access must be routable and the port of the service you are trying to connect to (please indicate this) must be open. To find out, assuming the machine's IP is 11.22.33.44, what do the following commands return:

ping -c2 11.22.33.44 nmap 11.22.33.44

Example: you are at home, you want to access a machine from your company.

  • If this machine has a public IP, the service you are trying to access is running (and therefore has opened a port) and the company's firewall allows you, then you have a chance to connect.
  • If this machine is on the intranet and does not have a public IP, your machine at home cannot route to it. Generally, you need to go through an intermediary. Some possible solutions:
    • Make it publicly routable (see DMZ).
    • Connect to the company's VPN (assuming there is one), in order to route the machines on the Intranet.
    • Go through a ssh proxy (assuming there is one) in the case of an ssh connection. An ssh proxy is a machine that is publicly accessible via ssh, from which you can access an internal machine via ssh.
    • Create an ssh tunnel to carry the communication (whether it is ssh or not). But that is probably not what you want to do, as the said tunnel must be initiated by the target machine.

If you want more information, you need to tell us more about your use case...

Good luck

0
Thonnerre Posted messages 6 Status Membre
 

Hello,

I created the machine. I properly configured Proxmox with the Ethernet connection port, an IP that wasn't already taken on my network, the language and timezone, and the password that I noted to remember it.

Once the configuration was complete, I went to connect the machine to the Internet box from which I can access it using its IP address. It asks me for the password, the login (which I enter correctly). After trying the password in every possible way I might have mistyped it, I get the error message as shown in the screenshot of my first message.

I pinged the machine to check for any micro cuts; there were no issues encountered, it is indeed powered on and properly connected with the power and Ethernet cable.

I don't have any further details that could help you.

0
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Hello,

I still need a few clarifications:

  • The machine you created with Proxmox and the machine from which you are trying to connect are both supposed to be connected to your box, is that right?
  • Is it the same physical machine (the Proxmox virtual machine is installed on the machine from which you are trying to connect) or are they two distinct physical machines?

Furthermore, you forgot to answer some questions from my previous message.

  • Can your two machines ping each other? Assuming the Proxmox machine has the IP 192.168.0.1, please copy and paste the result of these commands (to be tested on both machines):
ip addr ip route ping -c2 192.168.0.1

If the machine you are trying to connect with is running Windows, run the following in the MS-DOS command prompt:

ipconfig /all ping 192.168.0.1

... and copy and paste the result using the icon in the top left.

Regarding IP addressing, unless you configured it differently, your box should automatically assign IP addresses via DHCP (automatic configuration). In this case, you should not manually set an IP address for your machine, otherwise that machine will not be able to connect to your box. Your machine should practically always have the same IP if you use it regularly.

If this is not the case and you want a machine to keep a fixed local IP address, you need to either set a DHCP lease (this is configured in your box), or configure your box so that part of the IP addresses can be assigned manually, or completely give up on DHCP configuration. For more details on these topics, please let us know what model of box you are using.

Good luck

0
Thonnerre Posted messages 6 Status Membre
 

Hello,

The machines are indeed two distinct machines: the Proxmox connected via an RJ45 to my box and the other via Wi-Fi.

The main machine can ping the Proxmox, but not the other way around.

Main machine

Proxmox.

The IP of my Proxmox machine was configured manually; it didn't give me the chance to check a box for DHCP to automatically assign its IP.

My box is from Orange, a LiveBox 5.

0
Thonnerre Posted messages 6 Status Membre
 

Hello,

Thank you for your help and for teaching me new things. The problem is solved thanks to you, thank you.

0
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 

Thank you for your feedback and best wishes for the future!

0