Skip to content

Commit

Permalink
0x225E
Browse files Browse the repository at this point in the history
  • Loading branch information
rajp152k committed Jun 3, 2024
1 parent f365d6d commit d28bffa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
6 changes: 3 additions & 3 deletions Content/20240215173927-virtualization.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
:ID: fc34b43d-57e6-49a7-a678-8ec9df4d0c55
:END:
#+title: virtualization
#+filetags: :computer:programming:
#+filetags: :cs:computer:programming:

* Abstract
A form of [[id:20230715T174319.700414][mapping]] that allows one to simulate something via [[id:d9a3aabe-114b-43c6-81f9-ca6e01ed3f46][Software]].
This something can be compute, storage or networking [[id:a9430614-4e6e-41ff-9788-0f51c2867e74][Hardware]].

The Major Pro of virtualization is allowance of hardware Uniformity and easier Replicability of software.

Exploring in depth, specifically in the context of [[id:7291bab2-4e69-47ad-ae37-f3da260b1d89][Linux Virtualization]]
* Hypervisor
This is the software responsible for the indirection of resources into symbolic units in the virtualized machines. Two basic types:

Expand Down
49 changes: 25 additions & 24 deletions Content/20240502085158-linux.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,60 @@
* Abstract
- this a fairly vast umbrella node that helps pedagogically cover several concepts in computer science.
- a structured end to end walk throught will follow some day but as of now, stitching together what I need in the moment patch by patch.

* The Linux File System
* Misc
** [[id:fc34b43d-57e6-49a7-a678-8ec9df4d0c55][Virtualization]]
** The Linux File System
Tree like, follows the [[https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard][file system hierarchy]] standard (FHS).
With root level as currect file (directories are file as well), run:
#+begin_src bash
tree -D -L 1 /
#+end_src
** /
*** /
- the top level of the file system
- The "root"
** /root
*** /root
- home directory for the root users
- root specific configs, etc all go in here
** /home
*** /home
- users' specific files in respective user directories
- default login directories placed here
** /boot
*** /boot
- essentials needed to boot up a system
- bootloader files
- root filesystem files
- linux kernel files
- other boot configuration
** /bin
*** /bin
- contains common binaries executable by all users in single-user mode
- check the loc of the bin you want to examine via ~which~
** /sbin
*** /sbin
- system binaries and executables reserved for the root user
- for instance, reboot..
** /dev
*** /dev
- representative files of devices attached to the system
- consoles, hard drives, peripherals
- also server a storage for pseudo/virtual devices with no actual hardware associated to them
- /dev/null for instance is a bottomless pit for bytes streamed into it
** /etc
*** /etc
- host specific system wide configuration files in here
- configs for programs, startup and shutdown shell scripts
** /lib, /lib32, /lib64
*** /lib, /lib32, /lib64
- shared library images required by /bin and /sbin
- arch specific 32 and 64 if needed
** /media
*** /media
- temporary sub directories on which removable media is automatically mounted
- /media/cdrom for instance
** /mnt
*** /mnt
- temporary mount point for removable media
- mostly used to mount storage devices and partitions manually
** /tmp
*** /tmp
- temporary files
- cleaned upon reboot
** /opt
*** /opt
- third party repository installations go in here
- think add-ons
- software binaries manually compiled by the user go here
** /var
*** /var
- variable files go here (constantly changing in size)
- /var/log - Contains system and application log files.
- /var/cache - Contains cached data from programs.
Expand All @@ -71,30 +72,30 @@ tree -D -L 1 /
- /var/opt - Contains variable data files for the /opt directory.
- spools are short term buffers where data is cached before it can be processed (printing to the terminal for instance)
- ~Simultaneous Peripheral Operations On-Line~
** /run
*** /run
- stores volatile run time data
- not persistent across reboots
** /proc
*** /proc
- virtual file system : special files for running processes and kernel's current state
- information and control center of the linux kernel
- pseudo cause doesn't exist when system powered off
- mounted on /proc when booting up
** /usr
*** /usr
- libraries, binaries and documentations for installed software applications
** /srv
*** /srv
- srv = service
- site specific data for that linux distro
- points to loc of files for specific services (www, FTP, rsync, CVS)
** /sys
*** /sys
- pseudo file system for virtual files attached to the linux kernel
* Init System
** Init System
- checkout : https://container.training/intro-selfpaced.yml.html#618
* NameSpaces
** NameSpaces
- provide processes with their own view of the system
- drop in conceptual replacement for UIDs
- namespaces available in modern kernels:
- checkout : https://container.training/intro-selfpaced.yml.html#705
* Linux Security Modules (LSMs)
** Linux Security Modules (LSMs)
- checkout : https://www.starlab.io/blog/a-brief-tour-of-linux-security-modules
- also see : https://kubearmor.io/

Expand Down
7 changes: 7 additions & 0 deletions Content/20240522113815-linux_virtualization.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:PROPERTIES:
:ID: 7291bab2-4e69-47ad-ae37-f3da260b1d89
:ROAM_ALIASES: KVM
:END:
#+title: Linux Virtualization
#+filetags: :cs:

0 comments on commit d28bffa

Please sign in to comment.