<?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>pdub.net</title>
	<atom:link href="http://pdub.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://pdub.net</link>
	<description>The website of Patrick F. Wilbur</description>
	<lastBuildDate>Fri, 18 May 2012 20:54:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>VMbuilder Ubuntu bug and simple workaround for failed umount of temporary devfs</title>
		<link>http://pdub.net/2012/05/18/vmbuilder-ubuntu-bug-and-simple-workaround/</link>
		<comments>http://pdub.net/2012/05/18/vmbuilder-ubuntu-bug-and-simple-workaround/#comments</comments>
		<pubDate>Fri, 18 May 2012 20:32:19 +0000</pubDate>
		<dc:creator>Pat</dc:creator>
				<category><![CDATA[HOWTO]]></category>

		<guid isPermaLink="false">http://pdub.net/?p=534</guid>
		<description><![CDATA[While attempting to build virtual machines on Ubuntu 12.04 using the vmbuilder tool (package: python-vm-builder), and (IIRC) on a few other versions of Ubuntu (I think 11.10 and/or 11.04), I kept having vmbuilder crash on me with an unhandled exception (an VMBuilder.exception.VMBuilderException exception, to be specific). The error read &#8220;umount of temporary devfs failed&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>While attempting to build virtual machines on Ubuntu 12.04 using the vmbuilder tool (package: python-vm-builder), and (IIRC) on a few other versions of Ubuntu (I think 11.10 and/or 11.04), I kept having vmbuilder crash on me with an unhandled exception (an <samp>VMBuilder.exception.VMBuilderException</samp> exception, to be specific).</p>
<p>The error read &#8220;<samp>umount of temporary devfs failed</samp>&#8221; and would be seen at the very end of the VM building process when trying to unmount some of the temporary installation directories.  </p>
<h2>A Workaround that Works</h2>
<p>I attempted all sorts of workarounds involving editing the unmount_dev() function in the vmbuilder source and inserting os.sync() or sleep commands to try to wait for the temporary installation&#8217;s devfs to no longer be in use before unmounting it.  These did not work!</p>
<p><strong>A very simple workaround that did work for me</strong> was to tell vmbuilder to remove the cron package from the list of default packages to install in the VM.  This is done by simply appending the following argument at the end of the vmbuilder command line: <code>--removepkg=cron</code></p>
<p>For example:<br />
<blockquote><code>vmbuilder [your_hypervisor] ubuntu [your_options] --removepkg=cron</code></p></blockquote>
<p>I recommend trying to run vmbuilder with the <code>--removepkg=cron</code> option, as in the above example, and see if that fixes the problem for you!</p>
<h2>More Information</h2>
<p>Command-line tools like lsof reported that culprit was the Linux Kernel itself that was still using the temporarily installation&#8217;s devfs!  Removing the cron package from being installed by default (a newer thing in recent versions of Ubuntu VMs) fixed the problem, but what does a cron package inside the VM we are building have to do with vmbuilder failing?  I&#8217;m not entirely sure; however, I guess that, perhaps, the cron package inside the temporary installation was holding on to some sort of lock in the temporary installation&#8217;s devfs.</p>
<p>My stab-in-the-dark guess as to why the Kernel would appear to be hanging on to it, according to the lsof command, is that, perhaps, this somehow involved a chroot being used for VM building.  If anyone knows more information that can shed light onto this issue, please let me know!</p>
<p>Reference: <a href="https://bugs.launchpad.net/vmbuilder/+bug/966439" target="_blank">https://bugs.launchpad.net/vmbuilder/+bug/966439</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pdub.net/2012/05/18/vmbuilder-ubuntu-bug-and-simple-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One-time Passwords on Linux or Unix using PAM</title>
		<link>http://pdub.net/2012/01/03/one-time-passwords-pam/</link>
		<comments>http://pdub.net/2012/01/03/one-time-passwords-pam/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 18:40:41 +0000</pubDate>
		<dc:creator>Pat</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[one-time passwords]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[POSIX]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[two-factor authentication]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://pdub.net/?p=468</guid>
		<description><![CDATA[One-time passwords (OTPs) are a means of accomplishing two-factor authentication (TFA/T-FA/2FA), an authentication approach aiming to increase account security over traditional passwords.  Now, you can easily set up one-time passwords (passcodes) and two-factor authentication in Linux (and Unix and anything else that makes use of PAM)!]]></description>
			<content:encoded><![CDATA[<p><strong>Summary: <a href="http://en.wikipedia.org/wiki/One-time_password" target="_blank">One-time passwords</a> (OTPs) are a means of accomplishing <a href="http://en.wikipedia.org/wiki/Two-factor_authentication" target="_blank">two-factor authentication</a> (TFA/T-FA/2FA), an authentication approach aiming to increase account security over traditional passwords.  Now, you can easily set up one-time passwords (passcodes) and two-factor authentication in Linux (and Unix and anything else that makes use of PAM)!<span id="more-468"></span></strong></p>
<p>You might have seen one-time passwords in the wild if you use Gmail, Google Apps, or other Google services, where a token application running on Android or the iPhone/iPod iOS can be used as an optional second factor for authenticating users [see: <a href="http://googleblog.blogspot.com/2011/02/advanced-sign-in-security-for-your.html" target="_blank">Two-factor Authentication with Google Services</a>].  You also might have seen OTPs in the corporate world if you use a security dongle to access company resources, such as the <a href="http://www.rsa.com/node.aspx?id=1156" target="_blank">RSA SecurID</a>, or, perhaps, you have looked into pseudo&#8211;two-factor authentication like <a href="http://www.passwordcard.org/" target="_blank">paper password cards</a> or live in a region where banks frequently provide OTPs on paper.  Whatever your relationship is with them, there are two one-time password, two-factor authentication PAM modules that you should know about.</p>
<h2>One-time Passwords with PAM</h2>
<h3>Using Authenticator</h3>
<p>Linux/Unix/PAM two-factor authentication with one-time passwords can be easily accomplished (for free) without using a Google product of any kind (see the end of this article); however, if you already use Google Authenticator for existing Gmail, Google Apps, or other Google accounts, you might find it to be helpful to simply use Google Authenticator for your PC or network authentication needs as well.</p>
<ul>
<li><a href="http://code.google.com/p/google-authenticator/#PAM_Module" target="_blank">Download the Google Authenticator PAM module</a></li>
<li><a href="http://code.google.com/p/google-authenticator/source/browse/libpam/README" target="_blank">Configure PAM to make use of the Google Authenticator module</a></li>
</ul>
<h3>Using Barada</h3>
<p>If Google Authenticator does not suit your needs, Barada is an analogous solution that also offers a mobile phone token application and PAM module.</p>
<ul>
<li><a href="http://barada.sourceforge.net/" target="_blank">Download the Barada PAM module</a></li>
<li>Search the Android Market for the free Barada token application</li>
</ul>
<h2>Conclusion</h2>
<p>I provide <a href="http://pdub.net/consulting/">consulting</a> if you need additional help setting this up, so feel free to <a href="http://pdub.net/contact/">contact me</a>.</p>
<p>Also, you might want try using <a href="http://svn.php.net/viewvc/pecl/pam/trunk/README?view=markup" target="_blank">one-time passwords and two-factor authentication with web programming</a> projects in PHP and other languages!</p>
<p><em>Keywords: one-time passwords, two-factor authentication, PAM, OTP, TFA, one-time passwords in Linux, two-factor authentication in Linux, one-time passwords PAM module, two-factor authentication PAM module</em></p>
]]></content:encoded>
			<wfw:commentRss>http://pdub.net/2012/01/03/one-time-passwords-pam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure WordPress login without HTTPS</title>
		<link>http://pdub.net/2011/12/05/secure-wordpress-login-without-https/</link>
		<comments>http://pdub.net/2011/12/05/secure-wordpress-login-without-https/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 07:09:20 +0000</pubDate>
		<dc:creator>Pat</dc:creator>
				<category><![CDATA[HOWTO]]></category>

		<guid isPermaLink="false">http://pdub.net/?p=460</guid>
		<description><![CDATA[Do you access a WordPress installation on a web server without HTTPS?  If so, your passwords are sent in plaintext every time you login, register for accounts, add new users through the admin interface, and change user passwords.  Fortunately, there is a VERY SIMPLE solution to (at least slightly) improve the security of sending passwords over HTTP.  This HOWTO will show you how.]]></description>
			<content:encoded><![CDATA[<p>Do you access a WordPress installation on a web server without HTTPS?  If so, your passwords are sent in plaintext every time you login, register for accounts, add new users through the admin interface, and change user passwords.</p>
<p>Unfortunately, if you use a professional web host, there is a good chance that you are stuck in a situation where you use WordPress for your blog or website but cannot use HTTPS to secure your access to your WordPress installation.  This can be caused by anything, such as: HTTPS is simply not offered, HTTPS costs quite a bit extra to have enabled, your WordPress installation is in a shared hosting environment, or multiple domains you own are tied to your hosting account in a way that complicates the issuing of certificates and setup of HTTPS.</p>
<p>Fortunately, there is a solution (actually, one of many) for WordPress fans to improve the sending of passwords over HTTP.</p>
<p><a href="http://wordpress.org/extend/plugins/semisecure-login-reimagined/">Semisecure Login Reimagined</a> is a plugin for WordPress that implements client-side (browser-side) encryption in JavaScript, complete with the use of nonces to prevent against replay attacks (note that this plugin is NOT designed to necessarily protect against session hijacking).  <strong>My installation instructions are at the bottom of this post.</strong></p>
<p><strong>Plugin Details:</strong><br />
<em>About link: </em> <a href="http://wordpress.org/extend/plugins/semisecure-login-reimagined/">WordPress Plugins Directory/Semisecure Login Reimagined</a><br />
<em>Requires WordPress version:</em> 2.7 or higher<br />
<em>Tested with WordPress version:</em> 2.8.6 by me<br />
<em>Plugin homepage link:</em> <a href="http://moggy.laceous.com/2009/09/05/semisecure-login-reimagined-v3/">Moggy&#8217;s Website/Semisecure Login Reimagined v3</a><br />
<em>Author homepage link:</em> <a href="http://moggy.laceous.com/">Moggy</a></p>
<p>Description of plugin from the WordPress plugin directory:</p>
<blockquote><p>&#8220;Semisecure Login Reimagined increases the security of the login process by using a combination of public and secret-key encryption to encrypt the password on the client-side when a user logs in. JavaScript is required to enable encryption. It is most useful for situations where SSL is not available, but the administrator wishes to have some additional security measures in place without sacrificing convenience.&#8221;</p></blockquote>
<p><strong>Automatic installation instructions:</strong></p>
<ol>
<li>Login to your WordPress installation through the admin interface as one of your administrator-privileged users (<em>http://your-site-url-here/wp-admin/</em>), and be sure to do this from a trusted, non-public Internet connection, on a private network and not over a wireless connection.</li>
<li>Click on <em>Plugins</em> on the left navigation bar.</li>
<li>With Plugins selected, there should now be an <em>Add New</em> link just beneath Plugins in the left navigation bar.  Click on <em>Add New</em> just beneath the word Plugins.</li>
<li>On the Install Plugins page under Search, be sure that <em>Term</em> appears in the drop-down (else click the drop-down arrow and select <em>Term</em>) and then enter in the search box to the right of Term &#8220;semisecure login reimagined&#8221; exactly as shown (but without the quotes).  Click <em>Search Plugins</em>.</li>
<li>In the search results, Semisecure Login Reimagined should appear.  All the way on the right-side of that result should be an <em>Install</em> link.  Click on <em>Install</em>.</li>
<li>In the box that appears, click on the (red) <em>Install Now</em> button.</li>
<li>On the results page, click on <em>Activate Plugin</em>.  You now have secure login wherever available, but we can do better (so keep reading the following steps).</li>
<li>Click on <em>Plugins</em> on the left navigation bar.</li>
<li>Under Semisecure Login Reimagined, click <em>Settings</em> to edit that plugin&#8217;s settings.</li>
<li>Note the Wikipedia quote stating, &#8220;RSA claims that 1024-bit keys are likely to become crackable some time between 2006 and 2010 and that 2048-bit keys are sufficient until 2030. An RSA key length of 3072 bits should be used if security is required beyond 2030.&#8221;  In the <em>Number of bits</em> drop-down, select the number of bits you wish for the encryption to use.  1024 is the default (faster performance) but is likely to be easily-crackable by the end of 2010, 2048 is considerably /better at present, and 3072 might be even better (but will have slower performance).  You should pick what you feel most comfortable with, or if you are unsure and this is for a blog that you and possibly a few others manage I would recommend picking 2048 for better security and a slight performance decrease (only during authentication).</li>
<li>Click the <em>Generate Key</em> button.</li>
<li>Click <em>Misc Settings</em> up near the top of the page.</li>
<li>Check the box next to <em>Encrypt passwords when managing users?</em>.  Congratulations! Now not only are your initial login passwords encrypted, but also passwords entered when adding new users, changing passwords, etc.</li>
<li><em>(If you experience problems logging in, likely due to caching issues, set the Nonce setting to Asynch (Ajax). Otherwise, you can probably just leave this setting as-is.)</em></li>
<li>Click the <em>Update Option</em>s button.</li>
</ol>
<p>Log out, log back in, and on the login page you should see a little message stating, &#8220;Semisecure Login is enabled,&#8221; just below the Password entry box. Congratulations, your passwords are no longer being sent in plaintext!</p>
<p>If you like this tutorial, please share it with others, link to this post, and let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://pdub.net/2011/12/05/secure-wordpress-login-without-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO Install XCP in KVM (nested hypervisor)</title>
		<link>http://pdub.net/2011/12/03/howto-install-xcp-in-kvm/</link>
		<comments>http://pdub.net/2011/12/03/howto-install-xcp-in-kvm/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 04:34:59 +0000</pubDate>
		<dc:creator>Pat</dc:creator>
				<category><![CDATA[HOWTO]]></category>

		<guid isPermaLink="false">http://pdub.net/?p=445</guid>
		<description><![CDATA[There might come a time when one wants to test Xen Cloud Platform (XCP) or XenServer without needing to wipe an entire physical machine.  Fortunately, XCP can easily be installed within a virtual machine!  This HOWTO will show you how.]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignright" title="XCP running nested in KVM" src="http://pdub.net/wp-content/uploads/et_temp/XCP_in_KVM171-253557_160x160.png" alt="" width="160" height="160" />There might come a time when one wants to test Xen Cloud Platform (XCP) or XenServer without needing to wipe an entire physical machine.  Fortunately (at least with XCP 1.1), XCP can easily be installed within a virtual machine!</strong></p>
<p>The main caveat in doing this is that HVM guests will not be supported if the virtual machine doesn&#8217;t export the host system&#8217;s HVM support (e.g. VT), which is probably generally the case with the Kernel Virtual Machine (KVM) available and easily installable in Ubuntu, Debian, RedHat Enterprise Linux (RHEL), and CentOS.</p>
<p>It might be possible to install XCP in Qemu in this fashion, but the author of this HOWTO has not yet tried this.  It is probably possible to install XenServer in KVM (and might be possible to install XenServer similarly in Qemu), but the author of this HOWTO has also not tried to do this.</p>
<p>If you have any questions or comments, please feel free to comment here, or just <a href="http://pdub.net/contact/">contact me</a>!</p>
<hr />
<h2>0. Before You Begin</h2>
<p>The setup I used for testing this tutorial (YMMV):</p>
<ul>
<li><strong>Hardware:</strong> Intel Core i7 680UM quad-core processor with VT enabled in BIOS, 4 GB RAM</li>
<li><strong>Operating System:</strong> Ubuntu 11.10 x86_64</li>
<li><strong>Packages:</strong> Kernel Virtual Machine (KVM), virt-manager,</li>
<li><strong>Installer Handy:</strong> Xen Cloud Platform version 1.1 (XCP 1.1)</li>
</ul>
<p>I also ensured:</p>
<ul>
<li>Laptop connected to AC</li>
<li>Reliable Internet connection (useful for installing guest VM later)</li>
</ul>
<hr />
<h2>1. Install Necessary Packages</h2>
<p>The packages that need to be installed in your OS of choice include:</p>
<ul>
<li>kvm</li>
<li>virt-manager</li>
</ul>
<p>I also recommend the packages:</p>
<ul>
<li>vnc-viewer or vinagre or tsclient or some other VNC client</li>
<li>An ssh client</li>
</ul>
<div>If you use Ubuntu, as per <a href="https://help.ubuntu.com/community/KVM/Installation" target="_blank">Ubuntu Documentation/KVM/Installation</a>, you can install the necessary packages by running the following command in your Terminal (Ctrl+Alt+T from the desktop):</div>
<blockquote>
<pre>sudo apt-get install qemu-kvm libvirt-bin bridge-utils</pre>
</blockquote>
<p>You can then install the additional packages required for this tutorial by running the following command in your Terminal:</p>
<blockquote>
<pre>sudo apt-get install virt-manager vinagre</pre>
</blockquote>
<p>At this point, you are now ready to download the XCP installer Base ISO.</p>
<hr />
<h2>2. Download Xen Cloud Platform (XCP) Installer</h2>
<p>After the above command finishes successfully, the next step is to download the installer Base ISO (CD image) file for XCP.  At the time of this writing, XCP 1.1 was the latest version, so that&#8217;s the version I tested (YMMV).</p>
<p>Click on <strong>ONE</strong> of the following links (I recommend trying top to bottom, and avoid running any that might eventually become outdated):</p>
<ul>
<li><a href="http://xen.org/download/xcp/index.html" target="_blank">XCP Download Page</a> (to find the latest and greatest version of XCP to try)</li>
<li><a href="http://xen.org/download/xcp/index_1.1.0.html" target="_blank">XCP Version 1.1 Download Page</a> (to find the latest and greatest revision of XCP 1.1 to try)</li>
<li><a href="http://downloads.xen.org/XCP/50674/XCP-1.1-base-50674.iso" target="_blank">Download XCP 1.1 installer Base ISO</a> (direct link to the file I used, which might become terribly outdated)</li>
</ul>
<div><strong>USEFUL TIP: Don&#8217;t be stupid like me. If you are currently encrypting your home directory in Ubuntu, YOU WILL NEED TO copy the downloaded installer Base ISO file to a directory OTHER THAN your home directory, since the virtualization toolstack will not be able to access your home directory to boot from the ISO file.  I solved this by creating a directory /vmimages/ (<em>sudo mkdir /vmimages</em>) and moving the downloaded ISO file there.  I also store my virtual hard disks for my VMs there for the same reason.</strong></div>
<hr />
<h2>3. Install XCP in KVM</h2>
<p>Next, you will create a virtual machine for testing XCP and install XCP inside of the test VM.</p>
<h3>3.1. Create XCP Virtual Machine in virt-manager</h3>
<p>In your Terminal window, run the following command:</p>
<blockquote>
<pre>sudo virt-manager</pre>
</blockquote>
<p>This will start the virt-manager tool, which I find especially useful for managing VMs in KVM.  This tool is probably available for your favorite Linux distribution too, since I think it first appeared on RedHat flavors before being ported to Ubuntu.</p>
<p>Next, perform the following steps:</p>
<ol>
<li>In the top-left corner of the Virtualization Manager window, click the <em>Create a new virtual machine</em> button.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM.png"><img class="alignnone size-full wp-image-396" title="Create a new virtual machine" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM.png" alt="" width="552" height="582" /></a></li>
<li>Enter a name for your new XCP test VM, choose <em>Local install media (ISO image or CDROM)</em>, and click <em>Forward</em>.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM2.png"><img class="alignnone size-full wp-image-399" title="Name the new XCP test VM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM2.png" alt="" width="465" height="413" /></a></li>
<li>Select <em>Use ISO image</em> and <em>Browse</em> to the location of the XCP installation Base ISO file you downloaded (see the above &#8220;USEFUL TIP&#8221;), then click <em>Forward</em>.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM3.png"><img class="alignnone size-full wp-image-400" title="Choose the XCP Base ISO file as the installation medium" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM3.png" alt="" width="465" height="413" /></a></li>
<li>Choose the amount of virtual memory (RAM) and virtual CPUs to provide to the new XCP test VM, then click <em>Forward</em>. <strong>Note: Your guest virtual machines running beneath XCP will also occupy this same virtual memory that XCP will be using; as such, I recommend at least 1024 MB if you will testing XCP and only 1-2 lightweight Linux guest VMs, and up to as much as you feel you can afford to give to your XCP test environment.</strong><br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM4.png"><img class="alignnone size-full wp-image-401" title="Define virtual memory and CPU settings for new VM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM4.png" alt="" width="465" height="413" /></a></li>
<li>Select <em>Enable storage for this virtual machine</em> and choose <em>Create a disk image on the computer&#8217;s hard drive</em>. Next, enter a size for the XCP test virtual machine&#8217;s virtual hard drive file, and it is recommended to select <em>Allocate entire disk now</em>, then click <em>Forward</em>. <strong>Note: This virtual hard drive file will not only contain XCP, but it will also contain the virtual hard disk files of guest virtual machines you wish to run beneath XCP; as such, make sure this is large enough for your needs (the XCP installer would not allow me to use a disk sized at 8.0 GB, and the next disk size I tried was 30.0 GB, which did work&#8211;YMMV, so try setting it to a high enough value to begin with to save yourself the hassle of starting all over again).</strong><br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM5.png"><img class="alignnone size-full wp-image-403" title="Create a virtual hard drive for XCP test VM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM5.png" alt="" width="465" height="413" /></a></li>
<li>Choose your desired network settings, select <em>kvm</em> as the <em>Virt Type</em>, choose your desired <em>Architecture</em> setting, and click <em>Finish</em> to begin the XCP installation.  <strong>Note: <em>kvm</em> and <em>x86_64</em> worked for me, as well as <em>Virtual network &#8216;default&#8217; NAT</em> as settings on this screen&#8211;YMMV.</strong><br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM6.png"><img class="alignnone size-full wp-image-404" title="Select architecture type for XCP test VM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM6.png" alt="" width="557" height="548" /></a></li>
</ol>
<h3>Complete the XCP Installation</h3>
<p>Hopefully the XCP installation program will boot successfully in your newly created KVM test virtual machine.  If so, continue with the following steps:</p>
<ol>
<li>The XCP installer should boot and, after selecting your keyboard layout, it should ask you if you wish to load a device driver or simply proceed with the installation.  Select <em>Ok</em> and proceed with configuring the XCP installation.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM7.png"><img class="alignnone size-medium wp-image-405" title="Begin XCP setup" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM7-300x236.png" alt="" width="300" height="236" /></a></li>
<li>At some point early in the XCP installation process, the following warning will probably appear: <em>Hardware virtualization assist support is not available on this system</em>. <strong>This warning means that HVM support (e.g. Intel VT support) is not available from within your KVM test virtual machine, and is expected.</strong> If this error does appear, choose <em>Ok</em> and proceed with the installation, but note that you will only be able to run paravirtualized guest VMs beneath XCP (so, at the time of this writing, no Microsoft(R) Windows(R) VMs). If this error does not appear, then, somehow, you might have the ability to provide nested HVM support&#8211;I have no idea, so good luck and let me know what happens!<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM8.png"><img class="alignnone size-medium wp-image-408" title="Proceed with installation anyway without hardware virtualization assists" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM8-300x236.png" alt="" width="300" height="236" /></a></li>
<li>Choose to use the provided virtual hard disk for installation, and click <em>Ok</em>.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM10.png"><img class="alignnone size-medium wp-image-409" title="Select to use the provided virtual hard disk for installation" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM10-300x236.png" alt="" width="300" height="236" /></a></li>
<li>Choose to use <em>Local media</em> for the XCP installation source, and click <em>Ok</em>.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM11.png"><img class="alignnone size-medium wp-image-411" title="Choose to use local XCP installation media" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM11-300x236.png" alt="" width="300" height="236" /></a></li>
<li>When you reach the <em>Supplemental Packs</em> prompt, choose <em>No</em> if you have no idea what this means.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM13.png"><img class="alignnone size-medium wp-image-412" title="Unless you know what Supplemental Packs are then choose not to install any" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM13-300x236.png" alt="" width="300" height="236" /></a></li>
<li>Proceed with the installation. If you decide to use NTP (probably unnecessary) for automatic time setting, three servers I know of are <em>0.pool.ntp.org</em> and <em>1.pool.ntp.org</em> and <em>2.pool.ntp.org</em> and are what I used in my configuration.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM14.png"><img class="alignnone size-medium wp-image-413" title="If you decide to use NTP for time then enter some NTP settings when prompted" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM14-300x236.png" alt="" width="300" height="236" /></a></li>
<li>At some point, you will reach a <em>Confirm Installation</em> dialogue, where, if you are certain you wish to proceed, you may choose <em>Install XCP</em>.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM15.png"><img class="alignnone size-medium wp-image-414" title="Confirm that you wish to install XCP" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM15-300x236.png" alt="" width="300" height="236" /></a></li>
<li>If you are fortunate, you will reach an <em>Installation Complete</em> message.  At this point, clicking <em>Ok</em> should be the only thing you need to do to restart the XCP test virtual machine.<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM16.png"><img class="alignnone size-medium wp-image-415" title="The installation will complete if you are fortunate" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM16-300x236.png" alt="" width="300" height="236" /></a></li>
<li>If you are even more fortunate, you will see a screen like the following, which indicates that XCP is booting inside of your KVM virtual machine!<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM17.png"><img class="alignnone size-medium wp-image-416" title="XCP booting in its test VM under KVM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM17-300x236.png" alt="" width="300" height="236" /></a></li>
<li>The finish line looks like the following screen.  Congratulations!<br />
<a href="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM18.png"><img class="alignnone size-medium wp-image-417" title="XCP after successfully booting in test VM under KVM" src="http://pdub.net/wp-content/uploads/2011/12/XCP_in_KVM18-300x236.png" alt="" width="300" height="236" /></a></li>
</ol>
<hr />
<h2>License</h2>
<p><strong>Author:</strong> Patrick F. Wilbur<br />
<strong>Author&#8217;s website:</strong> http://pdub.net</p>
<p><a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license"><img style="border-width: 0;" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="Creative Commons License" /></a><br />
This HOWTO and all of its screenshot images are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. You may use, reproduce, and/or adapt this work, so long as the above author name and website are intact and/or referenced in all reproductions and adaptations of this work that you make.</p>
<p>Thank you for reading!  If you have any comments or questions, please feel free to comment, below. Otherwise, you may also <a href="http://pdub.net/contact/">contact me</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://pdub.net/2011/12/03/howto-install-xcp-in-kvm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcements: Buy Our Book, &#8220;Running Xen&#8221;</title>
		<link>http://pdub.net/2008/04/09/buy-our-book/</link>
		<comments>http://pdub.net/2008/04/09/buy-our-book/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 12:12:28 +0000</pubDate>
		<dc:creator>Pat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pdub.net/?p=11</guid>
		<description><![CDATA["Running Xen: A Hands-On Guide to the Art of Virtualization" [<a title="Running Xen: A Hands-On Guide to the Art of Virtualization" href="http://runningxen.com">runningxen.com</a>]  [<a title="Buy Now on Amazon dot com" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#38;location=http%3A%2F%2Fwww.amazon.com%2FRunning-Xen-Hands-Guide-Virtualization%2Fdp%2F0132349663%2F&#38;tag=pdubnet-20&#38;linkCode=ur2&#38;camp=1789&#38;creative=9325">Buy Now</a>]]]></description>
			<content:encoded><![CDATA[<p><a title="Official website of Running Xen: A Hands-On Guide to the Art of Virtualization" href="http://runningxen.com"><img class="alignleft" style="float: left;" src="http://pdub.net/runningxencovermini.jpg" alt="Running Xen cover" width="121" height="160" /></a>Check out the new book, <em>Running Xen: A Hands-On Guide to the Art of Virtualization</em>.</p>
<p>Authors: Jeanna N. Matthews, Eli M. Dow, Todd Deshane, Wenjin Hu, Jeremy Bongio, Patrick F. Wilbur, Brendan Johnson</p>
<p>Publisher: Prentice Hall</p>
<ul>
<li>Official Website: <a title="Running Xen: A Hands-On Guide to the Art of Virtualization" href="http://runningxen.com">http://runningxen.com</a></li>
<li>Amazon: <a title="Buy Now on Amazon dot com" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FRunning-Xen-Hands-Guide-Virtualization%2Fdp%2F0132349663%2F&amp;tag=pdubnet-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">Buy Now</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://pdub.net/2008/04/09/buy-our-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

