<link href="/user/plugins/datatables/assets/datatables.min.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/markdown-notices/assets/notices.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/form/assets/form-styles.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/simplesearch/css/simplesearch.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/highlight/css/default.css" type="text/css" rel="stylesheet"> <link href="/user/plugins/login/css/login.css" type="text/css" rel="stylesheet"> <link href="/user/themes/imagefactory/css/components.min.css" type="text/css" rel="stylesheet"> <link href="/user/themes/imagefactory/css/otc.css" type="text/css" rel="stylesheet"> <script src="/user/themes/imagefactory/js/jquery.min.js"></script> <script src="/user/plugins/datatables/assets/datatables.min.js"></script> <script src="/user/plugins/highlight/js/highlight.pack.js"></script> <script src="/user/themes/imagefactory/js/components.min.js"></script> <script src="/user/themes/imagefactory/js/totop.js"></script> <script> hljs.initHighlightingOnLoad(); </script>
Brand Claim Brand Claim
by Müller, Sabrina

OTC BMS upgrade from Ubuntu 16.04 to 18.04

<p>needs special attention to the network configuration. </p> <h2>Background, what happens with the network?</h2> <p>Since <em>Ubuntu 17.04</em> the new default network configuration method for network devices is 'netplan'. (More information: https://netplan.io/).<br /> The default nework configuration in <em>Ubuntu 16.04</em> instead, based on ifupdown and /etc/network/interfaces.<br /> These are different tools to configure network stuff with diefferen configuration files and syntax.</p> <p>If you upgrade a running <em>Ubuntu 16.04</em> VM to <em>Ubuntu 18.04</em>, your <strong>network configuration will NOT automatically migrated</strong>. </p> <p>Without manual interaction after an distribution ubgrade was done, rebooting the BMS vm<br /> will result in loosing your network access, as the the vm now try to load a non existing netplan configuration.<br /> You need to greate a valid netplan configuration first. </p> <p>To fix this issue: </p> <ul> <li>after dist upgrade successfully finished </li> <li>but BEFORE the final reboot: </li> </ul> <p>=&gt;<strong> generate a valid netplan configuration</strong></p> <p>You can do that manually or by using OTC tool <strong><em>bms-network-setup</em></strong> to configure network interfaces on OTC BMS.<br /> Using OTC tool <strong><em>bms-network-setup</em></strong> will not migrate you configuration, but create a new one, same way as the first boot of an BMS vm.<br /> If you did own changes in your network cofiguration you should migrate your configuration manually. </p> <h2>Example to upgrade from Ubuntu 16.04 to 18.04</h2> <p>Prepare BMS VM</p> <pre><code>$ sudo apt update $ sudo apt upgrade -y # keep all configs original $ sudo apt dist-upgrade -y $ sudo apt autoremove $ sudo reboot </code></pre> <p>Ubuntu way to upgrade to 18.04</p> <pre><code>$ cat /etc/os-release | grep ^VERSION= VERSION="16.04.7 LTS (Xenial Xerus)" $ sudo apt install update-manager-core $ sudo apt autoremove -y $ sudo do-release-upgrade </code></pre> <p>follow the upgrade process until 'System upgrade is complete.'</p> <pre><code>(...) System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN] N =&gt;** ! Press N (no reboot) ** </code></pre> <p>Now create a valid netplan network configuration.<br /> You can do it manually,<br /> or use a OTC script <strong><em>bms-network-setup.sh</em></strong> used to configure BMS network interfaces for <em>Ubuntu 18.04</em>. </p> <ul> <li> <div class="notices yellow"> <p>This script will override your network configration same as your VMs first boot after creating. </p> </div> </li> <li> <div class="notices yellow"> <p>In case you changed your network configuration manually your manually changes will get lost when loosing the tool.</p> </div> </li> <li> <div class="notices yellow"> <p>In this case, we recommend to configre neplan configuration manually.</p> </div> </li> </ul> <p>For more information to netplan: [https://netplan.io]</p> <h1>create new netplan configuration with OTC script</h1> <pre><code>$ /opt/otc/bms-setup/bms-setup.sh Dev 2c:55:d3:c4:9d:a1: eth0-&gt;eth0 Dev 2c:55:d3:c4:9d:a2: eth1-&gt;eth1 Set up bonding: {'bond0': ['eth0', 'eth1']} Created symlink /etc/systemd/system/systemd-networkd-wait-online.service.wants/bms-network-setup.service → /usr/lib/systemd/system/bms-network-setup.service. </code></pre> <p>New netplan configration files were created</p> <pre><code>$ ls -l /etc/netplan/ total 12 -rw-r--r-- 1 root root 207 Jan 11 10:51 60-ifcfg-eth0.yaml -rw-r--r-- 1 root root 207 Jan 11 10:51 60-ifcfg-eth1.yaml -rw-r--r-- 1 root root 310 Jan 11 10:51 61-ifcfg-bond0.yaml </code></pre> <p>To double check the synax </p> <pre><code>$ netplan apply </code></pre> <p>If there are not error, reboot no</p> <pre><code>&gt; $ reboot</code></pre> <p>After reboot, check again:</p> <pre><code>$ cat /etc/os-release | grep ^VERSION= VERSION="18.04.5 LTS (Bionic Beaver)" </code></pre> <p>Migration successfully finished now.</p>