/etc/udev/rules.d/70-persistent-net.rules makes network unavailable

After launching a VM, sometimes network becomes unavailable until you manually remove

[root@j3ffyang~]# rm -fr /etc/udev/rules.d/70-persistent-net.rules

The workaround is to stop generating this rule

mv /lib/udev/rules.d/75-persistent-net-generator.rules /tmp

To process this in batch

for i in `cat /tmp/allnode.lst | awk '{print $1}'`; \
do echo $i; ssh $i 'mv /lib/udev/rules.d/75-persistent-net-generator.rules /tmp/'; \


This entry was posted in linux, opensource, script, shell, virtualization and tagged , , , . Bookmark the permalink.