<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Virtualization on Shane Cunningham</title><link>https://cunninghamshane.com/tags/virtualization/</link><description>Recent content in Virtualization on Shane Cunningham</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 07 Sep 2013 05:47:53 +0000</lastBuildDate><atom:link href="https://cunninghamshane.com/tags/virtualization/index.xml" rel="self" type="application/rss+xml"/><item><title>XenServer connect to Windows console</title><link>https://cunninghamshane.com/posts/xenserver-connect-to-windows-console/</link><pubDate>Sat, 07 Sep 2013 05:47:53 +0000</pubDate><guid>https://cunninghamshane.com/posts/xenserver-connect-to-windows-console/</guid><description>&lt;p&gt;Connecting to a Linux console in XenServer is is easy as xl console, but slightly more difficult with a Windows VM since the terminal can&amp;rsquo;t display the Windows GUI. SSH tunneling and VNC to the rescue. First, grab the VNC port the Windows VM uses with the following command. You&amp;rsquo;ll need the dom-id of the Windows VM. &lt;code&gt;xl list&lt;/code&gt; or &lt;code&gt;xe vm-list name-label=YourWindowsNameLabel params=dom-id&lt;/code&gt; to find it.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;console&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;xenstore-read /local/domain/dom-id/console/vnc-port&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;[root@xenserver ~]#&lt;/span&gt; xenstore-read /local/domain/31/console/vnc-port&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;5902&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;So the Windows VM has the console running on 127.0.0.1:5902. From your local machine we will need to setup an SSH tunnel to this port.&lt;/p&gt;</description></item><item><title>XenServer 6.2 and PCI passthrough for LSI SAS1068E</title><link>https://cunninghamshane.com/posts/xenserver-6-2-and-pci-passthrough-for-lsi-sas1068e/</link><pubDate>Mon, 01 Jul 2013 01:35:57 +0000</pubDate><guid>https://cunninghamshane.com/posts/xenserver-6-2-and-pci-passthrough-for-lsi-sas1068e/</guid><description>&lt;p&gt;I had tried to passthrough my LSI SAS1068E to a virtual machine in XenServer 6.0 or 6.1, I forget, but I couldn&amp;rsquo;t get it working for some reason. I didn&amp;rsquo;t troubleshoot it very much though, a few Google searches seemed to point to my whitebox setup and driver/support issues. Recently, XenServer 6.2 was released so I thought I would try this again on my whitebox server. To my surprise I was able to get PCI passthrough working pretty easily on 6.2. For this setup I&amp;rsquo;m using a XenServer 6.2 host with a LSI SAS1068E card set to IT mode, so RAID is disabled and the card is JBOD, with Ubuntu Server 12.04 as the guest OS using the LSI card and being able to access the drives attached to it.&lt;/p&gt;</description></item><item><title>IPMI &amp; iKVM issues with Java 7</title><link>https://cunninghamshane.com/posts/ipmi-ikvm-issues-with-java-7/</link><pubDate>Thu, 23 May 2013 05:40:38 +0000</pubDate><guid>https://cunninghamshane.com/posts/ipmi-ikvm-issues-with-java-7/</guid><description>&lt;p&gt;Recently I made the mistake of turning off my 1U SuperMicro router running &lt;a href="http://pfsense.com/"&gt;pfSense&lt;/a&gt; because we were going on a short vacation. Of course, when I came back and turned it back on I came across some nasty DMA disk errors and a read-only filesystem. No matter what I tried with fsck and remounting could fix these errors. I had my configs saved so I decided to just try a reinstall of pfSense 2.03. One cool thing about my SuperMicro board is the IPMI that&amp;rsquo;s built in. On my Mac I use &lt;a href="http://www.supermicro.com/products/nfo/ipmi.cfm"&gt;IPMIview&lt;/a&gt; and the web interface IPMI provides to connect. Connecting with both worked fine, checking system status, all the power functions and iKVM worked for console redirection.&lt;/p&gt;</description></item><item><title>VM not sending hostname to DNS/DHCP server</title><link>https://cunninghamshane.com/posts/vm-not-sending-hostname-to-dns-server/</link><pubDate>Wed, 13 Feb 2013 07:23:18 +0000</pubDate><guid>https://cunninghamshane.com/posts/vm-not-sending-hostname-to-dns-server/</guid><description>&lt;p&gt;On some VMs I spin up on ESXi the hostname is not sent to my DNS/DHCP server running in pfSense. Haven&amp;rsquo;t found exactly why because it seems occasionally Ubuntu VMs do send this correctly on first boot. I&amp;rsquo;m probably doing something not smart. Anyway, you can easily fix this problem by adding the following -&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;CentOS/Ubuntu&lt;/strong&gt;&lt;br&gt;&#10;Add this to /etc/sysconfig/network&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;text&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;DHCP_HOSTNAME=hostname&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;Replace hostname with your servers hostname and restart networking. It should now send the hostname to your DNS/DHCP server.&lt;/p&gt;</description></item><item><title>Windows VM loses time sync</title><link>https://cunninghamshane.com/posts/windows-vm-loses-time-sync/</link><pubDate>Sat, 15 Sep 2012 16:19:14 +0000</pubDate><guid>https://cunninghamshane.com/posts/windows-vm-loses-time-sync/</guid><description>&lt;p&gt;I experienced a weird time sync issue today with my Windows VMs. I went to stream something to my PS3 from a network share, but I received an error. I thought the share had just lost connection and I needed to reconnect it. When I tried that I received a couple errors, extended error or something and an error stating the time in Windows was different than the server I was trying to connect to. That&amp;rsquo;s when I noticed the date being reported was 9/12/12, which was 3 days behind. I logged into my DC and tried to sync with a couple Internet time servers, but those still resulted in a date that was 3 days behind. Manually changing the time and date resulted in Windows completely ignoring what I entered and going back to 9/12/12.&lt;/p&gt;</description></item><item><title>Adding local SATA drive to VM using RDM</title><link>https://cunninghamshane.com/posts/adding-local-sata-drive-to-esxi-using-rdm/</link><pubDate>Sun, 19 Feb 2012 14:01:35 +0000</pubDate><guid>https://cunninghamshane.com/posts/adding-local-sata-drive-to-esxi-using-rdm/</guid><description>&lt;p&gt;My whitebox ESXi build did not go as well as I had hoped. Even though my ASUS M4A88T-M/USB3 motherboard has the IOMMU setting available under Secure Virtual Machine, it does not appear to work. Secure Virtual Machine should allow the motherboard and a compatible AMD-V CPU to passthrough devices directly to the VM using VMWare DirectPath I/O. I needed this since I have 2 x 2 TB hard drives with all of my data that I wanted to use for my fileserver VM. These drives already have data on them and I needed to pass them to the VM without putting any VMFS on the disks.&lt;/p&gt;</description></item><item><title>Hyper-V and CentOS</title><link>https://cunninghamshane.com/posts/hyper-v-and-centos/</link><pubDate>Tue, 19 Jul 2011 06:51:00 +0000</pubDate><guid>https://cunninghamshane.com/posts/hyper-v-and-centos/</guid><description>&lt;p&gt;CentOS is not listed as a supported OS for Microsoft’s Hyper-V but I’ve found it works pretty well. Whenever I install CentOS on Hyper-V I forget the configuration file you have to create to get eth0 working. So here it is.&lt;/p&gt;&#10;&lt;p&gt;Install CentOS. Add legacy NIC in Hyper-V settings.&lt;/p&gt;&#10;&lt;p&gt;Create file &lt;code&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/code&gt; and input the following with your values of course.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&lt;span class="code-lang"&gt;ini&lt;/span&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight" title="/etc/sysconfig/network-scripts/ifcfg-eth0"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-ini" data-lang="ini"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;DEVICE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;eth0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;BOOTPROTO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;static&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;BROADCAST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;192.168.0.255&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;IPADDR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;192.168.0.100&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;NETMASK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;255.255.255.0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;NETWORK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;192.168.0.0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;ONBOOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;TYPE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Ethernet&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;GATEWAY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;192.168.0.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;Some other commands or config files that might need to be edited.&lt;/p&gt;</description></item><item><title>ESXi build</title><link>https://cunninghamshane.com/posts/esxi-build/</link><pubDate>Tue, 18 Jan 2011 11:43:03 +0000</pubDate><guid>https://cunninghamshane.com/posts/esxi-build/</guid><description>&lt;p&gt;I ordered new RAM and motherboard for my ‘server’. Everything should be here by Thursday and I hope to load ESXi 4.1 on it to test.&lt;/p&gt;&#10;&lt;p&gt;CPU - Athlon II X4&lt;br&gt;&#10;RAM - 16GB DDR3 1333&lt;br&gt;&#10;MB - ASUS M4A88T-M/USB3 AM3&lt;br&gt;&#10;NICS - 2 x Intel Gigabit&lt;/p&gt;&#10;&lt;p&gt;Storage&lt;br&gt;&#10;1 x 640GB&lt;br&gt;&#10;2 x 1TB&lt;br&gt;&#10;2 x 2TB&lt;/p&gt;</description></item><item><title>Convert VMware Server 2 disks</title><link>https://cunninghamshane.com/posts/convert-vmware-server-2-disks/</link><pubDate>Sat, 11 Sep 2010 15:36:50 +0000</pubDate><guid>https://cunninghamshane.com/posts/convert-vmware-server-2-disks/</guid><description>&lt;p&gt;Tested using .vmdk created in VMware Server 2, converted to .vhd and successfully ran in Microsoft Hyper-V R2. No settings to change unless you converted a Linux VM, probably will have to add legacy NIC driver to Hyper-V to get connectivity.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://vmtoolkit.com/blogs/announcements/archive/2006/11/20/vmdk-to-vhd-converter-available.aspx"&gt;Vmdk2Vhd 1.0.13: 2/13/2006&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>