HOL-6340 Provide a Zero Downtime Update for Your Cloud Infrastructure
Total Page:16
File Type:pdf, Size:1020Kb
HOL-6340 Provide a Zero Downtime Update for Your Cloud Infrastructure Simon Coter Director of Product Management, Oracle [email protected] Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 1 CONTENTS Introduction..............................................................................................................................................................3 Preparation (done before LAB) ................................................................................................................................4 Summary of the Lab steps ........................................................................................................................................5 Global picture ...........................................................................................................................................................5 Vagrant & VirtualBox ................................................................................................................................................6 Start the two servers ..................................................................................................................................................................... 6 Connect to the Oracle VM Manager 3.4.5 console ....................................................................................................................... 7 Verify that the Oracle VM environment correctly started ............................................................................................................ 8 Ksplice technology applied to Oracle VM Server......................................................................................................................... 14 Ksplice technology applied to Oracle VM Manager (OraCle Linux 7) .......................................................................................... 20 Summary ............................................................................................................................................................... 23 Appendix A: References ........................................................................................................................................ 24 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 2 INTRODUCTION This document details all actions that were done during Oracle Open World 2018 session Hands-On Lab 6340. This hands-on lab takes you through different examples and approaches on how-to provide zero downtime to your Cloud Infrastructure thanks to Ksplice, utility capable of introducing hot-patch capabilities for Kernel, Hypervisor and User-Space components like glibc and openssl. The entire hand-on-lab run on top of Oracle VM VirtualBox, solution capable to create architectures for demo or test purposes like in this example. Oracle VM VirtualBox is a free and open-source hypervisor for x86 computers being developed by Oracle Corporation. VirtualBox may be installed on a number of host operating systems, including: Linux, macOS, Windows and Solaris; It supports the creation and management of guest virtual machines running versions and derivations of Windows, Linux, BSD, OS/2, Solaris, macOS and others. For some guest operating systems, a "Guest Additions" package of device drivers and system applications is available which typically improves performance. Oracle Linux (OL) is a Linux distribution packaged and freely distributed by Oracle, available partially under the GNU General Public License since late 2006. It is compiled from Red Hat Enterprise Linux source code, replacing Red Hat branding by Oracle's. It also used by Oracle Cloud and Oracle Engineered Systems such as Oracle Exadata and others. Potential users can freely download Oracle Linux through Oracle's E-delivery service (Oracle Software Delivery Cloud) or from a variety of mirror sites, and can deploy and distribute it without cost. Oracle VM Server for x86 is a zero license cost server virtualization and management solution that makes enterprise applications easier to deploy, manage, and support. Backed worldwide by affordable enterprise-quality support for both Oracle and non- Oracle environments, Oracle VM reduces operations and support costs while increasing IT efficiency and agility. Ksplice, available as part of Oracle Linux Premier Support subscription and Oracle VM Premier Support subscription, updates the Linux operating system (OS) kernel, the Xen Hypervisor (on which Oracle VM 3.4 is based) and key user space libraries, while the OS is running, without a reboot or any interruption. Only Oracle Linux and Oracle VM offer this unique capability, making it possible for you to keep up with important updates without burdening your team with the operational cost and disruption of rebooting for every update. Note: You can also run this lab at your home or office on an x86 server, desktop, or laptop. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 3 PREPARATION (DONE BEFORE LAB) To save time and fit in the one-hour slot of Oracle Open World labs, the following actions were performed before the actual lab. o Install Oracle Linux 7.5 (64 bits) as host operating system (the lab can also run on Windows or macOS). o Install Oracle VM VirtualBox 5.2.18 plus extension-pack on the host OS. o Create two different VirtualBox Virtual Machines: o Oracle VM Server 3.4.5 o Oracle VM Manager 3.4.5 o Create one Oracle VM Server Virtual Machine, Oracle Linux 6.9, running as nested virtualization Note: To run this lab from your home or office, perform the tasks in Appendix A first to prepare your environment before you run the lab. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 4 SUMMARY OF THE LAB STEPS In this lab, you will get the knowledge about Ksplice capabilities for your Cloud Infrastructure founded on Oracle VM and Oracle Linux. There is no particular requirement to start with this HOL except for the “Preparation phase described above”. GLOBAL PICTURE Figure 1 shows all the components (Oracle VM VirtualBox and Oracle VM virtual machines) with their names and configuration (memory, IP addresses, and so on). Figure 1. Diagram of all the components and their configuration. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 5 VAGRANT & VIRTUALBOX START THE TWO SERVERS As previously explained, we will use Oracle VM VirtualBox to host the two servers (Oracle VM Server and Oracle VM Manager) on a single x86 physical machine. • If it has not been started yet, start the Oracle VM VirtualBox console by clicking the icon. In the console, you should see the two VMs we will use in this lab. Figure 2. Oracle VM VirtualBox console. • Select the VM called hol6340_ovmm and click the icon to start it. • Select the VM called hol6340_ovs and click the icon to start it. • Wait for the VMs to be ready: o Wait for the desktop started prompt on the hol6340_ovmm VM console. o When this prompt is displayed, all VMs are ready (since Oracle VM Manager takes the longest to start). Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 6 CONNECT TO THE ORACLE VM MANAGER 3.4.5 CONSOLE • On your x86 physical machine, open a Firefox browser and connect to the Oracle VM Manager 3.4.5 console using URL https://192.168.56.200:7002/ovm/console . Note: Firefox might raise a security warning (for example, This Connection is Untrusted) since the SSL certificates are self-signed. If so, ignore the warning (expand I understand the Risks, then click Add Exception, and then click Confirm Security Exception). You should get the login window shown in Figure 3: Figure 3. Login window. • Log in using the following credentials: o Login: admin (default Oracle VM Manager administrator) o Password: Welcome1 (W is uppercase) Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. 720041 US 7 VERIFY THAT THE ORACLE VM ENVIRONMENT CORRECTLY STARTED 1) Once you are logged in to the Oracle VM Manager console, go to the Servers and VMs tab and verify the status of the Oracle VM pool and server; everything should look like Figure 4. Figure 4. Status of the Oracle VM pool and server in the Servers and VMs tab. 2. Click the Networking tab and verify that the existing networks are usable by guests. You should see a checkmark under Virtual Machines, as shown in Figure 5. Figure 5. Networking tab. 4. Click Servers and VMs, expand the pool named hol6340-pool, click the server named hol6340-ovs.oow.local, and select the Physical Disks perspective in the right pane. Copyright © 2018,