<?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>jcarle.com &#187; Windows Server</title>
	<atom:link href="http://www.jcarle.com/category/windows-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jcarle.com</link>
	<description>The musings of a developer</description>
	<lastBuildDate>Mon, 21 Mar 2011 16:53:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing CentOS 5.5 with Linux Integration Services 2.1 on Hyper-V R2</title>
		<link>http://www.jcarle.com/2010/12/06/installing-centos-5-5-with-linux-integration-services-2-1-on-hyper-v-r2/</link>
		<comments>http://www.jcarle.com/2010/12/06/installing-centos-5-5-with-linux-integration-services-2-1-on-hyper-v-r2/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 05:51:13 +0000</pubDate>
		<dc:creator>Jean-Sebastien Carle</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.jcarle.com/?p=208</guid>
		<description><![CDATA[Hyper-V R2 brings some powerful virtualization to the table for those of us who do not have either the skills or the desire to work with virtual machineware. Most fans of Hyper-V are also likely to be well versed in Windows and may often lack the knowledge to rummage through Linux. Although there are many [...]]]></description>
			<content:encoded><![CDATA[<p>Hyper-V R2 brings some powerful virtualization to the table for those of us who do not have either the skills or the desire to work with virtual machineware. Most fans of Hyper-V are also likely to be well versed in Windows and may often lack the knowledge to rummage through Linux. Although there are many resources available regarding Linux on Hyper-V, I felt that most assumed the reader had intimate knowledge with Linux, which is often not the case.</p>
<p>For Windows administrators new to Linux who wish to provide virtualized services to their end-users, my recommendation is to stick to CentOS 5.5. Being a close derivative of Red Hat Enterprise Linux (RHEL), the officially supported distribution by Microsoft, installation of the Integration Components is simplified and stability is matched to what is found when running RHEL.</p>
<p><span id="more-208"></span></p>
<h3>Requirements</h3>
<p>You will need the CentOS 5.5 x64 installation DVD ISO (CentOS-5.5-x86_64-bin-DVD-1of2.iso) which can be found at <a href="http://isoredirect.centos.org/centos/5/isos/x86_64/">http://isoredirect.centos.org/centos/5/isos/x86_64/</a>.</p>
<p>You will also need the Linux Integration Services 2.1 ISO (LinuxIC v21.iso) available through the Microsoft Download Center at <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551">http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551</a>.</p>
<h3>Initial virtual machine Settings</h3>
<p>To create the initial virtual machine, you will need to use the Legacy Network Adapter and limit yourself to a single CPU. You will also want to take time to decide how large of a VHD to allocate ahead of time as expanding a Linux partition can be a little complicated. Personally, I find 20GB to be sufficient for small, single purpose Linux virtual machines.</p>
<p><img class="size-full wp-image-209 alignnone" title="CentOS-HyperV-Settings-01" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Settings-01.png" alt="" width="726" height="680" /></p>
<h3>Installing CentOS 5.5</h3>
<p>After booting from the CentOS ISO, you are presented with the choice to do a graphical or a text mode installation. To choose the text mode installation (as used here), simply type &#8220;linux text&#8221; at the boot: prompt and hit enter.</p>
<p><img class="alignnone size-full wp-image-211" title="CentOS-HyperV-Setup-01" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-01.png" alt="" width="640" height="480" /></p>
<p>To navigate throughout the next portion of the text mode installation, use the Tab key to navigate between fields and the Space key to select options or hit buttons.</p>
<p>You will be asked if you would like to do a media test. You can safely skip this.</p>
<p><img class="alignnone size-full wp-image-212" title="CentOS-HyperV-Setup-02" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-02.png" alt="" width="640" height="400" /></p>
<p>The initial welcome screen to the installation process.</p>
<p><img class="alignnone size-full wp-image-213" title="CentOS-HyperV-Setup-03" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-03.png" alt="" width="640" height="400" /></p>
<p>Choose your language as appropriate.</p>
<p><img class="alignnone size-full wp-image-214" title="CentOS-HyperV-Setup-04" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-04.png" alt="" width="640" height="400" /></p>
<p>And your keyboard.</p>
<p><img title="CentOS-HyperV-Setup-05" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-05.png" alt="" width="640" height="400" /></p>
<p>You must then partition your VHD for Linux. As you will be starting off with a fresh VHD, you can simply choose &#8220;Use free space on selected drives and create default layout.&#8221; and continue with OK.</p>
<p><img class="alignnone size-full wp-image-216" title="CentOS-HyperV-Setup-06" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-06.png" alt="" width="640" height="400" /></p>
<p>Be sure to hit No to continue as hitting Yes will simply bring you back to the previous screen.</p>
<p><img class="alignnone size-full wp-image-217" title="CentOS-HyperV-Setup-07" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-07.png" alt="" width="640" height="400" /></p>
<p>As long as you have properly configured your virtual machine to use the <strong>Legacy</strong> Network Adapter, you will be presented with the opportunity to have the installation configure it for you.</p>
<p><img class="alignnone size-full wp-image-218" title="CentOS-HyperV-Setup-08" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-08.png" alt="" width="640" height="400" /></p>
<p>Check the &#8220;Enable IPv4 support&#8221; option and hit OK to continue.</p>
<p><img class="alignnone size-full wp-image-219" title="CentOS-HyperV-Setup-09" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-09.png" alt="" width="640" height="400" /></p>
<p>Switch to the &#8220;Manual address configuration&#8221; option and enter your IP address and netmask as appropriate.</p>
<p><img class="alignnone size-full wp-image-220" title="CentOS-HyperV-Setup-10" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-10.png" alt="" width="640" height="400" /></p>
<p>Continue on by entering your default gateway (usually your router or your network&#8217;s default route). If you have internal DNS servers for your network, enter them here or alternatively, you can use <a href="http://www.opendns.com/">OpenDNS</a>.</p>
<p><img class="alignnone size-full wp-image-221" title="CentOS-HyperV-Setup-11" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-11.png" alt="" width="640" height="400" /></p>
<p>The name of your virtual machine is defined here as the hostname.</p>
<p><img class="alignnone size-full wp-image-222" title="CentOS-HyperV-Setup-12" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-12.png" alt="" width="640" height="400" /></p>
<p>Select your time zone and continue.</p>
<p><img class="alignnone size-full wp-image-223" title="CentOS-HyperV-Setup-13" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-13.png" alt="" width="640" height="400" /></p>
<p>Be sure to choose a secure root password as the root user has complete access to the entire virtual machine and SSH is enabled on first boot.</p>
<p><img class="alignnone size-full wp-image-224" title="CentOS-HyperV-Setup-14" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-14.png" alt="" width="640" height="400" /></p>
<p>For a bare minimum installation, uncheck all of the packages, check &#8220;Customize software selection&#8221; and hit OK.</p>
<p><img title="CentOS-HyperV-Setup-15" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-15.png" alt="" width="640" height="400" /></p>
<p>Uncheck all package groups and continue. Anything you require can later be installed by yum anyway.</p>
<p><img class="alignnone size-full wp-image-226" title="CentOS-HyperV-Setup-16" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-16.png" alt="" width="640" height="400" /></p>
<p>Installation will begin once you continue past this screen.</p>
<p><img class="alignnone size-full wp-image-227" title="CentOS-HyperV-Setup-17" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-17.png" alt="" width="640" height="400" /></p>
<p>Once installation is complete, you will be required to reboot.</p>
<p><img class="alignnone size-full wp-image-228" title="CentOS-HyperV-Setup-18" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-18.png" alt="" width="640" height="400" /></p>
<p>After rebooting, you will be ready to login. At this point, I recommend connecting via SSH in order to copy and paste commands.</p>
<p><img title="CentOS-HyperV-Setup-19" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Setup-19.png" alt="" width="640" height="400" /></p>
<h3>Preparing to install the Linux Integration Components</h3>
<p>The first thing that must be done is to update all the base packages and upgrade the kernel to the latest version. Simply run a &#8220;yum update&#8221;, then reboot.</p>
<pre class="brush: bash; title: ; notranslate">
yum update
reboot
</pre>
<p>You will need to install the required &#8220;kernel-devel&#8221;, &#8220;gcc&#8221;, &#8220;make&#8221; and &#8220;perl&#8221; packages to compile and install the Linux Integration Components. Also, I suggest installing the VIM text editor.</p>
<pre class="brush: bash; title: ; notranslate">
yum install kernel-devel
yum install gcc
yum install make
yum install perl
yum install vim-enhanced.x86_64
</pre>
<h3>Installing the Linux Integration Components</h3>
<p>Attach the Linux Integration Services ISO. Once attached, you will need to mount the cdrom. You must then copy and compile the source in a temporary folder. Finally, you will be able install the Linux Integration Components. &#8220;make&#8221; will compile the source, then &#8220;make install&#8221; will install the compiled drivers.</p>
<pre class="brush: bash; title: ; notranslate">
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic
umount /mnt/cdrom
cd /opt/linux_ic
make
make install
</pre>
<p>The time synchronisation component is not compatible with CentOS, therefore you will need to install &#8220;adjtimex&#8221;.</p>
<pre class="brush: bash; title: ; notranslate">
yum install adjtimex
</pre>
<p>You will need to shutdown the virtual machine in order to enable the Synthetic Network Adapter and increase the number of CPUs allocated. To do so, run the shutdown command.</p>
<pre class="brush: bash; title: ; notranslate">
shutdown -h -t 0 0
</pre>
<p>Change the settings in Hyper-V once the virtual machine has completely shutdown.</p>
<p><img class="alignnone size-full wp-image-210" title="CentOS-HyperV-Settings-02" src="http://www.jcarle.com/wp-content/uploads/2010/12/CentOS-HyperV-Settings-02.png" alt="" width="726" height="680" /></p>
<p>Start the virtual machine and log in. You will need to reconfigure the network adapter as &#8220;eth0&#8243; will have disapeared and a new adapter, &#8220;seth0&#8243;, will have taken its place.</p>
<p>The easiest way to do this is to edit the MAC address in the &#8220;eth0&#8243; backup file to match the MAC address of the Network Adapter as displayed in the virtual machine settings in Hyper-V, then copy the backup file as &#8220;seth0&#8243; and restart the network service. Don&#8217;t forget to also update the DEVICE line use &#8220;seth0&#8243;.</p>
<pre class="brush: bash; title: ; notranslate">
cd /etc/sysconfig/network-scripts/
vi ifcfg-eth0.bak
(edit DEVICE and HWADDR)
(save and exit)
rm -f ifcfg-seth0
mv ifcfg-eth0.bak ifcfg-seth0
service network restart
</pre>
<p>If all went well, you will find yourself with a bare minimum install of CentOS 5.5 running the latest kernel and version 2.1 of the Linux Integration Services. Fully virtualized and synthetic. You can now enjoy the many benefits of Hyper-V Linux such as the ability to shutdown the virtual machine without the root password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jcarle.com/2010/12/06/installing-centos-5-5-with-linux-integration-services-2-1-on-hyper-v-r2/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Fixing the Volume Shadow Copy service</title>
		<link>http://www.jcarle.com/2009/09/06/fixing-the-volume-shadow-copy-service/</link>
		<comments>http://www.jcarle.com/2009/09/06/fixing-the-volume-shadow-copy-service/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 04:43:58 +0000</pubDate>
		<dc:creator>Jean-Sebastien Carle</dc:creator>
				<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.jcarle.com/?p=162</guid>
		<description><![CDATA[After installing DHCP on Windows Server 2008 R2, you may start to see the following error message in the event logs : Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,&#8230;). hr = 0&#215;80070005, Access is denied. Inspection of the detailed tab of the event log entry will show information about the process that [...]]]></description>
			<content:encoded><![CDATA[<p>After installing DHCP on Windows Server 2008 R2, you may start to see the following error message in the event logs :</p>
<blockquote><p>Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,&#8230;).  hr = 0&#215;80070005, Access is denied.</p></blockquote>
<p>Inspection of the detailed tab of the event log entry will show information about the process that generated the error. Take note of the user mentioned after the &#8220;- User: Name:&#8221; portion of the bytes. To resolve this error, simply give that user full permission to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VSS registry key.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jcarle.com/2009/09/06/fixing-the-volume-shadow-copy-service/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Fixing the DFS Namespace service</title>
		<link>http://www.jcarle.com/2009/09/05/fixing-the-dfs-namespace-service/</link>
		<comments>http://www.jcarle.com/2009/09/05/fixing-the-dfs-namespace-service/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 03:44:55 +0000</pubDate>
		<dc:creator>Jean-Sebastien Carle</dc:creator>
				<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.jcarle.com/?p=143</guid>
		<description><![CDATA[After you install Active Directory on Windows Server 2008 R2, you may start seeing the following error message after the server boots : The DFS Namespace service could not initialize cross forest trust information on this domain controller, but it will periodically retry the operation. The return code is in the record data. This occurs [...]]]></description>
			<content:encoded><![CDATA[<p>After you install Active Directory on Windows Server 2008 R2, you may start seeing the following error message after the server boots :</p>
<blockquote><p>The DFS Namespace service could not initialize cross forest trust information on this domain controller, but it will periodically retry the operation. The return code is in the record data.</p></blockquote>
<p>This occurs because the DFS Namespace service attempts to access Active Directory before it has completely initialized.</p>
<p>To resolve this issue, we simply have to force the DFS Namespace service to start after the Active Directory service has initialized. We can do this by setting the DFS Namespace service to depend on the Active Directory service as well as setting it to a Delayed Startup mode.</p>
<p>To make those changes, start regedit and make the following changes :</p>
<ol>
<li>Navigate to the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dfs</li>
<li>Modify the DependOnService value and add NTDS to the list.</li>
<li>Create a new DWORD value named DelayedAutostart and set its value to 1.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.jcarle.com/2009/09/05/fixing-the-dfs-namespace-service/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

