<?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>jim80.net &#187; Virtualization</title>
	<atom:link href="http://blog.jim80.net/category/infrastructure/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jim80.net</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 04:15:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>No Time For Narrative &#8211; Solaris 11 Express ZFS and NFS share to VMWare ESXi 4.1u1</title>
		<link>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1</link>
		<comments>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 23:36:46 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ESXi 4.1]]></category>
		<category><![CDATA[mirror rpool]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Solaris 11 Express]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=481</guid>
		<description><![CDATA[Welcome to my scratchpad. See links for some excellent write ups. This article is based on Solaris 11 Express and VMWare ESXi 4.1. Step 0: Build your hardware and install Solaris. HCL: http://www.oracle.com/webfolder/technetwork/hcl/index.html Step 1: Mirror the rpool zpool status #figure out what&#8217;s already allocated cfgadm -s "select=type(disk)" #list disks fdisk -W - [rootdisk2] #check [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to my scratchpad. See links for some excellent write ups.</p>
<p>This article is based on Solaris 11 Express and VMWare ESXi 4.1.</p>
<p><strong>Step 0: Build your hardware and install Solaris. </strong></p>
<p>HCL: <a href="http://www.oracle.com/webfolder/technetwork/hcl/index.html">http://www.oracle.com/webfolder/technetwork/hcl/index.html </a></p>
<p><strong>Step 1: Mirror the rpool</strong></p>
<p><code>zpool status  </code>#figure out what&#8217;s already allocated</p>
<p><code>cfgadm -s "select=type(disk)"  </code>#list disks</p>
<p><code>fdisk -W - [rootdisk2]  </code>#check</p>
<p><code>fdisk -B [rootdisk2]  </code>#apply a default Solaris partition to the disk</p>
<p><code>fdisk -W - [rootdisk2]  </code>#check again</p>
<p><code>prtvtoc /dev/rdsk/[rootdisk1] | fmthard -s - /dev/rdsk/[rootdisk2]  </code>#slice and dice! You must define slices for rpools, so this step mirrors the original disk&#8217;s slice-age to the second root disk </p>
<p><code>zpool attach -f rpool [rootdisk1] [rootdisk2]  </code>#attach, not add. Attach = mirror. Add =  stripe.</p>
<p><code>zpool status  </code>#check</p>
<p><code>installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/[rootdisk2]  </code>#install grub onto second boot disk</p>
<p><code>zpool status  </code>#check again</p>
<p>see: <a href="http://constantin.glez.de/blog/2011/03/how-set-zfs-root-pool-mirror-oracle-solaris-11-express">http://constantin.glez.de/blog/2011/03/how-set-zfs-root-pool-mirror-oracle-solaris-11-express</a></p>
<p> For more on rpool manipulation, namely on how to shrink an rpool, see: <a href="http://blogs.oracle.com/mock/entry/how_to_shrink_a_mirrored">http://blogs.oracle.com/mock/entry/how_to_shrink_a_mirrored</a></p>
</p>
<p><strong>Step 2: Configure networking</strong></p>
<p><code>ifconfig -a  </code>#cheat and take advantage of nwam&#8217;s device lists</p>
<p><code>svcadm disable network/physical:nwam  </code>#disable nwam</p>
<p><code>svcadm enable network/physical:default  </code>#then enable the default config tools</p>
<p><code>ipadm create-if e1000g0  </code>#or whatever your nic is</p>
<p><code>ipadm show-if  </code>#check</p>
<p><code>ipadm create-addr -T static -a mg.mt.ip.addy/prefix e1000g0/v4  </code>#create the address</p>
<p><code>ipadm show-addr  </code>#confirm</p>
<p>#link aggregate group (LACP)</p>
<p><code>dladm create-aggr -l [nic2] -l [nic 3]  </code>#create link aggregate group:</p>
<p>Then the same ipadm commands</p>
<p><code>ipadm create-if aggr1  </code>#configure aggr1 for persistence</p>
<p><code>ipadm show-if  </code>#confirm it was added, should show down.</p>
<p><code>ipadm create-addr -T static -a 1.2.3.4/24 aggr1/v4  </code>#create the address</p>
<p><code>ipadm show-addr  </code>#confirm it was added, show-if should now show &#8220;OK&#8221;</p>
<p><code>netstat -rn  </code>#check routing tables</p>
<p><code>route -p add default 1.2.3.1  </code>#add persistent default route</p>
<p><code>vi /etc/resolv.conf  </code>#configure nameservers</p>
<p><code>vi /etc/hosts  </code>#configure name</p>
<p><code>vi /etc/nsswitch.conf  </code>#enable dns lookups for &#8220;hosts&#8221; line</p>
<p><code>svcsadm restart ssh  </code>#restart ssh after modifying networking</p>
<p><code>ping 4.2.2.1  </code>#ping Level3&#8242;s DNS resolvers to confirm routing</p>
<p><code>reboot  </code>#reboot to confirm persistency</p>
</p>
<p><strong>Step 3: Do your AD thing. I know you love it. </strong></p>
<p>read this: <a href="http://blog.scottlowe.org/2006/08/15/solaris-10-and-active-directory-integration/">http://blog.scottlowe.org/2006/08/15/solaris-10-and-active-directory-integration/</a></p>
<p>also: <a href="http://download.oracle.com/docs/cd/E19963-01/html/821-1449/index.html">http://download.oracle.com/docs/cd/E19963-01/html/821-1449/index.html</a></p>
</p>
<p><strong>Step 4: Configure ZFS</strong></p>
<p><code>format  </code>#to present list of disks. exit out, leaving the list in screen buffer</p>
<p>or: <code>cfgadm -s "select=type(disk)"</code></p>
<p><code>zpool create tank mirror c7t0d0 c7t1d0 mirror c7t2d0 c7t3d0 cache c7t4d0  </code>#create your main zpool. This is 4 drives in raid 10 and a read cache. use &#8220;log c#t#d#&#8221; to add a ZIL device</p>
<p><code>zfs set dedup=on tank  </code>#enable dedup</p>
<p><code>zfs set compression=on tank  </code>#enable compression.</p>
<p></code></p>
<p>Note that changes made to the pool will apply to its children when they are created.</p>
</p>
<p><code>zfs create tank/VMOS  </code>#create your ESXi share</p>
<p><code>zfs set sharenfs=none,nosuid,root=1.2.3.xx:1.2.3.xy tank/VMOS  </code>#share with 1.2.3.xx and 1.2.3.xy</p>
</p>
<p>From esxi 4.1:</p>
</p>
<p><code>esxcfg-nas -a -o IP.Or.Host.Name -s /tank/VMOS [esxiDatastoreName]</code>#  <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1005057">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1005057</a></p>
<p>ZFS /Solaris links</p>
<p><a href="http://lildude.co.uk/zfs-cheatsheet">http://lildude.co.uk/zfs-cheatsheet</a></p>
<p><a href="http://download.oracle.com/docs/cd/E19963-01/index.html">http://download.oracle.com/docs/cd/E19963-01/index.html</p>
<p></a></p>
<p>iSCSI - Solaris 11 = use COMSTAR.</p>
<p><a href="http://wikis.sun.com/display/OpenSolarisInfo200906/Configuring+an+iSCSI+Storage+Array+With+COMSTAR+%28Task+Map%29">http://wikis.sun.com/display/OpenSolarisInfo200906/Configuring+an+iSCSI+Storage+Array+With+COMSTAR+%28Task+Map%29</p>
<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Hyper-V with NAT</title>
		<link>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-hyper-v-with-nat</link>
		<comments>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 05:59:22 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[RRAS]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=344</guid>
		<description><![CDATA[This post was originally posted by me at http://forums.serverbeach.com/showthread.php?t=6411. I&#8217;ve edited out the ServerBeach specific stuff and will post pictures&#8230;. soonish. The following link has some great pictures not included here. http://sqlblog.com/blogs/john_paul_c&#8230;h-hyper-v.aspx I&#8217;ll add some nice little pictures here once I get some screenshots together. CONFIGURE HYPERV 1. Configure an &#8220;Internal&#8221; HyperV network 2. Set each [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post was originally posted by me at </em><a href="http://forums.serverbeach.com/showthread.php?t=6411"><em>http://forums.serverbeach.com/showthread.php?t=6411</em></a><em>. </em></p>
<p><em>I&#8217;ve edited out the ServerBeach specific stuff and will post pictures&#8230;. soonish.</em></p>
<p>The following link has some great pictures not included here. <a href="http://sqlblog.com/blogs/john_paul_cook/archive/2008/03/23/using-wireless-with-hyper-v.aspx" target="_blank">http://sqlblog.com/blogs/john_paul_c&#8230;h-hyper-v.aspx</a></p>
<p>I&#8217;ll add some nice little pictures here once I get some screenshots together.</p>
<p>CONFIGURE HYPERV</p>
<p>1. Configure an &#8220;Internal&#8221; HyperV network<br />
2. Set each Virtual Machine to use the Internal network and assign them and your HyperV host on the correct subnet (in this example 10.0.0.1 for the host and 10.0.0.10 for the VM).</p>
<p>ENABLE ROUTING AND REMOTE ACCESS ON THE HOST MACHINE</p>
<p>1. Click -&gt; Start -&gt; Administrative Tools -&gt; Routing and Remote Access<br />
2. Right Click on Server#### (local) -&gt; Configure &amp; Enable Routing &amp; Remote Access<br />
3. Click -&gt; Next on Welcome Window<br />
4. Select Custom Configuration Click -&gt; Next<br />
5. Select NAT Click -&gt; Next<br />
6. Select your public interface<br />
7. Select your Internal HyperV interface<br />
8. Select &#8220;I will set up name and address services later&#8221; Click -&gt; Next<br />
9. Click -&gt; Finish</p>
<p>CONFIGURE ROUTING AND REMOTE ACCESS ON THE HOST MACHINE</p>
<p>1. Routing and Remote Access should be running on the server now<br />
2. Expand out the Server<br />
3. Expand out IP Routing<br />
4. Select NAT/Basic Firewall<br />
5. Right-click your public interface. Select properties<br />
7. Network Address Translation Properties Window will open<br />
8. Select Radio Button for &#8220;Public Interface Connected to the Internet&#8221;<br />
9. Select the check box for both &#8220;Enable NAT on this interface&#8221;<br />
10. Click on the Address Pool Tab<br />
11. Click the Add button and add your secondary IP addresses. The &#8220;Start Address&#8221; and &#8220;End Address&#8221; will be the same in most cases.</p>
<p>*NOTE* You do not want the secondary IP address configured in the TCP/IP Properties of the Host machine.</p>
<p>12. Click the Reservations button and enter your static IP mappings. That is, specify that you want traffic on your secondary IP mapped to your VM&#8217;s internal IP.<br />
13. In services.msc, make sure that RRAS is set to start automatically and Windows ICS is disabled.</p>
<p>NOTES #1</p>
<p>When configuring and experimenting with the RRAS firewall, create a batch file to stop the service in case you forget to allow RDC or otherwise render the system inaccessible.</p>
<p>Code:</p>
<p>net stop &#8220;remoteaccess&#8221;</p>
<p>Then add the batch file to the scheduler and have it run some time after you apply your changes.</p>
<p>NOTE #2</p>
<p>RRAS is really finicky about the interfaces installed on the server. If an interface is changed in any significant way, it&#8217;ll have to be disabled and reconfigured.</p>
<p>Hyper-V is also similarly finicky about its virtual networks. I can&#8217;t count the number of times I had to remove and recreate networks. Thankfully, this was rather painless with only one VM to propagate changes to.</p>
<p>If you should encounter any difficulties with adding your additional VMs to the server, try resetting HyperV networking, individual VM network binding (in the VM&#8217;s settings), confirming physical host interfaces, and then reconfiguring RRAS in this order.</p>
<p>NOTE #3</p>
<p>Those who have had HyperV configuration problems solved it by disabling <strong>TCP/Offload Engine</strong>. Symptoms include, RRAS just not working, or working sporadically. If in doubt, disable TCP/Offload Engine</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1c9be3b4-fa47-4d11-8458-d22aca6154ee" target="_blank">http://social.technet.microsoft.com/&#8230;8-d22aca6154ee</a><br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;904946" target="_blank">http://support.microsoft.com/default&#8230;b;EN-US;904946</a></p>
<p>So if this applies to you, run on the host and on any 2008 VMs:</p>
<p>$ netsh int ip set global taskoffload=disabled</p>
<p>and add the following registry key to any 2003 VMs:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\DisableTaskOffload</p>
<p>This is a DWORD entry that should have a value of 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

