Cloud Config uses

pai

New Member
Oct 9, 2023
2
0
1
My Rockylinux guests have been configured trough cloud-config (static IP):

1698179998605.png
and they're getting nameservers config from pve itself + gw of net0:

guest:
Bash:
[kochan@s1 ~]$ cat /etc/resolv.conf
; Created by cloud-init on instance boot automatically, do not edit.
;
# Generated by NetworkManager
search dc7.box
nameserver 10.0.80.1
nameserver 10.0.90.1

pve:
Bash:
root@pve1:~# cat /etc/resolv.conf
search dc7.box
nameserver 10.0.80.1

I want to use only 10.0.90.1 nameserver but setting DNS servers in cloud-config doesn't affect anything as there is no difference to generated resolv.conf.
What is going on?

Bash:
[root@s1 ~]# cloud-init --version
/usr/bin/cloud-init 22.1-10.el9_2.0.2

[root@s1 ~]# cat /etc/NetworkManager/conf.d/99-cloud-init.conf
# Created by cloud-init on instance boot automatically, do not edit.
#
[main]
dns = none
 

Attachments

  • 1698179997136.png
    1698179997136.png
    5.6 KB · Views: 2

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!