# Boot from iso on hard drive with kickstart

**URL:** <https://forums.rockylinux.org/t/boot-from-iso-on-hard-drive-with-kickstart/13961>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [May 9, 2024, 4:27pm UTC](https://forums.rockylinux.org/t/boot-from-iso-on-hard-drive-with-kickstart/13961 "2024-05-09T16:27:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbean](https://avatars.discourse-cdn.com/v4/letter/w/9fc348/32.png) [@wbean](https://forums.rockylinux.org/u/wbean)\
**Post date:** [May 9, 2024, 4:27pm UTC](https://forums.rockylinux.org/t/boot-from-iso-on-hard-drive-with-kickstart/13961/1 "2024-05-09T16:27:10Z")

</div>

I have a remote server running Rocky 8. I want to install Rocky 9. I have enough disk space to leave my Rocky 8 installation in place. Since physical access is difficult, I would like to boot from an iso file on a hard disk and use a kickstart file.

Thanks to borispr, I am able to boot from an Iso. Now I am trying to get the kickstart to work. I have kept the anaconda-ks.cfg that was generated by the most recent install. I have modified the linux line in my menuenty by adding inst.ks= as follows:

```
      linux (loop)isolinux/bmlinuz inst.noeject inst.stage2=hd:/dev/sda1:$isofile inst.ks=hd:/dev/sda1:/anaconda-ks.cfg

```

This boots from the iso and enters anaconda, which complains that the Installation Source and Installation Destination are invalid. I know that my kickstart file is being read because the KDUMP is disabled.

Here is my kickstart file. Any suggestions?

# Generated by Anaconda 34.25.3.8

# Generated by pykickstart v3.32

#version=RHEL9

# Use graphical install

graphical

%addon com\_redhat\_kdump --disable

%end

# Keyboard layouts

keyboard --xlayouts=‘us’

# System language

lang en\_US.UTF-8

%packages  
@^server-product-environment  
@headless-management  
@web-server

%end

# Run the Setup Agent on first boot

firstboot --enable

# Generated using Blivet version 3.6.0

ignoredisk --only-use=sda

# Partition clearing information

clearpart --none --initlabel

# Disk partitioning information

part / --fstype=“ext4” --onpart=sda2  
part pv.1082 --fstype=“lvmpv” --ondisk=sda --size=8588  
part /boot/efi --fstype=“efi” --noformat --onpart=sda4 --fsoptions=“umask=0077,shortname=winnt”  
part /boot --fstype=“ext4” --noformat --onpart=sda5  
volgroup rl --pesize=4096 pv.1082  
logvol swap --fstype=“swap” --size=8583 --name=swap --vgname=rl

# System timezone

timezone America/New\_York --utc

# Root password

rootpw --iscrypted --allow-ssh Encrypted password here  
user --groups=wheel --name=bill --password=Encrypted password here --iscrypted --gecos=“William H. Bean”

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [July 8, 2024, 4:27pm UTC](https://forums.rockylinux.org/t/boot-from-iso-on-hard-drive-with-kickstart/13961/2 "2024-07-08T16:27:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
