LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-11-2009, 05:52 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
can't kickstart CentOs on VirtualBox VM


hey guys,

I have two VMs running inside virtualbox. One is an NFS server that is hosting my kickstart file, and i am trying to kickstart the other VM.

NFS is up and running on the server VM, selinux and iptables are off. I can see the server exports from some other RedHat VM by doing:

Code:
showmount -e 10.0.1.2
where 10.0.1.2 is the IP of the NFS server

in the kickstart file, i specified the NIC eth0 configuration to be statistically assigned an IP address (same subnet, and mask as the server ofcourse). I generated the kickstart file using CentOS kickstart tool, so there's no chance for syntax errors or something.

Now, on the boot prompt of the VM that I wanna kickstart I do:

Code:
boot: linux ks=nfs:10.0.1.2:/kickme/ks.cfg

installation proceeds but a message is displayed.. don't quite remember the exact message but it was trying to contact a DHCP server to get IP!!!

why did that happen? even though I statically configured eth0 in the ks file!

the other weird part, if I set the network configuration on the boot prompt by doing:
Code:
boot: linux ks=nfs:10.0.1.2:/kickme/ks.cfg --ip=10.0.1.5 -netmask=255.255.255.0
all proceeds OK and apparently the network is configured properly but the anaconda complains about not being able to download the kickstart file.. I guess this has something to do with loading nfs module or something but I never investigated.

Can anybody please shed some light on my problems with VirtualBox?

Thanks in advance,

Last edited by geek.ksa; 11-11-2009 at 05:52 AM. Reason: kickstart
 
Old 11-11-2009, 06:23 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by geek.ksa View Post
hey guys,

I have two VMs running inside virtualbox. One is an NFS server that is hosting my kickstart file, and i am trying to kickstart the other VM.

NFS is up and running on the server VM, selinux and iptables are off. I can see the server exports from some other RedHat VM by doing:

Code:
showmount -e 10.0.1.2
where 10.0.1.2 is the IP of the NFS server

in the kickstart file, i specified the NIC eth0 configuration to be statistically assigned an IP address (same subnet, and mask as the server ofcourse). I generated the kickstart file using CentOS kickstart tool, so there's no chance for syntax errors or something.

Now, on the boot prompt of the VM that I wanna kickstart I do:

Code:
boot: linux ks=nfs:10.0.1.2:/kickme/ks.cfg

installation proceeds but a message is displayed.. don't quite remember the exact message but it was trying to contact a DHCP server to get IP!!!

why did that happen? even though I statically configured eth0 in the ks file!

the other weird part, if I set the network configuration on the boot prompt by doing:
Code:
boot: linux ks=nfs:10.0.1.2:/kickme/ks.cfg --ip=10.0.1.5 -netmask=255.255.255.0
all proceeds OK and apparently the network is configured properly but the anaconda complains about not being able to download the kickstart file.. I guess this has something to do with loading nfs module or something but I never investigated.

Can anybody please shed some light on my problems with VirtualBox?

Thanks in advance,

if using static ip's anaconda has to be able to find the kickstart file hence the reason progression is made when you specify an ip on the command line. test the nfs to make sure you can actually mount 10.0.1.2:/kickme from somewhere remote first..
 
Old 11-15-2009, 08:30 AM   #3
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
wo wo wo
hang on a second!

this seems like a chicken-egg problem to me! now anaconda needs to mount the remote NFS share first in order to get the ks file which contains network configuration. But, in order to do that, it has to have TCP/IP up and running (interface up and running!).............

hmmmmmmmmmm that's weird! why have a network configuration section in the ks file one can only set network configuration on the boot prompt! (maybe to allow configuration to be written to system files [permenantly])... is this the case???

I am able to mount the remote nfs share from remote machines!! what is wrong?


Please help.
 
Old 08-29-2010, 09:35 AM   #4
GardarS
Member
 
Registered: Jun 2005
Location: Reykjavik,Iceland
Distribution: Centos 5.6 and Arch
Posts: 64

Rep: Reputation: 17
I have a similar problem, not though with a kickstart file, but just mounting a nfs share between my computer and a VM in Virtualbox, for practicing for the Red hat exam. Even though they are on the same subnet and everything, the Error message I get is "No Route to Host", yet they can ping between and no prob.

I know this is not a solution but could also be the error you're experiencing
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS/Redhat kickstart packages cdestiny Linux - Server 4 12-02-2008 04:46 AM
Minimal centos via kickstart not working abcdefg Red Hat 5 11-01-2008 12:11 PM
Kickstart installation problems with CentOS 5.2 triley Linux - General 3 10-21-2008 12:37 PM
CentOS kickstart installation with nodefaults shubb Linux - Distributions 3 10-13-2008 01:13 PM
networking in centos (through virtualbox) sycamorex Linux - Wireless Networking 4 09-16-2008 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:08 AM.

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
Open Source Consulting | Domain Registration