-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes_to_self
45 lines (38 loc) · 1.18 KB
/
notes_to_self
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## Steps
1. [Build Distrobuilder](https://github.com/lxc/distrobuilder#installing-from-source)
2. Set mapped UID/GID
3. Set config files
4. Create bridge interface
5. Build Mageia container
6. Add container to LXC
7. Start container
## Create bridge interface
Install `bridge-utils`, used to manage bridge interfaces.
Then, create a bridge.
```Bash
brctl addbr br0
```
## Build Mageia container
```Bash
distrobuilder build-lxc ./mageia/scheme.yaml
```
## Add container to LXC
```Bash
lxc-create -n mageia -t local -- --metadata meta.tar.xz --fstree rootfs.tar.xz
```
## Start container
```Bash
lxc-start -n mageia -F -f .config/lxc/default.conf
```
## Notes
```Bash
sudo distrobuilder build-dir mageia.yaml
sudo distrobuilder pack-lxc mageia.yaml rootfs/ out/
sudo lxc-create --name mageia8 --template local -- --fstree out/rootfs.tar.xz --metadata out/meta.tar.xz
sudo lxc-start -n mageia8 -F
```
Install make qemu-img squashfs-tools rsync
https://jenkins.linuxcontainers.org/job/image-fedora/architecture=amd64,release=37,variant=default/lastBuild/
https://github.com/lxc/lxc-ci/blob/master/bin/build-distro
https://github.com/lxc/lxc-ci/pull/778/files
https://github.com/lxc/distrobuilder/pull/766