LXD ? ??? ???? ? ?? ?? ???? ???? ???? ?? ?? ???? ???? Linux ???? ???? ?????.
??? ???? ??? ? ???? ??? ???? ??? Linux ???? ?? ???? ?????. ?? ?? PC/??? ? ???? ????? ???? ???? ??? ?????.
LXD? ???? ? ?? ??? ???? ???? ? VM? ?? ? ? ??????. LXC ????? ?? ?? ? ??, REST API ?? ?? ??? ??? ? ????.
LXD ??
????? LXD ??? ??? ????.
- LXD? ??? Linux ?????? ?????? ??? ?????.
- ??? ????? ??????.
- REST API ? LXC ?? ? ??? ???? ????? ?? ?????.
- ???? ???? ???, ???? ?? ? ???? ?? ?????.
- ???? ??? ??? ????? ??? ??? ??? ???? ????.
- CPU, RAM, ??? ??, ?? I/O ? ?? ???? ?? ???? ?? ??.
- ???? ?? ?? - PC? ????? ???? ??? ???? ?? ?? ????? ?? ? ??? ????? ?? ? ? ????.
LXC ? ??????
LXD ? ???? LXC ?? ? ????? ??? ???? ??? LXC ( Linux ???? )? ??? API ? ?? ??? ???? ???? ?? ????? ???? ? ?? ??? ???? ??? ?? ? ??? ???? OS ?? ??? ?????. ???, ?? ?? ? ????? ????? ?????.
LXC ??
LXC? ????? ???? ?? ?? ?? ??? ?????.
- ?? ?? ???? : PID, MOUNT, UTS ???? ? ???.
- CGROUPS (?? ??).
- chroots - pivot_root ??.
- Seccomp ??.
- Selinux ? Apparmor ????.
linuxcontainers.org? LXD ? LXC ? ?? ???????. ??? ??? Linux ???? ????? ??? ? ?? ?? ?? ???? ???? ????.
??? ??? ?? Centos , Rocky Linux ? Almalinux ? ?? Rhel ?? Linux ????? LXC ????? ???? ???? ??? ??? ????.
?? ??
???? ????? ???? Linux ?? ?? :
- Rhel Linux ??
- Centos Linux ??
- Rocky Linux ??
- Almalinux ??
1 ?? : selinux? ?? ??? ?????
???? ?? ?? ??? ???? ????? ?????. ??? ????? ?? ??? ?? ??? ???? ???????.
$ sudo dnf ????
selinux? ????? ????? ??? ?????.
$ sudo sed -i 's/^selinux =.*/selinux = permissive/g'/etc/selinux/config
??? ????? ??? ???????.
$ sudo ???
Selinux ? ??? ??????.
$ getenforce
2 ?? : Epel ???? ??????
Epel ? Fedora Project ? ???? Redhat Enterprise Linux ? ?? Rhel ?? ????? ??? ??? ??? ?????.
$ sudo yum ?? https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm ?? $ Sudo Yum Epel Release ??
3 ?? : ?? ?? ??? ??????
LXD? ???? ?? ?? ?? ?? ??? ?????. ??? ?? ???? ??????.
$ su-
??? ?? ?? ??? ??????.
$ grubby -args = "user_namespace.enable = 1"-update-kernel = "$ (grubby-default-kernel)" " $ grubby -args = "namespace.unpriv_enable = 1"-update-kernel = "$ (grubby-default-kernel)" " $ echo "user.max_user_namespaces = 3883"| Sudo tee -a /etc/sysctl.d/99-userns.conf
?? ??? ???? ??? ???? ???????.
4 ?? : ??? ???? ??????
RHEL 8 ? LXD? ???? ?? ??? ??? ?? ???? ???? ????. ??? ?? SNAP? ??? ?? ???????.
$ sudo dnf ?? ??
????? ?? ?? ?? ???? ?? ??? ???? ?? ?????.
SNAP? ??? ???? ?? ?? ?? ??? ???? ???????.
$ sudo systemctl enable -now snapd.socket
?? /var/lib/snapd/snap to /snap ?? Symlink? ??? ???? ??? ???????.
$ sudo ln -s/var/lib/snapd/snap/snap
?? ??? ??????? ???? ?? ??????.
$ sudo ???
5 ?? : LXD ???? ? ???? ??????
SNAP ?? LXD? ???? ? ?? ??? ????. ??? ?? ?? ??? LXD? ??? ? ????.
$ Sudo Snap ??-??? LXD
?? ??? ?? ?? ?? LTS ??? ??? ? ????.
$ Sudo Snap LXD ?? -Channel = 4.0/??
Sudo ???? ???? ?? LXC ??? ??? ? ???? ?? ??? ? ???? LXD ??? ??????.
$ sudo usermod -ag lxd $ user
???? ?? ?? ??? ???? ???? LXD ??? ?????? ??????.
$ ?? tecmint
???? ??? ?? NewGRP ??? ??????.
$ NewGRP LXD
??? ??? ?? ? ?? ?? ID? ?????. ?? ?? ID? LXD ? ??? ???? ?????.
6 ?? : LXD ?? ???
LXD ????? ??? ???? ?? ??? ???? LXD ??? ????????.
$ lxc init
??? ??? ??? ??? ??? ???????. ???? ? ????? ??? ???? ???? ??????.
LVM ??? ???? Tec-Pool ??? ???? ?? ??????.
?? ??? LXD ??? ????? ??? ??? ?? ??? ????. ?? ??, ?? LXD ????? ????? ??? ????.
$ lxc ???? ?? ???? ?????
???? ???? IPv4 ? IPv6 ??? ????? ??? ??????.
$ lxc ???? ??
??? ?? ? ??? LXDBR0 ?????? ?? ? ??? ??? ?? ? ? ????.
$ lxc ????? lxdbr0? ?????
???? ?? ??? ?? ????.
$ lxc ???? ??
???? ?? ?? ??? ?? ??? ? ?? ?? ? ????.
$ lxc ???? ? tec-pool
???? LXC ????? ????? ??? ??????.
$ lxc ??
??, ??? ?? ??? ????? ????. ??? ? ??? ??? ? ???? ?????.
7 ?? : ?? ?? ? LXC ???? ??? ??
Docker ? ????? LXC ???? ????? ?? ??? ?? ?? ? ???? ???? ?????. ?? ??? ??? ?? ?? ??? ?? ?? ? ?? ???? ????? ??? ??????.
$ lxc ??? ?? ??? :
??? ?? ?? ????? ???? ??? ? ?? ??? ??? ??? ? ???. ?? Linux ??? ???? ??? ??????.
$ lxc ??? ?? ??? : grep -i os -type
?? ??, Rocky Linux ?? ?? ??? ???? ????? ??? ??????.
$ lxc ??? ?? ??? : Grep -I Rocky
??? ???? ???? ?? ??? ??????.
$ lxc ??? ?? ??? : grep -I ???
8 ?? : LXC ???? ??
LXC ????? ????? ??? ??????.
$ lxc ?? ??? : {visso}/{version}/{arch} {container-name-here}
???, ??? 2 ?? ????? ????? : Debian 10 ? Tec-container1 ? Rocky Linux 8 ? TEC-Container2 .
$ LXC ?? ??? : Debian/10/AMD64 TEC-Container1 $ lxc ?? ??? : rockylinux/8/amd64 tec-container2
LXC ????? ????? ??? ??????.
$ lxc ??
??? ????? ?? ??? ??? ?????. ???? ????? ??, ?? (?? ?? ?? ??) IPv4 ? IPv6 ??, ?? (???? ?? ?? ????) ? ?? ?? ?? ?? ?????.
???? ???? ? ????? ??? ??????.
$ lxc ?? | grep -i ???
?????, ????? ???? ??????.
$ lxc ?? | Grep -I ??
?? ????, CPU ? ??? ?? ? ???? ?? ????? ?? ? ???? ?? ? ? ????.
$ lxc ?? tec-container1
9 ?? : LXC ????? ?? ? ???? ????
??? ???? ????? ?? ?? ???? ?? ? ????.
$ lxc exec ???? ?? ?? ??
Tec-Container1 ? ?? ? ???? ???? ?? ??? ?????.
$ lxc exec tec-container1 bash
? ???? ?? ??? ??? ?? ??? ????? ???? ???? ? ??? ???? ????? ?? ???? ?? ??? ? ????.
APT ????
?????? ???? ??? ??????.
$ ??
?? ?? ??? ???? ?? ????? ?? ?????? ??? ?? ??? ? ????.
$ lxc exec container-name ??
?? ?? ??? ??? ?????? ?? ??? ???? ??? ?????? ???? OS ??? ???? ??? ??? ? ????.
$ lxc exec tec-container1 APT ???? $ lxc exec tec-container1 cat /etc /debian_version $ lxc exec tec-container1 ??
10 ?? : ??? LXC ????? ??? / ??
?? ? ??? ? ?? ??? ????? ??? ???? ????. ?? ???? ?? LXD ????? ? ????? ??? ?????.
# mkdir data && cd ???
???? ?? ??? ??? ?? ???? ?????. ?????? VIM ???? ?? ??? ????.
# vim file1.txt
???? ?? ???? ???? ??? ?????.
????? ??, LXD ????? ?? ?? ?????.
?????? ?? ??? ????? ??? ?? ??? ??? ?????.
$ lxc ?? ? {container-name}/{path/to/file} {/path/to/local/dest}
? ?? ??? ??? ????.
$ lxc ?? PULL TEC-CONTAINER2/root/data/file1.txt/home/tecmint
?? ?????? ????? ??? ??? ????? ??? ??????.
$ lxc ?? ?? {/path/to/file} {container-nane}/path/to/dest/dir/
? ?? ? ????? file2.txt ?? ?? ??? TEC-Container2 ????? /root/data/ path? ?????.
$ lxc ?? ?? /home/tecmint/file2.txt tec-container2/root/data/
????? ??? ??? ???? ?? ??? ?????.
$ lxc exec tec-container2 ls /root /data
11 ?? : ?? / ?? / ??? ? LXC ???? ??
LXC ?? ? ????? ???? ???? ??, ??, ??? ? ??? ?? ???? ?? ??? ?? ? ? ????.
LXC ????? ????? ??? ??????.
$ lxc ???? ??? ?????
?? ?? TEC-Container1? ????? ??? ?????.
$ lxc ?? tec-container1
LXC ????? ????? ??? ??????.
$ lxc ???? ??? ?????
?? ?? TEC-Container1? ????? ??? ?????.
$ lxc ?? tec-container1
? LXC ????? ?? ?? ????? ?? ??? ?????.
$ lxc tec-container1? ?? ????? $ lxc tec-container2? ?? ?????
LXC ????? ????? ?? ????? ?? ? ?? ???????. ?? ??, ????? ??? ?????.
$ lxc ?? tec-container1 $ lxc ?? tec-container1
?? ??? ??? ? ??? ?? ? ? ????.
$ lxc ?? tec-container1 && lxc tec-container1 ??
12 ?? : LXC ?? ? ??? ?? ??? ?????
LXC ? ???? ?? ?? ??? ?? ??? ???? ??? ??????.
$ lxc -help ?? $ lxc ?? -help eg $ lxc ?? -help
??
?? LXD ????? ?? ?? ????? LXC Command-Line ???? ??? ?????? ???? ???? ???????. ??? ?? ?? ???? ?????? ?? ????.
? ??? Rhel, Rocky & Almalinux? LXC (Linux ????)? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ??? ? ??? ??? ? ?? ??? ????. ??, ?? ??? ?? ???? ??? ??? ???? ?? ?? ?? ? ??? ????? ? ?????. ??,> ????? ?? ??? ????? ?? ???? ???? ?? ??? ????? ? ?????. ??, Echo "> ?? ??? ???? ? ?????? ??? ???? Echo-N" "> ?? ??? ???? ?? ??? ????.? ? ?? ????? ?? ??? ????? ??? ??? ???? ???? ????? ????? ???? ? ??? ? ? ????.

