proxmox interface does not mat.. - CLOSED

Forums > Bug Posts > proxmox interface does not mat.. - CLOSED

Post #1
Proxmox uses ens18 rather than enp0s3. Need to write a dynamic symlink rule to test for interface name on install.
Bryan King

Post #2
how do you fixed this problem.

Post #3
I will post the details of fix soon.
Bryan King

Post #4
Replied to your post here:

https://razdc.com/cgi-bin/account/secure.pl?f=TROUBLESHOOT&t=2
Bryan King

Post #5
Copy of the temporary fix posted in trouble shooting board:

You must be comfortable with running commands in the linux terminal to run this fix otherwise wait for a patch to be pushed out.

obtain the interace name:

   NIC=`ip link  | awk -F: '$0 !~ "lo|vir|wl|^[^0-9]"{print  $2;getline}'`

Strip whites space from interface name:

   WSNIC="$(echo -e  "${NIC}" | tr -d '[:space:]')"

Obtain MAC address:

   MAC=`cat /sys/class/net/$WSNIC/address`

Copy current interface config to "enp0s3":

   cat  /etc/sysconfig/network-scripts/ifcfg-$WSNIC > /razdc/scripts/ifcfg-enp0s3

Append MAC address to force this config to be associated with "enp0s3":

   echo  'HWADDR="'$MAC'"' >> /razdc/scripts/ifcfg-enp0s3

Replace all instances of the old interface name with "enp0s3" in the new config:

   sed -i  's/'$WSNIC'/enp0s3/g' /razdc/scripts/ifcfg-enp0s3

Create  OLD folder to backup original (but wrong) config:

   mkdir /etc/sysconfig/network-scripts/OLD

MOve original config to the backup "OLD" folder:

   mv /etc/sysconfig/network-scripts/*  /etc/sysconfig/network-scripts/OLD/

Link the RazDC "enp0s3" interface file to the network config location:

   ln -s  /razdc/scripts/ifcfg-enp0s3 /etc/sysconfig/network-scripts/ifcfg-enp0s3

Reboot:

   init 6
Bryan King

Post #6
A patch has been pushed for this. All new installs will be able to use "raz" command line setup to configure a static IP for initial setup. A second patch will be coming to allow web GUI setup of networking.
Bryan King

Post #7
Update 195 provides for editing the network interfaces using dynamic interface names rather than fixed named enp0s3 that has plagued RazDC 4 community.. I hope this fixes at least 90% of the install problems that have been discovered since release.
Bryan King

Sorry, this topic is not accepting new posts.