Qhov no txhais tau hais tias ob lub pob yuav raug teeb tsa ib zaug, ib qho yog pob kaw lus thiab lwm qhov yog pob snap. Txhim kho ob pob khoom ntawm ib lub kaw lus tuaj yeem tsim qee qhov teeb meem uas lub kaw lus pob tuaj yeem ua menyuam ntsuag yog tias lub pob snap raug tshem tawm los ntawm tus tswj hwm pob snap.
Nrhiav pob lxd hauv snap repository koj tuaj yeem siv cov lus txib hauv qab no:
snap find lxd
Name Version Summary
lxd 3.21 System container manager and API
lxd-demo-server 0+git.6d54658 Online software demo sessions using LXD
nova ocata OpenStack Compute Service (nova)
nova-hypervisor ocata OpenStack Compute Service - KVM Hypervisor (nova)
distrobuilder 1.0 Image builder for LXC and LXD
fabrica 0.1 Build snaps by simply pointing a web form to...
satellite 0.1.2 Advanced scalable Open source intelligence platform
Los ntawm kev khiav cov lus txib list koj tuaj yeem paub tseeb tias pob lxd tseem tsis tau ntsia:
snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 stable canonicalβ core
Txawm tias muaj tseeb hais tias LXD yog ib pob snap, nws yuav tsum tau muab ntsia los ntawm lub kaw lus pob lxd, uas yuav tsim cov pab pawg neeg sib raug zoo hauv qhov system, cov khoom siv tsim nyog hauv /usr/bin thiab ua li ntawd.
sudo apt update
sudo apt install lxd
Cia peb nco ntsoov tias lub pob raug teeb tsa ua ib pob snap:
snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 stable canonicalβ core
lxd 3.21 13474 stable/β¦ canonicalβ -
Ua ntej pib pib, peb yuav tsum nkag siab tias qhov chaw cia hauv LXD yog qhov txheej txheem zoo li cas.
Cia (cia) muaj ntawm los ntawm ib lossis ntau dua Lub pas dej cia uas siv ib qho ntawm cov ntaub ntawv txhawb nqa xws li ZFS, BTRFS, LVM lossis cov npe tsis tu ncua. Txhua Lub pas dej cia muab faib ua ntim (Ntim Ntim) uas muaj cov duab, ntim, lossis cov ntaub ntawv rau lwm lub hom phiaj.
Dluab - cov no yog tshwj xeeb sib sau ua ke yam tsis muaj Linux ntsiav thiab muaj los ntawm lwm qhov chaw
Ntim - Cov no yog cov khoom xa tawm los ntawm cov duab, npaj rau kev siv
Snapshots - Cov no yog snapshots ntawm lub xeev cov thawv uas koj tuaj yeem rov qab mus
Txhawm rau tswj kev cia hauv LXD, siv cov lus txib lxc storage ib daim ntawv pov thawj uas koj tuaj yeem tau txais los ntawm kev qhia tus yuam sij - lxc storage --help
Cov lus txib hauv qab no qhia cov npe ntawm txhua tus Lub pas dej cia hauv LXD cia:
lxc storage list
+---------+-------------+--------+--------------------------------+---------+
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+---------+-------------+--------+--------------------------------+---------+
| hddpool | | btrfs | /dev/loop1 | 2 |
+---------+-------------+--------+--------------------------------+---------+
| ssdpool | | btrfs | /var/lib/lxd/disks/ssdpool.img | 4 |
+---------+-------------+--------+--------------------------------+---------+
Mus saib ib daim ntawv teev tag nrho Ntim Ntim nyob rau hauv xaiv Lub pas dej cia pab pawg lxc storage volume list:
lxc storage volume list hddpool
+-------+----------------------------------+-------------+---------+
| TYPE | NAME | DESCRIPTION | USED BY |
+-------+----------------------------------+-------------+---------+
| image | ebd565585223487526ddb3607f515... | | 1 |
+-------+----------------------------------+-------------+---------+
lxc storage volume list ssdpool
+-----------+----------------------------------+-------------+---------+
| TYPE | NAME | DESCRIPTION | USED BY |
+-----------+----------------------------------+-------------+---------+
| container | alp3 | | 1 |
+-----------+----------------------------------+-------------+---------+
| container | jupyter | | 1 |
+-----------+----------------------------------+-------------+---------+
| image | ebd565585223487526ddb3607f515... | | 1 |
+-----------+----------------------------------+-------------+---------+
Ntxiv thiab, yog rau Lub pas dej cia Thaum tsim, BTRFS cov ntaub ntawv kaw lus raug xaiv, tom qab ntawd tau txais ib daim ntawv teev npe Ntim Ntim los yog subvolume cov Hauv kev txhais BTRFS, koj tuaj yeem siv cov cuab yeej ntawm cov ntaub ntawv no:
sudo btrfs subvolume list -p /var/lib/lxd/storage-pools/hddpool
ID 257 gen 818 parent 5 top level 5 path images/ebd565585223487526ddb3607f5156e875c15a89e21b61ef004132196da6a0a3
sudo btrfs subvolume list -p /var/lib/lxd/storage-pools/ssdpool
ID 257 gen 1820 parent 5 top level 5 path images/ebd565585223487526ddb3607f5156e875c15a89e21b61ef004132196da6a0a3
ID 260 gen 1819 parent 5 top level 5 path containers/jupyter
ID 263 gen 1820 parent 5 top level 5 path containers/alp3
Khiav cov lus txib lxc init thiab sau cov lus teb rau cov lus nug tom qab txoj hnyuv loj raws li qhia hauv qhov piv txwv hauv qab no lossis hloov lawv raws li koj qhov xwm txheej:
lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]: ssdpool
Name of the storage backend to use (lvm, btrfs, dir) [default=btrfs]:
Create a new BTRFS pool? (yes/no) [default=yes]:
Would you like to use an existing block device? (yes/no) [default=no]:
Size in GB of the new loop device (1GB minimum) [default=15GB]: 10GB
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, βautoβ or βnoneβ) [default=auto]: 10.0.5.1/24
Would you like LXD to NAT IPv4 traffic on your bridge? [default=yes]:
What IPv6 address should be used? (CIDR subnet notation, βautoβ or βnoneβ) [default=auto]: none
Would you like LXD to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] no
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:
Hauv cov kauj ruam dhau los peb tsim Lub pas dej cia uas tau muab lub npe ssdpool thiab cov ntaub ntawv uas nyob rau hauv kuv qhov system ntawm /var/lib/lxd/disks/ssdpool.img. Qhov chaw nyob ntawm cov ntaub ntawv no sib raug rau lub cev SSD tsav hauv kuv lub PC.
Cov kev ua hauv qab no, kom nthuav dav kev nkag siab ntawm lub luag haujlwm ua los ntawm Lub pas dej cia nyob rau hauv lub repository, peb yuav tsim ib tug thib ob Lub pas dej cia uas yuav nyob rau hauv lub cev ntawm ntau hom disk, HDD. Qhov teeb meem yog LXD tsis pub koj tsim Lub pas dej cia tawm ntawm qhov chaw nyob /var/lib/lxd/disks/ thiab txawm tias cov cim sib txuas yuav tsis ua haujlwm, saib tus tsim tawm cov lus teb. Peb tuaj yeem hla qhov kev txwv no thaum pib / tsim tawm Lub pas dej cia los ntawm kev qhia tus nqi raws li cov cuab yeej thaiv tsis yog txoj hauv kev rau cov ntaub ntawv loopback los ntawm kev qhia qhov no hauv tus yuam sij source.
Yog li, ua ntej tsim Lub pas dej cia koj yuav tsum tau txhais cov ntaub ntawv loopback lossis ib qho kev faib uas twb muaj lawm ntawm koj cov ntaub ntawv uas nws yuav siv. Txhawm rau ua qhov no, peb yuav tsim thiab siv cov ntaub ntawv uas peb yuav txwv qhov loj me rau 10GB:
dd if=/dev/zero of=/mnt/work/lxd/hddpool.img bs=1MB count=10000
10000+0 records in
10000+0 records out
10000000000 bytes (10 GB, 9,3 GiB) copied, 38,4414 s, 260 MB/s
Tom qab creation Lub pas dej cia, yog tias tsim nyog, nws tuaj yeem nthuav dav. Rau Lub pas dej cia raws li BTRFS cov ntaub ntawv kaw lus, khiav cov lus txib hauv qab no:
Txij li thaum peb yav tas los pib lub network siv qhov pib wizard lxd init thiab tsim ib lub network ntaus ntawv lxd0 ib, tom qab ntawd hauv nqe lus no peb tsuas yog paub txog kev sib tham hauv LXD thiab yuav ua li cas los tsim lub hloov pauv virtual (choj) siv cov neeg siv khoom hais kom ua.
Cov duab hauv qab no qhia tau hais tias qhov hloov pauv (choj) txuas tus tswv tsev thiab cov thawv rau hauv lub network li cas:
Cov thawv ntim khoom tuaj yeem sib txuas lus los ntawm kev sib txuas lus nrog lwm lub thawv lossis tus tswv tsev uas cov thawv no tau txais kev pabcuam. Txhawm rau ua qhov no, koj yuav tsum txuas cov npav virtual network ntawm cov ntim nrog lub hloov pauv virtual. Peb mam li tsim ib qho kev hloov ua ntej, thiab lub thawv lub network interfaces yuav txuas rau hauv cov tshooj tom ntej, tom qab lub thawv nws tus kheej tau tsim.
Cov lus txib hauv qab no tsim qhov hloov pauv nrog subnet 10.0.5.0/24 thiab IPv4 chaw nyob 10.0.5.1/24, thiab kuj suav nrog ipv4.nat kom cov thawv tuaj yeem nkag tau hauv Is Taws Nem los ntawm tus tswv tsev siv NAT kev pabcuam:
Txhua lub thawv hauv LXD muaj nws tus kheej configuration thiab tuaj yeem txuas ntxiv nrog lub ntiaj teb tshaj tawm kev teeb tsa hu ua configuration profiles. Siv configuration profiles rau ib lub thawv muaj ib tug cascade qauv, cov piv txwv nram qab no qhia qhov no:
Hauv qhov piv txwv no, peb qhov profile tau tsim nyob rau hauv LXD system: default, hddpool ΠΈ hostfs. Tag nrho peb qhov profile yog siv rau lub thawv uas muaj qhov chaw teeb tsa hauv zos (qhov grey cheeb tsam). Profile default muaj ib tug ntaus ntawv root uas muaj parameter pool yog muaj sib npaug ssdpool, tab sis ua tsaug rau cascade configuration daim ntawv thov qauv, peb tuaj yeem siv qhov profile rau lub thawv hddpool uas muaj parameter pool yuav override tib parameter los ntawm qhov profile default thiab lub thawv yuav tau txais cov cuab yeej teeb tsa root nrog parameter pool sib npaug hddpool, thiab profile hostfs tsuas yog ntxiv ib lub cuab yeej tshiab rau hauv lub thawv.
Txhawm rau pom cov npe ntawm cov kev teeb tsa muaj nyob, siv cov lus txib hauv qab no:
lxc profile list
+---------+---------+
| NAME | USED BY |
+---------+---------+
| default | 1 |
+---------+---------+
| hddroot | 0 |
+---------+---------+
| ssdroot | 1 |
+---------+---------+
Daim ntawv teev tag nrho ntawm cov lus txib muaj rau kev ua haujlwm nrog ib qho profile tuaj yeem tau los ntawm kev ntxiv tus yuam sij --help:
lxc profile --help
Description:
Manage profiles
Usage:
lxc profile [command]
Available Commands:
add Add profiles to instances
assign Assign sets of profiles to instances
copy Copy profiles
create Create profiles
delete Delete profiles
device Manage instance devices
edit Edit profile configurations as YAML
get Get values for profile configuration keys
list List profiles
remove Remove profiles from instances
rename Rename profiles
set Set profile configuration keys
show Show profile configurations
unset Unset profile configuration keys
Default configuration profile default tsis muaj daim npav network teeb tsa rau lub thawv thiab tag nrho cov thawv tsim tshiab tsis muaj lub network, rau lawv nws yog qhov tsim nyog los tsim cov khoom siv hauv zos (mob siab) network nrog cov lus txib sib cais, tab sis peb tuaj yeem tsim lub ntiaj teb network ntaus ntawv hauv kev teeb tsa. profile uas yuav muab faib nruab nrab ntawm txhua lub thawv uas siv qhov profile no. Txoj kev no, tam sim ntawd tom qab cov lus txib los tsim lub thawv tshiab, lawv yuav muaj lub network nrog kev nkag mus rau lub network. Nyob rau tib lub sijhawm, tsis muaj kev txwv; peb tuaj yeem tsim ib lub network hauv zos tom qab yog tias tsim nyog.
Cov lus txib hauv qab no yuav ntxiv lub cuab yeej rau qhov profile configuration eth0 hom nic txuas nrog lub network lxdbr0:
lxc profile device add default eth0 nic network=lxdbr0 name=eth0
Nws yog ib qho tseem ceeb uas yuav tsum nco ntsoov tias txij li thaum peb tau ntxiv cov cuab yeej rau qhov kev teeb tsa profile, yog tias peb tau teev qhov chaw nyob IP zoo li qub hauv lub cuab yeej, ces txhua lub ntim uas yuav siv qhov profile no yuav qhia tib tus IP chaw nyob. Yog tias muaj qhov xav tau los tsim lub thawv nrog qhov chaw nyob IP zoo li qub tau faib rau lub thawv, ces koj yuav tsum tsim cov khoom siv network teeb tsa ntawm qib ntim (kev teeb tsa hauv zos) nrog tus IP chaw nyob, thiab tsis nyob ntawm qib profile.
Cia peb tshawb xyuas qhov profile:
lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: ssdpool
type: disk
name: default
used_by: []
Hauv qhov profile no peb tuaj yeem pom tias rau txhua lub thawv tsim tshiab ob lub cuab yeej yuav raug tsim:
eth0 - Hom ntaus ntawv nic txuas mus rau ib tug hloov (network choj) lxdbr0
root - Hom ntaus ntawv disk uas siv lub pas dej ua ke ssdpool
Siv yav tas los tsim Lub pas dej cia ntim, tsim ib tug configuration profile ssdroot nyob rau hauv uas peb yuav ntxiv ib tug ntaus ntawv zoo li disk nrog mount point / (hauv paus) siv lub yav tas los tsim Lub pas dej cia - ssdpool:
Cov thawv ntim tau tsim los ntawm cov duab uas tshwj xeeb sib sau ua ke uas tsis muaj Linux kernel. Yog li ntawd, ua ntej khiav lub thawv, nws yuav tsum tau deployed los ntawm daim duab no. Lub hauv paus ntawm cov duab yog ib lub chaw cia khoom hauv zos uas cov duab raug rub tawm los ntawm cov chaw cia sab nraud.
Txhawm rau pib siv lub thawv, koj yuav tsum tau ntxiv ib daim duab los ntawm lub ntiaj teb repository rau hauv ib cheeb tsam local:. Tam sim no lub chaw cia khoom hauv zos yog khoob, cov lus txib yuav ua kom paub tseeb txog qhov no lxc image list. Yog txoj kev list tsis qhia meej txog qhov chaw khaws cia, tom qab ntawd lub chaw cia khoom hauv zos yuav raug siv los ntawm lub neej ntawd - local:
lxc image list local:
+-------+-------------+--------+-------------+--------------+------+------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE |
+-------+-------------+--------+-------------+--------------+------+------+
Duab nyob rau hauv lub repository yog tswj los ntawm cov hauv qab no txoj kev:
Ntxiv rau hom kev sib tham sib tham, LXD kuj tseem txhawb nqa qhov tsis sib cuam tshuam kev teeb tsa kev teeb tsa, qhov no yog thaum lub teeb tsa tau teev nyob rau hauv daim ntawv ntawm YAML cov ntaub ntawv, ib hom ntawv tshwj xeeb uas tso cai rau koj los nruab tag nrho cov teeb tsa ib zaug, hla kev ua tiav. ntawm ntau cov lus sib tham sib tham uas tau tham saum toj no hauv kab lus no, suav nrog kev teeb tsa network, tsim cov teeb tsa profiles, thiab lwm yam. Peb yuav tsis npog thaj tsam ntawm no, koj tuaj yeem tshawb xyuas nws ntawm koj tus kheej. hauv cov ntaub ntawv.
Tom ntej no sib tham sib hais kom ua lxc config uas peb yuav saib tso cai rau koj mus teem lub configuration. Piv txwv li, txhawm rau xyuas kom meej tias cov duab rub tawm mus rau hauv lub chaw cia khoom hauv zos tsis tau hloov kho los ntawm lub ntiaj teb repositories, peb tuaj yeem ua kom tus cwj pwm no nrog cov lus txib hauv qab no:
Txhawm rau tsim ib lub thawv siv cov lus txib lxc init mus qhov twg muaj nuj nqis dhau ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΠΉ:ΠΎΠ±ΡΠ°Π· thiab tom qab ntawd tus ID xav tau rau lub thawv. Lub repository tuaj yeem raug teev raws li hauv zos local: yog li ntawd yog ib qho thoob ntiaj teb. Yog tias qhov chaw khaws cia tsis tau teev tseg, ces los ntawm lub neej ntawd lub chaw cia khoom hauv zos yog siv los tshawb nrhiav cov duab. Yog tias daim duab tau teev tseg los ntawm lub ntiaj teb repository, ces cov duab yuav xub muab rub mus rau hauv lub chaw cia khoom hauv zos thiab tom qab ntawd siv los tsim lub thawv.
Cia peb khiav cov lus txib hauv qab no los tsim peb lub thawv thawj:
lxc init alpine3 alp --storage=hddpool --profile=default --profile=hddroot
Cia peb saib cov yuam sij hais kom ua uas peb siv ntawm no hauv kev txiav txim:
alpine3 - Ib qho alias (alias) yog teev rau cov duab uas yav tas los tau muab tso rau hauv lub chaw cia khoom hauv zos. Yog hais tias lub alias tsis tau tsim rau cov duab no, ces koj yeej ib txwm xa mus rau cov duab los ntawm nws Tsa tes uas yog tshwm nyob rau hauv lub rooj.
alp - Teem lub cim rau lub thawv
--storage - Cov ntsiab lus no qhia txog qhov twg Lub pas dej cia yuav tsim ib lub thawv
--profile - Cov yuam sij cascade no siv kev teeb tsa los ntawm kev tsim cov txheej txheem yav dhau los rau lub thawv
Peb tso lub thawv, uas pib tso lub init system ntawm kev faib khoom:
lxc start alp
Koj tuaj yeem siv cov lus txib lxc launch uas tso cai rau koj los ua ke pab pawg lxc init ΠΈ lxc start hauv ib qho kev ua haujlwm.
Tshawb xyuas lub xeev ntawm lub thawv:
lxc list -c ns46tb
+------+---------+------------------+------+-----------+--------------+
| NAME | STATE | IPV4 | IPV6 | TYPE | STORAGE POOL |
+------+---------+------------------+------+-----------+--------------+
| alp | RUNNING | 10.0.5.46 (eth0) | | CONTAINER | hddpool |
+------+---------+------------------+------+-----------+--------------+
Yog tias peb sim teeb tus IP chaw nyob rau lub network ntaus ntawv eth0 pab lxc config device set alp npaj rau lub thawv configuration, ces peb yuav tau txais ib qho kev ua yuam kev uas yuav qhia hais tias lub ntaus ntawv tsis muaj nyob rau hauv vim hais tias ntawm lub ntaus ntawv. eth0 uas yog siv los ntawm lub thawv belongs rau profile default:
lxc config device set alp eth0 ipv4.address 10.0.5.5
Error: The device doesn't exist
Peb tuaj yeem tsim qhov chaw nyob IP zoo li qub rau eth0 cov khoom siv hauv qhov profile, tab sis nws yuav zoo ib yam rau txhua lub thawv uas yuav siv qhov profile no. Yog li ntawd, cia peb ntxiv ib qho cuab yeej rau lub thawv:
lxc config device add alp eth0 nic name=eth0 nictype=bridged parent=lxdbr0 ipv4.address=10.0.5.5
Tom qab ntawd koj yuav tsum rov pib lub thawv:
lxc restart alp
Yog tias peb saib lub thawv teeb tsa tam sim no, peb tsis tas yuav siv qhov kev xaiv --expanded kom pom lub network ntaus ntawv eth0, txij li thaum peb tsim nws ntawm lub thawv ntim thiab nws cascaded tshaj tib lub cuab yeej los ntawm qhov profile default:
Txhawm rau ua cov lus txib hauv lub thawv ncaj qha, hla kev sib txuas hauv network, siv cov lus txib lxc exec uas executes commands nyob rau hauv lub thawv tsis launching lub system plhaub. Yog tias koj yuav tsum ua kom tiav cov lus txib hauv lub plhaub uas siv lub plhaub qauv xws li kev hloov pauv, cov ntaub ntawv hloov pauv (cov yeeb nkab), thiab lwm yam, ces koj yuav tsum tau ua kom meej meej tso lub plhaub thiab hla cov lus txib ua tus yuam sij, piv txwv li:
lxc exec alp -- /bin/sh -c "echo $HOME"
Cov lus txib siv tus cim tshwj xeeb khiav rau tus cwj pwm tshwj xeeb $ thiaj li hloov tau $HOME tsis tau txhais ntawm lub tshuab hosting, tab sis tau txhais tsuas yog hauv lub thawv.
Nws tseem tuaj yeem pib qhov sib tham sib plhaub hom, thiab tom qab ntawd xaus qhov kev sib kho los ntawm kev ua haujlwm hotkey CTRL+D:
Ntxiv rau cov kev txwv xws li limits.read, limits.write peb tseem tuaj yeem txwv qhov chaw disk siv los ntawm lub thawv (tsuas yog ua haujlwm nrog ZFS lossis BTRFS):
lxc config device set alp root size=2GB
Tom qab installation, nyob rau hauv lub parameter devices.root.size Peb tuaj yeem txheeb xyuas qhov teeb tsa:
lxc config show alp
...
devices:
root:
path: /
pool: hddpool
size: 2GB
type: disk
ephemeral: false
profiles:
- default
- hddroot
stateful: false
description: ""
Txhawm rau saib cov ntaub ntawv siv disk peb tuaj yeem tau txais los ntawm cov lus txib lxc info:
lxc info alp
...
Resources:
Processes: 5
Disk usage:
root: 1.05GB
CPU usage:
CPU usage (in seconds): 1
Memory usage:
Memory (current): 5.46MB
Network usage:
eth0:
Bytes received: 802B
Bytes sent: 1.59kB
Packets received: 4
Packets sent: 14
lo:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
Txawm hais tias peb tau teeb tsa kev txwv rau lub hauv paus ntawm lub thawv rau 2GB, cov khoom siv hluav taws xob xws li df yuav tsis pom qhov kev txwv no. Ua li no, peb yuav ua ib qho kev sim me me thiab nrhiav seb nws ua haujlwm li cas.
Cia peb tsim 2 lub thawv tshiab zoo tib yam hauv tib qho Lub pas dej cia (hddpool):
lxc info alp
...
...
Snapshots:
snapshot1 (taken at 2020/04/08 18:18 UTC) (stateless)
Koj tuaj yeem rov qab tau lub thawv los ntawm snapshot siv cov lus txib lxc restore qhia txog lub thawv uas qhov kev kho kom rov qab yuav tau ua thiab lub snapshot alias:
lxc restore alp snapshot1
Cov lus txib hauv qab no yog siv los rho tawm ib qho snapshot. Thov nco ntsoov tias qhov kev hais kom ua syntax tsis zoo ib yam li lwm tus; ntawm no koj yuav tsum tau hais kom meej rau pem hauv ntej slash tom qab lub thawv lub npe. Yog tias qhov slash raug tshem tawm, ces cov lus txib kom rho tawm ib qho snapshot yog txhais raws li cov lus txib kom rho tawm lub thawv!
lxc delete alp/snapshot1
Hauv qhov piv txwv saum toj no, peb tau saib ntawm qhov hu ua stateless snapshots. LXD muaj lwm hom snapshots - lub xeev, uas txuag lub xeev tam sim no ntawm tag nrho cov txheej txheem hauv lub thawv. Muaj ntau qhov nthuav thiab muaj txiaj ntsig zoo cuam tshuam nrog lub xeev snapshots.