??? ???? ???? ?? ?????? ?? ????? ????? ??? ???? Linux ??? ?? ??? ??? ?? 5 ?? ??? ???? ?????.

Eclipse? ? ?? ?????? ?? Java?? ??? Eclipse ????? ???? ?? ?? ????? ??? ???? ?? ?? ?? ?? (IDE)???. Eclipse IDE 2023-06? ?? ???

Linux ???? ?? ? ??? ???????. Linux ??? GUI (??? ??? ?????) ??? ????? ???? ?? ??? Ssh? Linux ???? ??? ?? ? ? ????? ?? ???? ???? ? ? ????.

Linux? ??? ??? ???? ???, ?? ??? ??? ??? ???? ????? ???? ?? ??? ? ??? ?? ?? ??? ??? ????. 1. SL ?? (?? ???) ??? ???? ????

PPA? Ubuntu ???? ????? ??? ?? ? ??? ??? ?????. 1. PPA? ?? ? ?? LaunchPad.net? ???? ???? ?? ? ??? ?? ???? ?? PPA? ??? ?? ?? ? ??? ??? ?? ?? ? ?? ?? ??? ???????. 2. PPA? ???? ??? ?? sudoadd-apt-repositoryppa :/? ??? ?? SudoaptUpdate? ???? ??? ??? ???????. 3. PPA? ???? GREP ??? ?? ?? ? ??? ??? -?? ?? ??? ???? ? ??? ?? ???? ??? ?? ??? ??? ?? .list ??? ????? ???? ??????. 4. PPA? ???? ???? ???? ???? ??? ??? ?????? ???? ??? ???? ?? ??? ?? ??? ?????.

LXD? ??? ???? ? ?? ?? ???? ???? ???? ?? ?? ???? ???? Linux ???? ???? ?????. ??? ?? ? ??? Linux ???? ?? ???? ?????.

Gogo? Linux ? ??? ????? ????? ??? ?????. Linux?? ?? ??? ????? ?? ??? ??? ? ??????. ????? ? ?? Linux? ? ??? ????? ?? ? ??? ????. ?? ?? ??????? ??
