I'm having trouble getting CentOS 4.5 to install via FTP.
I have a local FTP server with a mirror of 4/os/i386. I boot from the first CentOS 4.5 CD and enter 'linux askmethod'. I choose the FTP installation method and DHCP for the IP configuration. At the FTP Setup screen I enter the IP address of my server and the path of the i386 directory.
Selecting OK there takes me to the CD Found screen that asks if I want to perform a media test. Skipping the media test takes me back to the FTP Setup screen. (Performing the media test shows that my CD is OK, and then takes me back to the FTP Setup screen.) All I can do now is bounce between the FTP Setup and CD Found screens.
My FTP server log shows an attempt to fetch CentOS/base/product.img, which doesn't exist.
Any idea what's going on here?
Ron
I'm having trouble getting CentOS 4.5 to install via FTP.
I have a local FTP server with a mirror of 4/os/i386. I boot from the first CentOS 4.5 CD and enter 'linux askmethod'. I choose the FTP installation method and DHCP for the IP configuration. At the FTP Setup screen I enter the IP address of my server and the path of the i386 directory.
Your FTP server needs the entire 'CentOS' directory from Disc 1, and in the RPMS directory (under the CentOS directory that you just copied) you need all of the rpms from the remaining discs copied into that as well.
HTH, Barry
Barry Brimer lists@brimer.org wrote:
I'm having trouble getting CentOS 4.5 to install via FTP.
I have a local FTP server with a mirror of 4/os/i386. I boot from the first CentOS 4.5 CD and enter 'linux askmethod'. I choose the FTP installation method and DHCP for the IP configuration. At the FTP Setup screen I enter the IP address of my server and the path of the i386 directory.
Your FTP server needs the entire 'CentOS' directory from Disc 1, and in the RPMS directory (under the CentOS directory that you just copied) you need all of the rpms from the remaining discs copied into that as well.
I didn't copy the CDs, I mirrored mirror.centos.org/4/os/i386. That contains everything required for an FTP installation, doesn't it?
Ron
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
Barry Brimer lists@brimer.org wrote:
I'm having trouble getting CentOS 4.5 to install via FTP.
I have a local FTP server with a mirror of 4/os/i386. I boot from the first CentOS 4.5 CD and enter 'linux askmethod'. I choose the FTP installation method and DHCP for the IP configuration. At the FTP Setup screen I enter the IP address of my server and the path of the i386 directory.
Your FTP server needs the entire 'CentOS' directory from Disc 1, and in the RPMS directory (under the CentOS directory that you just copied) you need all of the rpms from the remaining discs copied into that as well.
I didn't copy the CDs, I mirrored mirror.centos.org/4/os/i386. That contains everything required for an FTP installation, doesn't it?
Ron
The file CentOS/base/product.img indeed does not exist. If the installer is pointing to it, it might be a bug. Maybe file a bug report?
Akemi
"Akemi Yagi" amyagi@gmail.com wrote:
The file CentOS/base/product.img indeed does not exist. If the installer is pointing to it, it might be a bug. Maybe file a bug report?
I don't know that product.img being absent is a problem, though. CentOS 4.4 didn't have one either.
Ron
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
"Akemi Yagi" amyagi@gmail.com wrote:
The file CentOS/base/product.img indeed does not exist. If the installer is pointing to it, it might be a bug. Maybe file a bug report?
I don't know that product.img being absent is a problem, though. CentOS 4.4 didn't have one either.
Ron
If the file is not supposed to be there, then the installer should not look for it. One way or another, this seems to be a bug to me. Is there any chance that you can do the install using NFS instead?
Akemi
"Akemi Yagi" amyagi@gmail.com wrote:
If the file is not supposed to be there, then the installer should not look for it. One way or another, this seems to be a bug to me.
Not necessarily. My understanding is that the product.img file can be used to customise the installer. If it isn't present the defaults from the stage2.img file will be used instead.
Is there any chance that you can do the install using NFS instead?
I've installed using CDs. But I'd like to know why I can't get the FTP installer to work.
Ron
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
"Akemi Yagi" amyagi@gmail.com wrote:
If the file is not supposed to be there, then the installer should not look for it. One way or another, this seems to be a bug to me.
Not necessarily. My understanding is that the product.img file can be used to customise the installer. If it isn't present the defaults from the stage2.img file will be used instead.
Is there any chance that you can do the install using NFS instead?
I've installed using CDs. But I'd like to know why I can't get the FTP installer to work.
Ah, I was wondering about product.img. Then, something is amiss with the FTP installer. Because the stage2.img file does exist, why wouldn't it grab it? Could this be a problem with the ftp server? Can you get the file by anon ftp?
Akemi
"Akemi Yagi" amyagi@gmail.com wrote:
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
"Akemi Yagi" amyagi@gmail.com wrote:
If the file is not supposed to be there, then the installer should not look for it. One way or another, this seems to be a bug to me.
Not necessarily. My understanding is that the product.img file can be used to customise the installer. If it isn't present the defaults from the stage2.img file will be used instead.
Is there any chance that you can do the install using NFS instead?
I've installed using CDs. But I'd like to know why I can't get the FTP installer to work.
Ah, I was wondering about product.img. Then, something is amiss with the FTP installer. Because the stage2.img file does exist, why wouldn't it grab it? Could this be a problem with the ftp server? Can you get the file by anon ftp?
Yes, I can access the files via anonymous FTP. From the server log I can see that the installer is only trying to fetch the product.img file. It tries
/centos/4/os/i386/CentOS/base/product.img
and
/centos/4/os/i386/disc1/CentOS/base/product.img
Ron
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
Yes, I can access the files via anonymous FTP. From the server log I can see that the installer is only trying to fetch the product.img file. It tries
/centos/4/os/i386/CentOS/base/product.img
and
/centos/4/os/i386/disc1/CentOS/base/product.img
Ron
It seems more likely the problem is with the installer. It should not depend on that file. I will try it myself later to see what's going on.
Akemi
On 6/5/07, Akemi Yagi amyagi@gmail.com wrote:
On 6/5/07, Ron Yorston rmy@tigress.co.uk wrote:
Yes, I can access the files via anonymous FTP. From the server log I can see that the installer is only trying to fetch the product.img file. It tries
/centos/4/os/i386/CentOS/base/product.img
and
/centos/4/os/i386/disc1/CentOS/base/product.img
Ron
It seems more likely the problem is with the installer. It should not depend on that file. I will try it myself later to see what's going on.
Akemi
I was able to reproduce the problem you described. I set up the server with anon ftp, booted a local machine using CD#1 of CentOS4.5 (freshly downloaded, md5sum checked), started the installation, selected ftp install and entered requested info (IP and directory). The server log showed that the client attempted to get
/CentOS/base/product.img /disc1/CentOS/base/product.img
in this order just as you reported.
Next, I went ahead and copied stage2.img to product.img and tried again. The installation successfully continued. I am now watching the server log and see ftp download of rpm files happily taking place...
I must conclude that there is a glitch in the installer of CentOS4.5 CD#1.
Akemi
Akemi Yagi wrote:
Next, I went ahead and copied stage2.img to product.img and tried again. The installation successfully continued. I am now watching the server log and see ftp download of rpm files happily taking place...
I must conclude that there is a glitch in the installer of CentOS4.5 CD#1.
Can you file that on bugs.centos.org, please? Thank you.
Cheers,
Ralph
On Tue, 2007-06-05 at 23:16 +0200, Ralph Angenendt wrote:
Akemi Yagi wrote:
Next, I went ahead and copied stage2.img to product.img and tried again. The installation successfully continued. I am now watching the server log and see ftp download of rpm files happily taking place...
I must conclude that there is a glitch in the installer of CentOS4.5 CD#1.
Can you file that on bugs.centos.org, please? Thank you.
Additional datapoints (I'll add this to the/a bug report):
- The relevant Anaconda is probably:
--- 2006-11-10 Dave Lehman dlehman@redhat.com
improve handling of local (cdrom) stage2 with URL installs (#189262) * loader2/urlinstall.c: grab product.img from the URL instead of hdlist and verify that its stamp matches the initrd's * urlinstall.py: add systemMounted, systemUnmounted, filesDone methods to handle the stage2 image so the cdrom can be ejected at the end of installation ---
- As Akemi indicated, adding storage.img to the FTP server is a workaround for this problem. - Even with product info in place, there seem to be to two errors in loader2/urlinstall.c:
* The CD should be checked, rather than the FTP site (at least according to the comments) * There code path should be altered so that it doesn't loop on CD detection if it cannot be mounted.
-- Daniel
On 6/5/07, Ralph Angenendt ra+centos@br-online.de wrote:
Akemi Yagi wrote:
Next, I went ahead and copied stage2.img to product.img and tried again. The installation successfully continued. I am now watching the server log and see ftp download of rpm files happily taking place...
I must conclude that there is a glitch in the installer of CentOS4.5 CD#1.
Can you file that on bugs.centos.org, please? Thank you.
Cheers,
Ralph
Done.
http://bugs.centos.org/view.php?id=2116
Akemi
"Akemi Yagi" amyagi@gmail.com wrote:
On 6/5/07, Ralph Angenendt ra+centos@br-online.de wrote:
Akemi Yagi wrote:
Next, I went ahead and copied stage2.img to product.img and tried again. The installation successfully continued. I am now watching the server log and see ftp download of rpm files happily taking place...
I must conclude that there is a glitch in the installer of CentOS4.5 CD#1.
Can you file that on bugs.centos.org, please? Thank you.
Cheers,
Ralph
Done.
Many thanks to Akemi for persevering with this: replicating the problem, finding the workaround and filing the bug report. Great stuff!
Ron
On Tue, 5 Jun 2007, Ron Yorston wrote:
I've installed using CDs. But I'd like to know why I can't get the FTP installer to work.
I have tested all Centos variants, and betas, from 2.1 on, as to FTP installs, as that is my principal method, from loop mounted ISOs -- they work. period. There is a minor change on groups.xml when loop mounting ISOs with centos 4, and 4.5, but that is addressed in the scripts referred to at: http://www.owlriver.com/tips/pxe-install/
Something is messed up in your setup.
-- Russ Herrold