Skip to content

Instantly share code, notes, and snippets.

@csirac2
Last active May 22, 2025 05:21
Show Gist options
  • Save csirac2/79164f288c815836b9e1960c24b259d2 to your computer and use it in GitHub Desktop.
Save csirac2/79164f288c815836b9e1960c24b259d2 to your computer and use it in GitHub Desktop.
Install Fedora over Intel AMT serial console

Scenario

Assumptions

  • The SOL serial port presents itself as ttyS4 to linux, and we are using 115200 bps
  • We have an existing grub menu we can pivot from
  • There's a locally accessible disk partition containing the Fedora installation iso, here it will be (hd0,gpt1) (GRUB-speak for /dev/sda1)

Recipe

  1. Interrupt grub boot menu with "c"
  2. In a nearby terminal, mount the fedora install iso locally, and inspect the grub.cfg for commands it wants to boot with
  3. For me, the relevant grub commands looked like:
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --set=root -l 'Fedora-S-dvd-x86_64-42'
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-42 quiet
initrdefi /images/pxeboot/initrd.img
  1. I re-wrote these to suite my situation:
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --set=root -l 'Fedora-S-dvd-x86_64-42'
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-42 inst.text console=ttyS4,115200 ip=dhcp inst.sshd
# linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-42 console=ttyS4,115200 ip=dhcp inst.sshd inst.vnc inst.vncconnect=0.0.0.0:5900 inst.resolution=1280x1024 inst.vncpassword=<PASSWORD> inst.rdp inst.rdp.username=<USERNAME> inst.rdp.password=<PASSWORD>
initrdefi /images/pxeboot/initrd.img
  1. Use the Meshcentral "paste" button to paste all this into the grub console
  2. boot to boot
  3. disconnect/reconnect AMT SOL console connection. For whatever reason, couldn't interact with anaconda installer serial prompt from here.without doing this. I guess I don't have all my bit rates/parities/stop-bits/whatevers all lined up.
  • NB: In fact, this doesn't always work. Occasionally I will ask for AMT Reset, SOL terminal disconnects, when I re-connect the SOL terminal I get the anaconda installer menu... so it would appear the first AMT Reset doesn't always work when in this state
  1. Proceed through anaconda text installer.
@csirac2
Copy link
Author

csirac2 commented May 18, 2025

For whatever reason, I can't get a good text install of fc42 with lvm /home /var

it barfs apparently trying to launch gtk stuff according to anaconda logs

upon reboot it nearly works but systemd-remount-fs is failed; AVC denials trying to access /etc/fstab, and the filesystems on those lvms are not mounted

mount -o remount,rw
restorecon -R /
reboot

it comes up ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment