summaryrefslogtreecommitdiffstats
path: root/boot/asdc_install.sh
diff options
context:
space:
mode:
authorArun Arora <aroraarun@vmware.com>2017-06-02 12:11:49 +0530
committerArun Arora <aroraarun@vmware.com>2017-06-02 12:34:42 +0530
commita8a9fec9dd7ab059c46a686d81a9b2c41537d6b8 (patch)
treeb92f28084ed4d06ebac231f22ac779053b63cba9 /boot/asdc_install.sh
parent8227785db0f52adbf3444dd7d493d5e9df5f4e68 (diff)
SDC,MSO & Robot VM are inaccessible after reboot
Install scripts (/opt/<VM Name>_install.sh) of SDC, MSO & Robot VMs change the Interface name from ensX to eth0 in the interface configuration file. Same changes are needed in /etc/udev/rules.d/70-persistent-net.rules else IP address is not configured in these VMs post-reboot due to which these VMs become inaccessible. Change-Id: Ic139943579347253c9c051ff0a8451906d0e8017 Signed-off-by: Arun Arora <aroraarun@vmware.com>
Diffstat (limited to 'boot/asdc_install.sh')
-rw-r--r--boot/asdc_install.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/asdc_install.sh b/boot/asdc_install.sh
index a7baae76..24544f27 100644
--- a/boot/asdc_install.sh
+++ b/boot/asdc_install.sh
@@ -127,10 +127,11 @@ then
sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
+ sed -i "s/ens[0-9]*/eth0/g" /etc/udev/rules.d/70-persistent-net.rules
echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
reboot
fi
# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted
-./asdc_vm_init.sh \ No newline at end of file
+./asdc_vm_init.sh