Re: [CentOS] kickstart won't kick-off via network
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Isaac Hailperin Sent: Wednesday, February 04, 2009 11:13 AM To: CentOS mailing list Subject: Re: [CentOS] kickstart won't kick-off via network Especially since FDD aren't that common anymore... I'll see if I can't adapt my SOP:s to boot and install from network. The set up is actually not too complicated. I really recommend it, you just plug in the computer and let it install. There are various variants, you can either define what will be installed by naming the pxe controll file according to the mac address, or you can make a default boot menue. Boot menues are described here: http://syslinux.zytor.com/wiki/index.php/PXELINUX#Custom_Menu_Example_with_su b-menus I've really not had any good experiences with pxe, but that was related to Windows-machines and RIS. Maybe this'll go better. Thx for the hint though, I'll check this out. -- /Sorin smime.p7s Description: S/MIME cryptographic signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Wed, Feb 04, 2009 at 11:48:29AM +0100, Isaac Hailperin wrote: ... I don't have problems either. In fact, ksdevice=bootif does not work for me. please trim your footer/disclaimer when sending to a public mailing list or send from another email adress. Thanks, Tru -- Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B pgpS4tO2OUigu.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
I don't have problems either. In fact, ksdevice=bootif does not work for me. How many NICs and connections do you have? Two. Both are connected, but on one network there is nothing happening at that stage, meaning no servers offering any services. Isaac ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Hi On Wed, Feb 04, 2009 at 11:48:29AM +0100, Isaac Hailperin wrote: I don't have problems either. In fact, ksdevice=bootif does not work for me. try ksdevice=link if you only have one interface plugged Tru -- Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B pgpeeb3yY5U5D.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Tue, 2009-02-03 at 18:39 +0100, Ian Forde wrote: In order to avoid this, you can use the ksdevice=bootif to use the interface from which the system booted... good to know, thank you. Isaac _ Vorstand: Ertu Uysal, Axel Queck Vorsitzender des Aufsichtsrats: Bernhard Bruscha Sitz der Gesellschaft: Tuebingen Amtsgericht Stuttgart HRB 381299 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Wed, 2009-02-04 at 11:31 +0100, Kai Schaetzl wrote: Les Mikesell wrote on Tue, 03 Feb 2009 11:17:15 -0600: The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? I find that I don't have any problems with this. I usually disable dhcp on eth1 and have no cable in it during installation. eth0 is always the port that is labelled eth0. I don't have problems either. In fact, ksdevice=bootif does not work for me. Isaac _ Vorstand: Ertu Uysal, Axel Queck Vorsitzender des Aufsichtsrats: Bernhard Bruscha Sitz der Gesellschaft: Tuebingen Amtsgericht Stuttgart HRB 381299 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Isaac Hailperin wrote: The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? I find that I don't have any problems with this. I usually disable dhcp on eth1 and have no cable in it during installation. eth0 is always the port that is labelled eth0. I don't have problems either. In fact, ksdevice=bootif does not work for me. How many NICs and connections do you have? The bulk of my production servers have 4 or more NICs with 2 or 3 active connections and as of 5.x, until the install gets to the point where HWADDR= is set for each NIC in its /etc/sysconfig/network-scripts/ifcfg-eth? file the names are not predictable. In fact, I've even tried pre-configuring them on swappable drives built on similar machines and often the files with the correct HWADDR are renamed with a .bak extension at first boot in the real server and replaced with non-working defaults. Does anyone know how to avoid that? It has been very frustrating working with remote machines since device detection order was randomized. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Especially since FDD aren't that common anymore... I'll see if I can't adapt my SOP:s to boot and install from network. The set up is actually not too complicated. I really recommend it, you just plug in the computer and let it install. There are various variants, you can either define what will be installed by naming the pxe controll file according to the mac address, or you can make a default boot menue. Boot menues are described here: http://syslinux.zytor.com/wiki/index.php/PXELINUX#Custom_Menu_Example_with_sub-menus good luck, Isaac _ Vorstand: Ertu Uysal, Axel Queck Vorsitzender des Aufsichtsrats: Bernhard Bruscha Sitz der Gesellschaft: Tuebingen Amtsgericht Stuttgart HRB 381299 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Isaac Hailperin wrote: I don't have problems either. In fact, ksdevice=bootif does not work for me. How many NICs and connections do you have? Two. Both are connected, but on one network there is nothing happening at that stage, meaning no servers offering any services. Mine usually flip in pairs - that is, the pair on the motherboard will be either eth0/eth1 or eth2/eth3 (etc.) with the same one of the pair always picked as eth0 or eth2. You might not have much of a problem with only 2 NICs of the same type. We generally want to run on the Intel server-class add-in cards instead of the motherboard NICs that tend to be Broadcoms. It's a habit developed under Windows - I'm not sure if there is that much difference on Linux, but I have to identify the NIC one way or another and I'd like to find a reliable way to do it when swapping in pre-loaded drives. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Les Mikesell wrote on Tue, 03 Feb 2009 11:17:15 -0600: The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? I find that I don't have any problems with this. I usually disable dhcp on eth1 and have no cable in it during installation. eth0 is always the port that is labelled eth0. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Isaac Hailperin Sent: Tuesday, February 03, 2009 2:46 PM To: centos@centos.org Subject: [CentOS] kickstart won't kick-off via network What I did: First a manual install form DVD. I then used the kickstart file /root/anaconda-ks.cfg for a network installation. Now since I get asked all these questions at boot time, I suspect that the kickstart file is not there to answer these questions. It does use it, it just doesn't find the network-block in ks.cfg. Does your ks.cfg contain some lines for the networking? You didn't modify the ks.cfg you mention above, did you? You can open the ks.cfg you already have and then tweak with the wizard. I used the kickstart wizard just yesterday to make my own ks.cfg, I suggest you do the same to add the network part in ks.cfg as well as other stuff. Then redo what you did before. FWIW, I also did a netinstall, like you but slightly different, with the ks.cfg on a floppy. The gotcha' here is that the netinstall iso doesn't acknowledge the linux ks=floppy-line when I boot with the netinstall-iso. Booting from cd1 from the regular 6cd-package and then adding linux ks=floppy does. From there I chose http-install and added mirror.centos.org and the proper path to the v5.2 i386. HTH. -- /Sorin smime.p7s Description: S/MIME cryptographic signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Now since I get asked all these questions at boot time, I suspect that the kickstart file is not there to answer these questions. It does use it, it just doesn't find the network-block in ks.cfg. Does your ks.cfg contain some lines for the networking? Yes: # Kickstart file automatically generated by anaconda. install url --url http://9.0.0.1/all/repository/CentOS5.2 [...] network --device eth0 --bootproto dhcp --hostname node1.cluster network --device eth1 --bootproto dhcp --hostname node1.cluster [...] You didn't modify the ks.cfg you mention above, did you? Yes, I modified the part after install. It used to be cdrom. You can open the ks.cfg you already have and then tweak with the wizard. I opened the ks.cfg with system-config-kickstart. I configured it to install from network. It produced the following: #platform=x86, AMD64, or Intel EM64T # System authorization information auth --useshadow --enablemd5 # System bootloader configuration bootloader --append=rhgb quiet --location=mbr --driveorder=sda # Partition clearing information clearpart --linux --drives=sda # Use graphical install graphical # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Installation logging level logging --level=info # Use network installation url --url=http://9.0.0.1/all/repository/CentOS5.2 # Network information network --bootproto=dhcp --device=eth0 --onboot=on network --bootproto=dhcp --device=eth1 --onboot=on #Root password rootpw --iscrypted $xxx # SELinux configuration selinux --disabled # System timezone timezone --isUtc America/New_York # Install OS instead of upgrade install # X Window System configuration information xconfig --defaultdesktop=GNOME --depth=8 --resolution=640x480 --startxonboot # Disk partitioning information part / --bytes-per-inode=4096 --fstype=ext3 --size=25000 part swap --bytes-per-inode=4096 --size=8000 part /home --bytes-per-inode=4096 --fstype=ext3 --grow --size=100 %packages @base-x Now in conjunction with the kernel parameter ksdevice=eth1 (thank you Kai!) this works like a charm. I seems that I misunderstood the use of install and url. - Comming form SLES and autoyast I thought I should avoid the gui, but kickstart seems to do better here - Thank you! Isaac _ Vorstand: Ertu Uysal, Axel Queck Vorsitzender des Aufsichtsrats: Bernhard Bruscha Sitz der Gesellschaft: Tuebingen Amtsgericht Stuttgart HRB 381299 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Tue, 2009-02-03 at 15:42 +0100, Kai Schaetzl wrote: Isaac Hailperin wrote on Tue, 03 Feb 2009 14:45:44 +0100: append initrd=distro/centos5.2/initrd.img ramdisk_size=7494 ks=http://9.0.0.1/all/profiles/cluto_centos5.2/cnode/ks.cfg this is not enough, you have to tell PXE about the network, which nic to use etc. I think there is a tutorial about doing PXE instalaltions on the wiki. You are right: ksdevice=eth1 did the trick. Found at http://wiki.centos.org/TipsAndTricks/KickStart Thank you! Isaac _ Vorstand: Ertu Uysal, Axel Queck Vorsitzender des Aufsichtsrats: Bernhard Bruscha Sitz der Gesellschaft: Tuebingen Amtsgericht Stuttgart HRB 381299 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Isaac Hailperin wrote on Tue, 03 Feb 2009 14:45:44 +0100: append initrd=distro/centos5.2/initrd.img ramdisk_size=7494 ks=http://9.0.0.1/all/profiles/cluto_centos5.2/cnode/ks.cfg this is not enough, you have to tell PXE about the network, which nic to use etc. I think there is a tutorial about doing PXE instalaltions on the wiki. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
Isaac Hailperin wrote: On Tue, 2009-02-03 at 15:42 +0100, Kai Schaetzl wrote: Isaac Hailperin wrote on Tue, 03 Feb 2009 14:45:44 +0100: append initrd=distro/centos5.2/initrd.img ramdisk_size=7494 ks=http://9.0.0.1/all/profiles/cluto_centos5.2/cnode/ks.cfg this is not enough, you have to tell PXE about the network, which nic to use etc. I think there is a tutorial about doing PXE instalaltions on the wiki. You are right: ksdevice=eth1 did the trick. Found at http://wiki.centos.org/TipsAndTricks/KickStart The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Tue, 2009-02-03 at 11:17 -0600, Les Mikesell wrote: Isaac Hailperin wrote: On Tue, 2009-02-03 at 15:42 +0100, Kai Schaetzl wrote: Isaac Hailperin wrote on Tue, 03 Feb 2009 14:45:44 +0100: append initrd=distro/centos5.2/initrd.img ramdisk_size=7494 ks=http://9.0.0.1/all/profiles/cluto_centos5.2/cnode/ks.cfg this is not enough, you have to tell PXE about the network, which nic to use etc. I think there is a tutorial about doing PXE instalaltions on the wiki. You are right: ksdevice=eth1 did the trick. Found at http://wiki.centos.org/TipsAndTricks/KickStart The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? In order to avoid this, you can use the ksdevice=bootif to use the interface from which the system booted... -I ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
On Tue, Feb 03, 2009, Les Mikesell wrote: Isaac Hailperin wrote: On Tue, 2009-02-03 at 15:42 +0100, Kai Schaetzl wrote: Isaac Hailperin wrote on Tue, 03 Feb 2009 14:45:44 +0100: append initrd=distro/centos5.2/initrd.img ramdisk_size=7494 ks=http://9.0.0.1/all/profiles/cluto_centos5.2/cnode/ks.cfg this is not enough, you have to tell PXE about the network, which nic to use etc. I think there is a tutorial about doing PXE instalaltions on the wiki. You are right: ksdevice=eth1 did the trick. Found at http://wiki.centos.org/TipsAndTricks/KickStart The order of NIC detection/naming at bootup seems to be more or less random as of Centos 5.x. How do you know which name to choose here? I cheat and plug both NICs into switch(es) that will provide DHCP during installation, then sort out which is which once the install is complete. It's easy here as our in-house install server is on a public network, accessible via NAT from the private NIC so looking at the IP address assigned (public or private block) eliminates the ping-and-pull-cable test to figure out which NIC is which. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 The problem with socialism is that, sooner or later, you run out of other peoples' money. -- Margaret Thatcher ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kickstart won't kick-off via network
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Isaac Hailperin Sent: Tuesday, February 03, 2009 4:56 PM To: CentOS mailing list Subject: Re: [CentOS] kickstart won't kick-off via network Now in conjunction with the kernel parameter ksdevice=eth1 (thank you Kai!) this works like a charm. I seems that I misunderstood the use of install and url. We all learn something at some point. Hopefully. 8-) Anyway, your method seems neater though, than mine with a floppy and booting from the first cd. Especially since FDD aren't that common anymore... I'll see if I can't adapt my SOP:s to boot and install from network. -- /Sorin smime.p7s Description: S/MIME cryptographic signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos