<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>evcz.tk &#187; vnc</title>
	<atom:link href="http://evcz.tk/blog/tag/vnc/feed/" rel="self" type="application/rss+xml" />
	<link>http://evcz.tk/blog</link>
	<description>my own pastebin :P</description>
	<lastBuildDate>Sat, 23 Jul 2011 21:02:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Remote CentOS 6 install with VNC</title>
		<link>http://evcz.tk/blog/2008/10/21/remote-centos-install/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remote-centos-install</link>
		<comments>http://evcz.tk/blog/2008/10/21/remote-centos-install/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 11:30:10 +0000</pubDate>
		<dc:creator>EvolutionCrazy</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://evcz.tk/blog/?p=3</guid>
		<description><![CDATA[*POST UPDATED &#8211; now referring to centos6* There are some ISPs in the dedicated servers market that are offering crappy CentOS installs&#8230; With &#8220;crappy&#8221; I mean: broken/modifed images&#8230; The worst example I had the opportunity to try was OVH. OVH is in general a very good dedicated hosting provider offering very nice services at an [...]]]></description>
			<content:encoded><![CDATA[<p>*POST UPDATED &#8211; now referring to centos6*</p>
<p>There are some ISPs in the dedicated servers market that are offering <strong>crappy</strong> CentOS installs&#8230;</p>
<p>With &#8220;crappy&#8221; I mean: broken/modifed images&#8230;</p>
<p>The worst example I had the opportunity to try was <a href="http://www.ovh.it" target="_blank">OVH</a>.<br />
OVH is in general a very good dedicated hosting provider offering very nice services at an impressive low price&#8230; but they have the bad attitude to install custom operating systems that many times cannot be reverted back to the original kernels <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>One of them is their CentOS 5 install&#8230; Lucky for us it&#8217;s not a big problem as, most times, it&#8217;s possible to do a clean CentOS install <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-3"></span></p>
<p>This is a simple procedure to do an official, <strong>clean</strong> install from the <em>genuine</em> CentOS disks <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ol>
<ol>
<li>Install CentOS from the OVH manager with the <strong>default partitioning</strong> proposed by OVH<br />
(this procedure will work with whatever operating system you want&#8230; i suggested centos so it will report &#8220;centos&#8221; also in the ovh manger <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  make sure you are able to get grub working on the os you want to use <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</li>
<li>once everything is done log into the box via ssh as root</li>
<li>issue these commands:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>centos_install
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>centos_install
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>it.centos.contactlab.it<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>pxeboot<span style="color: #000000; font-weight: bold;">/</span>initrd.img
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>it.centos.contactlab.it<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>pxeboot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz
<span style="color: #c20cb9; font-weight: bold;">cp</span> vmlinuz <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz.cent.pxe
<span style="color: #c20cb9; font-weight: bold;">cp</span> initrd.img <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img.cent.pxe</pre></div></div>

</li>
<li>Add to/Edit the grub menu.lst entry to load the pxe kernel (note: if you were already using grub you do not need to type again the first 2 lines <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>menu.lst</pre></div></div>

<p>in that file paste:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title Centos Install <span style="color: #7a0874; font-weight: bold;">&#40;</span>PXE<span style="color: #7a0874; font-weight: bold;">&#41;</span>
root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz.cent.pxe vnc <span style="color: #007800;">vncpassword</span>=YOURPSW headless <span style="color: #007800;">ip</span>=YOURIP <span style="color: #007800;">netmask</span>=255.255.255.0 <span style="color: #007800;">gateway</span>=GATEWAYIP <span style="color: #007800;">dns</span>=8.8.8.8 <span style="color: #007800;">ksdevice</span>=eth0 <span style="color: #007800;">method</span>=http:<span style="color: #000000; font-weight: bold;">//</span>it.centos.contactlab.it<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #007800;">lang</span>=en_US <span style="color: #007800;">keymap</span>=us
initrd <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img.cent.pxe</pre></div></div>

</li>
</ol>
</ol>
<p><strong><br />
replace</strong></p>
<ol>
<ol>
<ul>
<li>YOURPSW with the VNC password you want setup</li>
<li>YOURIP with the ip of the box&#8230;</li>
<li>GATEWAYIP with the gateway assigned to your boxHint: you can see the gateway ip by issuing

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">route <span style="color: #660033;">-n</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> UG</pre></div></div>

</li>
</ul>
</ol>
</ol>
<p>once you have done this you need to count the number of times &#8220;title&#8221; appears in the file, press ctrl +x, and save the file</p>
<ul>
<li>type:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">grub</pre></div></div>

<p>write in there:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">savedefault <span style="color: #660033;">--default</span>=<span style="color: #000000;">2</span> <span style="color: #660033;">--once</span></pre></div></div>

<p>replace <strong>2</strong> with the number of times &#8220;title&#8221; appeared in manu.lst <strong>minus one</strong> (if you counted 6 &#8220;title&#8221; entries&#8230; write 5 in here)
</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">reboot</pre></div></div>

</li>
</ul>
<p>&nbsp;</p>
<p>After issuing the reboot ping the box (should take max 2minutes to take up the network)&#8230; 30seconds (or more&#8230; depending how fast your box is) after it starts replying to the ping open a vnc client (on windows i suggest ultravnc) and connect to</p>
<p>YOURIP:1</p>
<p>put as password the one you placed as YOURPSW &#8230;</p>
<p>install CentOS <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://evcz.tk/blog/wp-content/uploads/2008/10/20986211xq2.png"><img class="alignnone size-thumbnail wp-image-4" title="20986211xq2" src="http://evcz.tk/blog/wp-content/uploads/2008/10/20986211xq2-150x150.png" alt="" width="150" height="150" /></a></p>
<p><strong>Tested on</strong>:</p>
<p><span style="color: green;"><strong>Success</strong></span></p>
<ul>
<li>OVH kimsufi reloaded (Intel Celeron 220)</li>
<li>OVH kimsufi reloaded xl (Intel e2180, Asus P5VD2-VM)</li>
<li><a href="http://img386.imageshack.us/my.php?image=94391747nx8.png" target="_blank">OVH kimsufi reloaded xxl (Intel e7200, Intel DG31PR)</a></li>
<li>OVH SP BestOF (Intel e6750)</li>
<li>Keyweb KM 4400 DC (Intel e4500, Ati chipset IIRC)</li>
<li>Intel i5 / p55 / e1000e eth</li>
<li>OVH kimsufi Q-1T</li>
<li>OVH kimsufi i7-2T (pxe kernel modification required: <a href="http://kbase.redhat.com/faq/docs/DOC-17783">instructions</a>, needs the eth attansic module)</li>
<li>Dell R200</li>
<li>Dell R410</li>
<li>a lot others&#8230;.</li>
</ul>
<p><strong>Known problems</strong></p>
<ul>
<li>If you didn&#8217;t follow exactly the how-to and did a custom partioning with /boot/ partition on it&#8217;s own you will have to take away the /boot/ path from the menu.lst &#8230;</li>
<li>OVH netboot kernels might no more be able to boot into your box (even without LVM&#8230; dunno&#8230; maybe I did a too &#8220;base&#8221; install&#8230;)</li>
<li>keep a vnc password short&#8230; most clients cannot auth with long passwords</li>
<li>some ISPs may block incoming vnc traffic in that case consider to use the <strong>vncconnect=host:port</strong> (instead of <strong>vnc</strong>) trigger to have the server connecting to your PC (documentation: <a href="http://dcantrel.fedorapeople.org/doc/vnc/VNC_Whitepaper-vnc-connect-mode.html">vncconnect</a> )</li>
<li>I had big trouble with certain servers not being able to run the CentOS 5.5 pxe install&#8230; on those I had to fall-back using the 5.4 install.. in case you want to use them you can find everything in here: <a href="http://vault.centos.org/5.4/">http://vault.centos.org/5.4/</a>: make sure to adjust also the mirror in the grub config file!</li>
</ul>
<p><strong>If not working</strong></p>
<ul>
<li>If the box do not come up (ping) after the reboot&#8230; do a reimage and try over&#8230; double check the settings&#8230; expecially network settings.</li>
<li>If the box does not works (not ping reply) and you are sure networking is set correctly try to boot vkvm to see if the PXE kernel is loaded properly to exclude any problem with the bootloader.</li>
</ul>
<p><strong>Random things</strong></p>
<ul>
<li><a href="http://dcantrel.fedorapeople.org/doc/vnc/VNC_Whitepaper-vnc-modes-in-anaconda.html">http://dcantrel.fedorapeople.org/doc/vnc/VNC_Whitepaper-vnc-modes-in-anaconda.html</a></li>
<li><a href="http://fedoraproject.org/wiki/Anaconda/Options">http://fedoraproject.org/wiki/Anaconda/Options</a></li>
<li>in this example I used the 32bit image&#8230; 64bit is exactly the same, just change the image you fetch at the beginning from the CentOS mirror and the mirror path into the grub config <img src='http://evcz.tk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>if you are running grub2 (like ubuntu 9.10) this is an example on how to set it up:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>grub.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">40</span>_custom
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>grub.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">40</span>_custom</pre></div></div>

<p>place in there something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">menuentry <span style="color: #ff0000;">&quot;centos.pxe&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">root</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>md0<span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz.cent.pxe vnc <span style="color: #007800;">vncpassword</span>=YOURPSW headless <span style="color: #007800;">ip</span>=YOURIP <span style="color: #007800;">netmask</span>=255.255.255.0 <span style="color: #007800;">gateway</span>=GATEWAYIP <span style="color: #007800;">dns</span>=8.8.8.8 <span style="color: #007800;">ksdevice</span>=eth0 <span style="color: #007800;">method</span>=http:<span style="color: #000000; font-weight: bold;">//</span>ftp.hosteurope.de<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>centos.org<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #007800;">lang</span>=en_US <span style="color: #007800;">keymap</span>=us
initrd <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img.cent.pxe
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>save and issue:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-grub2</pre></div></div>

</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://evcz.tk/blog/2008/10/21/remote-centos-install/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: evcz.tk @ 2012-02-07 06:13:23 by W3 Total Cache -->
