vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.25k stars 425 forks source link

Error writing data to file /etc/resolv.conf due to immutable attribute #408

Open chief083 opened 4 years ago

chief083 commented 4 years ago

vmware site recovery manager (srm) uses open vm tools to perform ip customization. However this errors when attempting to update the name server settings in resolv.conf because resolv.conf is set to be immutable with chattr +i. Is it possible within open vm tools to still change the resolv.conf or for open vm tools to change the immutable attribute? I know it can be done manually but I am looking for a way to automate it within srm which uses open vm tools.

PengpengSun commented 4 years ago

Usually /etc/resolv.conf is set to immutable attribute means VM admins do NOT want this file get changed, so with this attribute both ip customization and open-vm-tools will NOT overwrite the immutable attribute and update the file. Currently there is no way to do this by ip customization and open-vm-tools, while we will look into this internally to see if there is anything we can do in the future.