{"id":498,"date":"2015-07-16T22:45:36","date_gmt":"2015-07-16T22:45:36","guid":{"rendered":"https:\/\/www.nicktailor.com\/?p=498"},"modified":"2022-10-21T12:08:34","modified_gmt":"2022-10-21T12:08:34","slug":"how-to-deploy-servers-with-kickstart","status":"publish","type":"post","link":"https:\/\/nicktailor.com\/tech-blog\/how-to-deploy-servers-with-kickstart\/","title":{"rendered":"How to deploy servers with KickStart 5.0"},"content":{"rendered":"<ol>\n<li>Open up Vcenter and login<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Find the folder you wish to create the new vm\n<ol>\n<li>Right click on the folder and select create a new vm<\/li>\n<li>Go through and select the VM parameters you require ie(CPU, Memory, HD space, etc<strong>)<br \/>\n<em>NOTE: that you should keep the HD space to 50 gigs and thin provision the vm.<\/em><\/strong><\/li>\n<\/ol>\n<\/li>\n<li>Next you want to edit the VM settings\n<ol>\n<li>Select the CD\/DVD option and then boot off a redhat linux 6.6 install dvd.\n<ol>\n<li>Enable the connect on start and conneted check boxes at the top.<\/li>\n<\/ol>\n<\/li>\n<li>Next you want to select the Network adapter and select the correct Network Label(VLAN) so the server will be able to communicate dependant on which ever ip\/network you chose.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><strong>Note: You will not be able to kickstart if you do not have the proper vlan for your ip.<\/strong><\/p>\n<ol start=\"4\">\n<li>Next Login into satellite\n<ol>\n<li>Click on <strong><em>kickstart<\/em><\/strong> on the left pane and then <strong><em>profiles<\/em><\/strong><\/li>\n<li>Select the button \u201cAdvanced options<\/li>\n<li>Scroll down to <strong>network<\/strong> and edit the line as needed.\n<ol>\n<li><em>&#8211;bootproto=static &#8211;ip=10.2.10.13 &#8211;netmask=255.255.255.0 &#8211;gateway=10.2.10.254\u00a0 &#8211;hostname=server1.nicktailor.com &#8211;nameserver=10.20.0.17.<\/em><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><strong><em>Note: You need to do this if you want the server provisioned with ip and hostname post install.<\/em><\/strong><\/p>\n<ol>\n<li>Scroll down and click update for settings to take effect.<\/li>\n<li>Next click on <strong style=\"color: #000000; font-style: normal;\">System Details <\/strong>and then <strong style=\"color: #000000; font-style: normal;\">Paritioning.<\/strong><\/li>\n<li>Edit the partitions to the specification required. You in most cases wont need to update this will be a standard template. However for the purposes of documentation its here.<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><strong>Example of standard partition scheme<\/strong><\/span><\/p>\n<p><em style=\"color: #000000;\">part \/boot &#8211;fstype=ext4 &#8211;size=500<\/em><br \/>\n<em style=\"color: #000000;\">part pv.local &#8211;size=1000 &#8211;grow<\/em><br \/>\n<em style=\"color: #000000;\">volgroup vg_local pv.local<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/ &#8211;fstype ext4 &#8211;name=root &#8211;vgname=vg_local &#8211;size=2048<\/em><br \/>\n<em style=\"color: #000000;\">logvol swap &#8211;fstype swap &#8211;name=swap &#8211;vgname=vg_local &#8211;recommended<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/tmp &#8211;fstype ext4 &#8211;name=tmp &#8211;vgname=vg_local &#8211;size=1024<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/usr &#8211;fstype ext4 &#8211;name=usr &#8211;vgname=vg_local &#8211;size=4096<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/home &#8211;fstype ext4 &#8211;name=home &#8211;vgname=vg_local &#8211;size=2048<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/var &#8211;fstype ext4 &#8211;name=var &#8211;vgname=vg_local &#8211;size=4096 &#8211;grow<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/var\/log &#8211;fstype ext4 &#8211;name=log &#8211;vgname=vg_local &#8211;size=2048 &#8211;grow<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/var\/log\/audit &#8211;fstype ext4 &#8211;name=audit &#8211;vgname=vg_local &#8211;size 1024<\/em><br \/>\n<em style=\"color: #000000;\">logvol \/opt &#8211;fstype ext4 &#8211;name=opt &#8211;vgname=vg_local &#8211;size=4096 \u2013grow<br \/>\n<\/em><\/p>\n<ul>\n<li>Once you have the desired setting, select \u201c<strong style=\"color: #000000; font-style: normal;\">Update Paritions\u201d<\/strong><\/li>\n<\/ul>\n<p>4. Next Select <strong style=\"color: #000000; font-style: normal;\">Software<br \/>\n<\/strong>\u00a0 \u00a0 \u00a05. You can add or remove any necessary or un-necessary packages.<\/p>\n<p><strong><em>By using the (-) before the package name it will remove it from the base install. If you simply type in the package name it will ensure its added to the base install<\/em>.<br \/>\n<\/strong><br \/>\nThe packages indicated below are an example of how you<br \/>\n@ Base<br \/>\n@X Window System<br \/>\n@Desktop<br \/>\n@fonts<br \/>\npython-dmidecode<br \/>\npython-ethtool<br \/>\nrhn-check<br \/>\nrhn-client-tools<br \/>\nrhn-setup<br \/>\nrhncfg-actions<br \/>\nrhncfg-client<br \/>\nyum-rhn-plugin<br \/>\nsssd<\/p>\n<p>6. \u00a0Select update packages once you have chosen your base packages<\/p>\n<p>7. Now boot up the vm, once your cd\/image is booted you should see a grub line, before it boots into the install, follow the steps below.<\/p>\n<p>8. At the grub line issue the following command<em>. (Update the ip according to above step as needed. If you are using DHCP then you just need the url without the additional parameters.<\/em><\/p>\n<p><strong>linux ks=<\/strong><strong>http:\/\/satellite.nicktailor.com\/ks\/cfg\/org\/5\/label\/Kickstartname<\/strong><strong>\u00a0ip=10.0.12.99 netmask=255.255.255.0 gateway=10.0.12.254 nameserver=10.20.0.17<\/strong><\/p>\n<p>9. Your VM at this point should go through without any user interaction and install and reboot with a functional OS.<\/p>\n<p><em><strong>Note: Since you have kickstarted your server using satellite, it will automatically be registered to satellite server, saving you the hassel of doing it after the fact.<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open up Vcenter and login Find the folder you wish to create the new vm Right click on the folder and select create a new vm Go through and select the VM parameters you require ie(CPU, Memory, HD space, etc) NOTE: that you should keep the HD space to 50 gigs and thin provision the vm. Next you want to<a href=\"https:\/\/nicktailor.com\/tech-blog\/how-to-deploy-servers-with-kickstart\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[138,26],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-linux","category-red-hat-satellite"],"_links":{"self":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":10,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":1039,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/498\/revisions\/1039"}],"wp:attachment":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}