Page 1 of 1

Problems installing CentOS 7 over PXE

Posted: 2014/07/09 17:56:37
by viniciusferrao
Hello guys,

I've a network install server with PXE and TFTP but the server failed to successfully install a CentOS 7 system.

The installer complains about two missing files, a hidden .treelist file and product.img; but both files does not exist in the oficial repositories.

After the errors, I got a panic message and the installer halts.

Since there's a lot of errors, I'm basically asking for some documentation about new Anaconda procedures for PXE Installation. I'm trying to figure it by myself in the spare time.

Thanks in advance,

PS: Additional informations about my netinstall server

pxelinux.cfg file

Code: Select all

#CentOS 7.x x86_64
label 1 
	menu label ^1. CentOS 7 x86_64
	kernel centos/7/amd64/vmlinuz
	append initrd=centos/7/amd64/initrd.img text ks=http://mirror.example.com/ks/centos7x_x86-64.ks
centos7x_x86-64.ks

Code: Select all

install
url --url=http://mirror.example.com/repos/centos/7/os/x86_64
network --onboot yes --bootproto dhcp --noipv6
timezone America/Sao_Paulo
bootloader --append="crashkernel=auto rhgb quiet"

repo --name="CentOS" --baseurl=http://mirror.example.com/repos/centos/7/os/x86_64 --cost=100

%packages

%post
echo "Setting Yum Repositores"
cd /etc/yum.repos.d
perl -npe '/mirrorlist=.*repo=os/ && s/^/#/' -i CentOS-Base.repo
perl -npe '/mirrorlist=.*repo=updates/ && s/^/#/' -i CentOS-Base.repo
perl -npe '/mirrorlist=.*repo=extras/ && s/^/#/' -i CentOS-Base.repo
perl -npe '/mirrorlist=.*repo=centosplus/ && s/^/#/' -i CentOS-Base.repo
perl -npe '/mirrorlist=.*repo=contrib/ && s/^/#/' -i CentOS-Base.repo
perl -npe '/#baseurl=.*\/os\// && s/^#//' -i CentOS-Base.repo
perl -npe '/#baseurl=.*\/updates\// && s/^#//' -i CentOS-Base.repo
perl -npe '/#baseurl=.*\/extras\// && s/^#//' -i CentOS-Base.repo
perl -npe '/#baseurl=.*\/centosplus\// && s/^#//' -i CentOS-Base.repo
perl -npe '/#baseurl=.*\/contrib\// && s/^#//' -i CentOS-Base.repo
perl -npe '/^baseurl=/ && s/mirror.centos.org/mirror.example.com/' -i CentOS-Base.repo
perl -npe '/gpgcheck=/ && s/1/0/' -i CentOS-Base.repo
perl -npe '/enabled=/ && s/0/1/' -i CentOS-Base.repo

echo "Setting Remote Connection"
wget -N -P /root/.ssh http://mirror.example/keys/authorized_keys
restorecon -Rv /root/.ssh

Re: Problems installing CentOS 7 over PXE

Posted: 2014/07/09 18:46:58
by TrevorH
How did you copy the files to your installation repo? It sounds like you neglected to copy hidden files from the root of the DVD. Personally I just loopback mount the iso image on e.g /var/www/html/mirrors/Centos-7-x86_64 and point the installer at that via http.

Code: Select all

LABEL CentOS 7 x86_64 manual
        MENU LABEL CentOS 7.0 x86_64 manual
        KERNEL images/centos/x86_64/7.0/vmlinuz
        APPEND initrd=images/centos/x86_64/7.0/initrd.img ramdisk_size=100000 ip=dhcp repo=http://x.x.x.x/mirrors/CentOS-7-x86_64/

Re: Problems installing CentOS 7 over PXE

Posted: 2014/07/09 23:05:35
by beaver6675
For an install tree copied off the DVD you should have <tree>/.treeinfo.

If this is missing, you have unpacked the tree incorrectly, and TrevorH's suggestion is best. Otherwise make sure you

rsync -avz <mounted-dvd-image>/ <tree>/

It is expected to get HTTP 404 for <tree>/images/updates.img and <tree>/images/product.img.


192.168.1.7 - - [08/Jul/2014:20:42:57 +0800] "GET /pub/centos/7/os/x86_64/.treeinfo HTTP/1.1" 200 1109 "-" "curl/7.29.0"
192.168.1.7 - - [08/Jul/2014:20:42:57 +0800] "GET /pub/centos/7/os/x86_64/LiveOS/squashfs.img HTTP/1.1" 200 292278272 "-" "curl/7.29.0"
192.168.1.7 - - [08/Jul/2014:20:43:00 +0800] "GET /pub/centos/7/os/x86_64/images/updates.img HTTP/1.1" 404 239 "-" "curl/7.29.0"
192.168.1.7 - - [08/Jul/2014:20:43:00 +0800] "GET /pub/centos/7/os/x86_64/images/product.img HTTP/1.1" 404 239 "-" "curl/7.29.0"