You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+21-11
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ GentooImgr: Gentoo Image Builder for Cloud and Turnkey ISO installers
3
3
4
4
GentooImgr is a python script system to build cloud images based on Gentoo Linux.
5
5
6
-
Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder.
6
+
Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder for providing a foundation to work from.
7
7
8
8
9
9
**Features:**
@@ -17,6 +17,17 @@ Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder.
17
17
18
18
**rename to gentooimgr, upload to pip**
19
19
20
+
Preface
21
+
-------
22
+
23
+
This project was created so I could spawn off Gentoo OS templates on my Proxmox server for various services while being more efficient than many other Linux OS's and avoiding systemd.
24
+
25
+
This python module contains all the software needed to download resources, build the image, run the image in qemu, and allow for some extensibility. The built-in functionality includes a base standard gentoo image configuration as well as a cloud-init image that can be run. You can copy the .json config file and optionally a kernel .config file to configure your image to your liking and pass it in with ``--config``.
26
+
27
+
This software is in beta so please report any issues or feature requests. You are **highly** encouraged to do so.
28
+
29
+
Thanks!
30
+
20
31
Roadmap
21
32
-------
22
33
@@ -25,7 +36,7 @@ Roadmap
25
36
- Successfully built a gentoo qcow2 image that can be run in qemu, but it requires using the --dist-kernel flag
26
37
as building from source still requires some work.
27
38
28
-
*[] Use gentooimgr to create a usable cloud image
39
+
*[X] Use gentooimgr to create a usable cloud image (requires --dist-kernel currently)
29
40
*[ ] Use gentooimgr to create Gentoo installations on other non-amd64/non-native architectures (ex: ppc64)
# a basic run will build a default gentoo amd64 system. Use --kernel-dist to get a distribution kernel
51
-
# python -m gentooimgr --config-_____ run
52
-
# python -m gentooimgr --config-cloud run
53
60
```
54
61
55
62
Once qemu is running, mount the available gentooimgr iso and run the appropriate command:
56
63
57
64
```sh
58
-
mkdir -p /mnt/gentooimgr
59
-
mount /dev/disk/by-label/gentooimgr /mnt/gentooimgr
60
-
cd /mnt/gentooimgr
65
+
mkdir -p /mnt/gi
66
+
mount /dev/disk/by-label/gentooimgr /mnt/gi
67
+
cd /mnt/gi
61
68
python -m gentooimgr --config-cloud install
62
69
```
63
70
@@ -69,13 +76,16 @@ Then perform any additional procedures, such as shrinking the img from 10G to ~3
69
76
python -m gentooimgr shrink gentoo.qcow2
70
77
```
71
78
79
+
**NOTE** Due to how ``gentooimgr`` dynamically finds the most recent portage/stage3 and iso files, if multiples exist in the same directory you may have to specify them using the appropriate flag (ie: ``--iso [path-to-iso]``). Older images can be used in this manner and eventually setting those values in the .json file should be recognized by gentooimgr so there will be no need to specify them on the command line.
80
+
81
+
72
82
73
83
Extended Usage
74
84
--------------
75
85
76
86
GentooImgr is flexible in that it can be run on a live running system as well as on a livecd in qemu;
77
87
78
-
It's possible to automate a new bare-metal Gentoo installation (with some further development) simply by running ``cloud-cfg`` or equivalent command to install and set up everything.
88
+
It's possible to automate a new bare-metal Gentoo installation (with some further development) simply by running the ``install`` action or equivalent command to install and set up everything.
79
89
80
90
Eventually, GentooImgr will be used to build gentoo turnkey OS images automatically.
81
91
@@ -96,7 +106,7 @@ Mounts/binds are handled automatically when you chroot, but you will need to ``u
0 commit comments