Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add serial console logs and osbuild SELinux #2

Merged
merged 8 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ RUN rpm-ostree override remove \
nfs-utils-coreos \
--install=libvirt \
--install=qemu \
--install=bootc
--install=bootc \
--install=osbuild-selinux
RUN systemctl enable \
libvirtd.service \
rpm-ostreed-automatic.timer \
Expand Down
53 changes: 53 additions & 0 deletions equinix-metal-ipxe-boot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,59 @@ when creating a machine, choose OS iPXE and put in the URL

> https://raw.githubusercontent.com/ii/corehost/main/equinix-metal-ipxe-boot/ipxe.txt

``` shell
metal device create \
--ipxe-script-url https://raw.githubusercontent.com/ii/corehost/main/equinix-metal-ipxe-boot/ipxe.txt \
--operating-system custom_ipxe \
--plan c2.medium.x86 \
--metro sv \
--hostname core \
--output yaml \
core
```

```
Booting from PXE Device 1: NIC in Slot 2 Port 1

>>Start PXE over IPv4.
Station IP address is 147.75.71.61

Server IP address is 145.40.83.140
NBP filename is ipxe.efi
NBP filesize is 1034240 Bytes
Downloading NBP file...

Succeed to download NBP file.
iPXE initialising devices...ok



iPXE 1.0.0+ -- Open Source Network Boot Firmware -- https://ipxe.org
Features: DNS HTTP HTTPS NFS TFTP VLAN EFI Menu
Welcome to Neverland!
Booting from net0...
net0: ec:0d:9a:bf:3d:10 using ConnectX-4Lx on 0000:01:00.0 (Ethernet) [open]
[Link:up, TX:0 TXE:1 RX:0 RXE:0]
[TXE: 1 x "Network unreachable (https://ipxe.org/28086090)"]
Configuring (net0 ec:0d:9a:bf:3d:10)... ok
net0: 147.75.71.61/255.255.255.254 gw 147.75.71.60
net0: fe80:81::/127 gw fe80::400:deff:fead:beef (no address)
net0: fe80::ee0d:9aff:febf:3d10/64
net1: fe80::ee0d:9aff:febf:3d11/64 (inaccessible)
Next server: 145.40.83.140
Filename: http://tinkerbell.sv15.packet.net/auto.ipxe
http://tinkerbell.sv15.packet.net/auto.ipxe... ok
auto.ipxe : 789 bytes [script]
Tinkerbell Boots iPXE
Debug Trace ID: d1534d9d26f0cc307f1ecb2f1fafd692
http://tinkerbell.sv15.packet.net/phone-home.......... ok
https://raw.githubusercontent.com/ii/corehost/main/equinix-metal-ipxe-boot/ipxe.txt... ok
https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/39.20240112.3.0/x86_64/fedora-coreos-39.20240112.3.0-live-kernel-x86_64.... ok
https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/39.20240112.3.0/x86_64/fedora-coreos-39.20240112.3.0-live-initramfs.x86_64.img... ok
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path

```

## TODO

- [ ] automatically install the image built in this repo
6 changes: 3 additions & 3 deletions equinix-metal-ipxe-boot/ignition.ign
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"units": [
{
"name": "zincati.service",
"enabled": false
},
],
"enabled": false
}
]
},
"passwd": {
"users": [
Expand Down
2 changes: 1 addition & 1 deletion equinix-metal-ipxe-boot/ipxe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set CONFIGURL https://raw.githubusercontent.com/ii/corehost/main/equinix-metal-i

set BASEURL https://builds.coreos.fedoraproject.org/prod/streams/${STREAM}/builds/${VERSION}/x86_64

kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img coreos.inst.install_dev=${INSTALLDEV} coreos.inst.ignition_url=${CONFIGURL}
kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img coreos.inst.install_dev=${INSTALLDEV} coreos.inst.ignition_url=${CONFIGURL} coreos.inst.console=ttyS1,115200n8 console=ttyS1,115200n8
initrd --name main ${BASEURL}/fedora-coreos-${VERSION}-live-initramfs.x86_64.img

boot
Loading