Hello.
I started to work with Proxmox some weeks ago and working on POC.
I need to assign ip address for VM deployed from base template.
My steps:
1. Golden template - "golden1"
New VM, deployed from kickstart server with new OS (Oracle Linux 9.4).
Cloud-init installed.
Mounted Cloudinit drive (just qcow2 drive, suggested by Proxmox), but no changes in "Cloud-init" Proxmox webUI.
VM converted to template.
2. Base template - "base1"
Cloned from golden template.
VM hostname inside OS is correct - base1.
DHCP IP, prepared specific application,services and security patches.
No changes in cloudinit. Cloudinit drive already attached.
VM converted to template.
3. Destination VM - "vm1"
Cloned from "base1" template.
I assigned IP in "cloud-init" VM page. No any other cloudinit changes made. Clicked to "Regenerate image".
Result. VM network doesn't start.
eth0 in DOWN state inside OS.
/etc/sysconfig/network-scripts/ifcfg-eth0 - eth0 MAC address not matched to MAC in file, network settings set to dhcp.
hostname in /etc/sysconfig/network = golden1.
VM hostname inside OS is correct = "vm1"
What I did wrong?
I started to work with Proxmox some weeks ago and working on POC.
I need to assign ip address for VM deployed from base template.
My steps:
1. Golden template - "golden1"
New VM, deployed from kickstart server with new OS (Oracle Linux 9.4).
Cloud-init installed.
Mounted Cloudinit drive (just qcow2 drive, suggested by Proxmox), but no changes in "Cloud-init" Proxmox webUI.
VM converted to template.
2. Base template - "base1"
Cloned from golden template.
VM hostname inside OS is correct - base1.
DHCP IP, prepared specific application,services and security patches.
No changes in cloudinit. Cloudinit drive already attached.
VM converted to template.
3. Destination VM - "vm1"
Cloned from "base1" template.
I assigned IP in "cloud-init" VM page. No any other cloudinit changes made. Clicked to "Regenerate image".
Result. VM network doesn't start.
eth0 in DOWN state inside OS.
/etc/sysconfig/network-scripts/ifcfg-eth0 - eth0 MAC address not matched to MAC in file, network settings set to dhcp.
hostname in /etc/sysconfig/network = golden1.
VM hostname inside OS is correct = "vm1"
What I did wrong?