From j.j.molenaar at gmail.com Wed Jun 1 10:27:28 2016 From: j.j.molenaar at gmail.com (Joost Molenaar) Date: Wed, 1 Jun 2016 12:27:28 +0200 Subject: Kickstart not picking up network --onboot=yes Message-ID: Hello, I'm installing CentOS 7.2 from a PXE boot. The network settings for eth1 get installed mostly correctly, but for the eth1 interface anaconda isn't picking up the --onboot=yes parameter in the kickstart file. The eth0 device is only used during the installation, and is configured using DHCP, but is inactive in the installed system. (This is because of Hyper-V only supporting PXE over so-called legacy network adapters). This is what eventually gets installed into /etc/sysconfig/network-scripts/ifcfg-eth1, notice the ONBOOT equals 'no': # Generated by parse-kickstart UUID=d2dd9c27-f24d-4255-a86a-ce77ceecc79d DNS1=10.0.0.1 IPADDR=10.0.0.111 GATEWAY=10.0.0.254 NETMASK=255.255.255.0 BOOTPROTO=static DEVICE=eth1 ONBOOT=no IPV6INIT=no In /etc/sysconfig/network-scripts/ifcfg-eth2 I see an unexpected value for the BOOTPROTO parameter: # Generated by parse-kickstart UUID=2d50da04-ae14-464c-8f95-6b9637058c20 BOOTPROTO=none DEVICE=eth2 ONBOOT=yes IPV6INIT=no TYPE=Ethernet IPADDR=192.168.0.111 PREFIX=24 DEFROUTE=yes IPV4_FAILURE_FATAL=no NAME="System eth2" This is the pxelinux.cfg that sets the kernel parameters for bootstrapping the kickstart installation: default linux label linux kernel centos72/images/pxeboot/vmlinuz append initrd=centos72/images/pxeboot/initrd.img inst.ks=http://kickstart.lan/ks/host1.txt net.ifnames=0 ipv6.disable=1 And this is the kickstart, hosted at http://kickstart.lan/ks/host1.txt: install text url --url http://kickstart.lan/centos72 lang en_US.UTF-8 keyboard --vckeymap=us --xlayouts='us' services --enabled=NetworkManager,sshd reboot rootpw PASSWORD auth --enableshadow --passalgo=sha512 selinux --enabled timezone Europe/Amsterdam --isUtc skipx eula --agreed network --onboot=off --device=eth0 network --onboot=on --device=eth1 --bootproto=static --noipv6 --ip=10.0.0.111 --netmask=255.255.255.0 --hostname=host1 --gateway=10.0.0.254 --nameserver=10.0.0.1 network --onboot=on --device=eth2 --bootproto=static --noipv6 --ip=192.168.0.111 --netmask=255.255.255.0 bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda firstboot --enable ignoredisk --only-use=sda autopart --type=plain clearpart --all --initlabel --drives=sda %packages @core kexec-tools %end %addon com_redhat_kdump --disable %end And these are the network lines that are present post-installation in /root/anaconda-ks.cfg: # Network information network --bootproto=dhcp --device=eth0 --onboot=off network --bootproto=static --device=eth1 --gateway=10.0.0.254 --hostname=host1 --ip=10.0.0.111 --nameserver=10.0.0.1 --netmask=255.255.255.0 --noipv6 network --bootproto=static --device=eth2 --ip=192.168.0.111 --netmask=255.255.255.0 --noipv6 So for some reason, the --onboot=yes flags present in the original kickstart got dropped. Is this a bug in anaconda/pykickstart, or am I doing something wrong? Greetings, Joost Molenaar From petro at cpetro.us Wed Jun 8 06:24:35 2016 From: petro at cpetro.us (C. Petro) Date: Wed, 8 Jun 2016 00:24:35 -0600 Subject: RHEL 7 problems. Message-ID: I'm reasonably experienced in doing RHEL 5 and 6 kickstarts, but this is my first pass at building a custom install CD for RHEL 7. I'm working from the RHEL 7.2 sources (meaning not Centos). I used this: http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-1/ as my "checklist" for the most part, with some of this: https://highon.coffee/blog/security-harden-centos-7/ My kickstart config looks like: #version=RHEL7 install text # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Accept EULA eula --agreed services --enabled=NetworkManager,sshd reboot # Run the Setup Agent on first boot #firstboot --enable ignoredisk --only-use=sda # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # SELinux selinux --permissive # Network information network --bootproto=dhcp --device=eno16777736 --onboot=on --ipv6=off network --hostname=default-vm # Root password # Fix for deploy rootpw --iscrypted HASHGOESHERE rootpw HASHGOESHERE # System timezone timezone --isUtc --ntpservers=prime.transformers # System bootloader configuration bootloader --location=mbr --boot-drive=sda # Partition clearing information clearpart --all --drives=sda ignoredisk --only-use=sda skipx # Some local users: user --name="ortep.sirhc" --is-crypted --password="$6$VHzvqK35oIsfbcgn$pyOvmSm8Y1BnYUKaaSeggHb4a3zwm3U5FTbP9g2cMQccruhF6.JswWYvYlsRjgOLAyE1DfPUjUD1iAh7yzY2e1" # LVM # Disk partitioning information # part pv.18 --fstype="lvmpv" --ondisk=sda --size=8004 part pv.11 --fstype="lvmpv" --ondisk=sda --size=16008 part /boot --fstype="ext4" --ondisk=sda --size=1000 #volgroup lg_data --pesize=4096 pv.18 volgroup lg_os --pesize=4096 pv.11 logvol / --fstype="xfs" --size=4000 --name=lv_root --vgname=lg_os logvol /home --fstype="xfs" --size=2000 --name=lv_home --vgname=lg_os logvol /tmp --fstype="xfs" --size=1000 --name=lv_tmp --vgname=lg_os logvol /var --fstype="xfs" --size=2000 --name=lv_var --vgname=lg_os logvol /var/tmp --fstype="xfs" --size=1000 --name=lv_var_tmp --vgname=lg_os logvol /var/log --fstype="xfs" --size=1500 --name=lv_var_log --vgname=lg_os logvol /var/log/audit --fstype="xfs" --size=500 --name=lv_var_log_audit --vgname=lg_os logvol swap --fstype="swap" --size=1000 --name=lv_swap --vgname=lg_data %addon org_fedora_oscap content-type = scap-security-guide profile = pci-dss %end %packages @core vim-minimal vim-common aide ntp ntpdate openscap openscap-scanner scap-security-guides authconfig chrony firewalld grub2 %end %post %end In isolinux.cfg I have: ... menu tabmsg Press Tab for full configuration options on menu items. menu separator # insert an empty line menu separator # insert an empty line label Basic KS menu label ^Kickstart menu default kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/dev/cdrom:/ks/base_ks.cfg menu separator # insert an empty line ... grub.conf is: #debug --graphics default=1 splashimage=@SPLASHPATH@ timeout 60 hiddenmenu title Install Red Hat Enterprise Linux 7.2 findiso kernel @KERNELPATH@ @ROOT@ initrd @INITRDPATH@ title Test this media & install Red Hat Enterprise Linux 7.2 findiso kernel @KERNELPATH@ @ROOT@ rd.live.check quiet initrd @INITRDPATH@ Which gets displayed, and then will start Linux. I am testing on VMware Workstation 12 Player. However I get stuck at: [ 23.820146] work still pending (and yes, I know the 23..... is not all that relevant) the line to generate the ISO is: mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -V 'Red Hat Enterprise Linux 7.2' -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/ There used to be a way to view the virtual terminals (alt-F whatever) but apparently that's gone away. Any ideas on what I'm missing here? From simpsonar77 at gmail.com Wed Jun 8 12:18:43 2016 From: simpsonar77 at gmail.com (Andrew Simpson) Date: Wed, 8 Jun 2016 08:18:43 -0400 Subject: RHEL 7 problems. In-Reply-To: References: Message-ID: the volume name in your mkisofs command (?V option) must match the LABEL value in the isolinux.cfg file exactly.... minus the x20 used for spaces. yours don't match : -V 'Red Hat Enterprise Linux 7.2' hd:LABEL=RHEL-7.2\x20Server.x86_64 On Jun 8, 2016 2:28 AM, "C. Petro" wrote: > I'm reasonably experienced in doing RHEL 5 and 6 kickstarts, but this > is my first pass at building a custom install CD for RHEL 7. > > I'm working from the RHEL 7.2 sources (meaning not Centos). I used this: > > http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-1/ > as my "checklist" for the most part, with some of this: > https://highon.coffee/blog/security-harden-centos-7/ > > My kickstart config looks like: > #version=RHEL7 > > install > text > # System authorization information > auth --enableshadow --passalgo=sha512 > > # Use CDROM installation media > cdrom > # Accept EULA > eula --agreed > > services --enabled=NetworkManager,sshd > reboot > > # Run the Setup Agent on first boot > #firstboot --enable > ignoredisk --only-use=sda > # Keyboard layouts > keyboard --vckeymap=us --xlayouts='us' > # System language > lang en_US.UTF-8 > # SELinux > selinux --permissive > # Network information > network --bootproto=dhcp --device=eno16777736 --onboot=on --ipv6=off > network --hostname=default-vm > # Root password > # Fix for deploy rootpw --iscrypted HASHGOESHERE > rootpw HASHGOESHERE > # System timezone > timezone --isUtc --ntpservers=prime.transformers > # System bootloader configuration > bootloader --location=mbr --boot-drive=sda > # Partition clearing information > clearpart --all --drives=sda > ignoredisk --only-use=sda > > skipx > > # Some local users: > user --name="ortep.sirhc" --is-crypted > > --password="$6$VHzvqK35oIsfbcgn$pyOvmSm8Y1BnYUKaaSeggHb4a3zwm3U5FTbP9g2cMQccruhF6.JswWYvYlsRjgOLAyE1DfPUjUD1iAh7yzY2e1" > > # LVM > > # Disk partitioning information > # part pv.18 --fstype="lvmpv" --ondisk=sda --size=8004 > part pv.11 --fstype="lvmpv" --ondisk=sda --size=16008 > part /boot --fstype="ext4" --ondisk=sda --size=1000 > #volgroup lg_data --pesize=4096 pv.18 > volgroup lg_os --pesize=4096 pv.11 > logvol / --fstype="xfs" --size=4000 --name=lv_root --vgname=lg_os > logvol /home --fstype="xfs" --size=2000 --name=lv_home --vgname=lg_os > logvol /tmp --fstype="xfs" --size=1000 --name=lv_tmp --vgname=lg_os > logvol /var --fstype="xfs" --size=2000 --name=lv_var --vgname=lg_os > logvol /var/tmp --fstype="xfs" --size=1000 --name=lv_var_tmp > --vgname=lg_os > logvol /var/log --fstype="xfs" --size=1500 --name=lv_var_log > --vgname=lg_os > logvol /var/log/audit --fstype="xfs" --size=500 > --name=lv_var_log_audit --vgname=lg_os > logvol swap --fstype="swap" --size=1000 --name=lv_swap --vgname=lg_data > > %addon org_fedora_oscap > content-type = scap-security-guide > profile = pci-dss > %end > > %packages > @core > vim-minimal > vim-common > aide > ntp > ntpdate > openscap > openscap-scanner > scap-security-guides > authconfig > chrony > firewalld > grub2 > %end > > > > %post > %end > > > In isolinux.cfg I have: > > ... > menu tabmsg Press Tab for full configuration options on menu items. > > menu separator # insert an empty line > menu separator # insert an empty line > > label Basic KS > menu label ^Kickstart > menu default > kernel vmlinuz > append initrd=initrd.img > inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 > inst.ks=cdrom:/dev/cdrom:/ks/base_ks.cfg > menu separator # insert an empty line > ... > > > grub.conf is: > #debug --graphics > default=1 > splashimage=@SPLASHPATH@ > timeout 60 > hiddenmenu > title Install Red Hat Enterprise Linux 7.2 > findiso > kernel @KERNELPATH@ @ROOT@ > initrd @INITRDPATH@ > title Test this media & install Red Hat Enterprise Linux 7.2 > findiso > kernel @KERNELPATH@ @ROOT@ rd.live.check quiet > initrd @INITRDPATH@ > > > Which gets displayed, and then will start Linux. > > I am testing on VMware Workstation 12 Player. > > However I get stuck at: > > [ 23.820146] work still pending > > (and yes, I know the 23..... is not all that relevant) > > the line to generate the ISO is: > mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -V > 'Red Hat Enterprise Linux 7.2' -boot-load-size 4 -boot-info-table -R > -J -v -T isolinux/ > > > There used to be a way to view the virtual terminals (alt-F whatever) > but apparently that's gone away. > > Any ideas on what I'm missing here? > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chavanpushpendra at gmail.com Wed Jun 8 12:41:01 2016 From: chavanpushpendra at gmail.com (Mr. Pushpendra Chavan) Date: Wed, 8 Jun 2016 18:11:01 +0530 Subject: RHEL 7 problems. In-Reply-To: References: Message-ID: Hello, Here are the steps which I follow to modify my ISO for adding Kickstart, you might want to give it a try. One can run these steps on RHEL7/CentOS7 machine. 1. Mount the DVD iso at some location: # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt 2. Then create a directory and copy all the contents of the ISO into the same. # mkdir /tmp/rhel7 # shopt -s dotglob # cp -avRf /mnt/* /tmp/rhel7 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7 # cd /tmp/rhel7 # ls -a 4. Get the kickstart file and rename it to ks.cfg # cd /tmp/rhel7 # wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy your kickstart file 5. Confirm the LABEL of the DVD iso. # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. ####################################### label kickstart menu label ^Kickstart Installation of RHEL7.2 kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/ks.cfg ####################################### Make sure that the stanza has inst.stage2 and the correct label. 7. Now, save the file and create the ISO as follows. # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/ The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot only, for UEFI boot, the procedure will be a little bit different. Just few more steps added/replaced. Regards, Pushpendra Chavan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stan.Hearn at nscorp.com Wed Jun 8 13:01:47 2016 From: Stan.Hearn at nscorp.com (Hearn, Stan J.) Date: Wed, 8 Jun 2016 13:01:47 +0000 Subject: RHEL 7 problems. In-Reply-To: References: Message-ID: <71d808712cb646aaaea5f8f2496cb3c8@GATUCEXCH15S.nscorp.AD.NSCORP.COM> Do I have to build the ISO on a RHEL 7 system? From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Mr. Pushpendra Chavan Sent: Wednesday, June 08, 2016 8:41 AM To: Discussion list about Kickstart Subject: [EXTERNAL] Re: RHEL 7 problems. Hello, Here are the steps which I follow to modify my ISO for adding Kickstart, you might want to give it a try. One can run these steps on RHEL7/CentOS7 machine. 1. Mount the DVD iso at some location: # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt 2. Then create a directory and copy all the contents of the ISO into the same. # mkdir /tmp/rhel7 # shopt -s dotglob # cp -avRf /mnt/* /tmp/rhel7 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7 # cd /tmp/rhel7 # ls -a 4. Get the kickstart file and rename it to ks.cfg # cd /tmp/rhel7 # wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy your kickstart file 5. Confirm the LABEL of the DVD iso. # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. ####################################### label kickstart menu label ^Kickstart Installation of RHEL7.2 kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 inst.ks=cdrom:/ks.cfg ####################################### Make sure that the stanza has inst.stage2 and the correct label. 7. Now, save the file and create the ISO as follows. # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/ The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot only, for UEFI boot, the procedure will be a little bit different. Just few more steps added/replaced. Regards, Pushpendra Chavan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From simpsonar77 at gmail.com Wed Jun 8 13:07:04 2016 From: simpsonar77 at gmail.com (Andrew Simpson) Date: Wed, 8 Jun 2016 09:07:04 -0400 Subject: RHEL 7 problems. In-Reply-To: <71d808712cb646aaaea5f8f2496cb3c8@GATUCEXCH15S.nscorp.AD.NSCORP.COM> References: <71d808712cb646aaaea5f8f2496cb3c8@GATUCEXCH15S.nscorp.AD.NSCORP.COM> Message-ID: No. and you might want to use genisoimage going forward. On Jun 8, 2016 9:05 AM, "Hearn, Stan J." wrote: > Do I have to build the ISO on a RHEL 7 system? > > > > *From:* kickstart-list-bounces at redhat.com [mailto: > kickstart-list-bounces at redhat.com] *On Behalf Of *Mr. Pushpendra Chavan > *Sent:* Wednesday, June 08, 2016 8:41 AM > *To:* Discussion list about Kickstart > *Subject:* [EXTERNAL] Re: RHEL 7 problems. > > > > Hello, > > Here are the steps which I follow to modify my ISO for adding Kickstart, > you might want to give it a try. One can run these steps on RHEL7/CentOS7 > machine. > > 1. Mount the DVD iso at some location: > > # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt > > 2. Then create a directory and copy all the contents of the ISO into the > same. > > # mkdir /tmp/rhel7 > # shopt -s dotglob > # cp -avRf /mnt/* /tmp/rhel7 > > 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7 > > # cd /tmp/rhel7 > # ls -a > > 4. Get the kickstart file and rename it to ks.cfg > > # cd /tmp/rhel7 > # wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy > your kickstart file > > 5. Confirm the LABEL of the DVD iso. > > # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso > > 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. > > ####################################### > label kickstart > menu label ^Kickstart Installation of RHEL7.2 > kernel vmlinuz > append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 > inst.ks=cdrom:/ks.cfg > ####################################### > > Make sure that the stanza has inst.stage2 and the correct label. > > 7. Now, save the file and create the ISO as follows. > > # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c > isolinux/boot.cat > > -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL > -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/ > > The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot > only, for UEFI boot, the procedure will be a little bit different. Just few > more steps added/replaced. > > Regards, > > Pushpendra Chavan. > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From petro at cpetro.us Wed Jun 8 14:05:59 2016 From: petro at cpetro.us (C. Petro) Date: Wed, 8 Jun 2016 08:05:59 -0600 Subject: RHEL 7 problems. In-Reply-To: References: Message-ID: Bravo sir. That did it. On Wed, Jun 8, 2016 at 6:18 AM, Andrew Simpson wrote: > the volume name in your mkisofs command (?V option) must match the LABEL > value in the isolinux.cfg file exactly.... minus the x20 used for spaces. > > yours don't match : > > -V > 'Red Hat Enterprise Linux 7.2' > > hd:LABEL=RHEL-7.2\x20Server.x86_64 > > On Jun 8, 2016 2:28 AM, "C. Petro" wrote: >> >> I'm reasonably experienced in doing RHEL 5 and 6 kickstarts, but this >> is my first pass at building a custom install CD for RHEL 7. >> >> I'm working from the RHEL 7.2 sources (meaning not Centos). I used this: >> >> http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-1/ >> as my "checklist" for the most part, with some of this: >> https://highon.coffee/blog/security-harden-centos-7/ >> >> My kickstart config looks like: >> #version=RHEL7 >> >> install >> text >> # System authorization information >> auth --enableshadow --passalgo=sha512 >> >> # Use CDROM installation media >> cdrom >> # Accept EULA >> eula --agreed >> >> services --enabled=NetworkManager,sshd >> reboot >> >> # Run the Setup Agent on first boot >> #firstboot --enable >> ignoredisk --only-use=sda >> # Keyboard layouts >> keyboard --vckeymap=us --xlayouts='us' >> # System language >> lang en_US.UTF-8 >> # SELinux >> selinux --permissive >> # Network information >> network --bootproto=dhcp --device=eno16777736 --onboot=on --ipv6=off >> network --hostname=default-vm >> # Root password >> # Fix for deploy rootpw --iscrypted HASHGOESHERE >> rootpw HASHGOESHERE >> # System timezone >> timezone --isUtc --ntpservers=prime.transformers >> # System bootloader configuration >> bootloader --location=mbr --boot-drive=sda >> # Partition clearing information >> clearpart --all --drives=sda >> ignoredisk --only-use=sda >> >> skipx >> >> # Some local users: >> user --name="ortep.sirhc" --is-crypted >> >> --password="$6$VHzvqK35oIsfbcgn$pyOvmSm8Y1BnYUKaaSeggHb4a3zwm3U5FTbP9g2cMQccruhF6.JswWYvYlsRjgOLAyE1DfPUjUD1iAh7yzY2e1" >> >> # LVM >> >> # Disk partitioning information >> # part pv.18 --fstype="lvmpv" --ondisk=sda --size=8004 >> part pv.11 --fstype="lvmpv" --ondisk=sda --size=16008 >> part /boot --fstype="ext4" --ondisk=sda --size=1000 >> #volgroup lg_data --pesize=4096 pv.18 >> volgroup lg_os --pesize=4096 pv.11 >> logvol / --fstype="xfs" --size=4000 --name=lv_root --vgname=lg_os >> logvol /home --fstype="xfs" --size=2000 --name=lv_home --vgname=lg_os >> logvol /tmp --fstype="xfs" --size=1000 --name=lv_tmp --vgname=lg_os >> logvol /var --fstype="xfs" --size=2000 --name=lv_var --vgname=lg_os >> logvol /var/tmp --fstype="xfs" --size=1000 --name=lv_var_tmp >> --vgname=lg_os >> logvol /var/log --fstype="xfs" --size=1500 --name=lv_var_log >> --vgname=lg_os >> logvol /var/log/audit --fstype="xfs" --size=500 >> --name=lv_var_log_audit --vgname=lg_os >> logvol swap --fstype="swap" --size=1000 --name=lv_swap --vgname=lg_data >> >> %addon org_fedora_oscap >> content-type = scap-security-guide >> profile = pci-dss >> %end >> >> %packages >> @core >> vim-minimal >> vim-common >> aide >> ntp >> ntpdate >> openscap >> openscap-scanner >> scap-security-guides >> authconfig >> chrony >> firewalld >> grub2 >> %end >> >> >> >> %post >> %end >> >> >> In isolinux.cfg I have: >> >> ... >> menu tabmsg Press Tab for full configuration options on menu items. >> >> menu separator # insert an empty line >> menu separator # insert an empty line >> >> label Basic KS >> menu label ^Kickstart >> menu default >> kernel vmlinuz >> append initrd=initrd.img >> inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 >> inst.ks=cdrom:/dev/cdrom:/ks/base_ks.cfg >> menu separator # insert an empty line >> ... >> >> >> grub.conf is: >> #debug --graphics >> default=1 >> splashimage=@SPLASHPATH@ >> timeout 60 >> hiddenmenu >> title Install Red Hat Enterprise Linux 7.2 >> findiso >> kernel @KERNELPATH@ @ROOT@ >> initrd @INITRDPATH@ >> title Test this media & install Red Hat Enterprise Linux 7.2 >> findiso >> kernel @KERNELPATH@ @ROOT@ rd.live.check quiet >> initrd @INITRDPATH@ >> >> >> Which gets displayed, and then will start Linux. >> >> I am testing on VMware Workstation 12 Player. >> >> However I get stuck at: >> >> [ 23.820146] work still pending >> >> (and yes, I know the 23..... is not all that relevant) >> >> the line to generate the ISO is: >> mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -V >> 'Red Hat Enterprise Linux 7.2' -boot-load-size 4 -boot-info-table -R >> -J -v -T isolinux/ >> >> >> There used to be a way to view the virtual terminals (alt-F whatever) >> but apparently that's gone away. >> >> Any ideas on what I'm missing here? >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From simpsonar77 at gmail.com Wed Jun 8 14:20:20 2016 From: simpsonar77 at gmail.com (Andrew Simpson) Date: Wed, 8 Jun 2016 10:20:20 -0400 Subject: RHEL 7 problems. In-Reply-To: References: Message-ID: yeah... that one bit me for almost a day lol. It was buried in the RHEL 7 documentation somewhere. I think if you tried to use something other than hd:LABEL for the inst.stage2 option, you might not have to worry about it. Andrew Simpson On Wed, Jun 8, 2016 at 10:05 AM, C. Petro wrote: > Bravo sir. That did it. > > > On Wed, Jun 8, 2016 at 6:18 AM, Andrew Simpson > wrote: > > the volume name in your mkisofs command (?V option) must match the > LABEL > > value in the isolinux.cfg file exactly.... minus the x20 used for > spaces. > > > > yours don't match : > > > > -V > > 'Red Hat Enterprise Linux 7.2' > > > > hd:LABEL=RHEL-7.2\x20Server.x86_64 > > > > On Jun 8, 2016 2:28 AM, "C. Petro" wrote: > >> > >> I'm reasonably experienced in doing RHEL 5 and 6 kickstarts, but this > >> is my first pass at building a custom install CD for RHEL 7. > >> > >> I'm working from the RHEL 7.2 sources (meaning not Centos). I used this: > >> > >> > http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-1/ > >> as my "checklist" for the most part, with some of this: > >> https://highon.coffee/blog/security-harden-centos-7/ > >> > >> My kickstart config looks like: > >> #version=RHEL7 > >> > >> install > >> text > >> # System authorization information > >> auth --enableshadow --passalgo=sha512 > >> > >> # Use CDROM installation media > >> cdrom > >> # Accept EULA > >> eula --agreed > >> > >> services --enabled=NetworkManager,sshd > >> reboot > >> > >> # Run the Setup Agent on first boot > >> #firstboot --enable > >> ignoredisk --only-use=sda > >> # Keyboard layouts > >> keyboard --vckeymap=us --xlayouts='us' > >> # System language > >> lang en_US.UTF-8 > >> # SELinux > >> selinux --permissive > >> # Network information > >> network --bootproto=dhcp --device=eno16777736 --onboot=on --ipv6=off > >> network --hostname=default-vm > >> # Root password > >> # Fix for deploy rootpw --iscrypted HASHGOESHERE > >> rootpw HASHGOESHERE > >> # System timezone > >> timezone --isUtc --ntpservers=prime.transformers > >> # System bootloader configuration > >> bootloader --location=mbr --boot-drive=sda > >> # Partition clearing information > >> clearpart --all --drives=sda > >> ignoredisk --only-use=sda > >> > >> skipx > >> > >> # Some local users: > >> user --name="ortep.sirhc" --is-crypted > >> > >> > --password="$6$VHzvqK35oIsfbcgn$pyOvmSm8Y1BnYUKaaSeggHb4a3zwm3U5FTbP9g2cMQccruhF6.JswWYvYlsRjgOLAyE1DfPUjUD1iAh7yzY2e1" > >> > >> # LVM > >> > >> # Disk partitioning information > >> # part pv.18 --fstype="lvmpv" --ondisk=sda --size=8004 > >> part pv.11 --fstype="lvmpv" --ondisk=sda --size=16008 > >> part /boot --fstype="ext4" --ondisk=sda --size=1000 > >> #volgroup lg_data --pesize=4096 pv.18 > >> volgroup lg_os --pesize=4096 pv.11 > >> logvol / --fstype="xfs" --size=4000 --name=lv_root --vgname=lg_os > >> logvol /home --fstype="xfs" --size=2000 --name=lv_home --vgname=lg_os > >> logvol /tmp --fstype="xfs" --size=1000 --name=lv_tmp --vgname=lg_os > >> logvol /var --fstype="xfs" --size=2000 --name=lv_var --vgname=lg_os > >> logvol /var/tmp --fstype="xfs" --size=1000 --name=lv_var_tmp > >> --vgname=lg_os > >> logvol /var/log --fstype="xfs" --size=1500 --name=lv_var_log > >> --vgname=lg_os > >> logvol /var/log/audit --fstype="xfs" --size=500 > >> --name=lv_var_log_audit --vgname=lg_os > >> logvol swap --fstype="swap" --size=1000 --name=lv_swap --vgname=lg_data > >> > >> %addon org_fedora_oscap > >> content-type = scap-security-guide > >> profile = pci-dss > >> %end > >> > >> %packages > >> @core > >> vim-minimal > >> vim-common > >> aide > >> ntp > >> ntpdate > >> openscap > >> openscap-scanner > >> scap-security-guides > >> authconfig > >> chrony > >> firewalld > >> grub2 > >> %end > >> > >> > >> > >> %post > >> %end > >> > >> > >> In isolinux.cfg I have: > >> > >> ... > >> menu tabmsg Press Tab for full configuration options on menu items. > >> > >> menu separator # insert an empty line > >> menu separator # insert an empty line > >> > >> label Basic KS > >> menu label ^Kickstart > >> menu default > >> kernel vmlinuz > >> append initrd=initrd.img > >> inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 > >> inst.ks=cdrom:/dev/cdrom:/ks/base_ks.cfg > >> menu separator # insert an empty line > >> ... > >> > >> > >> grub.conf is: > >> #debug --graphics > >> default=1 > >> splashimage=@SPLASHPATH@ > >> timeout 60 > >> hiddenmenu > >> title Install Red Hat Enterprise Linux 7.2 > >> findiso > >> kernel @KERNELPATH@ @ROOT@ > >> initrd @INITRDPATH@ > >> title Test this media & install Red Hat Enterprise Linux 7.2 > >> findiso > >> kernel @KERNELPATH@ @ROOT@ rd.live.check quiet > >> initrd @INITRDPATH@ > >> > >> > >> Which gets displayed, and then will start Linux. > >> > >> I am testing on VMware Workstation 12 Player. > >> > >> However I get stuck at: > >> > >> [ 23.820146] work still pending > >> > >> (and yes, I know the 23..... is not all that relevant) > >> > >> the line to generate the ISO is: > >> mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -V > >> 'Red Hat Enterprise Linux 7.2' -boot-load-size 4 -boot-info-table -R > >> -J -v -T isolinux/ > >> > >> > >> There used to be a way to view the virtual terminals (alt-F whatever) > >> but apparently that's gone away. > >> > >> Any ideas on what I'm missing here? > >> > >> _______________________________________________ > >> Kickstart-list mailing list > >> Kickstart-list at redhat.com > >> https://www.redhat.com/mailman/listinfo/kickstart-list > > > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chavanpushpendra at gmail.com Wed Jun 8 18:30:53 2016 From: chavanpushpendra at gmail.com (Mr. Pushpendra Chavan) Date: Thu, 9 Jun 2016 00:00:53 +0530 Subject: RHEL 7 problems. In-Reply-To: <71d808712cb646aaaea5f8f2496cb3c8@GATUCEXCH15S.nscorp.AD.NSCORP.COM> References: <71d808712cb646aaaea5f8f2496cb3c8@GATUCEXCH15S.nscorp.AD.NSCORP.COM> Message-ID: I tried it on my RHEL7 machine itself, didn't try it in any other. It should work fine with RHEL 6 or centos 6 too. I don't see anything specific required from RHEL7 here though. On Jun 8, 2016 6:35 PM, "Hearn, Stan J." wrote: > Do I have to build the ISO on a RHEL 7 system? > > > > *From:* kickstart-list-bounces at redhat.com [mailto: > kickstart-list-bounces at redhat.com] *On Behalf Of *Mr. Pushpendra Chavan > *Sent:* Wednesday, June 08, 2016 8:41 AM > *To:* Discussion list about Kickstart > *Subject:* [EXTERNAL] Re: RHEL 7 problems. > > > > Hello, > > Here are the steps which I follow to modify my ISO for adding Kickstart, > you might want to give it a try. One can run these steps on RHEL7/CentOS7 > machine. > > 1. Mount the DVD iso at some location: > > # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt > > 2. Then create a directory and copy all the contents of the ISO into the > same. > > # mkdir /tmp/rhel7 > # shopt -s dotglob > # cp -avRf /mnt/* /tmp/rhel7 > > 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7 > > # cd /tmp/rhel7 > # ls -a > > 4. Get the kickstart file and rename it to ks.cfg > > # cd /tmp/rhel7 > # wget ftp://192.168.122.254/rhel7/ks.cfg <========== or simply copy > your kickstart file > > 5. Confirm the LABEL of the DVD iso. > > # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso > > 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. > > ####################################### > label kickstart > menu label ^Kickstart Installation of RHEL7.2 > kernel vmlinuz > append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64 > inst.ks=cdrom:/ks.cfg > ####################################### > > Make sure that the stanza has inst.stage2 and the correct label. > > 7. Now, save the file and create the ISO as follows. > > # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c > isolinux/boot.cat > > -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL > -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/ > > The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot > only, for UEFI boot, the procedure will be a little bit different. Just few > more steps added/replaced. > > Regards, > > Pushpendra Chavan. > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steven_Hajducko at intuit.com Sat Jun 18 13:49:26 2016 From: Steven_Hajducko at intuit.com (Hajducko, Steven) Date: Sat, 18 Jun 2016 13:49:26 +0000 Subject: Alternative to anamon Message-ID: <8D776F39F3D8E2EB.A5D046E2-1E56-458B-AA73-8A5B4944DA54@mail.outlook.com> Is there a good alternative to Cobbler's anamon? I've checked out the syslog option, but it has a few shortcomings. Namely, you can't send over custom log files, and if you use a dedicated provisioning VLAN like we do, and have several provisions running at once, it's hard to correlate which system is which, since they're just getting random dhcp IP's that have no corresponding DNS. Get Outlook for iOS -------------- next part -------------- An HTML attachment was scrubbed... URL: