Ubuntu VM does not have an @IP

Juliet

Member
Oct 24, 2023
46
0
6
Hi,
I have create a template (I have enabled DHCP in cloud-init) here's the conf :
1698915289572.png

from this template I crated a VM, but when I type ip a cmd to see the @ip, i do not see it :
1698915377986.png
this is what I see, Could you tell me why please ?

thanks
 
Do you have the right vmbX running? with connect to the "world".

And there is a dhcpd on a router or a LXC, VM running?
 
Do you have the right vmbX running? with connect to the "world".

And there is a dhcpd on a router or a LXC, VM running?
thanks for coming back, actually I'm new to PVE, I have just intalled this morning and I followed a tutorial to create a template then VM, I followed the same instruction, but for my case I do not see the @ip.

And there is a dhcpd on a router or a LXC, VM running?
=> it is a brand new PVE, I do not think I have this

I have only the VM whicj I create it
 
And there is a dhcpd on a router or a LXC, VM running?
=> it is a brand new PVE, I do not think I have this

I have only the VM whicj I create it
Then you need to give it an IP address (in your local subnet) using the method that is appropriate for the operating system inside the VM.
Proxmox does not provide IP addresses; this is the job of a DHCP server (like a router) on your local network.
If you used cloud-init to set the VM to DHCP, then you need to provide a DHCP server one way or another.
 
Then you need to give it an IP address (in your local subnet) using the method that is appropriate for the operating system inside the VM.
Proxmox does not provide IP addresses; this is the job of a DHCP server (like a router) on your local network.
If you used cloud-init to set the VM to DHCP, then you need to provide a DHCP server one way or another.
thnaks for coming back,
then you need to provide a DHCP server one way or another.
=> how to provide DHCP server, ?
 
Any way you like. There are many ways. I just use the one built-in the router of my local network.
I mean I have to do something (conf) at the GUI level to provide DHCP server ? I 'm new to things like this .
if you could help please.
 
I mean I have to do something (conf) at the GUI level to provide DHCP server ? I 'm new to things like this .
if you could help please.
My point was that It is not something you can fix in Proxmox. You need to create a DHCP server (or use your router). For example by creating a VM or container that provides a DHCP service or by adding a physical computer to your network that provides a DHCP service. Running multiple machines, virtual or otherwise, will require to learn some network management skills.
 
  • Like
Reactions: Juliet
My point was that It is not something you can fix in Proxmox. You need to create a DHCP server (or use your router). For example by creating a VM or container that provides a DHCP service or by adding a physical computer to your network that provides a DHCP service. Running multiple machines, virtual or otherwise, will require to learn some network management skills.
Wierd, the tutorial which I followed did not do that..just he created templat then VM..and every thing works for him.
anyway, thanks a lot for your time, I will think about you suggest and test.
 
Maybe he already has a DHCP server in his local network, like his internet router. Can't you just use your internet router?
the problem i have no idea how I use my internet router, do I have to configure someting in the template while I'm creating it ?
thanks for your time .

By the way, the PVE is installed in OVH cloud provider.
 
the problem i have no idea how I use my internet router, do I have to configure someting in the template while I'm creating it ?
thanks for your time .

By the way, the PVE is installed in OVH cloud provider.
Sorry, I must have missed this vital piece of information. You don't have a local network, so you can't use your local router.
Did you get multiple IP addresses from OVH? Otherwise you probably need a NAT setup (and create a local network and assign the local IP addresses yourself or setup a DHCP server yourself).
Maybe search the (network) forum about OVH and how other people already solved such issues.
 
  • Like
Reactions: Juliet
Sorry, I must have missed this vital piece of information. You don't have a local network, so you can't use your local router.
Did you get multiple IP addresses from OVH? Otherwise you probably need a NAT setup (and create a local network and assign the local IP addresses yourself or setup a DHCP server yourself).
Maybe search the (network) forum about OVH and how other people already solved such issues.

You don't have a local network=> How I can check if I have a local network ?
Did you get multiple IP addresses from OVH? => I know just the IP to access PVE console via SSH.
 
You don't have a local network=> How I can check if I have a local network ?
Did you get multiple IP addresses from OVH? => I know just the IP to access PVE console via SSH.
They most likely gave you an IP address outside of the private/local network ranges, so it is directly accessible from the internet and there is no local network or local router or DHCP server. All of this is not related to Proxmox installation or configuration, sorry. Please search the forum on how to setup a NAT for a rented server.
 
  • Like
Reactions: Juliet
They most likely gave you an IP address outside of the private/local network ranges, so it is directly accessible from the internet and there is no local network or local router or DHCP server. All of this is not related to Proxmox installation or configuration, sorry. Please search the forum on how to setup a NAT for a rented server.
thaks, Yes I think so too, I'm looking at OVH Documentation to see how to reslve this problem.
 
I 'm new to things like this. (...) By the way, the PVE is installed in OVH cloud provider.
The forum is full of knowledgeable people that like to help, but there is some learning curve.

Your Proxmox comes with high grade (in my opinion) documentation, but the documentation does not start at "zero". The overview is on the first page of the administration guide at yourserver:8006/pve-docs/pve-admin-guide.html

When you open Proxmox, you see your server in the tree on the left, and a level above it is "Datacenter". Look at it like that! Proxmox provides a virtual datacenter that you can fill with virtual machines, and just like in a regular datacenter with regular machines, these machines need to be connected to the outside world "one way or another".

Do you have a spare computer at home? A configuration error on a public host means means a compromised server in minutes, while at home you have some leeway.

Guessing your familiarity with DHCP and server configuration, what is your goal with running Proxmox?
 
  • Like
Reactions: Juliet and andlil

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!