T 172.17.43.22:46494 -> 172.17.43.6:8080 [AP] POST /svc/checkin/11 HTTP/1.1. Content-Type: application/json. User-Agent: razor/0.0.0-DEVELOPMENT facter/1.7.3 ruby/2.0.0 kernel/Linux-3.11.7. Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3. Accept: */*. Host: 172.17.43.6:8080. Content-Length: 1775. . T 172.17.43.22:46494 -> 172.17.43.6:8080 [A] {"hw_id":"5254004e9d4e","facts":{"architecture":"x86_64","kernel":"Linux","blockdevice_vda_size":42949672960,"blockdevice_vda_vendor":"0x1af4","blockdevices":"vda","domain":"localdomain","macaddress":"52:54:00:4e:9d:4e","osfamily":"RedHat","operatingsystem":"Fedora","facterversion":"1.7.3","filesystems":"ext2,ext3,ext4,iso9660,squashfs","fqdn":"localhost.localdomain","hardwareisa":"x86_64","hardwaremodel":"x86_64","hostname":"localhost","id":"root","interfaces":"eth0,lo","ipaddress_eth0":"172.17.43.22","macaddress_eth0":"52:54:00:4e:9d:4e","netmask_eth0":"255.255.255.128","ipaddress_lo":"127.0.0.1","netmask_lo":"255.0.0.0","ipaddress":"172.17.43.22","kernelmajversion":"3.11","kernelrelease":"3.11.7-200.fc19.x86_64","kernelversion":"3.11.7","bios_vendor":"Seabios","bios_version":"0.5.1","bios_release_date":"01/01/2007","manufacturer":"Red Hat","productname":"KVM","serialnumber":"Not Specified","uuid":"C1A18A4C-F8C3-1708-BE23-A6BDF226C80F","type":"Other","memorysize":"1.96 GB","memoryfree":"1.87 GB","swapsize":"0.00 MB","swapfree":"0.00 MB","swapsize_mb":"0.00","swapfree_mb":"0.00","memorysize_mb":"2003.13","memoryfree_mb":"1916.08","memorytotal":"1.96 GB","netmask":"255.255.255.128","network_eth0":"172.17.43.0","network_lo":"127.0.0.0","operatingsystemmajrelease":"19","operatingsystemrelease":"19","path":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin","physicalprocessorcount":2,"processor0":"Intel Xeon E312xx (Sandy Bridg T 172.17.43.22:46494 -> 172.17.43.6:8080 [AP] e)","processor1":"Intel Xeon E312xx (Sandy Bridge)","processorcount":"2","ps":"ps -ef","rubysitedir":"/usr/local/share/ruby/site_ruby/","rubyversion":"2.0.0","selinux":"false","timezone":"UTC","uniqueid":"007f0100","uptime":"0:00 hours","uptime_days":0,"uptime_hours":0,"uptime_seconds":30,"virtual":"kvm","is_virtual":"true"}} T 172.17.43.6:8080 -> 172.17.43.22:46494 [AP] HTTP/1.1 200 OK. Server: Apache-Coyote/1.1. X-Content-Type-Options: nosniff. Content-Type: application/json;charset=utf-8. Content-Length: 19. Date: Tue, 17 Jun 2014 01:32:53 GMT. . {"action":"reboot"} T 172.17.43.18:45171 -> 172.17.43.6:8080 [AP] GET /svc/boot?net0=52-54-00-4e-9d-4e&net1=&net2=&net3=&dhcp_mac=52-54-00-4e-9d-4e&serial=&asset=&uuid=c1a18a4c-f8c3-1708-be23-a6bdf226c80f HTTP/1.1. User-Agent: iPXE/1.0.0+ (7405). Host: 172.17.43.6:8080. . T 172.17.43.6:8080 -> 172.17.43.18:45171 [AP] HTTP/1.1 200 OK. Server: Apache-Coyote/1.1. X-Content-Type-Options: nosniff. Content-Type: text/plain;charset=utf-8. Content-Length: 563. Date: Tue, 17 Jun 2014 01:33:59 GMT. . #!ipxe echo Razor Red Hat Enterprise Linux 5.9 task boot_call echo Installation node: http://172.17.43.6:8080/api/nodes/11 echo Installation repo: http://172.17.43.2/repos/5-9/ sleep 3 kernel http://172.17.43.2/repos/5-9/isolinux/vmlinuz ks=http://172.17.43.6:8080/svc/file/11/kickstart network ksdevice=bootif BOOTIF=01-${netX/mac} dns=172.17.22.1 || goto error initrd http://172.17.43.2/repos/5-9/isolinux/initrd.img || goto error boot :error prompt --key s --timeout 60 ERROR, hit 's' for the iPXE shell; reboot in 60 seconds && shell || reboot T 172.17.43.22:38809 -> 172.17.43.6:8080 [AP] GET /svc/file/11/kickstart HTTP/1.0. Host: 172.17.43.6. User-Agent: anaconda/11.1.2.259. X-RHN-Provisioning-MAC-0: eth0 52:54:00:4E:9D:4E. . T 172.17.43.6:8080 -> 172.17.43.22:38809 [A] HTTP/1.1 200 OK. Server: Apache-Coyote/1.1. X-Content-Type-Options: nosniff. Content-Type: text/plain;charset=utf-8. Content-Length: 2533. Date: Tue, 17 Jun 2014 01:34:20 GMT. Connection: close. . #!/bin/bash # Kickstart for RHEL/CentOS 6 # see: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html install url --url=http://172.17.43.2/repos/5-9/ text lang en_US.UTF-8 keyboard uk rootpw ********** network --hostname br-kvm-dm11.build-labs.com --device eth0 --bootproto dhcp --nameserver 172.17.22.1 authconfig --enableshadow --passalgo=sha512 --enablefingerprint selinux --disabled timezone --utc Europe/London key --skip firewall --disabled bootloader --location=mbr --driveorder=vda --append=crashkernel=auto rhgb quiet # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work zerombr # clearpart --all --initlabel ### Commented for disk alignment part /boot --fstype ext3 --onpart=vda1 part pv.01 --grow --onpart=vda2 volgroup VolGroup00 pv.01 logvol / --fstype ext3 --name=LogVol01 --size=6144 --vgname=VolGroup00 logvol swap --size=2048 --name=LogVol02 --vgname=VolGroup00 logvol /var/log/rpil --fstype ext3 --size=2048 --name=LogVol06 --vgname=VolGroup00 logvol /opt/rpil --fstype ext3 --size=6144 --name=LogVol09 --vgname=Vol T 172.17.43.6:8080 -> 172.17.43.22:38809 [AP] Group00 # reboot automatically reboot %pre # Disk partitioning ( parted -s /dev/vda mklabel msdos # parted -s /dev/vda mkpart primary ext4 64s 208718s # fix to allow rhel5 to build the partition table parted -s /dev/vda mkpart primary ext3 64s 208718s parted -s /dev/vda mkpart primary 208720s 100% parted -s /dev/vda set 2 lvm on ) 2>&1 | /usr/bin/tee /tmp/pre.log %end # followig is MINIMAL https://partner-bugzilla.redhat.com/show_bug.cgi?id=593309 %packages @core @base #%end %post --log=/var/log/razor.log echo Kickstart post curl -s -o /root/razor_postinstall.sh http://172.17.43.6/svc/file/11/post_install # Run razor_postinstall.sh on next boot via rc.local if [ ! -f /etc/rc.d/rc.local ]; then # On systems using systemd /etc/rc.d/rc.local does not exist at all # though systemd is set up to run the file if it exists touch /etc/rc.d/rc.local chmod a+x /etc/rc.d/rc.local fi echo bash /root/razor_postinstall.sh >> /etc/rc.d/rc.local chmod +x /root/razor_postinstall.sh cat >/etc/yum.repos.d/base.repo <<'EOFYUMREPO' [base] name = Base Repo baseurl = http://172.17.43.2/repos/5-9/Server/ gpgcheck = 0 enabled = 1 EOFYUMREPO %end ############