Discussion:
Anaconda static network setup in RHEL6
Lukas Zapletal
2015-08-21 14:47:43 UTC
Permalink
Hello,

I am trying to boot RHEL 6.x Anaconda on a system with multiple NICs. I
don't know how they will be initialized, therefore I have no idea what
ends up with eth0 and eth1 etc. But I know MAC address of the card I
want to provision with (download the kickstart) and I have IPv4
credentials.

Now, the documentation is a little bit fuzzy here. I was digging in the
Anaconda codebase. But no luck:

https://access.redhat.com/documentation/en-
US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-a
dmin-options.html#sn-boot-options-network

Anaconda never configures me the proper device and always keep asking
to do manual network configuration. What is the trick here?

These are the variations I tried:

ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ksdevice=52:54:00:11:86:41

ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ifname=pr0:52:54:00:11:86:41
ksdevice=pr0

ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ifname=pr0:52:54:00:11:86:41

ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 BOOTIF=00-52-54-00-11-86-41

I am also interested in doing the same on RHEL7 and no luck either!
Tried combinations like:

... ip=192.168.100.68::192.168.100.1:255.255.255.0:::none BOOTIF=00-52-54-
00-11-86-41
... ip=192.168.100.68::192.168.100.1:255.255.255.0::52:54:00:11:86:41:none

In this case it's even worse, getting "System halted" dracut errors and
it does not make it into Anaconda.

Thanks for help!

-- lz
anant garg
2015-08-25 07:51:42 UTC
Permalink
Hi,

Could you please share, how you are booting installer.
for eg. by pxe,
Can you also provide which firmware your system have (UEFI or BIOS?)
Post by Lukas Zapletal
Hello,
I am trying to boot RHEL 6.x Anaconda on a system with multiple NICs. I
don't know how they will be initialized, therefore I have no idea what
ends up with eth0 and eth1 etc. But I know MAC address of the card I
want to provision with (download the kickstart) and I have IPv4
credentials.
Now, the documentation is a little bit fuzzy here. I was digging in the
https://access.redhat.com/documentation/en-
US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-a
dmin-options.html#sn-boot-options-network
Anaconda never configures me the proper device and always keep asking
to do manual network configuration. What is the trick here?
ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ksdevice=52:54:00:11:86:41
ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ifname=pr0:52:54:00:11:86:41
ksdevice=pr0
ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ifname=pr0:52:54:00:11:86:41
ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 BOOTIF=00-52-54-00-11-86-41
I am also interested in doing the same on RHEL7 and no luck either!
... ip=192.168.100.68::192.168.100.1:255.255.255.0:::none BOOTIF=00-52-54-
00-11-86-41
... ip=192.168.100.68::192.168.100.1:255.255.255.0::52:54:00:11:86:41:none
In this case it's even worse, getting "System halted" dracut errors and
it does not make it into Anaconda.
Thanks for help!
-- lz
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
Lukas Zapletal
2015-08-25 08:24:47 UTC
Permalink
Hello,
Post by anant garg
Could you please share, how you are booting installer.
for eg. by pxe, 
My goal is to boot the kernel via kexec so initialy I tried with kexec, but
since all my tries failed, I now test this with KVM/QEMU (direct kernel
boot). The VM has two network cards, virtio.
Post by anant garg
Can you also provide which firmware your system have (UEFI or BIOS?)
It's the standard QEMU BIOS.

Many thanks for help!

LZ
Radek Vykydal
2015-09-01 14:54:16 UTC
Permalink
Post by Lukas Zapletal
Hello,
I am trying to boot RHEL 6.x Anaconda on a system with multiple NICs. I
don't know how they will be initialized, therefore I have no idea what
ends up with eth0 and eth1 etc. But I know MAC address of the card I
want to provision with (download the kickstart) and I have IPv4
credentials.
Now, the documentation is a little bit fuzzy here. I was digging in the
https://access.redhat.com/documentation/en-
US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-a
dmin-options.html#sn-boot-options-network
Anaconda never configures me the proper device and always keep asking
to do manual network configuration. What is the trick here?
ks=http://myhost/my_kickstart.ks kssendmac ip=192.168.100.68
netmask=255.255.255.0
gateway=192.168.100.1 dns=192.168.100.1 ksdevice=52:54:00:11:86:41
Hm, this one should work on RHEL6.

Is there any network configuration in your kickstart?
Can you post /tmp/anaconda.log and /tmp/syslog from installer environment?

Radek
Lukas Zapletal
2015-09-02 09:00:22 UTC
Permalink
Post by Radek Vykydal
Hm, this one should work on RHEL6.
Is there any network configuration in your kickstart?
Can you post /tmp/anaconda.log and /tmp/syslog from installer environment?
Okay, RHEL6 works fine, I had a typo there. I am currently facing an issue
with RHEL7. This is the command line:

--append=ks=http://xyz inst.ks.sendmac
ip=192.168.100.68::192.168.100.1:255.255.255.0::primary:none
nameserver=192.168.100.1 ksdevice=bootif BOOTIF=00-52-54-00-11-86-41

It ends up in Dracut trying to do DHCP, which fails on my network. I want
static configuration.
Radek Vykydal
2015-09-03 11:13:43 UTC
Permalink
Post by Lukas Zapletal
Post by Radek Vykydal
Hm, this one should work on RHEL6.
Is there any network configuration in your kickstart?
Can you post /tmp/anaconda.log and /tmp/syslog from installer environment?
Okay, RHEL6 works fine, I had a typo there. I am currently facing an issue
--append=ks=http://xyz inst.ks.sendmac
ip=192.168.100.68::192.168.100.1:255.255.255.0::primary:none
nameserver=192.168.100.1 ksdevice=bootif BOOTIF=00-52-54-00-11-86-41
It ends up in Dracut trying to do DHCP, which fails on my network. I want
static configuration.
Removing primary from the ip= option and ksdevice=bootif should work.
Radek Vykydal
2015-09-02 09:55:00 UTC
Permalink
Post by Lukas Zapletal
I am also interested in doing the same on RHEL7 and no luck either!
... ip=192.168.100.68::192.168.100.1:255.255.255.0:::none BOOTIF=00-52-54-
00-11-86-41
... ip=192.168.100.68::192.168.100.1:255.255.255.0::52:54:00:11:86:41:none
In this case it's even worse, getting "System halted" dracut errors and
it does not make it into Anaconda.
For me these combinations work on RHEL 7.1:

1)
ip=192.168.100.68::192.168.100.1:255.255.255.0::primary:none
ifname=primary:<MAC>

2)
ip=192.168.100.68::192.168.100.1:255.255.255.0:::none
ksdevice=<MAC>

3)
"ipappend 2" in PXE config
ip=192.168.100.68::192.168.100.1:255.255.255.0:::none
Loading...