<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>IThastobecool.com</title>
	
	<link>http://www.ithastobecool.com</link>
	<description>Geeks have opinions too!</description>
	<lastBuildDate>Mon, 06 Feb 2012 11:04:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Ithastobecoolcom" /><feedburner:info uri="ithastobecoolcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Step by step guide: Installing Citrix XenClient RC2 from USB</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/W_ocowG2wpk/</link>
		<comments>http://www.ithastobecool.com/2010/09/05/step-by-step-guide-installing-citrix-xenclient-rc2-from-usb/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 00:56:44 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Cool!]]></category>
		<category><![CDATA[XenClient]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/?p=682</guid>
		<description><![CDATA[Ok, so RC2 for Citrix XenClient was released, great.. but I had a bit of a problem… because I have replaced the cd-rom drive of my laptop computer with a secondary hard drive which I use for XenClient. So I needed an alternate installation method for XenClient that didn’t involve booting from the CD… Booting [...]]]></description>
				<content:encoded><![CDATA[<p>Ok, so RC2 for Citrix XenClient was released, great.. but I had a bit of a problem… because I have replaced the cd-rom drive of my laptop computer with a secondary hard drive which I use for XenClient. So I needed an alternate installation method for XenClient that didn’t involve booting from the CD… Booting from USB seemed the logical choice… but that wasn’t as trivial as I first thought it would be, at least not when using a Windows workstation to create your bootable USB <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/wlEmoticonwinkingsmile.png" />. If you use a Linux workstation it’s very easy…</p>
<p><strong>Linux:</strong></p>
<p>Insert the XenClient installer CD and run:</p>
<p>
<pre class="brush: bash; title: ; notranslate">sh /mount/cdrom/usb_inst.sh dialog</pre>
</p>
<p>assuming that you have mounted the cdrom to /mount/cdrom ofcourse.</p>
<p><strong>Windows:</strong></p>
<p>Ok, but what if you’re like me and don’t have a Linux workstation lying around to create your bootable USB? No worries, I found a way to make a bootable USB stick/disk by using a few GNUWin32 tools that are available <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/wlEmoticonsmile.png" />.</p>
<p><em><span style="text-decoration: underline">Setup your workspace       <br /></span></em><span style="font-size: 9pt">First we need to create a directory structure so we have an easy way to create the bootable USB installation.</span></p>
<p>Create a directory called XC_USB somewhere and the subfolders needed (in my example I create it under the root of D: )</p>
<blockquote><p>mkdir d:\XC_USB     <br />mkdir d:\XC_USB\staging      <br />mkdir d:\XC_USB\bin</p>
</blockquote>
<p><span style="font-size: 9pt"></span></p>
<p><span style="font-size: 9pt">Insert your XenClient CD or mount the ISO file and copy the contents of the isolinux folder to the staging directory</span></p>
<blockquote><p>xcopy H:\isolinux D:\XC_USB\staging /y</p>
</blockquote>
<p>Copy the packages.main folder to the staging directory</p>
<blockquote><p>xcopy H:\packages.main D:\XC_USB\staging\packages.main\ /y /s /e</p>
</blockquote>
<p><span style="font-size: 9pt"></span></p>
<p><em><span style="text-decoration: underline">Get the tools       <br /></span></em>Download the following tools and extract them to the bin directory created above.</p>
<ul>
<li>cpio (binaries) – <a title="http://gnuwin32.sourceforge.net/downlinks/cpio-bin-zip.php" href="http://gnuwin32.sourceforge.net/downlinks/cpio-bin-zip.php">http://gnuwin32.sourceforge.net/downlinks/cpio-bin-zip.php</a> </li>
<li>sed (dependencies) - <a title="http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-dep.zip" href="http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-dep.zip">http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-dep.zip</a> </li>
<li>sed (binaries) - <a title="http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-bin.zip" href="http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-bin.zip">http://downloads.sourceforge.net/gnuwin32/sed-4.2-1-bin.zip</a> </li>
<li>gzip (binaries) - <a title="http://gnuwin32.sourceforge.net/downlinks/gzip-bin-zip.php" href="http://gnuwin32.sourceforge.net/downlinks/gzip-bin-zip.php">http://gnuwin32.sourceforge.net/downlinks/gzip-bin-zip.php</a> </li>
<li>findutils (binaries) - <a title="http://gnuwin32.sourceforge.net/downlinks/findutils-bin-zip.php" href="http://gnuwin32.sourceforge.net/downlinks/findutils-bin-zip.php">http://gnuwin32.sourceforge.net/downlinks/findutils-bin-zip.php</a> </li>
<li>syslinux (download the 3.86 .zip) -&#160; <a href="http://www.kernel.org/pub/linux/utils/boot/syslinux/">http://www.kernel.org/pub/linux/utils/boot/syslinux/</a> </li>
</ul>
<p><strong>HINT: </strong>In all the gnuwin32 zip files the files you need are located in the bin subfolder of the zip file.    <br /><strong>IMPORTANT: </strong>For syslinux it is very important that you do <strong>NOT USE</strong> the syslinux 4.x release, but the 3.x release. Seeing as the mboot.c32 from the cd was created with syslinux 3.x it will not work with 4.x. The syslinux.exe is located in the win32 folder in the zip file.</p>
<p>Your XC_USB\bin folder should now look like this:</p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/09/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/image_thumb2.png" width="244" height="107" /></a></p>
<p><em><span style="text-decoration: underline">Slipstream the source files       <br /></span></em><span style="font-size: 9pt">First, we need to slipstream the packages.main files into the initrd (rootfs.gz) of the installer.</span></p>
<p><span style="font-size: 9pt">Unzip the rootfs.gz file</span></p>
<blockquote><p>D:\XC_USB\bin\gzip.exe –9 –f –d D:\XC_USB\staging\rootfs.gz</p>
</blockquote>
<p>Change directory to XC_USB\staging (important for inserting the packages.main into the initrd)</p>
<blockquote><p>cd D:\XC_USB\staging</p>
</blockquote>
<p>Slipstream the packages.main directory into the decompressed initrd (rootfs)</p>
<blockquote style="width: 748px; height: 55px"><p>d:\XC_USB\bin\find.exe packages.main –print | d:\XC_USB\bin\cpio.exe --create --append --format newc --verbose --file rootfs</p>
</blockquote>
<p>What this trick does: we create a list of file using find –print and use that list as input for cpio to append to the rootfs archive.</p>
<p>Next we need to find and replace packages.main\ with packages.main/ (remember this is going to be a linux install environment, so using a backslash as file separator will result in errors)</p>
<blockquote><p>d:\XC_USB\bin\sed –b &quot;s/packages.main\\/packages.main\//&quot; &lt; rootfs &gt; rootfs2     <br />del rootfs      <br />ren rootfs2 rootfs</p>
</blockquote>
<p>When that is done it’s time to create and slipstream the answerfile.</p>
<p><em><span style="text-decoration: underline">Creating the answerfile</span></em></p>
<p><span style="font-size: 9pt">For a full reference of the answerfiles please consult this <a href="http://www.ithastobecool.com/wp-content/uploads/2010/09/answerfiles1.txt" target="_blank">answerfiles.txt</a>      <br />(Open with Notepad++ or another linux-aware text editor)</span></p>
<p>Creating the answerfile is very easy, just create a new textfile.   <br />Here is an example for you:    <br /><a href="http://www.ithastobecool.com/wp-content/uploads/2010/09/normal.txt" target="_blank">Interactive installation (default)</a></p>
<p><strong>IMPORTANT: </strong>There 2 very important sections in the answerfile I provided.</p>
<blockquote><p>&lt;preinstall&gt;     <br /># !/bin/bash      <br />sed '/[ -r &quot;\${INSTALL_SOURCE_DIR}/\${PACKAGES_DOT_MAIN}/\${DOM0_ROOTFS}&quot; ] || exit \${CheckFail}/s/^/#/' /install/stages/Check-initrd-data &gt; Check-initrd-data.tmp      <br />cat Check-initrd-data.tmp &gt; /install/stages/Check-initrd-data      <br />chmod 755 /install/stages/Check-initrd-data      <br />&lt;/preinstall&gt;</p>
</blockquote>
<p>This is used to comment out a line the Check-initrd-data installation script of the XenClient installer, that causes installation to fail. <strong>If you remove this preinstall script, your installation will not succeed! </strong><a href="http://www.ithastobecool.com/2010/09/05/bugcheck-initrd-data-xenclient-rc2-using-bootmedia-source/" target="_blank">Read my previous blogpost for more details on this</a>.</p>
<blockquote><p>&lt;source type=&quot;bootmedia&quot;&gt;&lt;/source&gt;</p>
</blockquote>
<p>This tells the XenClient installer to look for the packages.main folder in the root of the booted media (so XenClient knows it is working with a slipstreamed installation)</p>
<p>Other then those 2 options you are free to do whatever in your answerfile <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/wlEmoticonsmile.png" />    <br />When you created your answerfile, save it in the staging directory. We are going to slipstream it in the initrd as well. In this example I will use <strong>answerfile.henk</strong></p>
<blockquote><p>cd d:\XC_USB\staging     <br />d:\XC_USB\bin\find answerfile.henk | d:\XC_USB\bin\cpio.exe --create --append --format newc --verbose --file rootfs</p>
</blockquote>
<p>Compress the initrd (rootfs) file</p>
<blockquote><p>D:\XC_USB\bin\gzip –9 –f D:\XC_USB\staging\rootfs</p>
</blockquote>
<p><em><span style="text-decoration: underline">Preparing the syslinux.cfg file</span></em></p>
<p><span style="font-size: 9pt">First, rename isolinux.cfg to syslinux.cfg in the staging directory</span></p>
<blockquote><p>ren isolinux.cfg syslinux.cfg</p>
</blockquote>
<p>Open syslinux.cfg in notepad or another text editor and insert the following:</p>
<p>Make sure all filenames are leaded by a slash /. The filenames are:</p>
<ul>
<li>mboot.c32 –&gt; /mboot.c32 </li>
<li>xen.gz –&gt; /xen.gz </li>
<li>vmlinuz –&gt; /vmlinuz </li>
<li>rootfs.gz –&gt; /rootfs.gz </li>
</ul>
<p>Remove the eject_cdrom=1 entry from all 3 boot options</p>
<p>Or use the following command to do it for you, if you are lazy like me, beware it is a oneliner, might not appear so due to website formatting</p>
<blockquote style="width: 776px; height: 55px"><p>D:\XC_USB\bin\sed “s/mboot.c32/\/mboot.c32/” &lt; syslinux.cfg | D:\XC_USB\bin\sed “s/xen.gz/\/xen.gz/” | D:\XC_USB\bin\sed “s/vmlinuz/\/vmlinuz/” | D:\XC_USB\bin\sed “s/rootfs.gz/\/rootfs.gz/” | d:\xc_usb\bin\sed “s/eject_cdrom=1//”&#160; &gt; syslinux.cfg.tmp | del syslinux.cfg | ren syslinux.cfg.tmp syslinux.cfg</p>
</blockquote>
<p>Edit the answerfile= entry to match the filename of your answerfile, again, this entry must be lead by a /. So in my case it would be:</p>
<blockquote><p>answerfile=/answerfile.henk</p>
</blockquote>
<p>Finally my syslinux.cfg will look like this:</p>
<blockquote><p>DEFAULT xenclient     <br />DISPLAY bootmsg.txt      <br />PROMPT 1      <br />TIMEOUT 20      <br />LABEL xenclient      <br />kernel /mboot.c32      <br />append /xen.gz max_cstate=0 console=com1 com1=115200/921600,8n1,magic --- /vmlinuz quiet root=/dev/ram rw start_install=new&#160; answerfile=/answerfile.henk console=xencons console=/dev/tty2 --- /rootfs.gz      <br />LABEL verbose      <br />kernel /mboot.c32      <br />append /xen.gz max_cstate=0 console=com1,vga com1=115200/921600,8n1,magic --- /vmlinuz quiet root=/dev/ram rw start_install=new&#160; answerfile=/answerfile.henk console=xencons --- /rootfs.gz      <br />LABEL automatic      <br />kernel /mboot.c32      <br />append /xen.gz max_cstate=0 console=com1 com1=115200/921600,8n1,magic --- /vmlinuz quiet root=/dev/ram rw start_install=new&#160; answerfile=/answerfile.henk console=xencons console=/dev/tty2 --- /rootfs.gz</p>
</blockquote>
<p><em><span style="text-decoration: underline">Preparing the USB disk/stick</span></em></p>
<p><span style="font-size: 9pt">Make sure you formatted your usb stick/disk using fat32 filesystem</span></p>
<p>Copy all files except your answerfile and the packages.main directory to your usb disk/stick (no harm if you do copy them though)</p>
<blockquote><p>copy D:\XC_USB\staging\* F:\</p>
</blockquote>
<p>After that it’s time to syslinux the target partition to make it bootable.</p>
<blockquote><p>D:\XC_USB\bin\syslinux.exe –a –f F:</p>
</blockquote>
<p>And that’s it! <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Open-mouthed smile" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/wlEmoticonopenmouthedsmile.png" />    <br />Now just boot your system from USB and install XenClient from USB <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/wlEmoticonsmile.png" />.</p>
<p>Have fun!</p>
<p><strong>-Henk Hofs</strong></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/W_ocowG2wpk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/09/05/step-by-step-guide-installing-citrix-xenclient-rc2-from-usb/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/09/05/step-by-step-guide-installing-citrix-xenclient-rc2-from-usb/</feedburner:origLink></item>
		<item>
		<title>[Bug]Check-initrd-data: XenClient RC2 using bootmedia source</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/lvxuf8Y3Xu8/</link>
		<comments>http://www.ithastobecool.com/2010/09/05/bugcheck-initrd-data-xenclient-rc2-using-bootmedia-source/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 00:29:19 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Bug]]></category>
		<category><![CDATA[XenClient]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/2010/09/05/bugcheck-initrd-data-xenclient-rc2-using-bootmedia-source/</guid>
		<description><![CDATA[I noticed that it's possible to add the packages.main to the rootfs.gz using the sh script: add-repository-to-initrd.sh So I went to work on a unix machine to slipstream my answerfile and the packages.main into the initrd data (rootfs.gz). In the answerfile i used the &#60;source type=&#34;bootmedia&#34;&#62;&#60;/source&#62; element so the installer would look for the packages.main [...]]]></description>
				<content:encoded><![CDATA[<p>I noticed that it's possible to add the packages.main to the rootfs.gz using the sh script: <b>add-repository-to-initrd.sh</b>    <br />So I went to work on a unix machine to slipstream my answerfile and the packages.main into the initrd data (rootfs.gz). </p>
<p>In the answerfile i used the &lt;source type=&quot;bootmedia&quot;&gt;&lt;/source&gt; element so the installer would look for the packages.main in the root of the filesystem.    <br />I put everything on my usb stick, created the syslinux.cfg file, syslinuxed the usb stick and booted up.. </p>
<p>The installer booted up perfectly, I could see that it was using my answerfile, but then it kept looping in the <b>Verifying installation media</b> screen...     <br />Switching to Alt+F2 I could see the script <b>Check-initrd-data</b> was returning <b>CheckFail</b>    <br />So I switched to Alt+F3, logged in as root and looked at the contents of<strong> /install/stages/Check-initrd-data</strong>    <br />I compared this script to <b>/install/stages/Verify-optical-media</b> and noticed a difference in the link functions. </p>
<p><strong>Check-initrd-data:</strong>    <br /><font face="Lucida Console">link_bootmedia_repo()     <br />{      <br /># symlink so the installer can locate the install data      <br />if [ -r &quot;/${PACKAGES_DOT_MAIN}&quot; ] ; then      <br />mkdir -p $(dirname &quot;${INSTALL_SOURCE_DIR}&quot;)      <br />rm -rf &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}&quot;      <br />ln -s &quot;/${PACKAGES_DOT_MAIN}&quot; &quot;${INSTALL_SOURCE_DIR}/&quot;      <br />fi</font></p>
<p><font face="Lucida Console"><font color="#ff0000">[ -r &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${DOM0_ROOTFS}&quot; ] || exit</font> ${CheckFail}</font></p>
<p><font face="Lucida Console">for F in &quot;${PKGDATA_FILENAME}&quot; &quot;${REPOSITORY_FILENAME}&quot; ; do     <br />cp -f &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${F}&quot; &quot;${INSTALL_DATA}/&quot; || exit ${Abort}      <br />done      <br />}</font></p>
<p><b>Verify-optical-media:     <br /></b><font face="Lucida Console">link_bootmedia_repo()     <br />{      <br /># symlink so the installer can locate the install data      <br />if [ -r &quot;/${PACKAGES_DOT_MAIN}&quot; ] ; then      <br />mkdir -p $(dirname &quot;${INSTALL_SOURCE_DIR}&quot;)      <br />rm -rf &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}&quot;      <br />ln -s &quot;/${PACKAGES_DOT_MAIN}&quot; &quot;${INSTALL_SOURCE_DIR}/&quot;      <br />fi      <br /><font color="#9bbb59"># [ -r &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${DOM0_ROOTFS}&quot; ] || exit</font> ${CheckFail}</font></p>
<p><font face="Lucida Console">for F in &quot;${PKGDATA_FILENAME}&quot; &quot;${REPOSITORY_FILENAME}&quot; ; do     <br />cp -f &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${F}&quot; &quot;${INSTALL_DATA}/&quot; || exit ${Abort}      <br />done      <br />}</font></p>
<p>When I changed the line in <b>Check-initrd-media</b> (red) to match the one from <b>Verify-optical-media</b> (green), the installer worked, and finished my installation successfully.     <br />Of course I had to change this line by booting the installer from my usb disk using an answerfile that ran interactively (so I could change the <b>Check-initrd-media</b> script using vi before it was invoked, by using Alt+F3 to switch to an interactive shell)</p>
<p>My guess is that the variable: <b>${DOM0_ROOTFS}</b> is either not being populated by the other scripts that run before this script, or the value of <b>${DOM0_ROOTFS}</b> is not correct... I wonder why this check has been commented out in the <b>Verify-optical-media</b> script, which is responsible for checking the repository when installing from CD... </p>
<p>I know there has not been an official statement or documentation from Citrix about booting up from USB disk and/or slipstreaming the packages.main into the initrd. But I thought, hey the functions are all there... let's try them <a href="http://www.ithastobecool.com/wp-content/uploads/2010/09/clip_image001.gif"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.ithastobecool.com/wp-content/uploads/2010/09/clip_image001_thumb.gif" width="16" height="16" /></a></p>
<p><b><u>SUMMARY:</u></b></p>
<p>The script <b>/install/stages/Check-initrd-media</b> contains an error on<b> line 15</b>:</p>
<p>ORIGINAL LINE:</p>
<p><b><font color="#ff0000" face="Lucida Console">[ -r &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${DOM0_ROOTFS}&quot; ] || exit ${CheckFail}</font></b><b></b></p>
<p>FIX:</p>
<p><b><font color="#9bbb59" face="Lucida Console"># [ -r &quot;${INSTALL_SOURCE_DIR}/${PACKAGES_DOT_MAIN}/${DOM0_ROOTFS}&quot; ] || exit ${CheckFail}</font></b></p>
<p><b><u>WORKAROUND:       <br /><font style="font-size: 9pt"></font></u></b>Use a preinstall script in your answer file to comment out the faulty script    <br />&lt;preinstall&gt;    <br /><font face="Lucida Console"># !/bin/bash     <br />sed '/ || exit \${CheckFail}/s/^/#/' /install/stages/Check-initrd-data &gt; Check-initrd-data.tmp      <br />cat Check-initrd-data.tmp &gt; /install/stages/Check-initrd-data      <br />chmod 755 /install/stagse/Check-initrd-data</font>    <br />&lt;/preinstall&gt;    </p>
<p><b><i>-Henk Hofs</i></b></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/lvxuf8Y3Xu8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/09/05/bugcheck-initrd-data-xenclient-rc2-using-bootmedia-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/09/05/bugcheck-initrd-data-xenclient-rc2-using-bootmedia-source/</feedburner:origLink></item>
		<item>
		<title>Installing Citrix XenClient from MDT / SCCM / WinPE</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/PIT0mQ1GUoE/</link>
		<comments>http://www.ithastobecool.com/2010/06/21/installing-citrix-xenclient-from-mdt-sccm-winpe/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 22:41:14 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Cool!]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[mdt]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[WAIK]]></category>
		<category><![CDATA[XenClient]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/?p=674</guid>
		<description><![CDATA[Ok… I have been playing with Citrix XenClient for a while now, and I like it a lot! Yes it has it’s quirks, bugs and issues, but what can we expect from a RC! So far I think Citrix has done an amazing job… to you XenClient developers, we salute you! Ok, let’s get to [...]]]></description>
				<content:encoded><![CDATA[<p>Ok… I have been playing with Citrix XenClient for a while now, and I like it a lot!<br />
Yes it has it’s quirks, bugs and issues, but what can we expect from a RC! So far I think Citrix has done an amazing job… to you XenClient developers, we salute you!</p>
<p>Ok, let’s get to the point.<br />
This XenClient is awesome, but how are customers going to DEPLOY it to their systems? Using the CD was no option ofcourse!</p>
<p>So against all my geek instincts, I decided to read the XenClient manual. And b00m! They support installation using a PXELINUX server! Whooho!<br />
But how many big enterprises, that are Windows houses have a PXELINUX server installed? Outside of universities I rarely see client deployment systems for Linux. Most of my customers use either MDT or SCCM to deploy their client machines. So I combined the steps in the XenClient manual, with my (very very very limited) knowledge of Linux systems. And came up with the following solution.</p>
<p>I created a script that will run from WindowsPE, install the necessary boot files onto a 100 mb fat partition. Inject your custom answerfile(s) and reboot the computer into the XenClient installation using the answerfile you have passed as an argument <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>VERY IMPORTANT. This script assumes that there is a 100mb (or more) FAT volume mounted to driveletter C: during the WindowsPE phase. Use the partitioning of MDT/SCCM to do this. Or create your own custom diskpart script, if you want to run it from Windows PE.</strong></p>
<p>I use some free GNUWin / UnixTools for this script, which are not included in the download. But I provide the link where you can download them <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here are the instructions:</p>
<ul>
<li><strong>Copy the packages.main folder from the XenClient cd to a location on a http or ftp server.<br />
</strong>The parent location of the packages.main folder is inserted in the answerfile.<br />
In my case I have a webserver at <a href="http://10.0.0.12">http://10.0.0.12</a> in which I created a subfolder xenclient. In my answerfile I refer to <a href="http://10.0.0.12/xenclient">http://10.0.0.12/xenclient</a> as the source URL for the packages.</li>
</ul>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image3.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb3.png" border="0" alt="image" width="244" height="141" /></a></p>
<ul>
<li><strong>Creating the package</strong></li>
</ul>
<ol>
<li>Download and extract <a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/XCInstaller.zip">my zip</a> file to C:\XCInstaller for example</li>
<li>Download cpio for windows from <a href="http://sourceforge.net/projects/gnuwin32/files/cpio/">http://sourceforge.net/projects/gnuwin32/files/cpio/</a> and extract cpio.exe to C:\XCInstaller\bin<br />
<strong>IMPORTANT</strong>, download version <strong>2.4.2 (bin)</strong>, because the commands I use in my script seem to be broken in higher versions</li>
<li>Download UnxUtils from <a href="http://sourceforge.net/projects/unxutils/">http://sourceforge.net/projects/unxutils/</a> and extract usr\local\wbin\gzip.exe to C:\XCInstaller\bin</li>
<li>Download Syslinux from <a href="http://www.kernel.org/pub/linux/utils/boot/syslinux/">http://www.kernel.org/pub/linux/utils/boot/syslinux/</a> and extract win32\syslinux.exe to C:\XCInstaller\bin</li>
<li>Insert your XenClient cd and copy all files from the boot directory of the XenClient cd to C:\XCInstaller\boot</li>
</ol>
<ul>
<li><strong>Creating one or more answerfiles and place them in C:\XCInstaller\answerfiles</strong></li>
</ul>
<p>Here is an example of my answerfile</p>
<blockquote><p>&lt;interactive&gt;false&lt;/interactive&gt;<br />
&lt;mode&gt;fresh&lt;/mode&gt;<br />
&lt;source type="url"&gt;<a href="http://10.0.0.12/xenclient">http://10.0.0.12/xenclient</a>&lt;/source&gt;<br />
&lt;primary-disk&gt;sda&lt;/primary-disk&gt;<br />
&lt;network-interface mode="dhcp"&gt;&lt;/network-interface&gt;<br />
&lt;password&gt;somepassword&lt;/password&gt;<br />
&lt;enable-ssh&gt;true&lt;/enable-ssh&gt;<br />
&lt;license-key&gt;&lt;/license-key&gt;</p></blockquote>
<p>For a full reference of the answerfile, please consult the XenClient User Manual.</p>
<ul>
<li><strong>Running the package</strong></li>
</ul>
<p>This script can be run from within WindowsPE, so this means that you can either use a vanilla WinPE boot image, or use MDT or SCCM to start this script. I will give an example for all three scenarios <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>NOTE: </strong>The .cmd file takes an answerfile name as a a parameter.<br />
For example you have 2 answerfiles: fullunattend.txt and quickoptions.txt<br />
If you want to install this machine using fullunattend.txt you can use InstallXenClient.cmd fullunattend.txt<br />
If you do not specify a answerfile, the script will default back to the <strong>LAST </strong>answerfile found in the answerfiles directory. so if you have an answerfile called a.txt and an answerfile called z.txt and you did not specify the answerfile name, the script will default to z.txt</p>
<p><strong> </strong></p>
<p><strong>Vanilla Windows PE</strong></p>
<ul>
<li>Share the C:\XCInstaller folder so you can access it via the network (in my case I host it on my windows server: 10.0.0.140)</li>
<li>Start your target machine in Windows PE</li>
<li>Partition and format the disk using diskpart:<br />
select disk 0<br />
clean<br />
create partition primary size=100<br />
select partition 1<br />
format fs=fat quick<br />
assign letter=c<br />
exit</li>
</ul>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image4.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb4.png" border="0" alt="image" width="244" height="161" /></a></p>
<ul>
<li>Connect to the XCInstaller share<br />
(in my case: net use <a href="file://\\10.0.0.140\XCInstaller">\\10.0.0.140\XCInstaller</a>)</li>
<li>Start the script<br />
<a href="file://\\10.0.0.140\XCInstaller\InstallXenClient.cmd">\\10.0.0.140\XCInstaller\InstallXenClient.cmd</a><br />
<strong>NOTE: </strong>The .cmd file takes an answerfile name as a a parameter.<br />
For example you have 2 answerfiles: fullunattend.txt and quickoptions.txt<br />
If you want to install this machine using fullunattend.txt you can use InstallXenClient.cmd fullunattend.txt<br />
If you do not specify a answerfile, the script will default back to the <strong>LAST </strong>answerfile found in the answerfiles directory.</li>
<li>Reboot the machine and VOILA! Your xenserver installation is installing using your answerfile!</li>
</ul>
<p><strong>Microsoft Deployment Toolkit</strong></p>
<ul>
<li>Import the XCInstaller directory as an application in MDT</li>
</ul>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image5.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb5.png" border="0" alt="image" width="244" height="103" /></a></p>
<ul>
<li>Create a new custom task-sequence called Install XenClient</li>
</ul>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image6.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb6.png" border="0" alt="image" width="244" height="201" /></a></p>
<ul>
<li>Add the following steps to the task-sequence<br />
Fake a NEWCOMPUTER DEPLOYMENT TYPE, otherwise the diskpartitioning will fail.<br />
<a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image7.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb7.png" border="0" alt="image" width="244" height="213" /></a><br />
Partition the disk to a 100mb fat partition<br />
<a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image8.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb8.png" border="0" alt="image" width="244" height="216" /></a><br />
Start the InstallXenClient.cmd<br />
<a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image9.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb9.png" border="0" alt="image" width="244" height="215" /></a><br />
Reboot the computer in the XenClient installation<br />
<a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image10.png"><img style="display: inline; border-width: 0px;" title="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb10.png" border="0" alt="image" width="244" height="217" /></a></li>
</ul>
<p><strong>NOTE: </strong>It is very important that you do not use the Install Application step, but the custom command line step for the installation. The install application step will not run from within the WinPE phase of MDT. Point this command line to z:\Applications\YOURIMPORTDIRNAME\InstallXenClient.cmd (which is mounted by default by MDT to the distribution share)</p>
<p><strong>SCCM<br />
</strong>For SCCM the steps are almost identical as to MDT. Instead of importing an application &gt; create a new package. For the SCCM task-sequence you only need 3 steps:</p>
<ul>
<li>Format and Partition disk (make a 100mb fat partition)</li>
<li>Run Command Line (point it to run from package) InstallXenClient.cmd</li>
<li>Reboot Computer (in the target partition)</li>
</ul>
<p><strong>Et voila! Watch your target machine installing XenClient!</strong> Here are some“old-fashioned” screenshots, to prove I have it running. Seeing as XenClient requires VTx I couldn’t test it inside a VM and had to use a physical machine… (just an explanation for the photo’s)</p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0128.jpg"><img style="display: inline; border: 0px;" title="IMG_0128" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0128_thumb.jpg" border="0" alt="IMG_0128" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0129.jpg"><img style="display: inline; border: 0px;" title="IMG_0129" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0129_thumb.jpg" border="0" alt="IMG_0129" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0130.jpg"><img style="display: inline; border: 0px;" title="IMG_0130" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0130_thumb.jpg" border="0" alt="IMG_0130" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0133.jpg"><img style="display: inline; border: 0px;" title="IMG_0133" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0133_thumb.jpg" border="0" alt="IMG_0133" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0134.jpg"><img style="display: inline; border: 0px;" title="IMG_0134" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0134_thumb.jpg" border="0" alt="IMG_0134" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0135.jpg"><img style="display: inline; border: 0px;" title="IMG_0135" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0135_thumb.jpg" border="0" alt="IMG_0135" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0136.jpg"><img style="display: inline; border: 0px;" title="IMG_0136" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/IMG_0136_thumb.jpg" border="0" alt="IMG_0136" width="244" height="184" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/XCInstaller.zip">Download zip file</a></p>
<p><strong>Have fun with this!<br />
-Henk Hofs</strong></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/PIT0mQ1GUoE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/06/21/installing-citrix-xenclient-from-mdt-sccm-winpe/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/06/21/installing-citrix-xenclient-from-mdt-sccm-winpe/</feedburner:origLink></item>
		<item>
		<title>VirtualBox (and a VDisk Export Context Menu for it)</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/xufzKGZHLOc/</link>
		<comments>http://www.ithastobecool.com/2010/06/10/virtualbox-and-a-vdisk-export-context-menu-for-it/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:44:49 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/?p=639</guid>
		<description><![CDATA[One of the things that I come across in my everyday job is the fact that the “Workstation” virtualization software that is being used at every customer differs based on personal preference of the engineeers or the fact that a company has made a guideline for this. With “workstation” virtualization software I mean the software [...]]]></description>
				<content:encoded><![CDATA[<p>One of the things that I come across in my everyday job is the fact that the “Workstation” virtualization software that is being used at every customer differs based on personal preference of the engineeers or the fact that a company has made a guideline for this.</p>
<p>With “workstation” virtualization software I mean the software that is being used to build images, test out some software etc. The products that I see that are most used:</p>
<ul>
<li>VMware Workstation </li>
<li>Microsoft Virtual PC 2007 </li>
<li>Microsoft Windows Virtual PC (Windows 7) </li>
</ul>
<p>So why is that so annoying? It isn’t actually, it’s a minor nuisance.   <br />The only problem I have is that in my daily work I give workshops and labs, for which I use… yes Virtual Machines <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . The problem is that I have to give the workshop/lab at the customer site, where they use for instance VMware Workstation, for which I and the company I work for don’t have any official licenses, and I’m not going to use a keygen or something like that!</p>
<p>So I have to download the trial of VMware workstation, create my lab VM’’s in that product and copy those to the customer’s environment. So for the same lab/workstation I need at least 2 images, VMware and Virtual PC</p>
<p>Recently I came into contact with VirtualBox (now from Oracle). Which is the perfect man in the middle for me, it’s free, it can work with vmdk, vhd and vdi (VirtualBox’s native disk format). But even better, it can clone the virtual disks to any of those formats as well <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So I can build my environment in VirtualBox at home, and at a customer site just clone the .vdi disk to the preferred format and attach it to a new VM in the customer’s preferred Virtualization solution.</p>
<p>Only downside I found is that there’s no native export to function in the VirtualBox Media Manager. It had to be done via a cmdline utility, no problem ofcourse. But being a lazy bastard as I am… I build a script and context menu’s using powershell, so I can right-click on a VDI, VHD or VMDK file and select Export virtual disk and select</p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb.png" width="244" height="243" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb1.png" width="244" height="181" /></a></p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/image2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.ithastobecool.com/wp-content/uploads/2010/06/image_thumb2.png" width="244" height="125" /></a></p>
<p>I created a Powershell script which has to be placed in the VirtualBox install directory, and then you need to edit the registry to enable the context menu items…. nah just kidding… download the zip contained in this post and extract it somewhere and run the Install.cmd as an adminstrator. Then you’re set to go… provided you already installed VirtualBox ofcouse <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>NOTE 1: I only tested this on Powershell V2, but I think it should work with Powershell V1.   <br />NOTE 2: The powershell execution policy should be set to Unrestriced for this to work!    <br />NOTE 3: It’s important that you run the Install.cmd as an administrator as it makes changes to HKLM\Software\Classes    <br />NOTE 4: Be aware that Microsoft Virtual PC only has support for 32-bit guests, so if you have to prepare a lab/workshop for virtual pc make sure you created a 32-bit machine in VirtualBox.</p>
<p><a href="http://www.ithastobecool.com/wp-content/uploads/2010/06/VBoxExportVDiskContextMenu.zip">Download the files</a></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/xufzKGZHLOc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/06/10/virtualbox-and-a-vdisk-export-context-menu-for-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/06/10/virtualbox-and-a-vdisk-export-context-menu-for-it/</feedburner:origLink></item>
		<item>
		<title>MDT 2010 Update 1 Beta</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/22X_ULHS56w/</link>
		<comments>http://www.ithastobecool.com/2010/06/10/mdt-2010-update-1-beta/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:59:06 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Deployment]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/2010/06/10/mdt-2010-update-1-beta/</guid>
		<description><![CDATA[Whoohoo! MDT 2010 Update 1 is available as beta via connect.microsoft.com! Here are the new features as Michael Niehaus posted them on his blog: Support for Office 2010.&#160; We’ve made a few adjustments to the way Deployment Workbench handles Office and customization so that it now supports Office 2007 and Office 2010. New “User-Driven Installation” [...]]]></description>
				<content:encoded><![CDATA[<p>Whoohoo! MDT 2010 Update 1 is available as beta via connect.microsoft.com!   <br />Here are the new features as Michael Niehaus posted them on <a href="http://blogs.technet.com/b/mniehaus/archive/2010/05/17/mdt-2010-update-1-beta-available-for-download.aspx" target="_blank">his blog</a>:</p>
<blockquote><ul>
<li>Support for Office 2010.&#160; We’ve made a few adjustments to the way Deployment Workbench handles Office and customization so that it now supports Office 2007 and Office 2010. </li>
<li>New “User-Driven Installation” scenario for ConfigMgr 2007 OS deployment, consisting of a few pieces:
<ul>
<li>A new task sequence template that displays a wizard at the beginning of the task sequence, asking various questions about the deployment (e.g. computer name, domain to join, apps to install, etc.), similar to what you would see with Lite Touch. </li>
<li>A wizard designer to configure the wizard behavior, settings, and defaults. </li>
<li>Offline user state capture, using USMT 4.0 hardlink support in Windows PE to capture the user state even when the task sequence is initiated via PXE.</li>
</ul>
</li>
<li>Improved driver importing with Deployment Workbench.&#160; We’ll now automatically detect the platform of each driver as it is imported into the deployment share – if it says it supports x64 but we can’t find any proof of that, we’ll automatically uncheck the platform so that the driver doesn’t get used incorrectly (which causes all sorts of problems). </li>
<li>Support for ConfigMgr R3 OEM prestaged media.&#160; This provides a better alternative to the MDT 2010 ConfigMgr OEM task sequence templates for a couple of reasons:
<ul>
<li>You can have a single, standard task sequence that is used for OEM and non-OEM deployments.&#160; (The MDT templates required a special two-part “split” task sequence, which meant that you needed a different task sequence for non-OEM deployments.) </li>
<li>You can prestage an OSD boot image on the hard drive.&#160; (The MDT templates required using boot media or PXE to initiate the second half of the process.)</li>
</ul>
</li>
</ul>
</blockquote>
<p>You can get the beta from <a href="http://connect.microsoft.com/" target="_blank">here</a></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/22X_ULHS56w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/06/10/mdt-2010-update-1-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/06/10/mdt-2010-update-1-beta/</feedburner:origLink></item>
		<item>
		<title>Powershell: Generate a random MAC address</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/y9NVn7QxAZw/</link>
		<comments>http://www.ithastobecool.com/2010/05/03/powershell-generate-a-random-mac-address/#comments</comments>
		<pubDate>Mon, 03 May 2010 08:36:45 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/2010/05/03/powershell-generate-a-random-mac-address/</guid>
		<description><![CDATA[Here is a little powershell snippet that will generate a random mac address. $Randomizer = New-Object System.Random $RandomMac = '' ForEach ($Number in 1..6) { $r = $Randomizer.Next(16,255) $Digit = [Convert]::ToString($r,16) $RandomMac += $Digit + ':' } $RandomMac.Substring(0,17)]]></description>
				<content:encoded><![CDATA[<p>Here is a little powershell snippet that will generate a random mac address.</p>
<pre><span style="color: #800080">$Randomizer</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #5f9ea0; font-weight: bold">New-Object</span><span style="color: #000000"> </span><span style="color: #800000">System.Random</span><span style="color: #000000">
</span><span style="color: #800080">$RandomMac</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">''</span><span style="color: #000000">
</span><span style="color: #0000ff">ForEach</span><span style="color: #000000"> (</span><span style="color: #800080">$Number</span><span style="color: #000000"> </span><span style="color: #0000ff">in</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">.</span><span style="color: #000000">.6</span><span style="color: #000000">) {
    </span><span style="color: #800080">$r</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800080">$Randomizer</span><span style="color: #000000">.Next(</span><span style="color: #000000">16</span><span style="color: #000000">,</span><span style="color: #000000">255</span><span style="color: #000000">)
    </span><span style="color: #800080">$Digit</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> [</span><span style="color: #008080">Convert</span><span style="color: #000000">]::</span><span style="color: #8b4513">ToString</span><span style="color: #000000">(</span><span style="color: #800080">$r</span><span style="color: #000000">,</span><span style="color: #000000">16</span><span style="color: #000000">)
    </span><span style="color: #800080">$RandomMac</span><span style="color: #000000"> </span><span style="color: #ff0000">+=</span><span style="color: #000000"> </span><span style="color: #800080">$Digit</span><span style="color: #000000"> </span><span style="color: #ff0000">+</span><span style="color: #000000"> </span><span style="color: #800000">'</span><span style="color: #800000">:</span><span style="color: #800000">'</span><span style="color: #000000">
}
</span><span style="color: #800080">$RandomMac</span><span style="color: #000000">.Substring(</span><span style="color: #000000">0</span><span style="color: #000000">,</span><span style="color: #000000">17</span><span style="color: #000000">)</span></pre>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/y9NVn7QxAZw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/05/03/powershell-generate-a-random-mac-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/05/03/powershell-generate-a-random-mac-address/</feedburner:origLink></item>
		<item>
		<title>Error 1330 during installation</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/6DxV5GQAwt8/</link>
		<comments>http://www.ithastobecool.com/2010/04/15/error-1330-during-installation/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 21:31:10 +0000</pubDate>
		<dc:creator>Henk Hofs</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tweak]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/2010/04/15/error-1330-during-installation/</guid>
		<description><![CDATA[Today a co-worker and I were struggling with the installation of JRE 1.6 update 19. It just wouldn’t install on a few boxes, on other boxes it ran smoothly… this drove me nuts! Time after time I was getting this error: Product: Java(TM) 6 Update 19 -- Error 1330.A file that is required cannot be [...]]]></description>
				<content:encoded><![CDATA[<p>Today a co-worker and I were struggling with the installation of JRE 1.6 update 19. It just wouldn’t install on a few boxes, on other boxes it ran smoothly… this drove me nuts! Time after time I was getting this error: </p>
<blockquote><p>Product: Java(TM) 6 Update 19 -- Error 1330.A file that is required cannot be installed because the cabinet file C:\Users\########\AppData\LocalLow\Sun\Java\jre1.6.0_16\Data1.cab has an invalid digital signature. This may indicate that the cabinet file is corrupt.</p>
</blockquote>
<p>I noticed that it was not an issue of Java, because some other installers would give me the same message… aaargh! So I decided to browse the web (which is always a good idea anyway <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ), and I found some forum posts about something being wrong with the Certificate Revocation List. Tried all the thing suggested by numerous articles, but to no avail…</p>
<p>So then we decided to be brave and look around in the registry ourselves. And we found the solution <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . So to all of you who are struggling with the above error (not only for Java ofcourse), try the following:   </p>
<p>Delete this registry key and try the install again. For me it would install perfectly <img src='http://www.ithastobecool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  :</p>
<blockquote><p>HKLM\Software\Policies\Microsoft\SystemCertificates\TrustedPublisher\Safer     </p>
</blockquote>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/6DxV5GQAwt8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/04/15/error-1330-during-installation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/04/15/error-1330-during-installation/</feedburner:origLink></item>
		<item>
		<title>60% Virtualized Servers Less Secure Than Physical Servers</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/k_WUVJSzWw0/</link>
		<comments>http://www.ithastobecool.com/2010/03/23/60-virtualized-servers-less-secure-than-physical-servers/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 07:18:52 +0000</pubDate>
		<dc:creator>Mark Plettenberg</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/?p=619</guid>
		<description><![CDATA[Today I found an interesting article from Gartner, they predict that in 2012 60 percent of all virtual servers will be less secure than the physical servers they replace. Gartner expects this percentage to drop to 30% at the end of 2015.  These are the main risks Gartner identified, for the complete article check this [...]]]></description>
				<content:encoded><![CDATA[<p><span style="color: #000000;">Today I found an interesting article from Gartner, they predict that in 2012 60 percent of all virtual servers will be less secure than the physical servers they replace. Gartner expects this percentage to drop to 30% at the end of 2015. </span></p>
<p><span style="color: #000000;">These are the main risks Gartner identified, for the complete article <a href="http://www.gartner.com/it/page.jsp?id=1322414" target="_blank">check this page</a>.</span></p>
<ul>
<li><span style="color: #000000;">Information Security Isn't Initially Involved in the Virtualization Projects</span></li>
<li><span style="color: #000000;">A Compromise of the Virtualization Layer Could Result in the Compromise of All Hosted Workloads</span></li>
<li><span style="color: #000000;">The Lack of Visibility and Controls on Internal Virtual Networks Created for VM-to-VM Communications Blinds Existing Security Policy Enforcement Mechanisms</span></li>
<li><span style="color: #000000;">Workloads of Different Trust Levels Are Consolidated Onto a Single Physical Server Without Sufficient Separation</span></li>
<li><span style="color: #000000;">Adequate Controls on Administrative Access to the Hypervisor/VMM Layer and to Administrative Tools Are Lacking</span></li>
<li><span style="color: #000000;">There Is a Potential Loss of Separation of Duties for Network and Security Controls</span></li>
</ul>
<p><span style="color: #000000;"> </span></p>
<blockquote><p><span style="color: #000000;"> "Virtualization is not inherently insecure," said Neil MacDonald, vice president and Gartner fellow. "However, most virtualized workloads are being deployed insecurely. The latter is a result of the immaturity of tools and processes and the limited training of staff, resellers and consultants."</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/k_WUVJSzWw0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/03/23/60-virtualized-servers-less-secure-than-physical-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/03/23/60-virtualized-servers-less-secure-than-physical-servers/</feedburner:origLink></item>
		<item>
		<title>Project VRC Phase II:</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/7hzb8Ixui2o/</link>
		<comments>http://www.ithastobecool.com/2010/02/16/project-vrc-phase-ii/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 07:40:58 +0000</pubDate>
		<dc:creator>Mark Plettenberg</dc:creator>
				<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Login VSI]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VRC]]></category>
		<category><![CDATA[XenServer]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/?p=610</guid>
		<description><![CDATA[Latest generation virtualization techniques doubles capacity terminal servers With that statement Ruben and Jeroen have just released Phase II of Project Virtual Reality Check (VRC) to create this whitepaper they have done more than 150 tests with Login VSI to measure the performance of servers while being stressed by a great amount of simulated users. [...]]]></description>
				<content:encoded><![CDATA[<blockquote><p>Latest generation virtualization techniques doubles capacity terminal servers</p></blockquote>
<p>With that statement Ruben and Jeroen have just released Phase II of Project <span style="text-decoration: underline;">V</span>irtual <span style="text-decoration: underline;">R</span>eality <span style="text-decoration: underline;">C</span>heck (VRC) to create this whitepaper they have done more than 150 tests with <a href="http://www.loginvsi.com/" target="_blank">Login VSI</a> to measure the performance of servers while being stressed by a great amount of simulated users. This whitepaper has a few advantages to whitepapers published by the vendors themselves and whitepapers published by blogs that are only testing one hypervisor:</p>
<ul>
<li>The whitepaper is truly independent</li>
<li>The whitepaper is approved by the different vendors</li>
<li>Everybody can repeat the tests with the <a href="http://www.loginvsi.com" target="_blank">free available Login VSI</a></li>
<li>The authors aren’t biased</li>
<li>You can compare the results easily (the servers have been stressed the same way)</li>
</ul>
<p>One of the most interesting conclusions of Phase II: The performance increase measured is not caused by improvements to the hypervisor but mainly by Intel’s innovations in the Nehalem architecture VRC states that it can be almost solely accredited for the performance improvements seen with TS workloads.</p>
<p>Get your free copy of the whitepaper at <a href="http://www.projectvrc.com/">www.projectvrc.com</a></p>
<p style="text-align: center;"><img class="aligncenter" title="vrc-promo-babe" src="http://www.ithastobecool.com/wp-content/uploads/2010/02/vrc-promo-babe.jpg" alt="The mona lisa" width="503" height="158" /></p>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/7hzb8Ixui2o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/02/16/project-vrc-phase-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/02/16/project-vrc-phase-ii/</feedburner:origLink></item>
		<item>
		<title>Independent benchmarking</title>
		<link>http://feedproxy.google.com/~r/Ithastobecoolcom/~3/2p-q6tGizFM/</link>
		<comments>http://www.ithastobecool.com/2010/02/15/independent-benchmarking/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 07:03:00 +0000</pubDate>
		<dc:creator>Mark Plettenberg</dc:creator>
				<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Login VSI]]></category>
		<category><![CDATA[Project VRC]]></category>

		<guid isPermaLink="false">http://www.ithastobecool.com/2010/02/15/independent-benchmarking/</guid>
		<description><![CDATA[Wohoo!! When we where creating Login VSI we had a few goals in mind, one of them is becoming the de facto standard for benchmarking virtual environments (TS/VDI/Bare metal etc). And i have to say: something is happening in the industry. To begin with we have Project VRC by Ruben and Jeroen but recently Citrix [...]]]></description>
				<content:encoded><![CDATA[<p>Wohoo!! When we where creating <a href="http://www.loginvsi.com/" target="_blank">Login VSI</a> we had a few goals in mind, one of them is becoming the de facto standard for benchmarking virtual environments (TS/VDI/Bare metal etc). And i have to say: something is happening in the industry. To begin with we have <a href="http://www.projectvrc.com/" target="_blank">Project VRC</a> by <a href="http://nl.linkedin.com/in/rspruijt" target="_blank">Ruben</a> and <a href="http://nl.linkedin.com/pub/jeroen-van-de-kamp/0/209/673" target="_blank">Jeroen</a> but recently Citrix published some rather interesting whitepapers.</p>
<ul>
<li>Official Citrix Whitepaper with 5000 XenDesktop users. <a href="http://bit.ly/c5a0n5">http://bit.ly/c5a0n5</a></li>
</ul>
<blockquote><p>Use free and reputable tools like LoginVSI from Login Consultants to simulate real-worldlike<br />
user workloads.</p></blockquote>
<ul>
<li>Official Citrix Whitepaper Single server scalability with XenDesktop <a href="http://bit.ly/b4MH75">http://bit.ly/b4MH75</a></li>
</ul>
<blockquote><p>VM density results are highly dependent upon workload characteristics. We used a<br />
workload called Login VSI, created by an independent company, Login Consultants.<br />
Login VSI, is well known in the VDI and terminal services community with testing of<br />
8 various terminal services and VDI solutions from multiple vendors in a comprehensive,<br />
ongoing test project called Project Virtual Reality Check.</p></blockquote>
<img src="http://feeds.feedburner.com/~r/Ithastobecoolcom/~4/2p-q6tGizFM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.ithastobecool.com/2010/02/15/independent-benchmarking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.ithastobecool.com/2010/02/15/independent-benchmarking/</feedburner:origLink></item>
	</channel>
</rss>
