Superna Eyeglass OS Upgrade OpenSUSE 13.2 to 42.2



Online (internet Access Required) upgrade from openSUSE 13.2 to openSUSE 42.2 LEAP

 


[YOU MUST HAVE ACCESS TO YOUR VMWare FOR THIS GUIDE. DO NOT PROCEED OTHERWISE]

  1. Take VM snapshot [IMPORTANT]

  2. Check current Eyeglass version [we are using 1.8.1]
    igls admin version

  3. Check current OS version [we are using 13.2 (Harlequin)]
    cat /etc/os-release


  4. Check zypper repo [make sure ‘eyeglass’ repo is enabled]
    zypper lr -u


  5. Refresh zypper repo
    zypper ref

  6. Update current zypper repo
    zypper up

  7. Make backup of current repos
    cp -Rv /etc/zypp/repos.d /etc/zypp/repos.d.old

  8. Update the repo file to latest Distro
    sed -i 's/13\.2/leap\/42\.2/g' /etc/zypp/repos.d/*

  9. You need to modify openSUSE Update repo link. So edit the file using ‘vim’ [IMPORTANT]
    vim /etc/zypp/repos.d/openSUSE_13.2_Updates.repo
    [replace the base url with this one: baseurl=http://download.opensuse.org/update/leap/42.2/oss/ ]

  10. You need to preserve 5 existing Eyeglass files. Save them in a desired location.
    [i.e.:  mkdir /home/admin/leap/ ][IMPORTANT]
    cp /etc/init.d/shellinabox . && cp /etc/lighttpd/conf.d/proxy.conf . && cp /etc/lighttpd/lighttpd.conf . && cp /etc/lighttpd/modules.conf . && cp /etc/motd .

  11. Move the existing Tomcat server.xml [IMPORTANT]
    mv /etc/tomcat/server.xml /etc/tomcat/server.xml.old

  12. Run the distribution-upgrade and save the upgrade log
    [ following command will save the log in ../sca/log directory ]
    zypper -n dup --replacefiles > /opt/superna/sca/logs/eyeglass-dist-upgrade-$(date +%F).log

  13. Copy the files back to their directory [IMPORTANT]
    cp shellinabox /etc/init.d/ && cp proxy.conf /etc/lighttpd/conf.d/ && cp lighttpd.conf /etc/lighttpd/ && cp modules.conf /etc/lighttpd/ && cp motd /etc/  

  14. Set shellinabox file permission
    chmod 755 /etc/init.d/shellinabox  

  15. Set shellinabox start at reboot
    chkconfig shellinabox on

  16. Reboot the appliance server
    reboot now

  17. FOR THIS STEP YOU NEED ACCESS TO YOUR VMWare. During distro-upgrade, server IP will be erased. You need to re-IP the appliance server. Open Console server from VMWare.


  18. and use yast to configure network. You need ‘root’ user access for this command.
    yast lan

  19. Enter your IP and hostname and hit F10’ to NEXT then F10’ again to save [IMPORTANT]


    [ NOTE: You MUST use the same HOSTNAME as before. DO NOT use new HOSTNAME  ]

  20. Use putty to log in to your newly upgraded openSUSE 42.2 LEAP.

  1. Restart sca service, DONE!

systemctl restart sca

 




 

Offline (no access to internet) upgrade from openSUSE 13.2 to openSUSE 42.2 LEAP

 

  1. Take VM snapshot [IMPORTANT]

 

  1. Check current Eyeglass version [we are using 1.8.1]
    igls admin version

 

  1. Check current OS version [we are using 13.2 (Harlequin)]
    cat /etc/os-release

 

  1. You need to preserve 5 existing Eyeglass files. Save them in a desired location.
    [i.e.:  /home/admin/leap/ ][IMPORTANT]

“sudo su”

“mkdir ~/leap”

“cd ~/leap”

cp /etc/init.d/shellinabox . && cp /etc/lighttpd/conf.d/proxy.conf . && cp /etc/lighttpd/lighttpd.conf . && cp /etc/lighttpd/modules.conf . && cp /etc/motd .

 

  1. Move the existing Tomcat server.xml [IMPORTANT]
    mv /etc/tomcat/server.xml /etc/tomcat/server.xml.old

 

  1. Download and connect the OpenSUSE 42.2 Leap ISO to the VM.

Connect ISO.jpg

 

.

  1. Reboot the VM.

reboot now

Note: You may have to quickly hit F2 during the reboot on the VM screen to enter the BIOS and configure the boot order so that the CD is before the Hard Drive. If you don’t do this, it will just boot off the hard drive and you will not get the chance to upgrade.BIOS.jpg

 

  1. After booting from the DVD, you should see this screen. Select Upgrade and hit enter.Upgrade boot DVD.jpg

 

  1. After loading the necessary files, you will see a license screen. After reading and agreeing to the text, select next.

 

  1. The next screen will show you the active partitions, select next. (picture included in next step)

  2. After you select next, it will display a warning, just agree to it by selecting “Ok”OpenSUSE Warning.jpg

  3. The list of repositories on the system comes up, select next. Repositories.jpg

  4. At this point, because it doesn’t detect an internet connection, it displays a message that the network isn’t configured, and ask you if you want to configure it. Select “No”. Network not configured.jpg

 

  1. It will do the final system inventory and display the results. Select Update. It will prompt for confirmation with a warning that data will be overwritten, Select Ok and it will begin the update. Installation Settings.jpg

  2. When the update is complete, it will reboot the system. The boot screen will come up if you haven’t disabled (or unloaded) the DVD from the VM. If this happens, select Boot from Hard Disk and select OpenSUSE from the next screen, and it will boot into the system.

 

  1. Login with your eyeglass credentials.

 

  1. Copy the files back to their directory [IMPORTANT]

“sudo su”

“cd ~/leap”
cp shellinabox /etc/init.d/ && cp proxy.conf /etc/lighttpd/conf.d/ && cp lighttpd.conf /etc/lighttpd/ && cp modules.conf /etc/lighttpd/ && cp motd /etc/  

 

  1. Set shellinabox file permission
    chmod 755 /etc/init.d/shellinabox  

  2. Set shellinabox start at reboot
    chkconfig shellinabox on

 

  1. Use yast to configure your network. (You should still have ‘root’ user access)
    yast lan

 

  1. Enter your IP and hostname and hit F10’ to NEXT then F10’ again to save [IMPORTANT]

    [ NOTE: You MUST use the same HOSTNAME as before. DO NOT use new HOSTNAME  ]

 

  1. Restart sca service.
    systemctl restart sca

  2. Use putty to log in to your newly upgraded openSUSE 42.2 LEAP.

Note: You may need to run Configuration Replication to clear the errors that occurred during upgrade.

 

 

.

Need to work on
[ this will not interfere with testing ]
openSUSE Firewall Rules


 

[NOTE: THIS GUIDE IS SUBJECT TO CHANGE. PLEASE VISIT THIS DOC UNTIL IT HAS BEEN TESTED THOROUGHLY AND CONFIRMED USING EYEGLASS ADVANCED FEATURES]