diff --git a/src/slides/skynet/2_topics.md b/src/slides/skynet/2_topics.md index a23ec40..4aa912a 100644 --- a/src/slides/skynet/2_topics.md +++ b/src/slides/skynet/2_topics.md @@ -11,7 +11,7 @@ Topics that will be covered by teh skynet Training * [LDAP](./5_ldap.html) * Email * [CI/CD](./6_cicd.html) -* Proxmox/VM/LXC +* [Proxmox/VM/LXC](./8_proxmox.html) * [Databases (Sqlite)](./7_databases.html) This list may be added to in teh future, if ye have any ideas feel free to ping. \ No newline at end of file diff --git a/src/slides/skynet/8_proxmox.md b/src/slides/skynet/8_proxmox.md new file mode 100644 index 0000000..304cc32 --- /dev/null +++ b/src/slides/skynet/8_proxmox.md @@ -0,0 +1,80 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +title = "Skynet: Proxmox" +date = 2023-11-19 +slides = true ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +# Proxmox + +------------------------------------------------------------------------- + +Proxmox is a primarily a virtualization platform. + +------------------------------------------------------------------------- + +Open source. + +------------------------------------------------------------------------- + +Built on Debian. (all normal linux commands work) + +------------------------------------------------------------------------- + +Suitable for both homelab and datacenter. + +------------------------------------------------------------------------- + +Allows clustering of physical machines. + +------------------------------------------------------------------------- + +Uses a webgui to manage/monitor. + +------------------------------------------------------------------------- + +Also can manage ZFS storage. + +------------------------------------------------------------------------- + +Can manage VM's and LXC's + +------------------------------------------------------------------------- + +We mostly use LXC's (got a base template set up) + +------------------------------------------------------------------------- + +There is a root login, but recommended to use yer skynet account. + +------------------------------------------------------------------------- + +# Demo Time + +------------------------------------------------------------------------- + +## Creating a new LXC (Proxmox) + +1. Login to Proxmox +2. Top right, Create Container +3. Set Hostname (example), Upload Admin public key +4. Select template +5. Set Disk/CPU/Memory +6. Set IPv4 address and gateway (193.1.99.xyz/26, 193.1.99.65) +7. Finish + +------------------------------------------------------------------------- + +## Creating a new LXC (Nixos config) + +1. Create a new Machine +2. Set hostname and IP +3. Add to ``flake.nix`` +4. Bootup the server in Proxmox and ssh into it (using above key) +5. ``cat /etc/ssh/ssh_host_ed25519_key.pub`` into ``/secrets/secrets.nix`` +6. ``agenix -r`` - grant the new server access to secrets. +7. ``colmena apply --on @dns`` - Update records +8. ``colmena apply --on example`` + +------------------------------------------------------------------------- + +//Use this time to explore the nixos repo to explain// diff --git a/src/templates/powerpoint.html b/src/templates/powerpoint.html index 83ea8cc..3430ef8 100644 --- a/src/templates/powerpoint.html +++ b/src/templates/powerpoint.html @@ -22,6 +22,10 @@ left: 50%; transform: translate(-50%, -50%) scale(3); } + ol, ul { + margin-top: 0; + margin-bottom: 0; + }