When cloning SUSE images in proxmox the initial image eth0 network is working but all subsequent aren’t
Reason:
When you clone a VM in Proxmox:
Proxmox changes the NIC MAC address (by design)
The first/original VM keeps the old MAC → works
The clones get a new MAC
On SLES 15 SP7, the network config is often bound to the old MAC
Result:
👉 eth0 config exists
👉 but no interface matches it
👉 so clones have no IPv4 (or no device)
Fix:
- Identify the real interface
ip link show
Example output:
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP>
2. Fix the config file name
ls /etc/sysconfig/network/ifcfg-*
Rename it:
mv /etc/sysconfig/network/ifcfg-eth0 /etc/sysconfig/network/ifcfg-ens192
3. Edit the config
vi /etc/sysconfig/network/ifcfg-ens192
Configure the fixed IP
BOOTPROTO='static'
STARTMODE='auto'
IPADDR='192.168.10.21/24'
Remove any of this lines if present
HWADDR=
ETHTOOL_OPTS=
IPADDR=
NETMASK=
Configure gateway & DNS (global settings)
vi /etc/sysconfig/network/config
set
NETCONFIG_DNS_POLICY="static"
....
NETCONFIG_DNS_STATIC_SERVERS="192.168.1.1,8.8.8.8"
....
Edit routes:
vi /etc/sysconfig/network/routes
add
default 192.168.10.1 - ens192
apply configuration
systemctl restart wicked

Schreibe einen Kommentar