add fedora43 and default credentials to osbuild
This commit is contained in:
77
active/software_osbuild/fedora-43-base.toml
Normal file
77
active/software_osbuild/fedora-43-base.toml
Normal file
@@ -0,0 +1,77 @@
|
||||
name = "fedora-43-base"
|
||||
description = "Fedora 43 Base Installation"
|
||||
version = "0.0.1"
|
||||
distro = "fedora-43"
|
||||
modules = []
|
||||
groups = []
|
||||
|
||||
[customizations]
|
||||
hostname = "f43-base"
|
||||
|
||||
[[customizations.disk.partitions]]
|
||||
type = "btrfs"
|
||||
minsize = "32 GiB"
|
||||
|
||||
[[customizations.disk.partitions.subvolumes]]
|
||||
name = "root"
|
||||
mountpoint = "/"
|
||||
|
||||
[[customizations.disk.partitions.subvolumes]]
|
||||
name = "home"
|
||||
mountpoint = "/home"
|
||||
|
||||
[customizations.timezone]
|
||||
timezone = "America/New_York"
|
||||
|
||||
[[customizations.user]]
|
||||
name = "ducoterra"
|
||||
password = "$6$QqOw6ktp6aiPy5kX$cpN.oar4CiofH0PpxyveJgkjsRFGnZ5ykOX/50DcJyU3hZFxc5R3SASemNW6m3jceLGgZrQHyALQl8SgtcNO90"
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGQa781Qj8mNlUdRquFFqg0O2ornG9SBHe705y4+1vPI ssh@ducoterra.net"
|
||||
home = "/home/ducoterra/"
|
||||
shell = "/usr/bin/bash"
|
||||
groups = ["wheel"]
|
||||
uid = 1000
|
||||
|
||||
[customizations.firewall.services]
|
||||
enabled = ["ssh"]
|
||||
|
||||
[customizations.services]
|
||||
enabled = ["sshd"]
|
||||
|
||||
[[packages]]
|
||||
name = "bash-completion"
|
||||
version = "*"
|
||||
|
||||
[[packages]]
|
||||
name = "tmux"
|
||||
version = "*"
|
||||
|
||||
[[packages]]
|
||||
name = "openssh-server"
|
||||
version = "*"
|
||||
|
||||
[[packages]]
|
||||
name = "vim"
|
||||
version = "*"
|
||||
|
||||
[[packages]]
|
||||
name = "git"
|
||||
version = "*"
|
||||
|
||||
[[customizations.files]]
|
||||
path = "/root/.inputrc"
|
||||
mode = "0644"
|
||||
user = "root"
|
||||
group = "root"
|
||||
data = """
|
||||
"\\C-h": backward-kill-word
|
||||
"""
|
||||
|
||||
[[customizations.files]]
|
||||
path = "/home/ducoterra/.inputrc"
|
||||
mode = "0644"
|
||||
user = "root"
|
||||
group = "root"
|
||||
data = """
|
||||
"\\C-h": backward-kill-word
|
||||
"""
|
||||
@@ -4,6 +4,12 @@ Builds Fedora/RHEL/Centos images like Packer but for Red Hat.
|
||||
|
||||
<https://osbuild.org/docs/user-guide/blueprint-reference/>
|
||||
|
||||
Default credentials for included images is:
|
||||
|
||||
username: `ducoterra`
|
||||
|
||||
password: `osbuild`
|
||||
|
||||
## Warning
|
||||
|
||||
From the [Red Hat
|
||||
@@ -54,14 +60,23 @@ dnf install -y cockpit-composer
|
||||
composer-cli compose start fedora-42-base qcow2
|
||||
|
||||
# Check status
|
||||
composer-cli compose status
|
||||
watch composer-cli compose status
|
||||
|
||||
# Download logs if error
|
||||
cd /tmp && composer-cli compose logs f91a12b6-01fd-4f94-91cc-9d5fb68b8129
|
||||
|
||||
# Delete failed images
|
||||
composer-cli compose list failed -j | jq '.[].body.failed.[]?.id' | xargs -I '%' composer-cli compose delete '%'
|
||||
|
||||
# Delete successful images
|
||||
composer-cli compose list finished -j | jq '.[].body.finished.[]?.id' | xargs -I '%' composer-cli compose delete '%'
|
||||
```
|
||||
|
||||
4. Run the image
|
||||
|
||||
```bash
|
||||
# List your images
|
||||
composer-cli compose list
|
||||
composer-cli compose list finished
|
||||
|
||||
# Download the image
|
||||
composer-cli compose image --filename /var/lib/libvirt/images/fedora-42-base.qcow2 image-uuid
|
||||
@@ -69,3 +84,11 @@ dnf install -y cockpit-composer
|
||||
# Test with qemu
|
||||
qemu-kvm --name test-fedora-42-base -m 4096 -hda ~/Downloads/fedora-42-base.qcow2
|
||||
```
|
||||
|
||||
### Image Build and Watch One Liner
|
||||
|
||||
```bash
|
||||
composer-cli blueprints push active/software_osbuild/fedora-43-base.toml && \
|
||||
composer-cli compose start fedora-43-base qcow2 && \
|
||||
watch composer-cli compose status
|
||||
```
|
||||
Reference in New Issue
Block a user