From Iain.Morrison at mrc-epid.cam.ac.uk Fri Feb 4 19:10:24 2011 From: Iain.Morrison at mrc-epid.cam.ac.uk (Iain Morrison) Date: Fri, 4 Feb 2011 19:10:24 -0000 Subject: RHEL 6 and NFS In-Reply-To: <8796940.821.1296493442546.JavaMail.iranzo@iranzo.usersys.redhat.com> References: <2FA17BA1CC9A9B408927E72E9FA4A1ED01272D3C5B@ex2k.bankofamerica.com> <8796940.821.1296493442546.JavaMail.iranzo@iranzo.usersys.redhat.com> Message-ID: <7F2C60CEE8B98346BD9FBAE01015052232368C@silicon.mrc-epid.cam.ac.uk> Dear list, we have a basic kickstart system that works with RHEL 4 and RHEL 5, but is failing with RHEL 6. We boot the machines from CD/DVD and then type linux ks ksdevice=ethX [where X is the relevant number] The IP is set by DHCP and using filename "/export/n_os/ks/"; next-server 11.22.33.44; where 11.22.33.44 is an NFS server and /export/n_os/ks/ the directory containing kickstart files of the form 22.33.44.55-kickstart When we do this for RHEL 6 we get an error downloading kickstart file message. If we enter the location e.g. nfs:11.22.33.44:/export/n_os/ks/22.33.44.55-kickstart the ks file is read. [Putting the ks file location explicitly on the command line also works] Am I missing something? thanks iain -- Iain Morrison IT Manager MRC Epidemiology Unit Institute of Metabolic Science Box 285, Addenbrooke's Hospital Hills Road Cambridge CB2 0QQ Tel 01223 769200 From theo at raytheon.com Mon Feb 7 16:26:46 2011 From: theo at raytheon.com (Theo Miller) Date: Mon, 7 Feb 2011 10:26:46 -0600 Subject: RHEL6 package group changes Message-ID: Does someone know of a list of a package group translation for rhel6 that are equivalent to the prior versions? We typically include the following groups, but all have changed names under rhel6, but to what? @ X Window System @ GNOME Desktop Environment @ KDE (K Desktop Environment) @ Editors @ Engineering and Scientific @ Graphical Internet @ Office/Productivity @ Sound and Video @ Graphics @ Web Server @ Windows File Server @ Development Tools @ Administration Tools @ System Tools @ Printing Support Going through the comps file by hand does not seem to be the best way to figure this out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From larry.brigman at gmail.com Mon Feb 7 16:48:45 2011 From: larry.brigman at gmail.com (Larry Brigman) Date: Mon, 7 Feb 2011 08:48:45 -0800 Subject: RHEL6 package group changes In-Reply-To: References: Message-ID: On Mon, Feb 7, 2011 at 8:26 AM, Theo Miller wrote: > Does someone know of a list of a package group translation for rhel6 that > are equivalent to the prior versions? We typically include the following > groups, but all have changed names under rhel6, but to what? > > @ X Window System > @ GNOME Desktop Environment > @ KDE (K Desktop Environment) > @ Editors > @ Engineering and Scientific > @ Graphical Internet > @ Office/Productivity > @ Sound and Video > @ Graphics > @ Web Server > @ Windows File Server > @ Development Tools > @ Administration Tools > @ System Tools > @ Printing Support > > Going through the comps file by hand does not seem to be the best way to > figure this out. > yum grouplist From Pablo.Iranzo at redhat.com Tue Feb 8 06:26:45 2011 From: Pablo.Iranzo at redhat.com (=?utf-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Tue, 8 Feb 2011 01:26:45 -0500 (EST) Subject: RHEL6 package group changes In-Reply-To: Message-ID: <532227.1286.1297146402712.JavaMail.iranzo@iranzo.usersys.redhat.com> ~]# yum grouplist Additional Development Base Compatibility libraries Console internet tools Dial-up Networking Support Directory Client E-mail server Fonts General Purpose Desktop Graphical Administration Tools Hardware monitoring utilities Japanese Support Korean Support Large Systems Performance Legacy UNIX compatibility Legacy X Window System compatibility Network Infrastructure Server Network file system client Networking Tools Performance Tools Perl Support Remote Desktop Clients Security Tools Server Platform Smart card support Spanish Support Storage Availability Tools System Management System administration tools Virtualization Virtualization Client Virtualization Platform Web Server iSCSI Storage Client Afrikaans Support Albanian Support Amazigh Support Arabic Support Armenian Support Assamese Support Azerbaijani Support Backup Client Backup Server Basque Support Belarusian Support Bengali Support Bhutanese Support Brazilian Portuguese Support Breton Support Bulgarian Support CIFS file server Catalan Support Chhattisgarhi Support Chichewa Support Chinese Support Coptic Support Croatian Support Czech Support Danish Support Debugging Tools Desktop Desktop Debugging and Performance Tools Desktop Platform Desktop Platform Development Development tools Directory Server Dutch Support Eclipse Emacs English (UK) Support Esperanto Support Estonian Support Ethiopic Support FCoE Storage Client FTP server Faroese Support Fijian Support Filipino Support Finnish Support French Support Frisian Support Friulian Support Gaelic Support Galician Support Georgian Support German Support Graphics Creation Tools Greek Support Gujarati Support Hebrew Support Hiligaynon Support Hindi Support Hungarian Support Icelandic Support Indonesian Support Infiniband Support Input Methods Interlingua Support Internet Browser Inuktitut Support Irish Support Italian Support Java Base Java Browser Java Database Java Platform KDE Desktop Kannada Support Kashmiri Support Kashubian Support Kazakh Support Khmer Support Kinyarwanda Support Konkani Support Kurdish Support Lao Support Latin Support Latvian Support Lithuanian Support Low Saxon Support Luxembourgish Support Macedonian Support Mainframe Access Maithili Support Malagasy Support Malay Support Malayalam Support Maltese Support Manx Support Maori Support Marathi Support Messaging Client Support Messaging Server Support Misc Mongolian Support Multimedia MySQL Database client MySQL Database server Myanmar (Burmese) Support NFS file server Nepali Support Network Storage Server Northern Sotho Support Norwegian Support Occitan Support Oriya Support PHP Support Persian Support Polish Support Portuguese Support PostgreSQL Database client PostgreSQL Database server Print Server Printing client Punjabi Support Romanian Support Russian Support SNMP Support Sanskrit Support Sardinian Support Scientific support Serbian Support Server Platform Development Sindhi Support Sinhala Support Slovak Support Slovenian Support Somali Support Southern Ndebele Support Southern Sotho Support Swahili Support Swati Support Swedish Support Tagalog Support Tajik Support Tamil Support TeX support Technical Writing Telugu Support Tetum Support Thai Support Tibetan Support Tsonga Support Tswana Support TurboGears application framework Turkish Support Turkmen Support Ukrainian Support Upper Sorbian Support Urdu Support Uzbek Support Venda Support Vietnamese Support Virtualization Tools Walloon Support Web Servlet Engine Web-Based Enterprise Management Welsh Support X Window System Xhosa Support Zhong Yi Song Fonts Zulu Support Done De: "Theo Miller" Para: "Kickstart" Enviados: Lunes, 7 de Febrero 2011 17:26:46 Asunto: RHEL6 package group changes Does someone know of a list of a package group translation for rhel6 that are equivalent to the prior versions? We typically include the following groups, but all have changed names under rhel6, but to what? @ X Window System @ GNOME Desktop Environment @ KDE (K Desktop Environment) @ Editors @ Engineering and Scientific @ Graphical Internet @ Office/Productivity @ Sound and Video @ Graphics @ Web Server @ Windows File Server @ Development Tools @ Administration Tools @ System Tools @ Printing Support Going through the comps file by hand does not seem to be the best way to figure this out. _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSP) #804006196923216 Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D -------------- next part -------------- An HTML attachment was scrubbed... URL: From Todd_Campbell at premierinc.com Tue Feb 8 12:33:39 2011 From: Todd_Campbell at premierinc.com (Campbell, Todd) Date: Tue, 8 Feb 2011 12:33:39 +0000 Subject: RHEL6 package group changes In-Reply-To: <532227.1286.1297146402712.JavaMail.iranzo@iranzo.usersys.redhat.com> References: <532227.1286.1297146402712.JavaMail.iranzo@iranzo.usersys.redhat.com> Message-ID: Might I suggest ?yum grouplist -v? so as to get the list with the ?short name? for each group that can be used without have to quote the spaces in the group name? # yum grouplist -v | grep -I mysql MySQL Database client (mysql-client) MySQL Database server (mysql) # yum groupinstall mysql From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Pablo Iranzo G?mez Sent: Tuesday, February 08, 2011 1:27 AM To: Discussion list about Kickstart Subject: Re: RHEL6 package group changes ~]# yum grouplist Additional Development Base Compatibility libraries Console internet tools Dial-up Networking Support Directory Client E-mail server Fonts General Purpose Desktop Graphical Administration Tools Hardware monitoring utilities Japanese Support Korean Support Large Systems Performance Legacy UNIX compatibility Legacy X Window System compatibility Network Infrastructure Server Network file system client Networking Tools Performance Tools Perl Support Remote Desktop Clients Security Tools Server Platform Smart card support Spanish Support Storage Availability Tools System Management System administration tools Virtualization Virtualization Client Virtualization Platform Web Server iSCSI Storage Client Afrikaans Support Albanian Support Amazigh Support Arabic Support Armenian Support Assamese Support Azerbaijani Support Backup Client Backup Server Basque Support Belarusian Support Bengali Support Bhutanese Support Brazilian Portuguese Support Breton Support Bulgarian Support CIFS file server Catalan Support Chhattisgarhi Support Chichewa Support Chinese Support Coptic Support Croatian Support Czech Support Danish Support Debugging Tools Desktop Desktop Debugging and Performance Tools Desktop Platform Desktop Platform Development Development tools Directory Server Dutch Support Eclipse Emacs English (UK) Support Esperanto Support Estonian Support Ethiopic Support FCoE Storage Client FTP server Faroese Support Fijian Support Filipino Support Finnish Support French Support Frisian Support Friulian Support Gaelic Support Galician Support Georgian Support German Support Graphics Creation Tools Greek Support Gujarati Support Hebrew Support Hiligaynon Support Hindi Support Hungarian Support Icelandic Support Indonesian Support Infiniband Support Input Methods Interlingua Support Internet Browser Inuktitut Support Irish Support Italian Support Java Base Java Browser Java Database Java Platform KDE Desktop Kannada Support Kashmiri Support Kashubian Support Kazakh Support Khmer Support Kinyarwanda Support Konkani Support Kurdish Support Lao Support Latin Support Latvian Support Lithuanian Support Low Saxon Support Luxembourgish Support Macedonian Support Mainframe Access Maithili Support Malagasy Support Malay Support Malayalam Support Maltese Support Manx Support Maori Support Marathi Support Messaging Client Support Messaging Server Support Misc Mongolian Support Multimedia MySQL Database client MySQL Database server Myanmar (Burmese) Support NFS file server Nepali Support Network Storage Server Northern Sotho Support Norwegian Support Occitan Support Oriya Support PHP Support Persian Support Polish Support Portuguese Support PostgreSQL Database client PostgreSQL Database server Print Server Printing client Punjabi Support Romanian Support Russian Support SNMP Support Sanskrit Support Sardinian Support Scientific support Serbian Support Server Platform Development Sindhi Support Sinhala Support Slovak Support Slovenian Support Somali Support Southern Ndebele Support Southern Sotho Support Swahili Support Swati Support Swedish Support Tagalog Support Tajik Support Tamil Support TeX support Technical Writing Telugu Support Tetum Support Thai Support Tibetan Support Tsonga Support Tswana Support TurboGears application framework Turkish Support Turkmen Support Ukrainian Support Upper Sorbian Support Urdu Support Uzbek Support Venda Support Vietnamese Support Virtualization Tools Walloon Support Web Servlet Engine Web-Based Enterprise Management Welsh Support X Window System Xhosa Support Zhong Yi Song Fonts Zulu Support Done ________________________________ De: "Theo Miller" Para: "Kickstart" Enviados: Lunes, 7 de Febrero 2011 17:26:46 Asunto: RHEL6 package group changes Does someone know of a list of a package group translation for rhel6 that are equivalent to the prior versions? We typically include the following groups, but all have changed names under rhel6, but to what? @ X Window System @ GNOME Desktop Environment @ KDE (K Desktop Environment) @ Editors @ Engineering and Scientific @ Graphical Internet @ Office/Productivity @ Sound and Video @ Graphics @ Web Server @ Windows File Server @ Development Tools @ Administration Tools @ System Tools @ Printing Support Going through the comps file by hand does not seem to be the best way to figure this out. _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSP) #804006196923216 Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D ----------------------------------------- ***Note:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the Sender immediately by replying to the message and deleting it from your computer. Thank you. Premier Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From forltran at yahoo.com Wed Feb 9 17:29:46 2011 From: forltran at yahoo.com (Lambert Tran) Date: Wed, 9 Feb 2011 09:29:46 -0800 (PST) Subject: No subject Message-ID: <878441.79867.qm@web180105.mail.gq1.yahoo.com> http://virtualtrackgps.com/images/awa.php ____________________________________________________________________________________ Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather -------------- next part -------------- An HTML attachment was scrubbed... URL: From feng.tan at oracle.com Wed Feb 9 17:59:28 2011 From: feng.tan at oracle.com (feng.tan at oracle.com) Date: Wed, 9 Feb 2011 09:59:28 -0800 (PST) Subject: Auto Reply: Message-ID: <83b4fd01-a54d-4839-b76d-be4971074eaa@default> ???????????????? Dear Sender, >From Feb. 2 ~ Feb. 14, I am in Vacation, in this period I can not check email frequently. If there is any urgent case, you can reach me at 86-135-010-88029 Thanks, Tan Feng From feng.tan at oracle.com Wed Feb 9 18:10:44 2011 From: feng.tan at oracle.com (feng.tan at oracle.com) Date: Wed, 9 Feb 2011 10:10:44 -0800 (PST) Subject: Auto Reply: Auto Reply: Message-ID: <564d6f8a-3ae2-469d-ab92-11d4253d8aa2@default> ???????????????? Dear Sender, >From Feb. 2 ~ Feb. 14, I am in Vacation, in this period I can not check email frequently. If there is any urgent case, you can reach me at 86-135-010-88029 Thanks, Tan Feng From aaron at assonance.org Fri Feb 11 17:23:16 2011 From: aaron at assonance.org (Aaron Cohen) Date: Fri, 11 Feb 2011 12:23:16 -0500 Subject: How to clear linux partitions but leave home untouched? Message-ID: Hi all, I have a kickstart file that I use to image our systems over PXE. Currently, we use "clearpart --linux" at the top of the kickstart and then "autopart" to create the partitions. Is there any combination of commands that is similar to this, but doesn't delete the "home" partition? I'd like to be able to re-install a new version of Fedora onto a system, but not delete the users' home directories. Thanks, -- Aaron From feng.tan at oracle.com Fri Feb 11 17:35:10 2011 From: feng.tan at oracle.com (feng.tan at oracle.com) Date: Fri, 11 Feb 2011 09:35:10 -0800 (PST) Subject: Auto Reply: How to clear linux partitions but leave home untouched? Message-ID: ???????????????? Dear Sender, >From Feb. 2 ~ Feb. 14, I am in Vacation, in this period I can not check email frequently. If there is any urgent case, you can reach me at 86-135-010-88029 Thanks, Tan Feng From clumens at redhat.com Fri Feb 11 18:05:26 2011 From: clumens at redhat.com (Chris Lumens) Date: Fri, 11 Feb 2011 13:05:26 -0500 Subject: How to clear linux partitions but leave home untouched? In-Reply-To: References: Message-ID: <20110211180526.GT2137@exeter.usersys.redhat.com> > I have a kickstart file that I use to image our systems over PXE. > Currently, we use "clearpart --linux" at the top of the kickstart and > then "autopart" to create the partitions. > > Is there any combination of commands that is similar to this, but > doesn't delete the "home" partition? I'd like to be able to re-install > a new version of Fedora onto a system, but not delete the users' home > directories. clearpart does not allow anything that fine grained: https://fedoraproject.org/wiki/Anaconda/Kickstart#clearpart You'd have to clear things out yourself in a %pre script if you only want to clear a subset of partitions. - Chris From forltran at yahoo.com Fri Feb 11 17:42:30 2011 From: forltran at yahoo.com (Lambert Tran) Date: Fri, 11 Feb 2011 09:42:30 -0800 (PST) Subject: No subject Message-ID: <902984.54891.qm@web180111.mail.gq1.yahoo.com> http://buryafc.com/images/all.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From forltran at yahoo.com Sat Feb 12 08:49:42 2011 From: forltran at yahoo.com (Lambert Tran) Date: Sat, 12 Feb 2011 00:49:42 -0800 (PST) Subject: No subject Message-ID: <51281.49119.qm@web180111.mail.gq1.yahoo.com> http://coconutssalon.com/images/alb.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikhil.fakeaccount at gmail.com Fri Feb 18 17:12:12 2011 From: nikhil.fakeaccount at gmail.com (nikhil .) Date: Fri, 18 Feb 2011 11:12:12 -0600 Subject: Post Install Message-ID: Hello, I am trying to automate installs of Red Hat 5.5 x86. I have a FAT32 partition on my disk at /dev/sda1 that I want to mount to /cdrv folder of the installed OS and I use this line in the %post section for this: "mount -t vfat -o iocharset=utf8,umask=000 /dev/sda1 /cdrv" For some reason, this does not mount the partition. I can confirm using "fdisk -l >> /post.log" that /dev/sda1 is FAT32 and is the Boot partition. I can create any folders or files using the %post section but just this mounting doesnt seem to work. Do you have any insights ? thanks, Nikhil -------------- next part -------------- An HTML attachment was scrubbed... URL: From ks-list at puzzled.xs4all.nl Fri Feb 18 18:50:37 2011 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Fri, 18 Feb 2011 19:50:37 +0100 Subject: Post Install In-Reply-To: References: Message-ID: <4D5EBF7D.4090404@puzzled.xs4all.nl> On 02/18/2011 06:12 PM, nikhil . wrote: > Hello, > I am trying to automate installs of Red Hat 5.5 x86. I have a FAT32 > partition on my disk at /dev/sda1 that I want to mount to /cdrv folder > of the installed OS and I use this line in the %post section for this: > "mount -t vfat -o iocharset=utf8,umask=000 /dev/sda1 /cdrv" > For some reason, this does not mount the partition. I can confirm using > "fdisk -l >> /post.log" that /dev/sda1 is FAT32 and is the Boot > partition. I can create any folders or files using the %post section but > just this mounting doesnt seem to work. > Do you have any insights ? Unfortunately not but perhaps you could put "sleep 99999" after the mount command in %post to see what kind of error it gives. Perhaps that gives you some insight as to why it is not working. Regards, Patrick From patchu1 at yahoo.com Sat Feb 19 01:37:46 2011 From: patchu1 at yahoo.com (Pat) Date: Fri, 18 Feb 2011 17:37:46 -0800 (PST) Subject: How to detect the number of network adapters installed from kickstart file for network config? Message-ID: <367484.35473.qm@web32503.mail.mud.yahoo.com> My kickstart file is usually used on systems with 1 or 2 network interfaces installed. If my kickstart file has the following lines: network --device eth0 --bootproto dhcp network --device eth1 --onboot no --bootproto dhcp It will fail if I use it on a system with only 1 network interface since eth1 doesn't exist. >From a kicksstart file how do I detect the number of network interfaces installed on the system and then only assign eth1 as above if that number is 2 or more? If it matters, it's possible the network interfaces are not plugged into the network when the kickstart is run. Thanks. From ks-list at puzzled.xs4all.nl Sat Feb 19 03:09:42 2011 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Sat, 19 Feb 2011 04:09:42 +0100 Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: <367484.35473.qm@web32503.mail.mud.yahoo.com> References: <367484.35473.qm@web32503.mail.mud.yahoo.com> Message-ID: <4D5F3476.3080407@puzzled.xs4all.nl> On 02/19/2011 02:37 AM, Pat wrote: > My kickstart file is usually used on systems with 1 or 2 network interfaces installed. If my kickstart file has the following lines: > > network --device eth0 --bootproto dhcp > network --device eth1 --onboot no --bootproto dhcp > > > It will fail if I use it on a system with only 1 network interface since eth1 doesn't exist. > >> From a kicksstart file how do I detect the number of network interfaces installed on the system and then only assign eth1 as above if that number is 2 or more? If it matters, it's possible the network interfaces are not plugged into the network when the kickstart is run. Thanks. You could test for the number of interfaces. Since I'm a total n00b in this area hopefully the experienced folks who monitor this list will have a good laugh at my "scripting" and come up with something better that actually works :) Here's how I would try to solve it. Totally untested, use at own risk. Mind the linewrap. It's all one line. My box has lo, br0, eth0 and virbr0 so the script should give a total of 4 interfaces. $ ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; print "Number of interfaces: " no_of_interfaces}' Number of interfaces: 4 (correct so apparently this works) You could add this to the %pre section in your kickstart file: %pre NO_OF_INTERFACES=`ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; print no_of_interfaces}'` echo "INTERFACE_COUNT=$NO_OF_INTERFACES" > /tmp/interface_count.txt Then in the %post section test if the value is greater than or equal to 2 in which case you configure both interfaces. Or else configure one interface: %post # first get the nr of interfaces from the interface_count.txt file # afaik usually at the top of %post source /tmp/interface_count.txt # test the value. not sure if I need to quote INTERFACES and 2 if [ "\$INTERFACE_COUNT" -ge "2" ]; then # configure 2 nics network --device eth0 --bootproto dhcp network --device eth1 --onboot no --bootproto dhcp else # configure 1 nic network --device eth0 --bootproto dhcp fi Since I don't know awk I got the syntax from the excellent n00b-friendly awk tutorial at http://bashshell.net/stream-filtering-utilities/exercise-1-learning-awk-basics/ Hope this helps. Regards, Patrick From ks-list at puzzled.xs4all.nl Sat Feb 19 12:43:07 2011 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Sat, 19 Feb 2011 13:43:07 +0100 Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: <4D5F3476.3080407@puzzled.xs4all.nl> References: <367484.35473.qm@web32503.mail.mud.yahoo.com> <4D5F3476.3080407@puzzled.xs4all.nl> Message-ID: <4D5FBADB.5020507@puzzled.xs4all.nl> On 02/19/2011 04:09 AM, Patrick Lists wrote: [snip] > Here's how I would try to solve it. Totally untested, use at own risk. > Mind the linewrap. It's all one line. My box has lo, br0, eth0 and > virbr0 so the script should give a total of 4 interfaces. > > $ ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk > 'BEGIN {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END > {no_of_interfaces=NR; print "Number of interfaces: " no_of_interfaces}' > > Number of interfaces: 4 (correct so apparently this works) Rereading your question and the script above it greps all interfaces while I think you only need the eth interfaces. If that is the case change /^[a-z]/ to /^eth/ $ ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN {no_of_interfaces=0} /^eth/ {print $1}' | awk 'END {no_of_interfaces=NR; print "Number of interfaces: " no_of_interfaces}' Number of interfaces: 1 Regards, Patrick From mats.o.karlsson at gmail.com Sat Feb 19 12:46:52 2011 From: mats.o.karlsson at gmail.com (Mats Karlsson) Date: Sat, 19 Feb 2011 13:46:52 +0100 Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: <4D5F3476.3080407@puzzled.xs4all.nl> References: <367484.35473.qm@web32503.mail.mud.yahoo.com> <4D5F3476.3080407@puzzled.xs4all.nl> Message-ID: On Sat, Feb 19, 2011 at 04:09, Patrick Lists wrote: > You could test for the number of interfaces. Since I'm a total n00b in this > area hopefully the experienced folks who monitor this list will have a good > laugh at my "scripting" and come up with something better that actually > works :) > > Here's how I would try to solve it. Totally untested, use at own risk. Mind > the linewrap. It's all one line. My box has lo, br0, eth0 and virbr0 so the > script should give a total of 4 interfaces. > > $ ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN > {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; > print "Number of interfaces: " no_of_interfaces}' > > Number of interfaces: 4 (correct so apparently this works) > > You could add this to the %pre section in your kickstart file: > > %pre > NO_OF_INTERFACES=`ifconfig -a | grep -vE > 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN {no_of_interfaces=0} > /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; print > no_of_interfaces}'` > echo "INTERFACE_COUNT=$NO_OF_INTERFACES" > /tmp/interface_count.txt > > Then in the %post section test if the value is greater than or equal to 2 in > which case you configure both interfaces. Or else configure one interface: > > %post > # first get the nr of interfaces from the interface_count.txt file > # afaik usually at the top of %post > source /tmp/interface_count.txt > > # test the value. not sure if I need to quote INTERFACES and 2 > if [ "\$INTERFACE_COUNT" -ge "2" ]; then > ?# configure 2 nics > ?network --device eth0 --bootproto dhcp > ?network --device eth1 --onboot no --bootproto dhcp > else > ?# configure 1 nic > ?network --device eth0 --bootproto dhcp > fi > > Since I don't know awk I got the syntax from the excellent n00b-friendly awk > tutorial at > http://bashshell.net/stream-filtering-utilities/exercise-1-learning-awk-basics/ > > Hope this helps. > > Regards, > Patrick Nice Idea Patrick, It just a but, it will include WLAN, Local loopback as well and not only ethX interfaces. So just change the grep to: ifconfig -a | grep -E 'eth' | awk 'BEGIN {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; print "Number of interfaces: " no_of_interfaces}' will just count the eth interfaces. Kind regards Mats From lpaseen at gmail.com Sun Feb 20 02:57:44 2011 From: lpaseen at gmail.com (peter Sjoberg) Date: Sat, 19 Feb 2011 21:57:44 -0500 Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: <4D5F3476.3080407@puzzled.xs4all.nl> References: <367484.35473.qm@web32503.mail.mud.yahoo.com> <4D5F3476.3080407@puzzled.xs4all.nl> Message-ID: <1298170664.13522.7.camel@defiant1.localdomain> On Sat, 2011-02-19 at 04:09 +0100, Patrick Lists wrote: > On 02/19/2011 02:37 AM, Pat wrote: > > My kickstart file is usually used on systems with 1 or 2 network interfaces installed. If my kickstart file has the following lines: > > > > network --device eth0 --bootproto dhcp > > network --device eth1 --onboot no --bootproto dhcp > > > > > > It will fail if I use it on a system with only 1 network interface since eth1 doesn't exist. > > > >> From a kicksstart file how do I detect the number of network interfaces installed on the system and then only assign eth1 as above if that number is 2 or more? If it matters, it's possible the network interfaces are not plugged into the network when the kickstart is run. Thanks. > > You could test for the number of interfaces. Since I'm a total n00b in > this area hopefully the experienced folks who monitor this list will > have a good laugh at my "scripting" and come up with something better > that actually works :) Well, dunno about works but a simpler version at least Task: if eth1 exist - configure it Solution: #Top part: #Always config eth0 network --device eth0 --bootproto dhcp %include /tmp/optionalnetwork.inc %pre #make sure the file is there to not cause any errors touch /tmp/optionalnetwork.inc /sbin/ifconfig eth1 &>/dev/null && \ echo "network --device eth1 --onboot no --bootproto dhcp"\ >/tmp/optionalnetwork.inc Or if ksbootenv ifconfig is different and doesn't fail if not found ifconfig -a|grep ^eth1 &>/dev/null && \ echo "network --device eth1 --onboot no --bootproto dhcp"\ >/tmp/optionalnetwork.inc No need to do some fancy interface count, if it is eth1 you want to configure, just check if it's there or not. One issue is if eth1 use a different driver then eth0 and that one isn't loaded, then you must first modprobe the driver before checking if the interface is there. > Here's how I would try to solve it. Totally untested, use at own risk. I second that for my code > Mind the linewrap. It's all one line. My box has lo, br0, eth0 and > virbr0 so the script should give a total of 4 interfaces. > > $ ifconfig -a | grep -vE 'inet|UP|RX|TX|collisions|Interrupt' | awk > 'BEGIN {no_of_interfaces=0} /^[a-z]/ {print $1}' | awk 'END > {no_of_interfaces=NR; print "Number of interfaces: " no_of_interfaces}' > > Number of interfaces: 4 (correct so apparently this works) > > You could add this to the %pre section in your kickstart file: > > %pre > NO_OF_INTERFACES=`ifconfig -a | grep -vE > 'inet|UP|RX|TX|collisions|Interrupt' | awk 'BEGIN {no_of_interfaces=0} > /^[a-z]/ {print $1}' | awk 'END {no_of_interfaces=NR; print > no_of_interfaces}'` > echo "INTERFACE_COUNT=$NO_OF_INTERFACES" > /tmp/interface_count.txt > > Then in the %post section test if the value is greater than or equal to > 2 in which case you configure both interfaces. Or else configure one > interface: > > %post > # first get the nr of interfaces from the interface_count.txt file > # afaik usually at the top of %post > source /tmp/interface_count.txt > > # test the value. not sure if I need to quote INTERFACES and 2 > if [ "\$INTERFACE_COUNT" -ge "2" ]; then > # configure 2 nics > network --device eth0 --bootproto dhcp > network --device eth1 --onboot no --bootproto dhcp > else > # configure 1 nic > network --device eth0 --bootproto dhcp > fi > > Since I don't know awk I got the syntax from the excellent n00b-friendly > awk tutorial at > http://bashshell.net/stream-filtering-utilities/exercise-1-learning-awk-basics/ > > Hope this helps. > > Regards, > Patrick > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From patchu1 at yahoo.com Wed Feb 23 02:03:11 2011 From: patchu1 at yahoo.com (Pat) Date: Tue, 22 Feb 2011 18:03:11 -0800 (PST) Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: Message-ID: <343730.44280.qm@web32507.mail.mud.yahoo.com> On Feb 19, 2011, at 6:57 PM, peter Sjoberg wrote: > Well, dunno about works but a simpler version at least > Task: if eth1 exist - configure it > Solution: > > #Top part: > #Always config eth0 > network --device eth0 --bootproto dhcp > %include /tmp/optionalnetwork.inc > > %pre > #make sure the file is there to not cause any errors > touch /tmp/optionalnetwork.inc > > /sbin/ifconfig eth1 &>/dev/null && \ > echo "network --device eth1 --onboot no --bootproto dhcp"\ >> /tmp/optionalnetwork.inc > > Or if ksbootenv ifconfig is different and doesn't fail if not found > > ifconfig -a|grep ^eth1 &>/dev/null && \ > echo "network --device eth1 --onboot no --bootproto dhcp"\ >> /tmp/optionalnetwork.inc Thanks for all the replies and apologies for the non-threaded reply as I had subscribed to the digest version. I went with the solution above from Peter since it was simple and addressed my main need. I had to make one small correction, /sbin/ifconfig did not exist in the kickstart boot environment, it was actually at /usr/bin/ifconfig. So I removed the /sbin/ from the call to ifconfig after which it worked fine. Cheers, Pat From mats.o.karlsson at gmail.com Wed Feb 23 06:29:50 2011 From: mats.o.karlsson at gmail.com (Mats Karlsson) Date: Wed, 23 Feb 2011 07:29:50 +0100 Subject: How to detect the number of network adapters installed from kickstart file for network config? In-Reply-To: <343730.44280.qm@web32507.mail.mud.yahoo.com> References: <343730.44280.qm@web32507.mail.mud.yahoo.com> Message-ID: On Wed, Feb 23, 2011 at 03:03, Pat wrote: > On Feb 19, 2011, at 6:57 PM, peter Sjoberg wrote: >> Well, dunno about works but a simpler version at least >> Task: if eth1 exist - configure it >> Solution: >> >> #Top part: >> #Always config eth0 >> network --device eth0 --bootproto dhcp >> %include /tmp/optionalnetwork.inc >> >> %pre >> #make sure the file is there to not cause any errors >> touch /tmp/optionalnetwork.inc >> >> /sbin/ifconfig eth1 &>/dev/null && \ >> ?echo "network --device eth1 --onboot no --bootproto dhcp"\ >>> /tmp/optionalnetwork.inc >> >> Or if ksbootenv ifconfig is different and doesn't fail if not found >> >> ifconfig -a|grep ^eth1 &>/dev/null && \ >> ?echo "network --device eth1 --onboot no --bootproto dhcp"\ >>> /tmp/optionalnetwork.inc > > > Thanks for all the replies and apologies for the non-threaded reply as I had subscribed to the digest version. I went with the solution above from Peter since it was simple and addressed my main need. I had to make one small correction, /sbin/ifconfig did not exist in the kickstart boot environment, it was actually at /usr/bin/ifconfig. So I removed the /sbin/ from the call to ifconfig after which it worked fine. > > Cheers, > Pat Nice with feedback. And I think that Pete's solution was KISS and I love that design regime. /Mats /Mats From peter.allen.5000 at gmail.com Thu Feb 24 18:00:18 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 10:00:18 -0800 Subject: boot cd-rom network install on system with no display using vnc Message-ID: Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjk at techma.com Thu Feb 24 18:34:20 2011 From: cjk at techma.com (Kovacs, Corey J.) Date: Thu, 24 Feb 2011 18:34:20 +0000 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: Message-ID: So, if you mean the machine you are trying to kickstart is headless and you are booting it from a cd/dvd and trying to use a kickstart file on some server somwhere, then yes...I think so... Boot the node from the cd/dvd and keep pressing the esc key to keep it from going past the menu..... When you think you are there, type in the boot command... should be something like this... linux vnc ks=http://myserver/ks.cfg if you are careful, it should just work. Is there some reason you can't stick a monitor on it? -C ________________________________ From: kickstart-list-bounces at redhat.com [kickstart-list-bounces at redhat.com] on behalf of Peter Allen [peter.allen.5000 at gmail.com] Sent: Thursday, February 24, 2011 1:00 PM To: kickstart-list at redhat.com Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Thu Feb 24 19:23:34 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 11:23:34 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: Message-ID: Thanks for the reply. I can connect a console but I am just curious. It is intuitive that if a system can boot from and start on its own from the hard disk or from a live cd then there would be some option to place directives on a network install boot cd-rom that would tell the system how to connect to the network and where to find the install files, and to find the kickstart file on said boot cd If this is not possible, at least it would be nice if I could somehow remotely enter commands after the machine boots from the cd, like via telnet, putty, or VNC I guess my goal is simply to somehow install without a keyboard or monitor connected to the machine using only one cd-rom and Internet access via dhcp. It seems like there may be options in isolinux.cfg for this?? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Kovacs, Corey J. Sent: Thursday, February 24, 2011 10:34 AM To: Discussion list about Kickstart Subject: RE: boot cd-rom network install on system with no display using vnc So, if you mean the machine you are trying to kickstart is headless and you are booting it from a cd/dvd and trying to use a kickstart file on some server somwhere, then yes...I think so... Boot the node from the cd/dvd and keep pressing the esc key to keep it from going past the menu..... When you think you are there, type in the boot command... should be something like this... linux vnc ks=http://myserver/ks.cfg if you are careful, it should just work. Is there some reason you can't stick a monitor on it? -C _____ From: kickstart-list-bounces at redhat.com [kickstart-list-bounces at redhat.com] on behalf of Peter Allen [peter.allen.5000 at gmail.com] Sent: Thursday, February 24, 2011 1:00 PM To: kickstart-list at redhat.com Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbrown at divms.uiowa.edu Thu Feb 24 19:31:36 2011 From: hbrown at divms.uiowa.edu (Hugh Brown) Date: Thu, 24 Feb 2011 13:31:36 -0600 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: Message-ID: <4D66B218.1070204@divms.uiowa.edu> On 02/24/2011 01:23 PM, Peter Allen wrote: > Thanks for the reply. I can connect a console but I am just curious. It is > intuitive that if a system can boot from and start on its own from the hard > disk or from a live cd then there would be some option to place directives > on a network install boot cd-rom that would tell the system how to connect > to the network and where to find the install files, and to find the > kickstart file on said boot cd > > > > If this is not possible, at least it would be nice if I could somehow > remotely enter commands after the machine boots from the cd, like via > telnet, putty, or VNC > > > > I guess my goal is simply to somehow install without a keyboard or monitor > connected to the machine using only one cd-rom and Internet access via dhcp. > > > > It seems like there may be options in isolinux.cfg for this?? > > > > Peter > With dhcp, a system that supports PXE and a tftp server, you can do a PXE boot in a fully automated way that doesn't require any interaction whatsoever. We do most of our client system loads this way. When it's time to reload, we zero the mbr of the disk and reboot. The BIOS is set to boot from disk and then from LAN. Hugh From jamesaharrisonuk at yahoo.co.uk Thu Feb 24 19:51:30 2011 From: jamesaharrisonuk at yahoo.co.uk (James Harrison) Date: Thu, 24 Feb 2011 19:51:30 +0000 (GMT) Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: Message-ID: <616209.32031.qm@web29505.mail.ird.yahoo.com> Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James ________________________________ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Thu Feb 24 22:07:43 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 14:07:43 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <616209.32031.qm@web29505.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> Message-ID: <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> What if the OS destination machine has no keyboard or monitor?? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James _____ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Thu Feb 24 22:06:35 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 14:06:35 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <4D66B218.1070204@divms.uiowa.edu> References: <4D66B218.1070204@divms.uiowa.edu> Message-ID: <2B8EDD7DF9754120AFB8EF1EC3D07394@LuckyCharms> Thanks. I know about the pxe boot option, but what I intend to accomplish is to install onto a blank hard disk from a bootable cd-rom with no keyboard or display attached to subject machine. Peter -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Hugh Brown Sent: Thursday, February 24, 2011 11:32 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc On 02/24/2011 01:23 PM, Peter Allen wrote: > Thanks for the reply. I can connect a console but I am just curious. It is > intuitive that if a system can boot from and start on its own from the hard > disk or from a live cd then there would be some option to place directives > on a network install boot cd-rom that would tell the system how to connect > to the network and where to find the install files, and to find the > kickstart file on said boot cd > > > > If this is not possible, at least it would be nice if I could somehow > remotely enter commands after the machine boots from the cd, like via > telnet, putty, or VNC > > > > I guess my goal is simply to somehow install without a keyboard or monitor > connected to the machine using only one cd-rom and Internet access via dhcp. > > > > It seems like there may be options in isolinux.cfg for this?? > > > > Peter > With dhcp, a system that supports PXE and a tftp server, you can do a PXE boot in a fully automated way that doesn't require any interaction whatsoever. We do most of our client system loads this way. When it's time to reload, we zero the mbr of the disk and reboot. The BIOS is set to boot from disk and then from LAN. Hugh _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From jamesaharrisonuk at yahoo.co.uk Thu Feb 24 22:24:43 2011 From: jamesaharrisonuk at yahoo.co.uk (James Harrison) Date: Thu, 24 Feb 2011 22:24:43 +0000 (GMT) Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> Message-ID: <766328.94715.qm@web29518.mail.ird.yahoo.com> You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James ________________________________ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James ________________________________ From:Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjk at techma.com Thu Feb 24 22:37:48 2011 From: cjk at techma.com (Kovacs, Corey J.) Date: Thu, 24 Feb 2011 22:37:48 +0000 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> References: <616209.32031.qm@web29505.mail.ird.yahoo.com>, <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> Message-ID: Peter, some machines have management ports which will allow you to get a console. HP, Dell and others have such ports. If you are lucky enough to have something like that, then you are in luck. Beyond that, your going to need at least a keyboard. Starting to wonder if you actually own this target :) -C ________________________________ From: kickstart-list-bounces at redhat.com [kickstart-list-bounces at redhat.com] on behalf of Peter Allen [peter.allen.5000 at gmail.com] Sent: Thursday, February 24, 2011 5:07 PM To: 'Discussion list about Kickstart' Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter ________________________________ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James ________________________________ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Thu Feb 24 22:43:41 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 14:43:41 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <766328.94715.qm@web29518.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> Message-ID: <7212815851074382A9E37A438303D58F@LuckyCharms> Ok, I will try this and report back with results :-) Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James _____ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamesaharrisonuk at yahoo.co.uk Thu Feb 24 23:18:32 2011 From: jamesaharrisonuk at yahoo.co.uk (James Harrison) Date: Thu, 24 Feb 2011 23:18:32 +0000 (GMT) Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <7212815851074382A9E37A438303D58F@LuckyCharms> References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> Message-ID: <227723.45929.qm@web29513.mail.ird.yahoo.com> Take boot.iso from the images directory in the RHEL DVD and mount it: mount -o loop boot.iso /mnt make a directory and copy all files from /mnt to this dir. mkdir /root/iso cd /mnt cp -pr * /root/iso cd / umount /mnt Look in /root/iso/isolinux Probably want an isolinux.cfg file like this: default linux prompt 0 timeout 0 label linux kernel vmlinuz append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 fill in the details. Dont forget to make an NFS server. To make the iso file use something like: mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin -no-emul-boot -c boot.cat /root/iso/isolinux Use this file to boot from an RSA adapter or burn a cd. Hope this helps ________________________________ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:43:41 PM Subject: RE: boot cd-rom network install on system with no display using vnc Ok, I will try this and report back with results J Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James ________________________________ From:Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James ________________________________ From:Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Fri Feb 25 00:01:19 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 16:01:19 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <227723.45929.qm@web29513.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms><766328.94715.qm@web29518.mail.ird.yahoo.com><7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> Message-ID: Thanks James: Two questions: 1. I am creating boot disk on windows machine, which means I will be editing isolinux.cfg file in windows. When I open it in notepad I notice that there are no line returns. Will this be a problem? 2. I now plan to install from http without Kickstart. So I should just remove "img ksdevice={DEV} linux" I suppose. Also, I can specify DHCP for networking, right? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 3:19 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Take boot.iso from the images directory in the RHEL DVD and mount it: mount -o loop boot.iso /mnt make a directory and copy all files from /mnt to this dir. mkdir /root/iso cd /mnt cp -pr * /root/iso cd / umount /mnt Look in /root/iso/isolinux Probably want an isolinux.cfg file like this: default linux prompt 0 timeout 0 label linux kernel vmlinuz append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 fill in the details. Dont forget to make an NFS server. To make the iso file use something like: mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin -no-emul-boot -c boot.cat /root/iso/isolinux Use this file to boot from an RSA adapter or burn a cd. Hope this helps _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:43:41 PM Subject: RE: boot cd-rom network install on system with no display using vnc Ok, I will try this and report back with results :-) Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James _____ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamesaharrisonuk at yahoo.co.uk Fri Feb 25 01:25:29 2011 From: jamesaharrisonuk at yahoo.co.uk (James Harrison) Date: Fri, 25 Feb 2011 01:25:29 +0000 (GMT) Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms><766328.94715.qm@web29518.mail.ird.yahoo.com><7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> Message-ID: <764278.44754.qm@web29520.mail.ird.yahoo.com> 1. I use a program called TextPad. It deals with the line returns. 2. sorry my mistake. It should be: append initrd=initrd.img ksdevice={DEV,eg:eth0} ip=dhcp ...... this should boot with dhcp. ________________________________ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 7:01:19 PM Subject: RE: boot cd-rom network install on system with no display using vnc Thanks James: Two questions: 1. I am creating boot disk on windows machine, which means I will be editing isolinux.cfg file in windows. When I open it in notepad I notice that there are no line returns. Will this be a problem? 2. I now plan to install from http without Kickstart. So I should just remove ?img ksdevice={DEV} linux? I suppose. Also, I can specify DHCP for networking, right? Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 3:19 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Take boot.iso from the images directory in the RHEL DVD and mount it: mount -o loop boot.iso /mnt make a directory and copy all files from /mnt to this dir. mkdir /root/iso cd /mnt cp -pr * /root/iso cd / umount /mnt Look in /root/iso/isolinux Probably want an isolinux.cfg file like this: default linux prompt 0 timeout 0 label linux kernel vmlinuz append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 fill in the details. Dont forget to make an NFS server. To make the iso file use something like: mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin -no-emul-boot -c boot.cat /root/iso/isolinux Use this file to boot from an RSA adapter or burn a cd. Hope this helps ________________________________ From:Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:43:41 PM Subject: RE: boot cd-rom network install on system with no display using vnc Ok, I will try this and report back with results J Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James ________________________________ From:Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James ________________________________ From:Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Fri Feb 25 02:51:11 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Thu, 24 Feb 2011 18:51:11 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <764278.44754.qm@web29520.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms><766328.94715.qm@web29518.mail.ird.yahoo.com><7212815851074382A9E37A438303D58F@LuckyCharms><227723.45929.qm@web29513.mail.ird.yahoo.com> <764278.44754.qm@web29520.mail.ird.yahoo.com> Message-ID: <1DB752BD0B154306BC069E24D4397E04@LuckyCharms> Thanks. Do I need to use Kickstart? Is Kickstart necessary to open the VNC server session? I cannot place the Kickstart file on the CD, right? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 5:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc 1. I use a program called TextPad. It deals with the line returns. 2. sorry my mistake. It should be: append initrd=initrd.img ksdevice={DEV,eg:eth0} ip=dhcp ...... this should boot with dhcp. _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 7:01:19 PM Subject: RE: boot cd-rom network install on system with no display using vnc Thanks James: Two questions: 1. I am creating boot disk on windows machine, which means I will be editing isolinux.cfg file in windows. When I open it in notepad I notice that there are no line returns. Will this be a problem? 2. I now plan to install from http without Kickstart. So I should just remove "img ksdevice={DEV} linux" I suppose. Also, I can specify DHCP for networking, right? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 3:19 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Take boot.iso from the images directory in the RHEL DVD and mount it: mount -o loop boot.iso /mnt make a directory and copy all files from /mnt to this dir. mkdir /root/iso cd /mnt cp -pr * /root/iso cd / umount /mnt Look in /root/iso/isolinux Probably want an isolinux.cfg file like this: default linux prompt 0 timeout 0 label linux kernel vmlinuz append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 fill in the details. Dont forget to make an NFS server. To make the iso file use something like: mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin -no-emul-boot -c boot.cat /root/iso/isolinux Use this file to boot from an RSA adapter or burn a cd. Hope this helps _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:43:41 PM Subject: RE: boot cd-rom network install on system with no display using vnc Ok, I will try this and report back with results :-) Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter _____ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James _____ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From ohadlevy at gmail.com Fri Feb 25 13:16:43 2011 From: ohadlevy at gmail.com (Ohad Levy) Date: Fri, 25 Feb 2011 15:16:43 +0200 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <1DB752BD0B154306BC069E24D4397E04@LuckyCharms> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> <764278.44754.qm@web29520.mail.ird.yahoo.com> <1DB752BD0B154306BC069E24D4397E04@LuckyCharms> Message-ID: <1298639803.4461.5.camel@super.tlv.redhat.com> On Thu, 2011-02-24 at 18:51 -0800, Peter Allen wrote: > Thanks. Do I need to use Kickstart? Is Kickstart necessary to open > the VNC server session? > you don't need a kickstart for that. > > > I cannot place the Kickstart file on the CD, right? afaik, you can, but i never really tried it. btw: why not use pxe? is it because you can't manage dhcp/dns? if thats the case, another alternative is to put gpxe on a usb/cdrom, and let it fetch the kernel, initrd etc over the network. this way, you dont need to create a cdrom each time you want to change something. but really, if you do that more than once, consider provisioning using a tool, like cobbler or foreman. Ohad From cpolish at surewest.net Fri Feb 25 14:39:11 2011 From: cpolish at surewest.net (Charles Polisher) Date: Fri, 25 Feb 2011 06:39:11 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <1298639803.4461.5.camel@super.tlv.redhat.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> <764278.44754.qm@web29520.mail.ird.yahoo.com> <1DB752BD0B154306BC069E24D4397E04@LuckyCharms> <1298639803.4461.5.camel@super.tlv.redhat.com> Message-ID: <20110225143911.GS8963@kevin> > On Thu, 2011-02-24 at 18:51 -0800, Peter Allen wrote: > > Thanks. Do I need to use Kickstart? Is Kickstart necessary to open > > the VNC server session? > > > you don't need a kickstart for that. > > > > > > I cannot place the Kickstart file on the CD, right? > afaik, you can, but i never really tried it. > > btw: why not use pxe? is it because you can't manage dhcp/dns? if thats > the case, another alternative is to put gpxe on a usb/cdrom, and let it > fetch the kernel, initrd etc over the network. > > this way, you dont need to create a cdrom each time you want to change > something. > > but really, if you do that more than once, consider provisioning using a > tool, like cobbler or foreman. Here's what I use to do what the OP wants to do. I edited the script to remove some code that steps outside their stated requirements, so this is an untested script, but has a good likelihood of working. Also note that the while the target system is CentOS5, the generating system was not, so some tweaks to the top set of definitions may be needed for your system. Hope that helps, -- Charles Polisher #!/bin/bash # Author: Charles Polisher # Starting with a downloaded CentOS 5.5 image, # build and burn a custom .iso with a kickstart script # uncomment the following line to debug # set -x export PROJECTROOT=~chas/PROJECTS/foo export KICKSTART=$PROJECTROOT/ks.template export ISOIMAGE=/tmp/CentOS-5.5-i386-PUT-YOUR-IMAGE-NAME-HERE.iso export MOUNTPOINTDIR=/mnt/iso export TEMPFILESYS=`mktemp -d -t isofilesys_XXXXXX` export OUTPUT_ISO=$PROJECTROOT/CentOS-5.5-i386-foo.iso export SYSLINUXBIN=/usr/lib/syslinux/isolinux.bin export BURNPROG=/usr/X11R6/bin/cdrecord function cleanup () { echo "Cleaning up temporary files." if [ "X$TEMPFILESYS" != X ] ; then rm -rf $TEMPFILESYS fi } trap cleanup 0 SIGHUP SIGKILL SIGTERM if [ ! -f $ISOIMAGE ] then echo "Missing the source .iso image file - aborting." exit 1 fi if [ ! -x /usr/bin/checkisomd5 ] then echo "checkisomd5 not installed - aborting." exit 1 fi if [ ! -x /usr/bin/implantisomd5 ] then echo "implantisomd5 not installed - aborting." exit 1 fi if [ ! -r $ISOIMAGE ] then echo "Stock .iso image not found or not readable - aborting." exit 1 fi if [ ! -r $SYSLINUXBIN ] then echo "Boot loader isolinux.bin not found or not readable - aborting." exit 1 fi if [ ${EUID} != '0' ] then echo "Must run as root - aborting." exit 1 fi if [ ! -d $MOUNTPOINTDIR ] then mkdir $MOUNTPOINTDIR || exit 1 fi if [ ! -r $KICKSTART ] then echo "Can't find the kickstart file - aborting." exit 1 fi # Mount the original .iso image onto a loopback device losetup /dev/loop0 $ISOIMAGE || exit 1 mount -t iso9660 /dev/loop0 $MOUNTPOINTDIR || exit 1 # Unpack the original (read-only) iso9660 filesystem into a directory cd $MOUNTPOINTDIR tar cf - ./* | (cd $TEMPFILESYS ; tar xf -) # Copy the kickstart file into the writeable copy of the .iso filesystem cp $KICKSTART $TEMPFILESYS/isolinux/ks.cfg cp $KICKSTART $TEMPFILESYS/ks.cfg # copy a syslinux bootable binary into the writeable copy cp $SYSLINUXBIN $TEMPFILESYS/isolinux.bin cp $SYSLINUXBIN $TEMPFILESYS/isolinux/isolinux.bin chmod 555 $TEMPFILESYS/isolinux.bin chmod 555 $TEMPFILESYS/isolinux/isolinux.bin # copy a modified isolinux configuration file into the writeable copy # (it's basically a grub.conf file) cat > $TEMPFILESYS/isolinux/isolinux.cfg << EOF1 default ks prompt 1 timeout 600 display boot.msg F1 boot.msg F2 options.msg F3 general.msg F4 param.msg F5 rescue.msg label linux kernel vmlinuz append initrd=initrd.img noapic label text kernel vmlinuz append initrd=initrd.img text noapic label ks kernel vmlinuz append ks=cdrom:ks.cfg initrd=initrd.img noapic label local localboot 1 label memtest86 kernel memtest append - EOF1 # Create a new "el-torito" style .iso filesystem from the writeable copy # cf. http://syslinux.zytor.com/wiki/index.php/ISOLINUX#How_Can_I_Make_a_Bootable_CD_With_ISOLINUX.3F pushd $TEMPFILESYS # Isolinux will not overwrite an existing boot.cat, so remove it first rm -f isolinux/boot.cat mkisofs -o $OUTPUT_ISO \ -b isolinux.bin \ -c boot.cat \ -no-emul-boot \ -boot-load-size 4 \ -boot-info-table -r -J \ -T . # Reach into the built .iso image and update the md5sum /usr/bin/implantisomd5 --force --supported-iso $OUTPUT_ISO # Burn the new .iso file to a blank cd-rom read -p "Insert blank cd-rom then press enter: " i $BURNPROG -v gracetime=4 \ dev=/dev/sr0 \ speed=1 \ -dao \ driveropts=burnfree \ -eject \ -data \ -tsize=4862s \ $OUTPUT_ISO popd From gwaugh at frontstreetnetworks.com Fri Feb 25 16:52:51 2011 From: gwaugh at frontstreetnetworks.com (Gerald Waugh) Date: Fri, 25 Feb 2011 10:52:51 -0600 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <227723.45929.qm@web29513.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> Message-ID: <1298652771.31902.146.camel@ns1.gg-w.net> /root/isolinux/isolinux.cfg file like this: default linux prompt 0 timeout 0 The parts above allow the system to start automatically with no operator intervention Downside is, if anyone inadvertently puts this CD in a system and reboots, or the system itself reboots, it will install! On Thu, 2011-02-24 at 23:18 +0000, James Harrison wrote: > Take boot.iso from the images directory in the RHEL DVD and mount it: > mount -o loop boot.iso /mnt > > make a directory and copy all files from /mnt to this dir. > mkdir /root/iso > cd /mnt > cp -pr * /root/iso > cd / > umount /mnt > > Look in /root/iso/isolinux > > Probably want an isolinux.cfg file like this: > > default linux > prompt 0 > timeout 0 > > label linux > kernel vmlinuz > append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx > netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc > vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH > TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 > > fill in the details. Dont forget to make an NFS server. > > To make the iso file use something like: > mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin > -no-emul-boot -c boot.cat /root/iso/isolinux > > > Use this file to boot from an RSA adapter or burn a cd. > > Hope this helps > > > > ______________________________________________________________________ > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:43:41 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > > Ok, I will try this and report back with results J > > > > Peter > > > > ______________________________________________________________________ > > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 2:25 PM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > > > You have to make your own boot cd and insert the information I > provided into the isolinux.cfg. > > James > > > > > > > ______________________________________________________________________ > > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:07:43 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > > What if the OS destination machine has no keyboard or monitor?? > > > > Peter > > > > > > ______________________________________________________________________ > > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 11:52 AM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > > > > Hi, > Start by running a vncviewer in listen mode (I use realvnc: vncviewer > --listen from a command line ). Boot the machine to install linux with > the cd-rom and you type: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > method=cdrom keymap=us lang=en_US.UTF-8 > > You need to specify IP, method, keymap and lang information otherwise > it will ask you for this before vnc is running. > > the ip address is the address you want to give to the machine your > installing linux on. Can also be ip=dhcp > vncconnect is the IP address you ran the vncviewer on > vncpassword is the password. Not sure if it should be encrypted or mot > method=cdrom specify your install media > > By booting from a cd-rom you unfortunately have to perform a media > check. This requires output to a screen and a few key presses and I > don't know if this can be disabled. The way I got round this was to > use an NFS server, so the boot line is: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > \ > method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS > SERVER} keymap=us lang=en_US.UTF-8 > > eg, > method=nfs:10.2.34.123:/export/RHEL5.4/i386 > > /export/RHEL5.4/i386 is the path on the NFS server to the DVD > distribution on disk. You have to copy the contents of the DVD to > disk. > > Heres a useful web page: > http://www.redhat.com/magazine/024oct06/features/kickstart/ > > Hope this is of some help. > > James > > > > ______________________________________________________________________ > > From: Peter Allen > To: kickstart-list at redhat.com > Sent: Thu, February 24, 2011 1:00:18 PM > Subject: boot cd-rom network install on system with no display using > vnc > > > Does anyone know how to do this? > > > > Thanks > > > > Peter > > > > > > > > > > > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Gerald Waugh Front Street Networks http://www.frontstreetnetworks.com +1 318-670-8312 cell 318-401-0428 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwaugh at frontstreetnetworks.com Fri Feb 25 17:15:38 2011 From: gwaugh at frontstreetnetworks.com (Gerald Waugh) Date: Fri, 25 Feb 2011 11:15:38 -0600 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> Message-ID: <1298654138.31902.147.camel@ns1.gg-w.net> Use wordpad On Thu, 2011-02-24 at 16:01 -0800, Peter Allen wrote: > Thanks James: > > > > Two questions: > > > > 1. I am creating boot disk on windows machine, which means I will > be editing isolinux.cfg file in windows. When I open it in > notepad I notice that there are no line returns. Will this be > a problem? > 2. I now plan to install from http without Kickstart. So I > should just remove ?img ksdevice={DEV} linux? I suppose. > Also, I can specify DHCP for networking, right? > > > > Peter > > > > > ______________________________________________________________________ > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 3:19 PM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > Take boot.iso from the images directory in the RHEL DVD and mount it: > mount -o loop boot.iso /mnt > > make a directory and copy all files from /mnt to this dir. > mkdir /root/iso > cd /mnt > cp -pr * /root/iso > cd / > umount /mnt > > Look in /root/iso/isolinux > > Probably want an isolinux.cfg file like this: > > default linux > prompt 0 > timeout 0 > > label linux > kernel vmlinuz > append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx > netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc > vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH > TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 > > fill in the details. Dont forget to make an NFS server. > > To make the iso file use something like: > mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin > -no-emul-boot -c boot.cat /root/iso/isolinux > > > > Use this file to boot from an RSA adapter or burn a cd. > > Hope this helps > > > ______________________________________________________________________ > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:43:41 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > Ok, I will try this and report back with results J > > > > Peter > > > ______________________________________________________________________ > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 2:25 PM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > You have to make your own boot cd and insert the information I > provided into the isolinux.cfg. > > James > > > > > > ______________________________________________________________________ > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:07:43 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > What if the OS destination machine has no keyboard or monitor?? > > > > Peter > > > > > ______________________________________________________________________ > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 11:52 AM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > > Hi, > Start by running a vncviewer in listen mode (I use realvnc: vncviewer > --listen from a command line ). Boot the machine to install linux with > the cd-rom and you type: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > method=cdrom keymap=us lang=en_US.UTF-8 > > You need to specify IP, method, keymap and lang information otherwise > it will ask you for this before vnc is running. > > the ip address is the address you want to give to the machine your > installing linux on. Can also be ip=dhcp > vncconnect is the IP address you ran the vncviewer on > vncpassword is the password. Not sure if it should be encrypted or mot > method=cdrom specify your install media > > By booting from a cd-rom you unfortunately have to perform a media > check. This requires output to a screen and a few key presses and I > don't know if this can be disabled. The way I got round this was to > use an NFS server, so the boot line is: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > \ > method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS > SERVER} keymap=us lang=en_US.UTF-8 > > eg, > method=nfs:10.2.34.123:/export/RHEL5.4/i386 > > /export/RHEL5.4/i386 is the path on the NFS server to the DVD > distribution on disk. You have to copy the contents of the DVD to > disk. > > Heres a useful web page: > http://www.redhat.com/magazine/024oct06/features/kickstart/ > > Hope this is of some help. > > James > > > ______________________________________________________________________ > From: Peter Allen > To: kickstart-list at redhat.com > Sent: Thu, February 24, 2011 1:00:18 PM > Subject: boot cd-rom network install on system with no display using > vnc > > Does anyone know how to do this? > > > > Thanks > > > > Peter > > > > > > > > > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Gerald Waugh Front Street Networks http://www.frontstreetnetworks.com +1 318-670-8312 cell 318-401-0428 From Jim.Cole at mckesson.com Fri Feb 25 17:31:21 2011 From: Jim.Cole at mckesson.com (Cole, Jim) Date: Fri, 25 Feb 2011 12:31:21 -0500 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: Produced By Microsoft Exchange V6.5 References: Produced By Microsoft Exchange V6.5 Message-ID: <815F317B2BC9C84C920132D40978647E109D25A4@NDHV3000.na.corp.mckesson.com> Notepad++ is highly recommended on Windows. -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Gerald Waugh Sent: Friday, February 25, 2011 11:16 AM To: Discussion list about Kickstart Subject: RE: boot cd-rom network install on system with no display using vnc Use wordpad On Thu, 2011-02-24 at 16:01 -0800, Peter Allen wrote: > Thanks James: > > > > Two questions: > > > > 1. I am creating boot disk on windows machine, which means I will > be editing isolinux.cfg file in windows. When I open it in > notepad I notice that there are no line returns. Will this be > a problem? > 2. I now plan to install from http without Kickstart. So I > should just remove ?img ksdevice={DEV} linux? I suppose. > Also, I can specify DHCP for networking, right? > > > > Peter > > > > > ______________________________________________________________________ > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 3:19 PM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > Take boot.iso from the images directory in the RHEL DVD and mount it: > mount -o loop boot.iso /mnt > > make a directory and copy all files from /mnt to this dir. > mkdir /root/iso > cd /mnt > cp -pr * /root/iso > cd / > umount /mnt > > Look in /root/iso/isolinux > > Probably want an isolinux.cfg file like this: > > default linux > prompt 0 > timeout 0 > > label linux > kernel vmlinuz > append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx > netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc > vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH > TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 > > fill in the details. Dont forget to make an NFS server. > > To make the iso file use something like: > mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin > -no-emul-boot -c boot.cat /root/iso/isolinux > > > > Use this file to boot from an RSA adapter or burn a cd. > > Hope this helps > > > ______________________________________________________________________ > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:43:41 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > Ok, I will try this and report back with results J > > > > Peter > > > ______________________________________________________________________ > From:kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 2:25 PM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > You have to make your own boot cd and insert the information I > provided into the isolinux.cfg. > > James > > > > > > ______________________________________________________________________ > From: Peter Allen > To: Discussion list about Kickstart > Sent: Thu, February 24, 2011 5:07:43 PM > Subject: RE: boot cd-rom network install on system with no display > using vnc > > What if the OS destination machine has no keyboard or monitor?? > > > > Peter > > > > > ______________________________________________________________________ > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison > Sent: Thursday, February 24, 2011 11:52 AM > To: Discussion list about Kickstart > Subject: Re: boot cd-rom network install on system with no display > using vnc > > > > > > Hi, > Start by running a vncviewer in listen mode (I use realvnc: vncviewer > --listen from a command line ). Boot the machine to install linux with > the cd-rom and you type: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > method=cdrom keymap=us lang=en_US.UTF-8 > > You need to specify IP, method, keymap and lang information otherwise > it will ask you for this before vnc is running. > > the ip address is the address you want to give to the machine your > installing linux on. Can also be ip=dhcp vncconnect is the IP address > you ran the vncviewer on vncpassword is the password. Not sure if it > should be encrypted or mot method=cdrom specify your install media > > By booting from a cd-rom you unfortunately have to perform a media > check. This requires output to a screen and a few key presses and I > don't know if this can be disabled. The way I got round this was to > use an NFS server, so the boot line is: > > linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx > gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef > \ > method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS > SERVER} keymap=us lang=en_US.UTF-8 > > eg, > method=nfs:10.2.34.123:/export/RHEL5.4/i386 > > /export/RHEL5.4/i386 is the path on the NFS server to the DVD > distribution on disk. You have to copy the contents of the DVD to > disk. > > Heres a useful web page: > http://www.redhat.com/magazine/024oct06/features/kickstart/ > > Hope this is of some help. > > James > > > ______________________________________________________________________ > From: Peter Allen > To: kickstart-list at redhat.com > Sent: Thu, February 24, 2011 1:00:18 PM > Subject: boot cd-rom network install on system with no display using > vnc > > Does anyone know how to do this? > > > > Thanks > > > > Peter > > > > > > > > > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Gerald Waugh Front Street Networks http://www.frontstreetnetworks.com +1 318-670-8312 cell 318-401-0428 _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From jamesaharrisonuk at yahoo.co.uk Fri Feb 25 17:51:56 2011 From: jamesaharrisonuk at yahoo.co.uk (James Harrison) Date: Fri, 25 Feb 2011 17:51:56 +0000 (GMT) Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <1298652771.31902.146.camel@ns1.gg-w.net> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> <1298652771.31902.146.camel@ns1.gg-w.net> Message-ID: <174699.40985.qm@web29513.mail.ird.yahoo.com> The reason for: prompt 0 timeout 0 is there is no keyboard or screen, so whats the point of having a prompt or delay. If the CD is accidentally used in a machine, it will boot into the red Hat installer, but since there is no kickstart file specified, the automatic install wouldn't happen. A label written on top of the CD explaining its purpose will stop accidental usage. James ________________________________ From: Gerald Waugh To: Discussion list about Kickstart Sent: Fri, February 25, 2011 11:52:51 AM Subject: Re: boot cd-rom network install on system with no display using vnc /root/isolinux/isolinux.cfg file like this: default linux prompt 0 timeout 0 The parts above allow the system to start automatically with no operator intervention Downside is, if anyone inadvertently puts this CD in a system and reboots, or the system itself reboots, it will install! On Thu, 2011-02-24 at 23:18 +0000, James Harrison wrote: Take boot.iso from the images directory in the RHEL DVD and mount it: >mount -o loop boot.iso /mnt > >make a directory and copy all files from /mnt to this dir. >mkdir /root/iso >cd /mnt >cp -pr * /root/iso >cd / >umount /mnt > >Look in /root/iso/isolinux > >Probably want an isolinux.cfg file like this: > >default linux >prompt 0 >timeout 0 > >label linux > kernel vmlinuz > append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx >netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc >vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO >LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 > >fill in the details. Dont forget to make an NFS server. > >To make the iso file use something like: >mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin >-no-emul-boot -c boot.cat /root/iso/isolinux > > >Use this file to boot from an RSA adapter or burn a cd. > >Hope this helps > > ________________________________ >From:Peter Allen >To:Discussion list about Kickstart >Sent:Thu, February 24, 2011 5:43:41 PM >Subject:RE: boot cd-rom network install on system with no display using vnc > > Ok, I will try this and report back with results J > > > >Peter > > ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison >Sent:Thursday, February 24, 2011 2:25 PM >To:Discussion list about Kickstart >Subject:Re: boot cd-rom network install on system with no display using vnc > > > > > You have to make your own boot cd and insert the information I provided into the isolinux.cfg. > >James > > > > > ________________________________ From:Peter Allen >To:Discussion list about Kickstart >Sent:Thu, February 24, 2011 5:07:43 PM >Subject:RE: boot cd-rom network install on system with no display using vnc > > What if the OS destination machine has no keyboard or monitor?? > > > >Peter > > > > ________________________________ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison >Sent:Thursday, February 24, 2011 11:52 AM >To:Discussion list about Kickstart >Subject:Re: boot cd-rom network install on system with no display using vnc > > > > > >Hi, >Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen >from a command line ). Boot the machine to install linux with the cd-rom and you >type: > >linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx >vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us >lang=en_US.UTF-8 > >You need to specify IP, method, keymap and lang information otherwise it will >ask you for this before vnc is running. > >the ip address is the address you want to give to the machine your installing >linux on. Can also be ip=dhcp >vncconnect is the IP address you ran the vncviewer on >vncpassword is the password. Not sure if it should be encrypted or mot >method=cdrom specify your install media > >By booting from a cd-rom you unfortunately have to perform a media check. This >requires output to a screen and a few key presses and I don't know if this can >be disabled. The way I got round this was to use an NFS server, so the boot line >is: > >linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx >vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ > > method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} >keymap=us lang=en_US.UTF-8 > >eg, >method=nfs:10.2.34.123:/export/RHEL5.4/i386 > >/export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on >disk. You have to copy the contents of the DVD to disk. > >Heres a useful web page: >http://www.redhat.com/magazine/024oct06/features/kickstart/ > >Hope this is of some help. > >James > > ________________________________ From:Peter Allen >To:kickstart-list at redhat.com >Sent:Thu, February 24, 2011 1:00:18 PM >Subject:boot cd-rom network install on system with no display using vnc > > Does anyone know how to do this? > > > >Thanks > > > >Peter > > > > > > > > > > >_______________________________________________ Kickstart-list mailing list >Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list > -- Gerald Waugh Front Street Networks http://www.frontstreetnetworks.com +1 318-670-8312 cell 318-401-0428 -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.allen.5000 at gmail.com Fri Feb 25 22:59:19 2011 From: peter.allen.5000 at gmail.com (Peter Allen) Date: Fri, 25 Feb 2011 14:59:19 -0800 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <174699.40985.qm@web29513.mail.ird.yahoo.com> References: <616209.32031.qm@web29505.mail.ird.yahoo.com><2761789286E445A1ADD57FB3D77FE664@LuckyCharms><766328.94715.qm@web29518.mail.ird.yahoo.com><7212815851074382A9E37A438303D58F@LuckyCharms><227723.45929.qm@web29513.mail.ird.yahoo.com><1298652771.31902.146.camel@ns1.gg-w.net> <174699.40985.qm@web29513.mail.ird.yahoo.com> Message-ID: <0D0E1C91C3124EEBBCEDC9495B2362B7@LuckyCharms> Hello James: I am still confused regarding the Kickstart issue.. Do I need to use it??? I see it referenced below, as well as a NFS server. This is just a one-time deal for me so setting up an NFS server is something I would seek to avoid, but I do have root access to a datacenter linux webserver that I can use if need be. My understanding is that the NFS server provides the install CD data and the Kickstart file. What I am envisioning is a scenario where I place the CD in the system, and reboot. Then the system boots to cd and then starts vnc server so that I can remotely login from my windows machine and then proceed with install as if I was sitting at a keyboard and monitor connected to target machine. I will specify mirrors.centos.org as the source (I will be installing centos or fedora) FYI - to answer the concern of another respondent, this system is a laptop with a dead screen, it belongs to me, and it is on my local home network. Thanks Peter From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Friday, February 25, 2011 9:52 AM To: gwaugh at frontstreetnetworks.com; Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc The reason for: prompt 0 timeout 0 is there is no keyboard or screen, so whats the point of having a prompt or delay. If the CD is accidentally used in a machine, it will boot into the red Hat installer, but since there is no kickstart file specified, the automatic install wouldn't happen. A label written on top of the CD explaining its purpose will stop accidental usage. James _____ From: Gerald Waugh To: Discussion list about Kickstart Sent: Fri, February 25, 2011 11:52:51 AM Subject: Re: boot cd-rom network install on system with no display using vnc /root/isolinux/isolinux.cfg file like this: default linux prompt 0 timeout 0 The parts above allow the system to start automatically with no operator intervention Downside is, if anyone inadvertently puts this CD in a system and reboots, or the system itself reboots, it will install! On Thu, 2011-02-24 at 23:18 +0000, James Harrison wrote: Take boot.iso from the images directory in the RHEL DVD and mount it: mount -o loop boot.iso /mnt make a directory and copy all files from /mnt to this dir. mkdir /root/iso cd /mnt cp -pr * /root/iso cd / umount /mnt Look in /root/iso/isolinux Probably want an isolinux.cfg file like this: default linux prompt 0 timeout 0 label linux kernel vmlinuz append initrd=initrd.img ksdevice={DEV} linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 fill in the details. Dont forget to make an NFS server. To make the iso file use something like: mkisofs -o "/root/iso/isolinux.iso" -boot-info-table -b isolinux.bin -no-emul-boot -c boot.cat /root/iso/isolinux Use this file to boot from an RSA adapter or burn a cd. Hope this helps _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:43:41 PM Subject: RE: boot cd-rom network install on system with no display using vnc Ok, I will try this and report back with results J Peter _____ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 2:25 PM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc You have to make your own boot cd and insert the information I provided into the isolinux.cfg. James _____ From: Peter Allen To: Discussion list about Kickstart Sent: Thu, February 24, 2011 5:07:43 PM Subject: RE: boot cd-rom network install on system with no display using vnc What if the OS destination machine has no keyboard or monitor?? Peter _____ From:kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of James Harrison Sent: Thursday, February 24, 2011 11:52 AM To: Discussion list about Kickstart Subject: Re: boot cd-rom network install on system with no display using vnc Hi, Start by running a vncviewer in listen mode (I use realvnc: vncviewer --listen from a command line ). Boot the machine to install linux with the cd-rom and you type: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef method=cdrom keymap=us lang=en_US.UTF-8 You need to specify IP, method, keymap and lang information otherwise it will ask you for this before vnc is running. the ip address is the address you want to give to the machine your installing linux on. Can also be ip=dhcp vncconnect is the IP address you ran the vncviewer on vncpassword is the password. Not sure if it should be encrypted or mot method=cdrom specify your install media By booting from a cd-rom you unfortunately have to perform a media check. This requires output to a screen and a few key presses and I don't know if this can be disabled. The way I got round this was to use an NFS server, so the boot line is: linux ip=xx.xx.xx.xx netmask=xx.xx.xx.xx dns=xx.xx.xx.xx gateway=xx.xx.xx.xx vnc vncconnect=xx.xx.xx.xx vncpassword=abcdef \ method=nfs:xx.xx.xx:/{PATH TO LINUX_DISTRO EXPORTED FROM NFS SERVER} keymap=us lang=en_US.UTF-8 eg, method=nfs:10.2.34.123:/export/RHEL5.4/i386 /export/RHEL5.4/i386 is the path on the NFS server to the DVD distribution on disk. You have to copy the contents of the DVD to disk. Heres a useful web page: http://www.redhat.com/magazine/024oct06/features/kickstart/ Hope this is of some help. James _____ From: Peter Allen To: kickstart-list at redhat.com Sent: Thu, February 24, 2011 1:00:18 PM Subject: boot cd-rom network install on system with no display using vnc Does anyone know how to do this? Thanks Peter _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list -- Gerald Waugh Front Street Networks http://www.frontstreetnetworks.com +1 318-670-8312 cell 318-401-0428 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergio at sergiomb.no-ip.org Fri Feb 25 23:11:50 2011 From: sergio at sergiomb.no-ip.org (Sergio Monteiro Basto) Date: Fri, 25 Feb 2011 23:11:50 +0000 Subject: boot cd-rom network install on system with no display using vnc In-Reply-To: <0D0E1C91C3124EEBBCEDC9495B2362B7@LuckyCharms> References: <616209.32031.qm@web29505.mail.ird.yahoo.com> <2761789286E445A1ADD57FB3D77FE664@LuckyCharms> <766328.94715.qm@web29518.mail.ird.yahoo.com> <7212815851074382A9E37A438303D58F@LuckyCharms> <227723.45929.qm@web29513.mail.ird.yahoo.com> <1298652771.31902.146.camel@ns1.gg-w.net> <174699.40985.qm@web29513.mail.ird.yahoo.com> <0D0E1C91C3124EEBBCEDC9495B2362B7@LuckyCharms> Message-ID: <1298675510.3087.1.camel@segulix> On Fri, 2011-02-25 at 14:59 -0800, Peter Allen wrote: > > Subject: boot cd-rom network install on system with no display using > > vnc > > > > Does anyone know how to do this? preupgrade do this out of the box, but you need have fedora installed first . -- S?rgio M. B. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3309 bytes Desc: not available URL: