<?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>Cloudbase Solutions &#187; OpenStack</title>
	<atom:link href="http://www.cloudbase.it/category/openstack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudbase.it</link>
	<description>Cloud interoperability</description>
	<lastBuildDate>Wed, 15 May 2013 18:07:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Cinder-Volume on Windows Storage Server 2012</title>
		<link>http://www.cloudbase.it/cinder-volume-on-windows-storage-server-2012/</link>
		<comments>http://www.cloudbase.it/cinder-volume-on-windows-storage-server-2012/#comments</comments>
		<pubDate>Wed, 12 Dec 2012 02:00:04 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cinder]]></category>
		<category><![CDATA[Volume]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Storage Server]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=837</guid>
		<description><![CDATA[<p>Windows Server 2012 and Windows Storage Server 2012 offer an integrated iSCSI Target service that can be used with Cinder Volume in your stack. Being entirely a software solution, consider it in particular for mid sized networks where the costs of a SAN might be excessive. One of the great advantages of integrating Windows solutions...</p><p>The post <a href="http://www.cloudbase.it/cinder-volume-on-windows-storage-server-2012/">Cinder-Volume on Windows Storage Server 2012</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Windows Server 2012 and Windows Storage Server 2012 offer an integrated iSCSI Target service that can be used with Cinder Volume in your stack. Being entirely a software solution, consider it in particular for mid sized networks where the costs of a SAN might be excessive.</p>
<p>One of the great advantages of integrating Windows solutions in the OpenStack ecosystem is the ease of management and deployment. Cinder is no exception as you will see right away.</p>
<p>All you need to start is a physical or virtual host running Windows Server 2012 or Windows Storage Server 2012 and a copy of our Cinder volume installer <a title="Cinder-Volume Setup" href="http://www.cloudbase.it/downloads/CinderVolumeSetup_Beta.msi">available for free here</a>.</p>
<p>Here&#8217;s our welcome screen:</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_1.png"><img class="alignnone size-full wp-image-839" title="CinderVolume_install_1" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_1.png" alt="" width="509" height="399" /></a></p>
<p>&nbsp;</p>
<p>Once you get through the license and the folder selection screens, you will be asked for the <em>cinder.conf</em> options as in the following screenshot. The great advantage is that the installer will create all the configuration files for you, without having to look around for obscure options by yourself <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_4.png"><img class="alignnone size-full wp-image-841" title="CinderVolume_install_4" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_4.png" alt="" width="509" height="399" /></a></p>
<p>The Windows iSCSI LUNs path is the folder where the Microsoft iSCSI Target Service will create a VHD for each volume, so it is best to choose an appropriate data partition if available.</p>
<p>The next step consist in providing the optional logging options:</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_5.png"><img class="alignnone size-full wp-image-842" title="CinderVolume_install_5" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_5.png" alt="" width="509" height="399" /></a></p>
<p>That&#8217;s it! One last confirmation screen and the setup will start. Another great advantage of this setup is that it will take care of all the dependencies, including Python, the iSCSI Target Service, the cinder-volume Windows service and so on.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_8.png"><img class="alignnone size-full wp-image-843" title="CinderVolume_install_8" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CinderVolume_install_8.png" alt="" width="509" height="399" /></a></p>
<p>&nbsp;</p>
<p>Once the setup is finished, the cinder-volume service will start and you can check the logs (in the path configured above) to see if the service is properly connected to your controller.</p>
<p>You can restart the service from the Windows Service GUI tool or via command line with:</p>
<pre>net stop cinder-volume
net start cinder-volume</pre>
<p>To test your new volume server, you can connect to your OpenStack controller and create a simple volume:</p>
<pre>cinder create 1</pre>
<p>This command creates a 1GB volume. You can now check the status of your new volume:</p>
<pre>cinder list</pre>
<p>The Windows Cinder Volume driver works perfectly well with Nova on any Hypervisor, including support for the boot from volume feature. Great kudos go to <a href="https://github.com/pnavarro">Pedro Navarro Pérez</a> who contributed the Windows volume driver to the Cinder project!<br />
&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="http://www.cloudbase.it/cinder-volume-on-windows-storage-server-2012/">Cinder-Volume on Windows Storage Server 2012</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/cinder-volume-on-windows-storage-server-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cloud-Init for Windows instances</title>
		<link>http://www.cloudbase.it/cloud-init-for-windows-instances/</link>
		<comments>http://www.cloudbase.it/cloud-init-for-windows-instances/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 16:01:42 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=800</guid>
		<description><![CDATA[<p>The automated initialization of a new instance is a task that needs to be split between the cloud infrastructure and the guest OS. OpenStack provides the required metadata via HTTP or via ConfigDrive and cloud-init takes care of configuring the instance on Linux&#8230; but what happens on Windows guests? Well, until recently there were very...</p><p>The post <a href="http://www.cloudbase.it/cloud-init-for-windows-instances/">Cloud-Init for Windows instances</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The automated initialization of a new instance is a task that needs to be split between the cloud infrastructure and the guest OS. OpenStack provides the required metadata via HTTP or via ConfigDrive and cloud-init takes care of configuring the instance on Linux&#8230; but what happens on Windows guests?</p>
<p>Well, until recently there were very limited options, but the great news is that we just released <a href="https://github.com/cloudbase/cloudbase-init"><strong>cloudbase-init</strong></a>, an open source project that brings the features that are handled by cloud-init on Linux to Windows (and soon FreeBSD as well)!</p>
<p>Some quick facts about it:</p>
<ul>
<li>Supports HTTP and ConfigDriveV2 metadata sources</li>
<li>Provides out the box: user creation, password injection, static networking configuration, hostname, SSH public keys and userdata scripts (Powershell, Cmd or Bash)</li>
<li>It&#8217;s highly modular and can be easily extended to provide support for a lot of features and metadata sources.</li>
<li>Works on any hypervisor (Hyper-V, KVM, Xen, etc)</li>
<li>Works on Windows Server 2003 / 2003 R2 / 2008 / 2008 R2 / 2012 and Windows 7 and 8.</li>
<li>It&#8217;s platform independent, meaning that we plan to add other OSs, e.g.: FreeBSD</li>
<li>Written in Python</li>
<li><a href="https://github.com/cloudbase/cloudbase-init">Open source</a>, Apache 2 licensed</li>
</ul>
<p>&nbsp;</p>
<p>To simplify things even more, here&#8217;s a <a href="http://www.cloudbase.it/downloads/CloudbaseInitSetup_Beta.msi">free installer</a> <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_install_1.png"><img class="alignnone size-full wp-image-804" title="CloudbaseInit_install_1" alt="" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_install_1.png" width="509" height="399" /></a></p>
<p>&nbsp;</p>
<p>The installer takes care of everything, including installing a dedicated Python environment, generating a configuration file and creating a Windows service that runs at boot time. Configuration settings like the username, group membership and the network adapter to be configured can be specified during setup or later by editing the configuration file (<em>cloudbase-init.conf</em>).</p>
<p>&nbsp;</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_install_4.png"><img class="alignnone size-full wp-image-813" title="CloudbaseInit_install_4" alt="" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_install_4.png" width="509" height="399" /></a></p>
<p>&nbsp;</p>
<p>After the setup finishes, you&#8217;ll find a new service called &#8220;Cloud Initialization Service&#8221;. The service is not started yet, it wil start automatically at the next boot. All you have to do now is shutting down your VM and upload the image to Glance.</p>
<p>&nbsp;</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_service.png"><img class="alignnone  wp-image-817" title="CloudbaseInit_service" alt="" src="http://www.cloudbase.it/wp-content/uploads/2012/12/CloudbaseInit_service.png" width="571" height="301" /></a></p>
<p>&nbsp;</p>
<p>When the service runs for the first time at boot, it will look for a metadata data source by checking the available ones in the order provided in the <em>cloudbase-init.conf</em> file. By default it looks for the ConfigDrive and then for the classic HTTP Url on 169.254.169.254 (IP address configurable in the conf file).</p>
<p>After retrieving the metadata, the service executes a list of plugins:</p>
<p>&nbsp;</p>
<p><strong>cloudbaseinit.plugins.windows.sethostname.SetHostNamePlugin</strong></p>
<p>Sets the instance&#8217;s hostname. It triggers an automatic reboot to apply it.</p>
<p>&nbsp;</p>
<p><strong>cloudbaseinit.plugins.windows.createuser.CreateUserPlugin</strong></p>
<p>Creates / updates a local user, setting the password provided in the metadata (admin_pass). The user is then added to a set of local groups. The following configuration parameters control the behaviour of this plugin:</p>
<ul>
<li><em>username:</em> default: Admin</li>
<li><em>groups:</em> Comma separated list of groups. Default: Administrators</li>
<li><em>inject_user_password:</em> Can be set to false to avoid the injection of the password provided in the metadata. Default: True</li>
</ul>
<p>&nbsp;</p>
<p><strong>cloudbaseinit.plugins.windows.networkconfig.NetworkConfigPlugin</strong></p>
<p>Configures static networking.</p>
<ul>
<li><em>network_adapter:</em> Network adapter to configure. If not specified, the first available ethernet adapter will be chosen. Default: None</li>
</ul>
<p>&nbsp;</p>
<p><strong>cloudbaseinit.plugins.windows.sshpublickeys.SetUserSSHPublicKeysPlugin</strong></p>
<p>Creates an &#8220;authorized_keys&#8221; file in the user&#8217;s home directory containing the SSH keys provided in the metadata.</p>
<p><span style="text-decoration: underline;">Note: on Windows, starting with Grizzly, the public key is needed to encrypt the user&#8217;s password.</span></p>
<p>&nbsp;</p>
<p><strong>cloudbaseinit.plugins.windows.userdata.UserDataPlugin</strong></p>
<p>Executes custom scripts provided with the <em>user_data</em> metadata (plain text or compressed with gzip).</p>
<p>Supported formats:</p>
<p><span style="text-decoration: underline;">Windows batch</span></p>
<p>The file is executed in a cmd.exe shell (can be changed with the COMSPEC environment variable). The <em>user_data</em> first line must be: <strong>rem cmd</strong></p>
<p><span style="text-decoration: underline;">Powershell</span></p>
<p>Scripting is automatically enabled if not set (RemoteSigned). The <em>user_data</em> first line must be: <strong>#ps1</strong></p>
<p><span style="text-decoration: underline;">Bash </span></p>
<p>A bash shell needs to be installed in the system and available in the PATH in order to use this feature. The user_data first line must start with: <strong>#!</strong></p>
<p>&nbsp;</p>
<p>When the configuration is done, the service saves a value in the Windows registry to avoid the execution of the same plugins on the next boot. In order to trigger again the execution of the configuration scripts, just remove the following Registry key and restart the service or reboot:</p>
<pre>HKEY_LOCAL_MACHINE\Software\Cloudbase Solutions\Cloudbase-Init</pre>
<p>Note: on 64 bit versions of Windows, the key is:</p>
<pre>HKEY_LOCAL_MACHINE\Software\Wow6432Node\Cloudbase Solutions\Cloudbase-Init</pre>
<p>&nbsp;</p>
<h3>Unattended setup</h3>
<p>The setup can be done in silent mode as well, which means that it can be easily integrated in a Puppet, Chef or Windows GPO deployment strategy.</p>
<p>Here&#8217;s the basic syntax, with an additional optional log file to verify that everything worked fine:</p>
<pre>msiexec /i CloudbaseInitSetup.msi /qn /l*v log.txt</pre>
<p>&nbsp;</p>
<p>You can also pass parameters, for example to specify the ethernet adapter to be configured:</p>
<pre>msiexec /i CloudbaseInitSetup.msi /qn /l*v log.txt NETWORKADAPTERNAME=&quot;Intel(R) PRO/1000 MT Network Connection&quot;</pre>
<p>&nbsp;</p>
<p>The post <a href="http://www.cloudbase.it/cloud-init-for-windows-instances/">Cloud-Init for Windows instances</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/cloud-init-for-windows-instances/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>DevStack on Hyper-V</title>
		<link>http://www.cloudbase.it/devstack-on-hyper-v/</link>
		<comments>http://www.cloudbase.it/devstack-on-hyper-v/#comments</comments>
		<pubDate>Mon, 19 Nov 2012 19:24:06 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[DevStack]]></category>
		<category><![CDATA[FreeRDP]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=718</guid>
		<description><![CDATA[<p>DevStack is without any doubt one of the easiest ways to set up an OpenStack environment for testing or development purposes (no production!!). It&#8217;s also a great way to test the Hyper-V Nova Compute and Quantum Grizzly beta versions that we are releasing these days! Hyper-V Server 2012 is free and can be downloaded from...</p><p>The post <a href="http://www.cloudbase.it/devstack-on-hyper-v/">DevStack on Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://devstack.org/">DevStack</a> is without any doubt one of the easiest ways to set up an OpenStack environment for testing or development purposes (no production!!).<br />
It&#8217;s also a great way to test the Hyper-V Nova Compute and Quantum Grizzly beta versions that we are releasing these days! <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Hyper-V Server 2012</strong> is <strong>free</strong> and can be downloaded from <a href="http://www.microsoft.com/en-us/server-cloud/hyper-v-server/default.aspx">here</a> . The installation is very simple and straightforward as with any Windows Server solution. You can use of course also the full Windows Server 2012 , but unless you are really missing the GUI features, there&#8217;s no need for it.</p>
<p>Another great option for development consists in enabling the Hyper-V role on Windows 8 (Pro or Enterprise). If you have a Mac, Linux or Windows 7 you can run both Hyper-V and DevStack virtualized on VMWare Fusion 5 / Workstation 9.</p>
<p>To make things even easier, in this guide we&#8217;ll run DevStack in a VM on top of the Hyper-V compute node. Hyper-V is not particularly picky about hardware, which means that there&#8217;s no need for expensive servers to be used for test and development.</p>
<h3></h3>
<h3>The DevStack VM</h3>
<p>Let&#8217;s start by downloading an Ubuntu Server 12.04 ISO image and create a VM on Hyper-V. Since Hyper-V Server does not provide a GUI, you can do that from a separate host (Windows 8 / Windows Server 2012) or you can issue some simple Powershell commands.<br />
Here&#8217;s how to download the Ubuntu ISO image via Powershell:</p>
<p>&nbsp;</p>
<pre>$isourl = &quot;http://releases.ubuntu.com/12.04/ubuntu-12.04.1-server-amd64.iso&quot;
$isopath = &quot;C:\ISO\ubuntu-12.04.1-server-amd64.iso&quot;
Invoke-WebRequest -uri $isourl -OutFile $isopath</pre>
<p>&nbsp;</p>
<p>You will need an external virtual switch, in order for the VMs to communicate with the external world (including Internet for our DevStack VM). You can of course skip this step if you already created one.</p>
<p>&nbsp;</p>
<pre>$net = Get-NetAdapter
$vmswitch = new-vmswitch External -NetAdapterName $net[0].Name -AllowManagementOS $True</pre>
<p>&nbsp;</p>
<p>Finally here&#8217;s how to create and start the DevStack VM, with 1 GB RAM and 15 GB HDD, a virtual network adapter attached to the external switch and the Ubuntu ISO attached to the DVD for the installation.</p>
<p>&nbsp;</p>
<pre>$vm = new-VM &quot;DevStack&quot; -MemoryStartupBytes (1024*1024*1024) -NewVHDPath &quot;C:\VHD\DevStack.vhdx&quot; -NewVHDSizeBytes (15*1024*1024*1024)
Set-VMDvdDrive $vm.Name -Path $isopath
Connect-VMNetworkAdapter $vm.Name -SwitchName $vmswitch.Name
Start-VM $vm</pre>
<p>&nbsp;</p>
<p>Now it&#8217;s time to connect to the VM console and install Ubuntu. All we need is a basic installation with SSH. DevStack will take care of the rest.</p>
<p>&nbsp;</p>
<h3>Console access</h3>
<p>The free Hyper-V Server does not provide a console UI application, so we have two options:</p>
<ol>
<li>Access the server from another host using Hyper-V Manager on Windows 8 or Windows Server 2012</li>
<li>Using our free <a title="Using FreeRDP to connect to the Hyper-V console" href="http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/">FreeRDP based solution</a> directly from the Hyper-V server</li>
</ol>
<p>We&#8217;ll choose the latter in this guide as we simply love it. <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3></h3>
<p>In Powershell from the directory in which you unzipped <a href="http://www.cloudbase.it/downloads/FreeRDP_win32_x86_20121010.zip">FreerDP</a> run:</p>
<p>&nbsp;</p>
<pre>Set-ExecutionPolicy RemoteSigned
Import-Module .\PSFreeRDP.ps1</pre>
<p>&nbsp;</p>
<p>And now we can finally access the console of our new VM:</p>
<p>&nbsp;</p>
<pre>Get-VMConsole DevStack</pre>
<p>&nbsp;</p>
<p>Once you are done with the Ubuntu setup, we can go on and deploy DevStack. My suggestion is to connect to the Ubuntu VM via SSH, as it&#8217;s way easier especially for pasting commands. In case you should need an SSH client for Windows, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> is a great (and free) option.<br />
Let&#8217;s  start by adding an NTP daemon as time synchronization issues are a typical source of headaches in OpenStack:</p>
<p>&nbsp;</p>
<pre>sudo apt-get install ntp
sudo service ntp start</pre>
<p>&nbsp;</p>
<p>We need Git to download DevStack:</p>
<pre>sudo apt-get install git</pre>
<p>&nbsp;</p>
<p>Installing and running DevStack is easy:</p>
<p>&nbsp;</p>
<pre>git clone git://github.com/openstack-dev/devstack.git
cd devstack
./stack.sh</pre>
<p>&nbsp;</p>
<p>The script will ask you for a few passwords. You will find them in the &#8220;devstack/localrc&#8221; file afterwards.<br />
In case you should prefer to run a specific version of the OpenStack components instead of the latest Grizzly bits, just add the branch name to the git clone command, e.g.:</p>
<p>&nbsp;</p>
<pre>git clone git://github.com/openstack-dev/devstack.git -b stable/folsom</pre>
<p>&nbsp;</p>
<p>Now edit your ~/.bashrc file and add the following lines at the end, in order to have your environment ready whenever you log in:</p>
<p>&nbsp;</p>
<pre>export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=yourpassword
export OS_AUTH_URL=&quot;http://localhost:5000/v2.0/&quot;</pre>
<p>&nbsp;</p>
<p>And reload it with:</p>
<pre>source ~/.bashrc</pre>
<p>&nbsp;</p>
<p>It&#8217;s time to add an image to Glance in order to spawn VMs on Hyper-V. To save you some time we prepared a ready made Ubuntu VM image. When you create your own, remember to use the VHD format and not VHDX.</p>
<p>&nbsp;</p>
<pre>wget http://www.cloudbase.it/downloads/UbuntuServer1204_cloudinit.zip
unzip UbuntuServer1204_cloudinit.zip
glance image-create --name &quot;Ubuntu Server 12.04&quot; --property hypervisor_type=hyperv --container-format bare --disk-format vhd &lt; UbuntuServer1204.vhd</pre>
<p>&nbsp;</p>
<p>Note the <strong>hypervisor_type</strong> property. By specifying it, we are asking Nova Scheduler to use this image on Hyper-V compute nodes only, which means that you can have a mix of KVM, Xen or Hyper-V nodes in your stack, letting Nova Scheduler taking care of it any time you boot a new image, a great feature IMO!<br />
We are almost done. Let&#8217;s create a new keypair and save the private key in your user&#8217;s home:</p>
<p>&nbsp;</p>
<pre>test -d ~/.ssh || mkdir ~/.ssh
nova keypair-add key1 &gt;&gt; ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa</pre>
<p>&nbsp;</p>
<p>Ok, we are done with DevStack so far. We need to setup our Hyper-V Nova Compute node, which is even easier thanks to the installer that we released <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Let&#8217;s go back to the Powershell:</p>
<p>&nbsp;</p>
<pre>$src = &quot;http://www.cloudbase.it/downloads/HyperVNovaCompute_Beta.msi&quot;
$dest = &quot;$env:temp\HyperVNovaCompute_Folsom.msi&quot;
Invoke-WebRequest -uri $src -OutFile $dest
Unblock-File $dest
Start-Process $dest</pre>
<p>&nbsp;</p>
<p>The installation is very easy, just follow the steps available <a title="Installing OpenStack Nova Compute on Hyper-V" href="http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/">here</a>!<br />
Remember to specify the IP address of your DevStack VM for Glance and RabbitMQ. As Nova database connection string you can simply use: <strong>mysql://root:YourDevStackPassword@YourDevstackIP/nova</strong></p>
<p>(Note: never use &#8220;root&#8221; in a production environment!)</p>
<p>Now let&#8217;s go back to DevStack and check that all the services are up and running:</p>
<p>&nbsp;</p>
<pre>nova-manage service list</pre>
<p>&nbsp;</p>
<p>You should see a smile &#8220;:-)&#8221; close to each service and no &#8220;XXX&#8221;.</p>
<p>Now it&#8217;s time to boot our first OpenStack VM:</p>
<p>&nbsp;</p>
<pre>nova boot --flavor 1 --image &quot;Ubuntu Server 12.04&quot; --key-name key1 vm1</pre>
<p>&nbsp;</p>
<p>You can check the progress and status of your VM with:</p>
<p>&nbsp;</p>
<pre>nova list</pre>
<p>&nbsp;</p>
<p>The first time that you boot an instance it will take a few minutes, depending on the size of your Glance image, as the image itself gets cached on the compute node. Subsequent image boots will be very fast.</p>
<p>&nbsp;</p>
<h3><strong>Some useful tips</strong></h3>
<p><strong>How to delete all the VM at once from the command line</strong></p>
<p>During testing you&#8217;ll need to cleanup all the instances quite often. Here&#8217;s a simple script to do that on Linux without issuing single &#8220;nova delete&#8221; commands for every instance:</p>
<p>&nbsp;</p>
<pre>nova list | awk &#039;{if (NR &gt; 3 &amp;&amp; $2 != &quot;&quot;) {system(&quot;nova delete &quot; $2);}}&#039;</pre>
<p>&nbsp;</p>
<p><strong>How to update DevStack</strong></p>
<p>I typically run the following script from the DevStack folder after a reboot to update the OpenStack components (Nova, Glance, etc) and the DevStack scripts, just before running <em>stack.sh</em></p>
<pre>
git pull
pushd .
cd /opt/stack/nova
git pull
cd /opt/stack/glance
git pull
cd /opt/stack/cinder
git pull
cd /opt/stack/keystone
git pull
cd /opt/stack/horizon
git pull
cd /opt/stack/python-glanceclient
git pull
python setup.py build
sudo python setup.py install --force 
cd /opt/stack/python-novaclient
git pull
python setup.py build
sudo python setup.py install --force
cd /opt/stack/python-cinderclient
git pull
python setup.py build
sudo python setup.py install --force
cd /opt/stack/python-keystoneclient
git pull
python setup.py build
sudo python setup.py install --force
popd</pre>
<p>&nbsp;</p>
<p><strong>How to check your OpenStack versions</strong></p>
<p>All the components in your stack need to share the same OpenStack version. Don&#8217;t mix Grizzly and Folsom components!! Here&#8217;s how to check what Nova version you are running:</p>
<p>&nbsp;</p>
<pre>python -c &quot;from nova import version; print version.NOVA_VERSION&quot;</pre>
<p>&nbsp;</p>
<p>For Grizzly you will get: <em>['2013, '1', '0']</em>  (the last number might also be &#8220;None&#8221;).</p>
<p>&nbsp;</p>
<p>The post <a href="http://www.cloudbase.it/devstack-on-hyper-v/">DevStack on Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/devstack-on-hyper-v/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to solve DevStack error &#8220;Exception Value: /usr/bin/env: node: No such file or directory&#8221;</title>
		<link>http://www.cloudbase.it/howto-solve-devstack-dashboard-node-error/</link>
		<comments>http://www.cloudbase.it/howto-solve-devstack-dashboard-node-error/#comments</comments>
		<pubDate>Thu, 01 Nov 2012 14:55:46 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[DevStack]]></category>
		<category><![CDATA[Horizon]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=713</guid>
		<description><![CDATA[<p>After installing DevStack on your Ubuntu machine, when trying to access the OpenStack Dashboard (Horizon) you might get the following error: Exception Value: /usr/bin/env: node: No such file or directory Here&#8217;s the solution, tested on 12.04 and 12.10: sudo apt-get install node-less mkdir -p /opt/stack/horizon/bin/less ln -s /usr/bin/lessc /opt/stack/horizon/bin/less/lessc On Ubuntu 12.10 you will also...</p><p>The post <a href="http://www.cloudbase.it/howto-solve-devstack-dashboard-node-error/">How to solve DevStack error &#8220;Exception Value: /usr/bin/env: node: No such file or directory&#8221;</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>After installing DevStack on your Ubuntu machine, when trying to access the OpenStack Dashboard (Horizon) you might get the following error:</p>
<p>Exception Value: /usr/bin/env: node: No such file or directory</p>
<p>Here&#8217;s the solution, tested on 12.04 and 12.10:</p>
<blockquote>
<pre>
sudo apt-get install node-less
mkdir -p /opt/stack/horizon/bin/less
ln -s /usr/bin/lessc /opt/stack/horizon/bin/less/lessc 
</pre>
</blockquote>
<p>On Ubuntu 12.10 you will also need nodejs-legacy:</p>
<blockquote>
<pre>
apt-get install nodejs-legacy
</pre>
</blockquote>
<p>The post <a href="http://www.cloudbase.it/howto-solve-devstack-dashboard-node-error/">How to solve DevStack error &#8220;Exception Value: /usr/bin/env: node: No such file or directory&#8221;</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/howto-solve-devstack-dashboard-node-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Filtering Glance images for Hyper-V</title>
		<link>http://www.cloudbase.it/filtering-glance-images-for-hyper-v/</link>
		<comments>http://www.cloudbase.it/filtering-glance-images-for-hyper-v/#comments</comments>
		<pubDate>Wed, 31 Oct 2012 23:43:59 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[Glance]]></category>
		<category><![CDATA[Nova]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=693</guid>
		<description><![CDATA[<p>In a number of scenarios it&#8217;s very useful to have different hypervisors in your OpenStack infrastructure, for example you might have KVM or XEN for Linux images and Hyper-V for Windows images. How can you tell Nova Scheduler to associate a given Glance image to a specific hypervisor? The answer is provided by a filter...</p><p>The post <a href="http://www.cloudbase.it/filtering-glance-images-for-hyper-v/">Filtering Glance images for Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>In a number of scenarios it&#8217;s very useful to have different hypervisors in your OpenStack infrastructure, for example you might have <strong>KVM</strong> or <strong>XEN</strong> for Linux images and <strong>Hyper-V</strong> for Windows images.</p>
<p>How can you tell <strong>Nova Scheduler</strong> to associate a given Glance image to a specific hypervisor?</p>
<p>The answer is provided by a filter called <strong>ImagePropertiesFilter</strong>, enabled by default in Nova Scheduler. This filter looks for a Glance image property called &#8220;hypervisor_type&#8221; which must contain a value matching with the desired hypervisor type as the name implies. Images without this property set will simply be booted on any available hypervisor, unless other filter will influence the scheduler&#8217;s behaviour.</p>
<p>Here&#8217;s how to add an image which will boot only on Hyper-V Nova Compute hosts:</p>
<blockquote>
<pre lang="bash">glance image-create --property hypervisor_type=hyperv --name &quot;Ubuntu Server 12.04&quot; 
--container-format bare --disk-format vhd &lt; UbuntuServer1204.vhd</pre>
</blockquote>
<p>Changing the property on an existing image is also very simple:</p>
<blockquote>
<pre lang="bash">
glance image-update --property hypervisor_type=hyperv &lt;IMAGE_ID&gt;
</pre>
</blockquote>
<p>This feature is supported in the current Hyper-V Grizzly code, already included in our <a title="OpenStack Compute Installer" href="http://www.cloudbase.it/openstack/openstack-compute-installer/">daily updated beta installer</a>.</p>
<p>It can also be easily backported to Folsom, all you need to do is to copy the content of the &#8220;nova/virt/hyperv/&#8221; folder available in the source repository on <a title="GitHub Nova" href="https://github.com/openstack/nova/tree/master/nova/virt/hyperv">github</a> to the corresponding folder in your Hyper-V Nova Compute node.</p>
<p>&nbsp;</p>
<p>The post <a href="http://www.cloudbase.it/filtering-glance-images-for-hyper-v/">Filtering Glance images for Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/filtering-glance-images-for-hyper-v/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing OpenStack Nova Compute on Hyper-V</title>
		<link>http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/</link>
		<comments>http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 22:54:20 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[FreeRDP]]></category>
		<category><![CDATA[Nova]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=596</guid>
		<description><![CDATA[<p>We did a lot of work this year on OpenStack and Hyper-V integration, with the result of bringing back Hyper-V in the Nova sources in time for the Folsom release. We are currently working on a lot of cool features to be released in time for Grizzly, so stay tuned! One of our goals was...</p><p>The post <a href="http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/">Installing OpenStack Nova Compute on Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>We did a lot of work this year on OpenStack and Hyper-V integration, with the result of bringing back Hyper-V in the <a href="https://github.com/openstack/nova" target="_blank">Nova sources</a> in time for the Folsom release. We are currently working on a lot of cool features to be released in time for Grizzly, so stay tuned!</p>
<p>One of our goals was being able to install and configure Nova compute on Hyper-V in the simplest possible way, using a nice and tidy GUI for the occasional deployment or an automated and unattended mode for deployments on a massive number of servers. The result is the installer that I&#8217;m going to present in this post, I have to admit that we are quite proud of it <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>To begin, all you need is an installation of the Microsoft <a href="http://www.microsoft.com/en-us/server-cloud/hyper-v-server/" target="_blank">free Hyper-V</a> Server 2008 R2 or 2012 or as an alternative Windows Server 2008 R2 or 2012 with the Hyper-V role enabled.</p>
<p>We suggest to use the free Hyper-V Server edition instead of Windows Server for a few reasons:</p>
<ol>
<li>It&#8217;s free <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>It runs a very limited subset of the Windows Server operating system, which means that it has a lower impact on security updates and management</li>
<li>There&#8217;s no difference in features or performance compared to the full Windows Server</li>
</ol>
<p>If you want to see how Hyper-V works with OpenStack but you don&#8217;t have a server or PC on which to install it, well you can even run it on top of another hypervisor (for test purposes only, this is of course TOTALLY unsupported). As an example you can run it in a VM on top of VMWare Workstation 9, Fusion 5 or ESXi 5.</p>
<h3>Hyper-V Nova Compute Installer</h3>
<p>We are going to install on Hyper-V only the OpenStack Compute role, so you&#8217;ll need to run the other required roles on separate hosts or VMs. If you don&#8217;t plan to deploy it in a production environment, I suggest you to create an Ubuntu Server 12.04 VM in Hyper-V or elsewhere with a <a href="http://devstack.org/" target="_blank">DevStack</a> deployment.</p>
<p>Once your Hyper-V setup is done, you can copy <a title="OpenStack Compute Installer" href="http://www.cloudbase.it/openstack/openstack-compute-installer/">our installer</a> on a folder on the server and run it.<br />
On Hyper-V / Windows Server 2012, you can even download and run it directly from a Powershell prompt:</p>
<p><em>$src = &#8216;http://www.cloudbase.it/downloads/HyperVNovaCompute_Folsom.msi&#8217;</em><br />
<em> $dest = &#8220;$env:temp\HyperVNovaCompute_Folsom.msi&#8221;</em><br />
<em> Invoke-WebRequest -uri $src -OutFile $dest</em><br />
<em> Unblock-File $dest</em><br />
<em> Start-Process $dest</em></p>
<p>Here&#8217;s how the welcome screen look like:</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-41.png"><img class="alignnone size-full wp-image-398" title="PastedGraphic-4" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-41.png" alt="" width="497" height="388" /></a></p>
<p>After accepting the license agreement the features selection will appear:</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-23.png"><img class="alignnone size-full wp-image-584" title="OpenStack Installer Features selection" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-23.png" alt="" width="497" height="388" /></a></p>
<p><strong>OpenStack Nova Compute</strong></p>
<p>This is the core feature of the package. It installs a dedicated Python environment, all required dependencies and a Windows service called <strong>nova-compute. </strong>By clicking on &#8220;Browse&#8221; it is possible to change the installation folder.</p>
<p><strong>Live Migration</strong></p>
<p>Available on 2012 but not in 2008 R2, requires the host to be a member of a domain (can be even a Samba domain). This feature enables and configures Hyper-V &#8220;shared nothing&#8221; live migration. Beside KVM, Hyper-V is the only OpenStack hypervisor supporting it, with the additional advantage that thanks to this installer it&#8217;s unbelievably easy to setup!</p>
<p><strong>iSCSI Initiator Service</strong></p>
<p>Enables and starts the Microsoft iSCSI initiator service, required for Cinder volume management.</p>
<p><strong>OpenStack Command Prompt</strong></p>
<p>Creates  an OpenStack command prompt shortcut. This is especially useful on Windows Server or on a workstation in order to have a ready made environment with the PATH and other environment variables properly set.</p>
<p><strong>FreeRDP for Hyper-V</strong></p>
<p>FreeRDP is an amazing cross platform open source RDP client that works also with the Hyper-V RDP extensions required to connect to VM consoles. I blogged <a title="Using FreeRDP to connect to the Hyper-V console" href="http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/">here</a> in detail about it.</p>
<p>The next steps are required to handle the service configurations and are displayed in function of the selected features.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-72.png"><img class="alignnone size-full wp-image-474" title="PastedGraphic-7" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-72.png" alt="" width="498" height="388" /></a></p>
<p>Nova compute requires one bridge (virtual switch in Hyper-V terms), which can be automatically created by the installer.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-82.png"><img class="alignnone size-full wp-image-475" title="PastedGraphic-8" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-82.png" alt="" width="497" height="388" /></a></p>
<p>The basic configuration consists in providing the settings for the glance server address, RabbitMQ server address, Nova database and the path where the Nova compute driver will save the Hyper-V instances and Glance images.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-102.png"><img class="alignnone size-full wp-image-476" title="PastedGraphic-10" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-102.png" alt="" width="498" height="387" /></a></p>
<p>&#8220;Limit CPU features&#8221; is required when live migration is used between servers with different CPU architectures.<br />
When &#8220;Use CoW Images&#8221; is enabled, the Nova compute driver creates differencing disks based on the glance VHD images, instead of copying the entire image for each spawned instance. This leads to massively shorter instance deployment times.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/OpenStack_Installer_Live_Migration.png"><img class="alignnone size-full wp-image-366" title="PastedGraphic-2" src="http://www.cloudbase.it/wp-content/uploads/2012/10/OpenStack_Installer_Live_Migration.png" alt="" width="498" height="387" /></a></p>
<p>Here&#8217;s one of my favorite parts. Live migration can be configured here without having to use Microsoft Hyper-V Manager or Powershell. All you have to do is to choose the authentication type (we suggest Kerberos), the maximum number of parallel live migrations, and IP limitations if needed. Please note also that live migration requires that the Nova Compute service runs with domain credentials. The selected domain user will be automatically added to the local administrators group.</p>
<p><a href="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-122.png"><img class="alignnone size-full wp-image-478" title="PastedGraphic-12" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-122.png" alt="" width="497" height="387" /></a></p>
<p>Now lean back, relax, and wait for the installer to do his job <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
During this step files get copied, services and components get registered, the nova.conf file is written and finally the <strong>nova-compute</strong> service is started</p>
<p>Once the setup is finished, you can always start it again to change / add / remove any feature.</p>
<h3>FAQ</h3>
<p>here&#8217;s also a quick FAQ for activities that you might need to perform on the Hyper-V server.</p>
<p><strong>How do I restart the compute service?</strong></p>
<p><em>net stop nova-compute &amp;&amp; </em><em>net start nova-compute</em></p>
<p><strong>How do I restart the iSCSI initiator service service?</strong></p>
<p><em>net stop msiscsi &amp;&amp; net start msiscsi</em></p>
<p><strong>How do I perform an unattended setup</strong></p>
<p>You can find <a title="Hyper-V Nova Compute Installer – Unattended setup" href="http://www.cloudbase.it/openstack/hyper-v-nova-compute-installer-unattended-setup/">here</a> all the supported properties and a full example.</p>
<p><strong>How do I log the installer activity?</strong></p>
<p><em>msiexec /i HyperVNovaCompute_Folsom.msi /l*v log.txt</em></p>
<p><strong>How do I uninstall this package if I don&#8217;t have the MSI file?</strong></p>
<p><em>msiexec /uninstall {792BADAA-8FE0-473C-BAD7-CAFA2AFF4F2D}</em></p>
<p>The post <a href="http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/">Installing OpenStack Nova Compute on Hyper-V</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/installing-openstack-nova-compute-on-hyper-v/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Using FreeRDP to connect to the Hyper-V console</title>
		<link>http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/</link>
		<comments>http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 14:16:35 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[FreeRDP]]></category>
		<category><![CDATA[Nova]]></category>
		<category><![CDATA[RDP]]></category>

		<guid isPermaLink="false">http://www.cloudbase.it/?p=560</guid>
		<description><![CDATA[<p>Accessing Microsoft&#8217;s Hyper-V console is typically performed by running Hyper-V Manager / vmconnect on a Windows Server host or Windows 7 / 8 equipped with RSAT. There are unfortunately quite a few limitations in this approach, including the fact that is not available on the Hyper-V host itself or on other operating systems. Hyper-V console...</p><p>The post <a href="http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/">Using FreeRDP to connect to the Hyper-V console</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Accessing Microsoft&#8217;s Hyper-V console is typically performed by running Hyper-V Manager / vmconnect on a Windows Server host or Windows 7 / 8 equipped with RSAT.</p>
<p>There are unfortunately quite a few limitations in this approach, including the fact that is not available on the Hyper-V host itself or on other operating systems.</p>
<p>Hyper-V console access is based on an extension of the RDP protocol, which is implemented in the Remote Desktop Services ActiveX Client control (mstscax.dll) used by vmconnect and by the RDP client itself (mstsc.exe).</p>
<h2>Enter FreeRDP</h2>
<p>Microsoft opened up their <a title="MS RDP Protocols" href="http://msdn.microsoft.com/en-us/library/cc216513%28prot.20%29.aspx" target="_blank">RDP protocol</a>, including the extensions required by Hyper-V, which led to having <a title="FreeRDP" href="http://www.freerdp.com/" target="_blank">FreeRDP</a> implementing it. FreeRDP is without any doubt one of the most promising open source projects in terms of interoperability with the Microsoft world with a great developers team behind it.</p>
<p>The great news is that it&#8217;s now possible to access a Hyper-V console from Windows, Linux and Mac OS X. Here&#8217;s how. I&#8217;m going to present a &#8220;hard&#8221;, way using directly FreeRDP and a easier way using a Powershell script to get the required details from HyperV.</p>
<p>Support for Hyper-V is not yet available in the latest FreeRDP release, so all you need to do is to download the latest sources and compile them. To spare you some work <a title="FreeRDP Windows" href="http://www.cloudbase.it/downloads/FreeRDP_win32_x86_20121010.zip">here</a> are the precompiled binaries for Windows. As a prerequisite you need to install the <a title="VC++ CRT 2012" href="http://www.microsoft.com/en-us/download/details.aspx?id=30679" target="_blank">Visual C++ 2012 x86 runtime</a>.</p>
<p><strong>Connecting with FreeRDP</strong></p>
<p>First you need to get the Id of the VM to which you want to connect. This can be done in Powershell on Windows Server / Hyper-V Server 2012 or Windows 8 with:</p>
<p><strong>Get-VM &lt;vmname&gt; | Select-Object Id</strong></p>
<p>On Windows Server / Hyper-V Server 2008 and 2008 R2 you can use <a title="PSHyperV" href="http://pshyperv.codeplex.com/" target="_blank">PSHyperV</a> as the Cmdlets introduced with the new Hyper-V version are not available.</p>
<p>To connect from Linux or Mac OS X:</p>
<p><strong>xfreerdp &#8211;ignore-certificate &#8211;no-nego -u &lt;username&gt; &#8211;pcb &lt;vmid&gt; -t 2179  &lt;hypervhost&gt;</strong></p>
<p>On Windows you can use the same command line but authentication is handled by the OS. In particular, in order to connect to a different host not in the same domain or without passthrough authentication you can use <strong>cmdkey</strong>.</p>
<p><strong>wfreerdp &#8211;ignore-certificate &#8211;no-nego  &#8211;pcb &lt;vmid&gt; -t 2179  &lt;hypervhost&gt;</strong></p>
<p>If you need to authenticate on the server, before wfreerdp run:</p>
<p><strong>cmdkey /add:&lt;hypervhost&gt; /user:&lt;username&gt; /pass</strong></p>
<h2>A Powershell Cmdlet to ease up things.</h2>
<p>The process described above, involving getting the VM Id before running FreeRDP might become a bit annoying if you need to do it frequently. Here&#8217;s also a <a href="http://www.cloudbase.it/downloads/FreeRDP_win32_x86_20121010.zip">Powershell Cmdlet</a> that I wrote to simplify your work.</p>
<p>Some examples.</p>
<p>First you need to enable the execution of Powershell scripts on the host if you didn&#8217;t do it before:</p>
<p><strong>Set-ExecutionPolicy RemoteSigned</strong></p>
<p>Now you can import the module:</p>
<p><strong>Import-Module .\PSFreeRDP.ps1</strong></p>
<p>Now, to access the console on the &#8220;instance-00000001&#8243; virtual machine on the local Hyper-V host:</p>
<p><strong>Get-VMConsole instance-00000001</strong></p>
<p>To access the console of a VM on a remote server:</p>
<p><strong>Get-VMConsole instance-00000001 -HyperVHost RemoteServer</strong></p>
<p>To access the console on all the running instances (be careful! <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ):</p>
<p><strong>Get-VM | where {$_.State -eq &#8220;Running&#8221;} | Get-VMConsole</strong></p>
<p>As you can see some Powershell magic can ease up a lot of work!</p>
<p><a href="http://www.cloudbase.it/downloads/FreeRDP_win32_x86_20121010.zip">Download FreeRDP for Windows and Powershell Cmdlet</a></p>
<p>We love FreeRDP to the point that we bundled it with our <a title="OpenStack Compute Installer" href="http://www.cloudbase.it/openstack/openstack-compute-installer/">OpenStack installer</a>. This way the entire Hyper-V compute management can be done in a completely autonomous way.</p>
<p><a title="OpenStack Compute Installer" href="http://www.cloudbase.it/openstack/openstack-compute-installer/"><img class="alignnone size-full wp-image-584" title="OpenStack Installer Features selection" src="http://www.cloudbase.it/wp-content/uploads/2012/10/PastedGraphic-23.png" alt="" width="497" height="388" /></a></p>
<p>The post <a href="http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/">Using FreeRDP to connect to the Hyper-V console</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/using-freerdp-to-connect-to-the-hyper-v-console/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SD here we come</title>
		<link>http://www.cloudbase.it/sd-here-we-come/</link>
		<comments>http://www.cloudbase.it/sd-here-we-come/#comments</comments>
		<pubDate>Thu, 04 Oct 2012 20:11:57 +0000</pubDate>
		<dc:creator>Alessandro Pilotti</dc:creator>
				<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[San Diego]]></category>

		<guid isPermaLink="false">http://zoompropertyguide.com/?p=517</guid>
		<description><![CDATA[<p>Here we go, brand new site and great new products to show at the OpenStack Summit in San Diego. We did a huge amount of work lately bringing OpenStack to the Microsoft world, including the new Hyper-V Nova Compute driver, accepted in the OpenStack source code in time for the Folsom release! Check out our...</p><p>The post <a href="http://www.cloudbase.it/sd-here-we-come/">SD here we come</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Here we go, brand new site and great new products to show at the OpenStack Summit in San Diego. <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>We did a huge amount of work lately bringing OpenStack to the Microsoft world, including the new Hyper-V Nova Compute driver, accepted in the OpenStack source code in time for the Folsom release!</p>
<p>Check out our installer for deploying the compute driver on Hyper-V and if you&#8217;ll come to visit us in San Diego we will show you what we are working on for the Grizzly release&#8230; you won&#8217;t be disappointed, promise <img src='http://www.cloudbase.it/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>The post <a href="http://www.cloudbase.it/sd-here-we-come/">SD here we come</a> appeared first on <a href="http://www.cloudbase.it">Cloudbase Solutions</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cloudbase.it/sd-here-we-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
