Skip to main content

Linux Container LXD

Debian 9 on LXD


lxc launch images:debian/stretch debian901
lxc exec debian901 -- /bin/bash
cat /etc/*release

PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Install LXD on Fedora Workstation 32

$ sudo snap install lxd
lxd 4.9 from Canonical✓ installed
$ which lxd
/var/lib/snapd/snap/bin/lxd
$ lxd --version
4.9

Add alias to existing image

$ lxc image ls
+-------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
| ALIAS | FINGERPRINT  | PUBLIC |               DESCRIPTION               |  ARCH  |  SIZE  |         UPLOAD DATE         |
+-------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
|       | de84726269bd | no     | Alpinelinux 3.12 x86_64 (20210104_0506) | x86_64 | 0.00MB | Jan 5, 2021 at 2:34am (UTC) |
+-------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
$ lxc image alias create newalpine de84726269bd
$ lxc image ls
+-----------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
|   ALIAS   | FINGERPRINT  | PUBLIC |               DESCRIPTION               |  ARCH  |  SIZE  |         UPLOAD DATE         |
+-----------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
| newalpine | de84726269bd | no     | Alpinelinux 3.12 x86_64 (20210104_0506) | x86_64 | 0.00MB | Jan 5, 2021 at 2:34am (UTC) |
+-----------+--------------+--------+-----------------------------------------+--------+--------+-----------------------------+
$

Practice

>>> THM | Gaming Server - Exploit LXD Container to get root flag

>>> THM | toc2

>>> THM | HA Joker CTF

Popular posts from this blog

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.