Fedora 17 anaconda dracut Boot Line Syntax

Thursday, December 27, 2012

Fedora 17 introduced new anaconda boot line syntax. 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

setting static ip= for kickstart doesn’t work

Dracut/Options#Network



comments powered by Disqus