0% found this document useful (0 votes)
88 views

Proxmox

This document discusses virtual machines and containers. It explains that Qemu is an open source hypervisor that emulates physical hardware for a guest operating system. Containers are a lightweight alternative that use the host operating system kernel rather than fully emulating it, saving resources. The document outlines how to create and manage containers using Proxmox VE and the pct command.

Uploaded by

just4lmgame
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Proxmox

This document discusses virtual machines and containers. It explains that Qemu is an open source hypervisor that emulates physical hardware for a guest operating system. Containers are a lightweight alternative that use the host operating system kernel rather than fully emulating it, saving resources. The document outlines how to create and manage containers using Proxmox VE and the pct command.

Uploaded by

just4lmgame
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Lecture 3

Virtual Machines and Containers

Instructor: Hadi Alnabriss


QEMU/KVM

Qemu (Quick Emulator) is an open source hypervisor that emulates a physical computer.

From the perspective of the host system where Qemu is running, Qemu is a user program which has access to a
number of local resources like partitions, files, network cards which are then passed to an emulated computer which
sees them as if they were real devices.

A guest operating system running in the emulated computer accesses these


devices, and runs as it were running on real hardware.
 Containers are a lightweight alternative to fully
virtualized VMs.
 Instead of emulating a complete Operating System
(OS), containers simply use the OS of the host they
run on.
 This implies that all containers use the same kernel,
and that they can access resources from the host
directly.
 Containers do not waste CPU power nor
memory due to kernel emulation.
 Container run-time costs are close to zero
and usually negligible.
 You can only run Linux based OS inside
containers.
 For security reasons, access to host resources
needs to be restricted.
◦ This is done with AppArmor, SecComp filters and
other kernel features.
 Be prepared that some syscalls are not
allowed inside containers.
 Proxmox VE uses LXC as underlying container
technology.
 Consider LXC as low-level library, which provides
countless options.
 Proxmox VE supports the “pct” command (Proxmox
Container Toolkit) for containers management
 You need to download image

1. Select
Storage

2. Select 5. Download
Content
3. Choose 4. Choose The
Templates Required
Template
 Select Create CT from header panel or from
node settings in the resource tree panel
 Configure Hostname and Password
 Choose the downloaded template
 Complete the configurations
◦ Disk
◦ RAM
◦ CPU
◦ Network
◦ DNS
 pct start 100
 pct shutdown 100
 pct enter 100
 pct stop 100
 pct fsck 100

Note : 100 is the container’s ID


 At the end of this lecture, you must be able
to:
◦ understand the difference between virtual machines
and containers
◦ You must be able to create and manage containers

You might also like