Skip to content

Commit 817f158

Browse files
authored
Update LXD installation guide and virtual memory setup
1 parent c02e0ac commit 817f158

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/en/guide/lxd/lxd_install.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ If the corresponding disk has 18 Gigabytes of free hard disk space in addition t
7070
If you need to open more than 200 LXD containers on a single server, then it is not recommended to use this project, there may be problems with lxcfs access drift, which generates IO occupancy that cannot be released. (This is a native LXC problem that can't be fixed.)
7171
:::
7272

73-
### Installation of WEB Control Panel
73+
## Installation of WEB Control Panel
7474

7575
Customization There are tutorials on how to enable the official panel, but here do not choose to use the official panel, because the official panel in order to security, at the expense of a lot of user experience, this piece of using the
7676

@@ -96,19 +96,19 @@ This piece can be changed if you need to set up the site name
9696

9797
Better than nothing can only mean that there is no RBAC access control for sub-user segregation
9898

99-
### Manual installation (optional)
99+
## Manual installation (optional)
100100

101101
Not recommended, just to install for some oddball environments where one-click scripts won't run, or if you want to understand the most basic LXD installation process.
102102

103-
#### Disable Firewall
103+
### Disable Firewall
104104

105105
```bash
106106
apt update
107107
apt install curl wget sudo dos2unix ufw jq -y
108108
ufw disable
109109
```
110110

111-
#### Enabling Virtual Memory SWAP
111+
### Enabling Virtual Memory SWAP
112112

113113
The amount of memory depends on how many instances you want to run. If you want to run 8 instances and calculate, you'll need 2GB of memory. If your actual physical memory is 512MB, you'll need an additional 1.5GB. To be cautious, allocate 2GB of virtual memory.
114114

@@ -120,7 +120,7 @@ Command:
120120
curl -L https://raw.githubusercontent.com/oneclickvirt/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh
121121
```
122122

123-
#### Installing LXD
123+
### Installing LXD
124124

125125
Actually, the virtual memory allocated for swap should be twice the size of the actual memory. So, it's reasonable to allocate 1GB if the actual memory is 500MB. The scenario I described above is an excessive allocation.
126126

@@ -165,3 +165,4 @@ export PATH=$PATH:/snap/bin
165165

166166
After connecting, test the lxc command again to see if there is an error about not being able to find it
167167

168+

0 commit comments

Comments
 (0)