virtualization and containerization what is
play

Virtualization and Containerization What is Virtualization? What - PowerPoint PPT Presentation

Virtualization and Containerization What is Virtualization? What is Containerization? What does this do for us? Virtual Machines: Terminology Types of Hypervisors VirtualBox and VMWare


  1. Virtualization and Containerization

  2. What is Virtualization?

  3. What is Containerization?

  4. What does this do for us?

  5. Virtual Machines: Terminology ○ ○ ○ ○ ○ ○

  6. Types of Hypervisors ○ ○ ○ ○ ○

  7. VirtualBox and VMWare

  8. Creating a VirtualBox VM I make virtual machines for you! ○

  9. In a little more detail maybe...

  10. Looking at Docker

  11. Installing Docker

  12. Docker Prerequisites $ uname -r 3.11.0-15-generic

  13. Docker APT Sources $ apt-get update && apt-get install apt-transport-https ca-certificates $ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 -- recv-keys 58118E89F3A912897C070ADBF76221572C52609D

  14. Docker APT Sources

  15. Install and Run the Docker Service

  16. Other Install Notes

  17. Installing Containers in Docker

  18. What to do next?

  19. systemd-nspawn ○ ○

  20. Requirements

  21. Getting Started ○ mkdir ~/MyContainer ○ # Arch: pacstrap -i -c -d ~/MyContainer base ○ # Debian: debootstrap -arch=amd64 jessie ~/MyContainer

  22. The Quick Way systemd-nspawn -b -D ~/MyContainer -n machinectl login MyContainer

  23. But... ○ ○

  24. Starting at host boot ○ systemctl enable machines.target ○ systemctl enable systemd-nspawn@MyContainer.service ○ cp /usr/lib/systemd/system/systemd-nspawn@.service /usr/lib/systemd/system/MyContainer.service ○ Edit to your heart’s content (we’ll get there in a sec) ○ systemctl enable machines.target ○ systemctl enable MyContainer.service

  25. Customizing your container ○

  26. Real life example ExecStart=/usr/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --directory=/var/lib/container/git --bind=/tank/git-gogs:/srv/gogs --bind=/home/nate --network-bridge=br0

  27. You don’t want to hear it...

  28. File Permissions ○ ○ ○ ○

  29. Collisions ○ ○ ○ ○ ○

  30. machinectl ○ machinectl poweroff MyContainer # power down a container ○ machinectl start MyContainer # power on a container ○ machinectl list # list running containers ○ machinectl show MyContainer # show details about MyContainer ○

Recommend


More recommend