VM Guests with static addresses

cmusser

New Member
May 1, 2020
1
0
1
55
We are trying to use cloud-init to set up Linux VMs on our ProxMox cluster with the following items:

- A temporary administrative user
- The salt minion
- A hostname
- A static IP address, default router and DNS config

We can accomplish all but the last of those via various cloud-init configuration directives, but are stuck on the network stuff. The problems vary based on the distro we’ve tried. For example, Debian 10's cloud-init reports an error with interface renaming, then falls back to DHCP. I tried a few others but they had different problems: either no address assignment at all or in one case, both a DHCP *and* a static address on one interface.

I know that these problems may be specific to our distro, or with our use of cloud-init (and I can provide specific logs and configs as needed), but is there a good procedure for deploying QEMU VM guests with static addresses ?
 
hi,

easiest way i can think of is using dhcp with the mac addresses of interfaces to assign specific IPs
 

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!