Thursday, March 31, 2011

Monday, March 28, 2011

Bleh

Bleh


/dev/BlackBerry

Wednesday, March 16, 2011

cobbler import --name ubuntu10.10 FAIL

preseed/ltsp.seed
654 100% 10.47kB/s 0:00:00 (xfer#1972, to-check=1/3039)
preseed/ubuntu.seed
617 100% 9.88kB/s 0:00:00 (xfer#1973, to-check=0/3039)

sent 720867899 bytes received 41756 bytes 10680143.04 bytes/sec
total size is 720592331 speedup is 1.00

recieved on stderr:
adding distros
avoiding symlink loop
scanning /var/www/cobbler/ks_mirror/ubuntu10.10/install for distro signature
scanning /var/www/cobbler/ks_mirror/ubuntu10.10 for distro signature
found content (breed=ubuntu) at /v
Exception occured:
Exception value: 'Unsupported OS breed ubuntu'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 123, in die
raise CX(msg)

Exception occured:
Exception value: 'Unsupported OS breed ubuntu'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 95, in run
rc = self._run(self)
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 224, in runner
self.logger
File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 659, in import_tree
return importer.run()
File "/usr/lib/python2.7/site-packages/cobbler/action_import.py", line 215, in run
os.path.walk(self.path, self.distro_adder, distros_added)
File "/usr/lib64/python2.7/posixpath.py", line 233, in walk
walk(name, func, arg)
File "/usr/lib64/python2.7/posixpath.py", line 225, in walk
func(arg, top, names)
File "/usr/lib/python2.7/site-packages/cobbler/action_import.py", line 554, in distro_adder
adtls.append(self.add_entry(dirname,kernel,initrd))
File "/usr/lib/python2.7/site-packages/cobbler/action_import.py", line 580, in add_entry
importer = import_factory(dirname,self.path,self.breed,self.logger)
File "/usr/lib/python2.7/site-packages/cobbler/action_import.py", line 870, in import_factory
utils.die(logger, "Unsupported OS breed %s" % breed)
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)

!!! TASK FAILED !!!
[root@mofo ubuntu]# init 0
[root@mofo ubuntu]# Connection to 10.108.9.164 closed by remote host.

Tuesday, March 8, 2011

subscribed to cobbler mailing list

Getting bored of reading the ducumentation. the man page is quite good though. Joined the mailing list over at the cobbler mailing list

Posted from GScribble.

Sunday, March 6, 2011

Setting up cobbler server

To generate a password fir cobbler have no fear. For you can run this command just so lon as it is installed..



openssl passwd -1 salt 'b00jahyaakakaka' 'blah'
$1$V6lXFJJt$ErF4PU8GwEKHYQlbNE0Kl0
$1$j6HJYcMI$jxgNB4wYd5DG0ttMxk2Vg1
$1$GlxYrcwC$LPzvraBpP.AGi1PLRZTr50


Now just dump the top line into /etc/cobber/settings with an editor like vim.

Then to get the settings recognised, (yes, you guessed it, I am a Brit).

service httpd reload && service cobblerd restart && cobbler sync && cobbler check

Posted from GScribble.

I won't bother you with the majority of the output but from this example, the server that I am setting cobbler up on just gives info about the firewall..


*** TASK COMPLETE ***
The following are potential configuration items that you may want to fix:

1 : since iptables may be running, ensure 69, 80, and 25151 are unblocked

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


... and I can deal with that with iptables

./convirt-tool --help

[root@mofo scripts]# ./convirt-tool --help
./convirt-tool: unrecognized option '--help'
Provides 2 steps to install dependencies and setup
1) ./convirt-tool install_dependencies
This will install dependencies like ssh,socat,expect etc.
2) ./convirt-tool [switch [switch ..]] setup
Switch option is not mandatory, default is --all.

Switch can be from one of the following:
--detect_only : only detect distribution and virtualization platform,
Do not make changes.
--firewall : configure firewall.
--xen_config : configure xend server.
--xen_ssl : configure xend server in SSL mode.
--bridge : setup bridge for each physical interface.
--nw_service : setup network service during system boot.
--all : all required setup for KVM or Xen.
--skip_firewall : Skip firewall related changes
--skip_bridge : Skip bridge related changes
--skip_nw_service : Skip network service setup during boot
--use_native_bridge : Use OS specific bridge setup (Recommended for Xen on SLES)
--dom0_mem : Sets the memory of Domain-0(in MB)
-h : help

red hat virt guide(pdf)

wget http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/pdf/Virtualization/Red_Hat_Enterprise_Linux-5-Virtualization-en-US.pdf