Re: [cobbler] ESXi 5.1 Build Fails
by Ravi A
I am using cobbler-2.4.0-1.el6.
[root@localhost ~]#
[root@localhost ~]# /sbin/service cobblerd status
cobblerd (pid 23592) is running...
[root@localhost ~]#
[root@localhost ~]# ls /var/lib/tftpboot/
boot.cfg etc gpxelinux.0 grub images memdisk menu.c32 ppc pxelinux.0 pxelinux.cfg s390x undionly.kpxe
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# /sbin/service dhcpd status
dhcpd (pid 27222) is running...
[root@localhost ~]#
[root@localhost ~]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:84:26:8F
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe84:268f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5285394 errors:0 dropped:0 overruns:0 frame:0
TX packets:3976680 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14168848903 (13.1 GiB) TX bytes:7129714381 (6.6 GiB
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:283932 errors:0 dropped:0 overruns:0 frame:0
TX packets:283932 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:46051582 (43.9 MiB) TX bytes:46051582 (43.9 MiB)
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cobbler distro list
ESXi_v51-x86_64
[root@localhost ~]#
[root@localhost ~]# cobbler profile list
ESXi_v51-x86_64
[root@localhost ~]#
[root@localhost ~]# cobbler system list
Host_2
[root@localhost ~]#
[root@localhost ~]#
James, last week I couldn't install ESXi v5.1 using pxelinux.0. Then as suggested I could install once using undionly.kpxe (gPXE).
Last week when I installed ESXi v5.1 on the same host, the file http://192.168.0.3:80/cblr/svc/op/gpxe/system/Host_2 contains the following information.
#!gpxe
kernel http://192.168.0.3:80/cobbler/ks_mirror/ESXi_v51-x86_64/mboot.c32
imgargs mboot.c32 -c http://192.168.0.3:80/cblr/svc/op/bootcfg/system/Host_2 BOOTIF=f0:4d:a2:3d:aa:8f
boot
Today after few edits to cobbler distros, profiles etc., I completed "cobbler sync" to restart ESXi v5.1 installation again.
But now the same file http://192.168.0.3:80/cblr/svc/op/gpxe/system/Host_2 contains the following information.
#!gpxe
# Boot from local hard disk
iseq ${smbios/manufacturer} HP && exit ||
sanboot --no-describe --drive 0x80
Then I am not able to start ESXi v5.1 installation. Not sure what went wrong ?? Error message(s) are as shown below. Kindly do the needful.
CLIENT MAC ADDR: F0 4D A2 3D AA 8F GUID: 44454C$C 4E00 1058 8047 B1C04F373253
CLIENT IP: 192.168.0.253 MASK: 255.255.255.0 DHCP IP: 192.168.0.3
GATEWAY IP: 192.168.0.1
PXE->EB: !PXE at 9971:0040, entry point at 9971:00D6
UNDI code segment 9971:4D60, data segment 93AA:5C70 (590-634kB)
UNDI device is PCI 01:00.0, type DIX+802.3
590kB free base memory after PXE unload
iPXE initilializing devices...ok
iPXE 1.0.0+ (3dbc) -- Open Source Network Boot Firmware -- http://ipxe.org
Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu
net0: f0:4d:a2:3d:aa:8f using undionly on UNDI-PCI01:00.0 (open)
[Link: up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net0 f0:4d:a2:3d:aa:8f) ........ Connection timed out (http://ipxe.org/4c106035)
No more network devices
Thanks A Lot In Advance,
Ravi
> ----- Original Message -----
> From: Ravi A
> Sent: 07/12/13 08:00 PM
> To: James Cammarata, cobbler mailing list
> Subject: Re: [cobbler] ESXi 5.1 Build Fails
>
> Hi James,
> The file /etc/cobbler/pxe/bootcfg_profile_esxi51.template doesn't exist before and after "cobbler sync".
> /etc/cobbler/pxe/bootcfg_esxi51.template exists before and after "cobbler sync".
>
> The file $local_img_path/cobbler-boot.cfg created after "cobbler sync". This file in my case is /var/lib/tftpboot/images/ESXi_v51-x86_64/cobbler-boot.cfg
>
> Then I restared ESXi v5.1 installation and observed the same problem.
>
> Thank you,
> Ravi
10 years, 9 months
Re: [cobbler] Help
by Ravi A
Assuming you will be using Python as interpreter about %post section of your kickstart file, use the following example to assign license key to your ESXi host.
command = "vim-cmd vimsvc/license --set=XXXXX-XXXXX-XXXXX-XXXXX-XXX11";
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE);
out, err = process.communicate();
if(process.returncode==0):
print; print "License is updated successful ...."; print err;
else:
print; print "ERROR: License is NOT updated successfully ..."; print err;
I am not sure about how to connect your host to your vCenter server from kick start file. I guess there might some ESXi shell command to make this happen. Need to check VMware vSphere ESXi documentation.
Thanks,
Ravi
> ----- Original Message -----
> From: Yogesh Mulay
> Sent: 07/19/13 10:07 PM
> To: cobbler(a)lists.fedorahosted.org
> Subject: [cobbler] Help
>
> HI i have both Cobbler & ESXi now installed. In ESXi 5 Kickstart
> I have couple of questions ...
>
> how do i assign license key to the host. hers my kickstart ...
>
> #rootpw --iscrypted $default_password_crypted
> vmaccepteula
> rootpw vmware123
> install --firstdisk --overwritevmfs
> network --bootproto=dhcp --device=vmnic0 --addvmportgroup=0
> reboot
> #%pre --unsupported --interpreter=busybox
> #$SNIPPET('network_config_esxi')
> ##%pre --unsupported --interpreter=busybox
> #$SNIPPET('kickstart_start')
> echo "RUNNING POST Install Script -- Hi How are You"
> ##%post --unsupported --interpreter=busybox
> network --bootproto=static --device=vmnic0 --ip=xxx.xxx.xxx.xxx
> --netmask=xxx.xxx.xxx.xxx --gateway=xxx.xxx.xxx.xxx --vlanid=xxx
> --nameserver=xxx.xxx.xxx.xx --hostname=xxxxxxxxxxxxx --addvmportgroup=0
> #$SNIPPET('kickstart_done')
>
> Post this if i were to add the host to my vcenter how can i add it?
>
> Please help ...
>
> Some how i am not receiving mails on yogeshgmulay(a)gmail.com please cc me on
> yogesh_mulay(a)cable.comcast.com
>
> Regards
> Yogesh
10 years, 9 months
Help
by Yogesh Mulay
HI i have both Cobbler & ESXi now installed. In ESXi 5 Kickstart
I have couple of questions ...
how do i assign license key to the host. hers my kickstart ...
#rootpw --iscrypted $default_password_crypted
vmaccepteula
rootpw vmware123
install --firstdisk --overwritevmfs
network --bootproto=dhcp --device=vmnic0 --addvmportgroup=0
reboot
#%pre --unsupported --interpreter=busybox
#$SNIPPET('network_config_esxi')
##%pre --unsupported --interpreter=busybox
#$SNIPPET('kickstart_start')
echo "RUNNING POST Install Script -- Hi How are You"
##%post --unsupported --interpreter=busybox
network --bootproto=static --device=vmnic0 --ip=xxx.xxx.xxx.xxx
--netmask=xxx.xxx.xxx.xxx --gateway=xxx.xxx.xxx.xxx --vlanid=xxx
--nameserver=xxx.xxx.xxx.xx --hostname=xxxxxxxxxxxxx --addvmportgroup=0
#$SNIPPET('kickstart_done')
Post this if i were to add the host to my vcenter how can i add it?
Please help ...
Some how i am not receiving mails on yogeshgmulay(a)gmail.com please cc me on
yogesh_mulay(a)cable.comcast.com
Regards
Yogesh
10 years, 9 months
Re: [cobbler] howto bootstrap cfengine from cobbler
by Harry Hoffman
Sorry, it was typed very quickly. Go to the cfengine site and find their yum repository link.
Take the URL from there and use it to add a local repo in cobbler. Make sure to select "keep local".
Then you'll have a cfengine repo. Edit your profile and add the repo from available repos to included repos.
Then choose cfengine-community in your package selection in the kickstart, at either the profile or system level.
Make sense? I might have some cobbler terms wrong, I'm on the train and not looking at it directly.
After the package is installed you need a snippet to have it bootstrap. Since this is a post install step the package is already installed so you just need to call cf-agent like you show below.
I believe you still need either a failsafe or update cf file on the installed system. I can check if you need.
Cheers,
Harry
jehan procaccia <jehan.procaccia(a)tem-tsp.eu> wrote:
>it's not clear to what you mean by "add a repo line" !?
>what I did so far is put cfengine rpm package into cobbler this way:
>
>[root@cobbler2 f19-x86_64-perso]# ls
>cfengine-community-3.5.1-1.x86_64.rpm
>[root@cobbler2 f19-x86_64-perso]# createrepo .
>#cobbler repo add --name=f19-x86_64-perso
>--mirror=/var/www/cobbler/repo_mirror/f19-x86_64-perso
>
>is it why you meant by "add a repo line" ?
>now for the 1st step, where can I tell the install process to install
>that package ? in cobbler , in kickstart, how ?
>
>regarding the next step (2) => bootstrap the cfengine client, in
>cfengine3 is it really necessary to copy failsafe.cf ?
>a /var/cfengine/bin/cf-agent --bootstrap --policy-server X.X.X.X would
>be enough no ?
>but again, how can I tell cobbler to run that step2 after step1
>(install cfengine package) is completed ?
>
>thanks .
>Le 18/07/2013 22:27, Harry Hoffman a écrit :
>> Hi Jehan,
>>
>> Add a repo line for the cfengine repository,
>>
>> Assuming a cfengine3 deployment copy over your failsafe.cf (via a
>> snippet) to bootstrap the process
>>
>>
>> Cheers,
>> Harry
>>
>> On 07/18/2013 04:08 PM, jehan procaccia wrote:
>>> I use cobbler 2.4 to install fedora19 stations
>>> I want to be able to install cfengine (todays latest rpm package 3.5.1)
>>> via cobbler .
>>> what is the best practice to do that ?
>>> I suspect the necessity of:
>>> 1) a personnal/local repository containing cfengine-3.5.1 package
>>> 2) a snippet or post install to force a yum install of cfengine from
>>> that repo
>>> 3) a post install script command to bootstrap the client station
>>> (register the client to cfengine policyserver)
>>> I also heard of triggers ... is there a documentation/howto do that ?
>>> Thanks.
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler(a)lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>> _______________________________________________
>> cobbler mailing list
>> cobbler(a)lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
10 years, 9 months
howto bootstrap cfengine from cobbler
by jehan procaccia
I use cobbler 2.4 to install fedora19 stations
I want to be able to install cfengine (todays latest rpm package 3.5.1)
via cobbler .
what is the best practice to do that ?
I suspect the necessity of:
1) a personnal/local repository containing cfengine-3.5.1 package
2) a snippet or post install to force a yum install of cfengine from
that repo
3) a post install script command to bootstrap the client station
(register the client to cfengine policyserver)
I also heard of triggers ... is there a documentation/howto do that ?
Thanks.
10 years, 9 months
pre & post install scrips for esxi
by Yogesh Mulay
Need some help ... Cobbler related ... Thought if you could help ...
I have succesfully installed cobbler & integrated with ESXi 5.0.
I need to parse certain commands in pre & post installation. Like enabling
sshd on a host.
Setting up vmks on the host.
Is there a place where i can look @ this.
Any help from you would be highly appreciated.
Regards
10 years, 9 months
Yaml to Cobbler Script
by Dylan Martin
Hi all.
I just wrote a script that takes a system description from a yaml file
and feeds it into cobbler via XMLRPC.
I wrote this because I like editing yaml better than running cobbler
command lines. It might also make it easier to import system
descriptions from other sources by providing a simple middle-step.
This script sucks in many ways. I'm not a great python coder, it's
missing lots of features that you'd expect, and I'm the only human
who's ever seen it, so it's probably full of bugs.
I thought someone might find it useful, though, so I'm posting it
here. If anyone actually wants to use this (hah!) please feel free to
ask questions or request features and so on.
More documentation inside the script. It should respond well to pydoc.
Thank you devs, for giving us Cobbler!
Thanks
dmartin-AT-seattlecentral-DOT-edu
10 years, 9 months
Re: [cobbler] ESXi 5.1 Build Fails
by Ravi A
Hi James,
The file /etc/cobbler/pxe/bootcfg_profile_esxi51.template doesn't exist before and after "cobbler sync".
/etc/cobbler/pxe/bootcfg_esxi51.template exists before and after "cobbler sync".
The file $local_img_path/cobbler-boot.cfg created after "cobbler sync". This file in my case is /var/lib/tftpboot/images/ESXi_v51-x86_64/cobbler-boot.cfg
Then I restared ESXi v5.1 installation and observed the same problem.
Thank you,
Ravi
10 years, 9 months
Cobbler 2.4.0 update issues
by Orion Poplawski
I'm running into some issues with the update to 2.4.0 on EL6.
First I seem to have lost some of my profiles. The files are still there in
/var/lib/cobbler/profiles.d so I'm not sure what is up.
Second, cobbler sync is resulting in the following traceback:
generating /etc/dhcp/dhcpd.conf
rendering DNS files
Exception occured: <type 'exceptions.KeyError'>
Exception value: 'ipv6_address'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run
rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 188, in runner
return
self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 767, in sync
return sync.run()
File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line 137,
in run
self.dns.write_dns_files()
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_bind.py",
line 587, in write_dns_files
self.__write_named_conf()
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_bind.py",
line 259, in __write_named_conf
metadata = {'forward_zones': self.__forward_zones().keys(),
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_bind.py",
line 131, in __forward_zones
ipv6 = interface["ipv6_address"]
!!! TASK FAILED !!!
I've never made use of ipv6 address here.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301 http://www.nwra.com
10 years, 9 months