Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering KVM Virtualization

You're reading from   Mastering KVM Virtualization Design expert data center virtualization solutions with the power of Linux KVM

Arrow left icon
Product type Paperback
Published in Oct 2020
Publisher Packt
ISBN-13 9781838828714
Length 686 pages
Edition 2nd Edition
Tools
Concepts
Arrow right icon
Authors (4):
Arrow left icon
Humble Devassy Chirammal Humble Devassy Chirammal
Author Profile Icon Humble Devassy Chirammal
Humble Devassy Chirammal
Prasad Mukhedkar Prasad Mukhedkar
Author Profile Icon Prasad Mukhedkar
Prasad Mukhedkar
Vedran Dakic Vedran Dakic
Author Profile Icon Vedran Dakic
Vedran Dakic
Anil Vettathu Anil Vettathu
Author Profile Icon Anil Vettathu
Anil Vettathu
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: KVM Virtualization Basics
2. Chapter 1: Understanding Linux Virtualization FREE CHAPTER 3. Chapter 2: KVM as a Virtualization Solution 4. Section 2: libvirt and ovirt for Virtual Machine Management
5. Chapter 3: Installing KVM Hypervisor, libvirt, and oVirt 6. Chapter 4: Libvirt Networking 7. Chapter 5: Libvirt Storage 8. Chapter 6: Virtual Display Devices and Protocols 9. Chapter 7: Virtual Machines: Installation, Configuration, and Life Cycle Management 10. Chapter 8: Creating and Modifying VM Disks, Templates, and Snapshots 11. Section 3: Automation, Customization, and Orchestration for KVM VMs
12. Chapter 9: Customizing a Virtual Machine with cloud-init 13. Chapter 10: Automated Windows Guest Deployment and Customization 14. Chapter 11: Ansible and Scripting for Orchestration and Automation 15. Section 4: Scalability, Monitoring, Performance Tuning, and Troubleshooting
16. Chapter 12: Scaling Out KVM with OpenStack 17. Chapter 13: Scaling out KVM with AWS 18. Chapter 14: Monitoring the KVM Virtualization Platform 19. Chapter 15: Performance Tuning and Optimization for KVM VMs 20. Chapter 16: Troubleshooting Guidelines for the KVM Platform 21. Other Books You May Enjoy

Orchestrating multi-tier application deployment on KVM VM

Now, let's learn how to install multi-tiered applications. Pushing the definition to its smallest extreme, we are going to install a LAMP server using a simple Ansible playbook.

The tasks that need to be done are simple enough – we need to install Apache, MySQL, and PHP. The L part of LAMP is already installed, so we are not going to go through that again.

The difficult part is the package names: in our demonstration machine, we are using CentOS7 as the operating system and its package names are a little different. Apache is called httpd and mysql is replaced with mariaDB, another engine that is compatible with MySQL. PHP is luckily the same as on other distributions. We also need another package named python2-PyMySQL (the name is case sensitive) in order to get our playbook to work.

The next thing we are going to do is test the installation by starting all the services and creating the simplest .php...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime