LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2014, 04:12 AM   #1
Yzord
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
Using kickstart with static IP


First of all, this is my first post here, so ignore my noobness if i do something which is not done.

Since a few years i am new into Linux, mostly Debian/Ubuntu, and since a few months my boss wants me to move to the Linux department. He gave me a "special" mission (for me it is).

We have hundreds of RHEL servers of which we use kickstart for and Puppet after that to deploy packages. But now one of the teachers wants a Ubuntu (small) farm of which he can order and deployed within a day. My boss asked me to find a way to deploy Ubuntu on VM's trough kickstart or preseed. Well, that part has been realized....sort off. I have managed to kickstart Ubuntu without any error, but with a small annoying detail. The ks.cfg file is located in the image (.iso). And thats a problem, because the .cfg contains information about static IP configuration. That means i have to extract the iso every time when they order a new Ubuntu VM.

So, of course i have thought about it to finalize the IP settings before the CD starts in vSphere. Tried many ways, but now i'm stuck. I am out of ideas. What i want is a submission to the line like:

Quote:
file=/cdrom/preseed/ubuntu-server.seed initrd=/install/initrd.gz netcfg/disable_autoconfig=true network --bootproto=static --ip=xxx.xxx.xxx.xxx --netmask=255.255.255.0 --gateway=xxx.xxx.xxx.xxx --nameservers=xxx.xxx.xxx.xxx --device=eth0 ks=http://location.of.ks.cfg --
It pushes dhcp disabling ok, but the other networksettings are totally ignored and i have to fill it in personally. What am i doing wrong?

Someone wants to help me with this?

Last edited by Yzord; 02-27-2014 at 09:03 AM.
 
Old 02-27-2014, 09:44 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

are you sure you need the --? Eg from my experience I'd have thought the boot line would be more like:
Code:
/foo/bar/vmlinuz initrd=/foo/bar/initrd.img ip=xxx.xxx.xxx.xxx netmask=255.255.255.255 gateway=xxx.xxx.xxx.xxx
Etc.

Evo2.
 
Old 03-05-2014, 04:42 AM   #3
Yzord
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Can you explain me your quote? Especially the /foo/bar/vmlinuz initrd=/foo/bar/initrd.img line? As far as i know i have to use the line which i gave up, so i would like to know the explanation of your command line
 
Old 03-05-2014, 07:36 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by Yzord View Post
Can you explain me your quote? Especially the /foo/bar/vmlinuz initrd=/foo/bar/initrd.img line?
They are the paths to the kernel and initrd images.
Quote:
As far as i know i have to use the line which i gave up, so i would like to know the explanation of your command line
It depends on the layout of you installation media.

Anyway the point was about passing boot options to set the networking, so I think the vmlinuz and initrd.img parts are not where your problem is.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RHL 6.0 Unable to download the Kickstart file/ Error downloading kickstart file AnApproach2DigestLinux Linux - Newbie 3 11-23-2012 06:50 PM
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 09:04 AM
Kickstart not working with static ip configuration wischad Linux - Server 1 11-05-2009 10:32 AM
Static IP addresses supplied through default kickstart config file? stuart_cherrington Red Hat 5 10-29-2009 01:39 PM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 12:20 PM


All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration