[CentOS] CentOS 6 kickstart missing 'shell command prompt' screen at ALT+F2

2016-04-15 Thread David Copperfield
Hi,
 I've recently setup a centos 6 kickstart environment. Interesting fact is that 
the helpful 'shell command prompt' screen is missing when I press ALT+F2 key 
combination even on locally connected keyboard and monitor. ( my kickstart runs 
in text mode).

All other screens can be found without issues with ALT+Fn key combination. 

I googled internet, and found someone reported similar issues, say, here is one 
link: 
http://serverfault.com/questions/322374/kickstart-virtual-console-no-shell-prompt-at-alt-f2.
I read the link several times and still dont quite see why this happens, got 
confused at the following places:
1, when -- at which installation stage -- the 'shell command' screen will show 
up?2, if centos 6.6 and 6.7 comes without 'shell command prompt' screen with 
default installation media, then which installation media contains the file(s) 
that we can tune? /etc/inittab doesn't contain the entries related to tty 
consoles.
Centos 7.x doesn't have the issues and it looks like centos 7 leverages a new 
method to get shell command prompt.
Many thanks in advance.
Best,David


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is there a way to detect/validate DHCP static IP assignment?

2016-04-01 Thread David Copperfield
Wow, it works perfectly! all solved. Thanks. -- David


 

On Thursday, March 31, 2016 11:46 AM, David Copperfield  
wrote:
 

 Hi tris,
 Many thanks, I'll give the perl script a try shortly
Best,David 

On Thursday, March 31, 2016 6:00 AM, Tris Hoar  wrote:
 

 On 30/03/2016 18:08, David Copperfield wrote:
> Hi,
>  We have tens of networks(VLANs) in data center with a central Linux DHCP 
>server. each network has their router to do the DHCP relay. So, the DHCP 
>server's configuration files has tens 'subnet' statements.
> Because PXE booting is standard in whole data center, there are also 
> thousands of static MAC-IP mapping 'host' statements in dhcp configuration.
> The big challenge with a central dhcp server is how to detect typo in the 
> thousands of MAC-IP 'host' statements? -- a single char/digit typo here will 
> fail a PXE booting or download wrong post-installation snippets.
>
>  Is there a tool to validate all 'host' statements from another Linux box?
>
> I tried nagios check-dhcp plugin, with a series of real MAC addresses(for 
> hosts in other different networks). Surprisingly, the IP address came back 
> were not the static IP addresses in 'host' statement, but dynamic addresses 
> in the pool defined for this particular network (where I ran check-dhcp from).
> check_dhcp was run with the following arguments:
>
> /usr/lib64/nagios/plugins/check_dhcp --verbose --server= 
> --interface=eth0 --mac= --unicast
> remove --unicast doesn't help but just see more DHCP replys.
> Interestingly, with a same MAC address, and the above same command, from two 
> Centos boxes on different network there will be different dynamic IPs! 
> instead the static IP defined with 'host' statement.
>
> So, how can we validate static IP assignment? Thanks.
> Best,David,
>

Hi David,

You need to use check_dhcp_relayed.pl 
(https://github.com/timb07/check_dhcp_relayed) if you wish to test for a 
reservation outside of the servers subnet, otherwise the DHCP server 
will assume you are on the local range and issue from that subnet.

Also as an FYI Forman (http://theforeman.org) can do things like 
building VM's and Physical servers and integrates with DHCP to create 
static DHCP reservations for PXE booting servers which should eliminate 
typos.

Tris





*
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmas...@bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


   

  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is there a way to detect/validate DHCP static IP assignment?

2016-03-31 Thread David Copperfield
Hi tris,
 Many thanks, I'll give the perl script a try shortly
Best,David 

On Thursday, March 31, 2016 6:00 AM, Tris Hoar  wrote:
 

 On 30/03/2016 18:08, David Copperfield wrote:
> Hi,
>  We have tens of networks(VLANs) in data center with a central Linux DHCP 
>server. each network has their router to do the DHCP relay. So, the DHCP 
>server's configuration files has tens 'subnet' statements.
> Because PXE booting is standard in whole data center, there are also 
> thousands of static MAC-IP mapping 'host' statements in dhcp configuration.
> The big challenge with a central dhcp server is how to detect typo in the 
> thousands of MAC-IP 'host' statements? -- a single char/digit typo here will 
> fail a PXE booting or download wrong post-installation snippets.
>
>  Is there a tool to validate all 'host' statements from another Linux box?
>
> I tried nagios check-dhcp plugin, with a series of real MAC addresses(for 
> hosts in other different networks). Surprisingly, the IP address came back 
> were not the static IP addresses in 'host' statement, but dynamic addresses 
> in the pool defined for this particular network (where I ran check-dhcp from).
> check_dhcp was run with the following arguments:
>
> /usr/lib64/nagios/plugins/check_dhcp --verbose --server= 
> --interface=eth0 --mac= --unicast
> remove --unicast doesn't help but just see more DHCP replys.
> Interestingly, with a same MAC address, and the above same command, from two 
> Centos boxes on different network there will be different dynamic IPs! 
> instead the static IP defined with 'host' statement.
>
> So, how can we validate static IP assignment? Thanks.
> Best,David,
>

Hi David,

You need to use check_dhcp_relayed.pl 
(https://github.com/timb07/check_dhcp_relayed) if you wish to test for a 
reservation outside of the servers subnet, otherwise the DHCP server 
will assume you are on the local range and issue from that subnet.

Also as an FYI Forman (http://theforeman.org) can do things like 
building VM's and Physical servers and integrates with DHCP to create 
static DHCP reservations for PXE booting servers which should eliminate 
typos.

Tris





*
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmas...@bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Is there a way to detect/validate DHCP static IP assignment?

2016-03-30 Thread David Copperfield
Hi,
 We have tens of networks(VLANs) in data center with a central Linux DHCP 
server. each network has their router to do the DHCP relay. So, the DHCP 
server's configuration files has tens 'subnet' statements.
Because PXE booting is standard in whole data center, there are also thousands 
of static MAC-IP mapping 'host' statements in dhcp configuration.
The big challenge with a central dhcp server is how to detect typo in the 
thousands of MAC-IP 'host' statements? -- a single char/digit typo here will 
fail a PXE booting or download wrong post-installation snippets.

 Is there a tool to validate all 'host' statements from another Linux box? 

I tried nagios check-dhcp plugin, with a series of real MAC addresses(for hosts 
in other different networks). Surprisingly, the IP address came back were not 
the static IP addresses in 'host' statement, but dynamic addresses in the pool 
defined for this particular network (where I ran check-dhcp from).
check_dhcp was run with the following arguments:

/usr/lib64/nagios/plugins/check_dhcp --verbose --server= 
--interface=eth0 --mac= --unicast
remove --unicast doesn't help but just see more DHCP replys.
Interestingly, with a same MAC address, and the above same command, from two 
Centos boxes on different network there will be different dynamic IPs! instead 
the static IP defined with 'host' statement.  

So, how can we validate static IP assignment? Thanks.
Best,David,

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] ananconda update.img creation fails: generated but with wrong python version in /usr/sbin/anaconda contained

2016-02-11 Thread David Copperfield
Hi all,
I've created an anaconda update.img file per instructions at 
https://fedoraproject.org/wiki/Anaconda/Updates for Centos 7.2. The problem is 
that the update.img file contains references to python3 (say, file 
/usr/sbin/anaconda), and so the all installation fails immediately. My question 
is: what are the steps to create an anaconda update image appropriate for a 
particular centos release? Thanks a lot.

The steps I have performed (to create an update.img) are listed below:

 1) find the version of ananconda that centos 7.2 installation media: 
21.48.22.56-1.
 2) follow the instructions at the above wiki page, and wiki 
https://fedoraproject.org/wiki/Anaconda. Run the following command (to generate 
update.img):
 2.1 yum -y install git 2.2 git clone https://fedoraproject.org/wiki/Anaconda 
 2.3 cd anaconda 2.4 scripts/makeupdates -t anaconda-21.48.22.56-1
3) save the generated image to place under .../images directory.
From what I see, all PXE clients did download the new update.img file and merge 
the changes contained. But because the updated anaconda pointed to python3 
instead of python 2.7.5 (the version comes with installation media), the 
installation process failed immediately.
Thanks.
Best,David

 



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos