Nape Incus nim ? ia merupakang fork LXD - linux Container. memandangkang pembangunang lxd telah diambil balik oleh Pihok Connicel Ubuntu, makanya saknim, sep-sep Linux Container pong Fork ahh lxd, jadi tubik lah hok baru nama dia Incus. jadi nota hok ambe tulis nim, ambe test dalam WSL2, guna debian 12 deh. soh beng tanya ahh linux lain.. amber dok test.
Mula-mula skali, kena update wsl dulu. Dalang PowerShell, taip
wsl --update
lepas tu buka WSL2 Image - sedia ada, misalnya debian, enablekang systemd
cd /etc
touch wsl.conf
vi wsl.conf
Tulis sebagaimana di bawoh.
[boot]
systemd=true
lepah tu, restart wsl , guna powershell neh
wsl --shutdown
pah tu gok, kita install lah incus tu
curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint
mesti nampok key zabbly sebagaimana di bawoh
pub rsa3072 2023-08-23 [SC] [expires: 2025-08-22]
4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD
uid Zabbly Kernel Builds <info@zabbly.com>
sub rsa3072 2023-08-23 [E] [expires: 2025-08-22]
pahtu deme save key tu guna arahan di bawoh.
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
pahtu run arahan tu dalam root atau sudo
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
EOF'
apt-get update
apt install incus
bila sudoh siap install incus tu, deme check systemd incus
sudo systemctl status incus
kalu ada, enable kan dia
sudo systemctl enable incus
sudo systemctl start incus
tapi kalu nok molek, deme restart wsl skali guna powershell.
pastu deme set supaya dok payah tulis sudo sudo doh bila nok run incus. sudo apa kerek kerek..
sudo adduser YOUR-USERNAME incus-admin
newgrp incus-admin
incus admin init --minimal
pah tu boleh la nok main dengan container pun, kasi test create container satu kali.
incus launch images:alpine/edge alpine
incus exec alpine sh
kalu boleh masuk ke alpine tu, kira jadi doh tu .
ni untuk tengok berapa kontainer ada dalam incus.
incus list
rujukang
Top comments (0)