From 4868914966b837a42dbd4465dfa281243ca6b216 Mon Sep 17 00:00:00 2001 From: Eliza Date: Mon, 7 Oct 2024 20:53:22 +0100 Subject: [PATCH] First draft Virtualization presentation --- src/slides/compsoc/7_virtualization.md | 91 +++++++++++++++++++ .../compsoc/7_virtualization/memory-cpu.png | 3 + .../compsoc/7_virtualization/memory.png | 3 + .../compsoc/7_virtualization/new-vm.png | 3 + .../compsoc/7_virtualization/select-image.png | 3 + 5 files changed, 103 insertions(+) create mode 100644 src/slides/compsoc/7_virtualization.md create mode 100644 src/slides/compsoc/7_virtualization/memory-cpu.png create mode 100644 src/slides/compsoc/7_virtualization/memory.png create mode 100644 src/slides/compsoc/7_virtualization/new-vm.png create mode 100644 src/slides/compsoc/7_virtualization/select-image.png diff --git a/src/slides/compsoc/7_virtualization.md b/src/slides/compsoc/7_virtualization.md new file mode 100644 index 0000000..1b9762d --- /dev/null +++ b/src/slides/compsoc/7_virtualization.md @@ -0,0 +1,91 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +title = "Virtualization" +date = 2024-04-17 +slides = true ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +# Virtual Machines (and more) +------------------------------------------------------------------------- +### +------------------------------------------------------------------------- +so what is a virtual machine??? +------------------------------------------------------------------------- +basically you run another smaller computer in your computer +
+\*insert inception joke here\* +------------------------------------------------------------------------- +### Why would you want this? +------------------------------------------------------------------------- +- You can run multiple OSes on one machine +- You can run software that might not be compatible with your main OS +- It's helpful for testing and setting up a new OS +- VMs are used **A LOT** in those big server rooms and professional environments +------------------------------------------------------------------------- +### How do I do this on my own laptop then? +------------------------------------------------------------------------- +there's a lot of *virtualization* software out there, but we'll be using VirtualBox today +
+It's free, and it's pretty easy to use +
+you can download it [here](https://www.virtualbox.org/wiki/Downloads) +------------------------------------------------------------------------- +if you already know all of this just wait we have more stuff after this +------------------------------------------------------------------------- +when you open VirtualBox, create a new VM like this: + +Create a new VM +------------------------------------------------------------------------- +then choose a name and select the image to use for the OS + +Choose an image + +I'll be using Ubuntu 24.04, if you want to use another linux distro you probably know how to do this already +------------------------------------------------------------------------- +now, select how much memory and CPU you want to allocate to the new VM + +Allocate memory and CPU + +The defaults you get are fine for this demo +------------------------------------------------------------------------- +and finally, choose how much storage you want to give the VM + +Allocate storage + +10GB is enough for now, you can use more if you want +------------------------------------------------------------------------- +### Click "Finish" and now you got your new VM!! +------------------------------------------------------------------------- +we still need to install the operating system but that's easy enough +------------------------------------------------------------------------- +\*live demo in progress\* +------------------------------------------------------------------------- +### Now on to the next part (it gets better) +------------------------------------------------------------------------- +you probably saw how many resources it takes to run a VM +------------------------------------------------------------------------- +what if I want to only run a single app without all the overhead?? +------------------------------------------------------------------------- +### Containers to the rescue!! +------------------------------------------------------------------------- +containers are kind of like VMs, but much lighter +------------------------------------------------------------------------- +instead of emulating an entire computer, they just run the OS +------------------------------------------------------------------------- +### Why use VMs then? +------------------------------------------------------------------------- +- VMs are more secure +- they're more isolated from the host system +- not limited to running the same OS as the host +------------------------------------------------------------------------- +### How do I use containers? +------------------------------------------------------------------------- +one of the most popular container platforms is Docker +------------------------------------------------------------------------- +rn we will use it on the VM we just created +------------------------------------------------------------------------- +the commands we will need to install Docker: +
+``curl -fsSL https://get.docker.com -o get-docker.sh`` +
+``sudo sh get-docker.sh`` +------------------------------------------------------------------------- diff --git a/src/slides/compsoc/7_virtualization/memory-cpu.png b/src/slides/compsoc/7_virtualization/memory-cpu.png new file mode 100644 index 0000000..31fd2bc --- /dev/null +++ b/src/slides/compsoc/7_virtualization/memory-cpu.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76055d6b09bb19b375396f9df1000613f77836d733fd9ffd536a4f21cb1f1d33 +size 74140 diff --git a/src/slides/compsoc/7_virtualization/memory.png b/src/slides/compsoc/7_virtualization/memory.png new file mode 100644 index 0000000..0a64ba3 --- /dev/null +++ b/src/slides/compsoc/7_virtualization/memory.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:463fa1d29e9b5bd93983b8e6d1bba8f7e48c8ff80cc1cb4cbc9cec7e2d275f5f +size 77791 diff --git a/src/slides/compsoc/7_virtualization/new-vm.png b/src/slides/compsoc/7_virtualization/new-vm.png new file mode 100644 index 0000000..174212a --- /dev/null +++ b/src/slides/compsoc/7_virtualization/new-vm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a421d0bfd34028c71676cab84d0825ece23054848aa0a656e28cb5fd5197fab +size 15208 diff --git a/src/slides/compsoc/7_virtualization/select-image.png b/src/slides/compsoc/7_virtualization/select-image.png new file mode 100644 index 0000000..0ca944c --- /dev/null +++ b/src/slides/compsoc/7_virtualization/select-image.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58c35153ca573bc57738172faaa478af47f3225ab29068395868a9a946e3be77 +size 88820