ThorneLabs

Fedora 17 anaconda dracut Boot Line Syntax

• Updated January 21, 2019


Fedora 17 introduced new anaconda boot line syntax that uses dracut for parsing.

Up to Fedora 16 the syntax was as follows:

ks=<URL> ip=<IP> netmask=<NETMASK> gateway=<GATEWAY> dns=<DNS>

The new syntax uses dracut and is used as seen below.

Boot Line

Full Boot Line

ip=<IP>:<SERVER-ID>:<GATEWAY-IP>:<NETMASK>:<HOSTNAME>:<INTERFACE>:[dhcp|on|any|none|off]

Suppressed Boot Line

The SERVER-ID and INTERFACE parameters can be suppressed with :: as follows:

ip=<IP>::<GATEWAY-IP>:<NETMASK>:<HOSTNAME>::[dhcp|on|any|none|off]

Examples

Full Boot Line Example

ip=192.168.0.210:1:192.168.0.1:255.255.255.0:server.example.com:p2p1:off

Full Boot Line Example with DNS and Kickstart Location

ip=192.168.0.210:1:192.168.0.1:255.255.255.0:server.example.com:p2p1:off nameserver=192.168.0.200 ks=nfs:192.168.0.250:/shares/ks/ks.cfg

Suppressed Boot Line Example with DNS and Kickstart Location

ip=192.168.0.210::192.168.0.1:255.255.255.0:server.example.com::off nameserver=192.168.0.200 ks=http://satellite1.example.com/pub/ks/fedora17-x86_64-core

virt-install Example

virt-install --name test1 --hvm --vcpu 1 --ram 1024 --disk path=/mnt/raid5/kvm/server.img,size=20,format=raw,size=20 --network bridge:br0 --vnc --os-type=linux --os-variant=fedora17 --location /mnt/raid1/downloads/linux/Fedora-17-x86_64-DVD.iso --extra-args="ks=http://satellite1.example.com/pub/ks/fedora17-x86_64-core ip=192.168.0.210::192.168.0.1:255.255.255.0:server.example.com::off nameserver=192.168.0.200" --noautoconsole

References

If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided affiliate links. I will receive a referral payment from any of the services you sign-up for.

Get faster shipping and more with Amazon Prime: About to order something from Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.

Thanks for reading and take care.