Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dougsland/auto
https://github.com/dougsland/auto
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dougsland/auto
- Owner: dougsland
- Created: 2023-05-19T18:45:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-19T23:36:07.000Z (over 1 year ago)
- Last Synced: 2024-11-18T07:14:11.505Z (about 1 month ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auto
A repo with infomation regarding CentOS and Automotive.* [Generating CentOS Automotive image with hirte and qm packages](#generating-centos-automotive-image-with-hirte-and-qm-packages)
- [1. Information about the Host machine which will generate the CentOS Automotive image](#1-information-about-the-host-machine-which-will-generate-the-centos-automotive-image)
- [2. Host Machine: Installing required packages and copying config files for the build](#2-host-machine--installing-required-packages-and-copying-config-files-for-the-build)
- [3. Generating the AutoOS VM image](#3-generating-the-autoos-vm-image)## Generating CentOS Automotive image with hirte and qm packages
This is temporary workaround until the packages get officially
included.#### 1. Information about the Host machine which will generate the CentOS Automotive image
```
$ cat /etc/fedora-release
Fedora release 38 (Thirty Eight)
``````
$ getenforce
Enforcing
```#### 2. Host Machine: Installing required packages and copying config files for the build
```
sudo dnf install -y osbuild osbuild-tools osbuild-ostree
git clone https://gitlab.com/CentOS/automotive/sample-images
git clone https://github.com/dougsland/auto
pushd auto
sudo cp org.osbuild.fedora38 /usr/lib/osbuild/runners/
cp hirte.mpp.yml ../sample-images/osbuild-manifests/images/
popd
```**As reference only (no real step)**, the repos added into the hirte.mpp.yml are `podman-next` and `mperina/hirte`.
```
- - id: copr-hirte-snapshot
baseurl: https://download.copr.fedorainfracloud.org/results/mperina/hirte-snapshot/centos-stream-9-$arch
- - id: podman-next
baseurl: https://download.copr.fedorainfracloud.org/results/rhcontainerbot/podman-next/centos-stream+epel-next-9-$arch/
packages:
mpp-join:
- mpp-eval: image_rpms
- mpp-eval: extra_rpms
- - podman
- containernetworking-plugins
- curl
- hirte
- qm
```
#### 3. Generating the AutoOS VM image
**NOTE**: During the build process, the password for the root user will be requested.
```
cd sample-images/osbuild-manifests/
make cs9-qemu-hirte-regular.x86_64.qcow2$ ls *.qcow2
cs9-qemu-hirte-regular.x86_64.qcow2
```Afer the vm is generated, use the following command to run in the console.
Please note, the default user and password are: `root` and `password`:
```
./runvm --nographics cs9-qemu-hirte-regular.x86_64.qcow2
```
**To exit from qemu**: `CTRL-a c` and then `quit` into the qemu terminal### References
https://sigs.centos.org/automotive/building/#installing-osbuild-on-centos-stream-8
https://gist.github.com/michael131468/ba35263a14143547d26f6f7d691a6a30
https://gitlab.com/lrossett/sample-images/-/commits/hirte-snapshot