OpenVZ Forum


Home » General » Support » running cobbler inside a CT (cobbler setup problem)
running cobbler inside a CT [message #40160] Fri, 23 July 2010 13:58 Go to next message
olojoh1977 is currently offline  olojoh1977
Messages: 6
Registered: July 2010
Location: Sthlm Sweden
Junior Member
Hi,

I'm having problem setting up a cobbler-server inside a container.

When I run cobbler check, I get an ouput:
[root@localhost ~]# cobbler check
httpd does not appear to be running and proxying cobbler

httpd is running and SELinux is disabled on CT0. On CTxxx /etc/selinux is not present.

On a physical server I have no problem setting up cobbler.

Thankful for any input.

Kind regards Olof
Re: running cobbler inside a CT [message #40164 is a reply to message #40160] Fri, 23 July 2010 14:39 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
It seems that I was able to reproduce exactly the same problem:

# cobbler check
httpd does not appear to be running and proxying cobbler


restarting httpd service seems to help me

# service httpd stop
Stopping httpd:                                            [  OK  ]
# cobbler check
httpd does not appear to be running and proxying cobbler
# service httpd start
Starting httpd:                                            [  OK  ]
# cobbler check
The following are potential configuration items that you may want to fix:

1 : The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work.  This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
3 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely.  Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
5 : change 'disable' to 'no' in /etc/xinetd.d/rsync
6 : since iptables may be running, ensure 69, 80, and 25151 are unblocked
7 : debmirror package is not installed, it will be required to manage debian deployments and repositories
8 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one

Restart cobblerd and then run 'cobbler sync' to apply changes.

Re: running cobbler inside a CT [message #40166 is a reply to message #40164] Sat, 24 July 2010 08:45 Go to previous messageGo to next message
olojoh1977 is currently offline  olojoh1977
Messages: 6
Registered: July 2010
Location: Sthlm Sweden
Junior Member
Unfortunately my problem didnt go away after restarting httpd.

Perhaps I have some faulty configuration? Plz check.

I'm running a CT with CentOS 4.8 (precreated template) with veth-interface.

On CT0 eth0 and veth103.0 is up and running.
Inside CT103:
bash> cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.213.223.103
NETMASK=255.255.255.0
GATEWAY=10.213.223.1

Snippet from CT0's /etc/sysctl.conf
net.ipv4.conf.eth0.forwarding = 1
net.ipv4.conf.eth0.proxy_arp = 1
# commented rows below because it's taken care of in mount-script
#net.ipv4.conf.veth103.0.forwarding = 1
#net.ipv4.conf.veth103.0.proxy_arp = 1

My 103.conf is created from basic-sample, just added veth-interface.

Appending /etc/vz/conf/103.conf and /etc/vz/conf/103.mount for the sake of clearity.
  • Attachment: 103.conf
    (Size: 1.73KB, Downloaded 290 times)
  • Attachment: 103.mount.txt
    (Size: 0.67KB, Downloaded 327 times)
Re: running cobbler inside a CT [message #40179 is a reply to message #40164] Tue, 27 July 2010 06:55 Go to previous messageGo to next message
olojoh1977 is currently offline  olojoh1977
Messages: 6
Registered: July 2010
Location: Sthlm Sweden
Junior Member
Maratrus, can you post your configuration? xxx.conf and sysctl.conf.
Re: running cobbler inside a CT [message #40198 is a reply to message #40179] Fri, 30 July 2010 09:20 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

I terribly sorry for delay.
I don't have any specific configuration.
Moreover, I tried to create a VE from scratch.
So I guess your configuration is OK.
I know nothing about cobbler but it seems that
I'd done an action which I didn't mention in
previous post because I simply didn't notice
that. The action is the following
# service cobblerd status
cobblerd is stopped
# service cobblerd start
Starting cobbler daemon:                      [  OK  ]

Hope it will help.
Re: running cobbler inside a CT [message #40201 is a reply to message #40198] Fri, 30 July 2010 12:21 Go to previous messageGo to next message
olojoh1977 is currently offline  olojoh1977
Messages: 6
Registered: July 2010
Location: Sthlm Sweden
Junior Member
Mo worries! Very Happy It's holiday-season in Sweden so I understand if answers are not streaming in.
Appreciate the effort but I'm afraid my problem does not go away that easy.

Are anyone else able to get cobbler up and running? If so, I'm very anxious to know the environment/configuration?

Mine is:
CT0: CentOS 4.8
CTXXX: precreated template CentOS 4.8 (template from openvz)
XXX.conf, XXX.mount and sysctl.conf are available earlier in this thread.

If you want to know anything else about my setup plz let me know.
Thx in advance!
Olof

Re: running cobbler inside a CT [message #40205 is a reply to message #40201] Fri, 30 July 2010 19:36 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:

Are anyone else able to get cobbler up and running?


does that mean that even after cobblerd is started
"httpd does not appear to be running and proxying cobbler"
is the only message which appears when "cobbler check"
is invoked?

Re: running cobbler inside a CT [message #40206 is a reply to message #40205] Fri, 30 July 2010 19:43 Go to previous messageGo to next message
olojoh1977 is currently offline  olojoh1977
Messages: 6
Registered: July 2010
Location: Sthlm Sweden
Junior Member
Yes exactly! Sry if I didnt convey that from the start Smile
Re: running cobbler inside a CT [message #40212 is a reply to message #40206] Sat, 31 July 2010 19:28 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Is that possible to give me access to your VE (via Personal Message). Or if not, could you please show:
"cat /proc/user_beancounters" and "ps aux" from inside the VE?
Re: running cobbler inside a CT [message #40727 is a reply to message #40212] Fri, 24 September 2010 19:37 Go to previous message
pasencorelui is currently offline  pasencorelui
Messages: 1
Registered: September 2010
Location: Montreal
Junior Member
Inside or outside...

I did the installation of Spacewalk and i get exactly the same issue as what you described...

Did you find any solution from your side. I did a lot of research without finding a working solution.


Thank you,


Pasencorelui
Previous Topic: [Help] - Ip change
Next Topic: IPs constantly disconnecting
Goto Forum:
  


Current Time: Wed Aug 14 04:49:58 GMT 2024

Total time taken to generate the page: 0.02841 seconds