<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Blog:: Craig Pringle - Virtual PC</title>
    <link>http://www.pringle.net.nz/blog/</link>
    <description>A collection of my thoughts about TabletPCs, mobility and, well other stuff...</description>
    <image>
      <url>http://www.pringle.net.nz/blog/images/pringle.gif</url>
      <title>Blog:: Craig Pringle - Virtual PC</title>
      <link>http://www.pringle.net.nz/blog/</link>
    </image>
    <language>en-us</language>
    <copyright>Craig Pringle</copyright>
    <lastBuildDate>Sun, 10 May 2009 12:16:04 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>craig@pringle.net.nz</managingEditor>
    <webMaster>craig@pringle.net.nz</webMaster>
    <item>
      <trackback:ping>http://www.pringle.net.nz/blog/Trackback.aspx?guid=12ee0de7-f998-4084-8b06-537b3dbd5d9a</trackback:ping>
      <pingback:server>http://www.pringle.net.nz/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</pingback:target>
      <dc:creator>Craig Pringle</dc:creator>
      <wfw:comment>http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</wfw:comment>
      <wfw:commentRss>http://www.pringle.net.nz/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=12ee0de7-f998-4084-8b06-537b3dbd5d9a</wfw:commentRss>
      <slash:comments>9</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
For reasons that escape me Cisco have chosen not to release a 64-bit version of the
IPSec Cisco VPN Client. 
</p>
        <p>
This is a problem for me since I installed the 64-bit version of Windows 7 RC on my
Toshiba M750.
</p>
        <p>
To get around this without rebuilding with the 32-bit version I employed Windows 7’s
new <a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">XP Mode</a> –
aka Virtual XP.
</p>
        <p>
First I followed the steps on the <a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">download
page</a>:
</p>
        <ol>
          <li>
Enabled virtualisation extensions in the BIOS. 
</li>
          <li>
Download and install the Virtual PC Beta. 
</li>
          <li>
Download Windows XP Mode. 
</li>
        </ol>
        <p>
That done I fired up the <em>Virtual Windows XP</em> from my Start Menu:
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_14.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_6.png" width="241" height="82" />
          </a>
        </p>
        <p>
This loaded up a Virtual Machine already running Windows XP.  I installed the
Cisco VPN Client and verified that it could connect to the VPN.  
</p>
        <p>
This is where it gets a little tricky.  At this point I have my Toshiba, which
is the host and an XP machine which is a guest.  The XP Guest has a virtual adaptor
that leverages the host’s network adaptor and can connect to the remote network. 
But the host has not way to connect through the guest to get to the remote network.
</p>
        <p>
For initial testing I created a static route for one of the subnets and pointed it
to the IP Address of the guest.  This worked, but it is a bit fiddly as the guest
IP address is assigned by DHCP and as such will change depending on where I am.
</p>
        <p>
I wanted something that required a little less work to get connected.  To achieve
this I needed to create a virtual adaptor on the Host.  This is done by adding
a loopback adapter to the host.
</p>
        <p>
          <strong>Adding a Loopback Adapter to the Host</strong>
        </p>
        <p>
In Device Manager right click the root node and select <em>Add Legacy Hardware</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb.png" width="244" height="162" />
          </a>
        </p>
        <p>
On the welcome screen click <em>Next</em>.
</p>
        <p>
Then select <em>Install the hardware that I manually select from a list (Advanced) </em>and
then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_1.png" width="244" height="181" />
          </a>
        </p>
        <p>
Scroll down and select <em>Network Adapters </em>and then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_6.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_2.png" width="218" height="215" />
          </a>
        </p>
        <p>
Then select <em>Microsoft </em>as the Manufacturer and <em>Microsoft Loopback Adapter </em>and
then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_10.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_4.png" width="244" height="59" />
          </a>
        </p>
        <p>
        </p>
        <p>
On the confirmation screen click <em>Next</em>.  Then when the installation finishes
click <em>Finish</em>.
</p>
        <p>
        </p>
        <p>
Once this has completed you will find a new network adapter in the Network Connections.
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_12.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_5.png" width="244" height="105" />
          </a>
        </p>
        <p>
I configured this adapter with a private IP address in a range that I don’t use at
home or work.  
</p>
        <p>
Next I added a second Virtual Adapter to the Virtual Windows XP machine and bound
this to the new Loopback Adapter.  I assigned a static address to this in the
same range as the Loopback adapter.
</p>
        <p>
Because the network I am connecting to uses a number of subnets I wrote two quick
CMD scripts.  One adds the routes on the host, the other removes them.
</p>
        <p>
Virtual PC also creates shortcuts for applications installed in the guest on the Start
Menu of the host.  
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_16.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_7.png" width="240" height="178" />
          </a>
        </p>
        <p>
To connect to my VPN I can run this and it hides Virtual Machine’s desktop and the
VPN client looks like it is running on the Windows 7 machine.  I then run my
script to create the routes and I can work away.  When I disconnect the VPN I
run another script to delete the routes again.  Of course I can add shortcuts
to all three actions to my desktop to ease the process.  Not quite as clean as
installing the client directly on the machine, but it works.
</p>
        <p>
          <font color="#ff0000">Update:</font> For details of the command scripts <a href="http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx">see
this post.</a></p>
        <img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12ee0de7-f998-4084-8b06-537b3dbd5d9a" />
      </body>
      <title>Cisco VPN Client on Windows 7 x64</title>
      <guid isPermaLink="false">http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</guid>
      <link>http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</link>
      <pubDate>Sun, 10 May 2009 12:16:04 GMT</pubDate>
      <description>&lt;p&gt;
For reasons that escape me Cisco have chosen not to release a 64-bit version of the
IPSec Cisco VPN Client. 
&lt;/p&gt;
&lt;p&gt;
This is a problem for me since I installed the 64-bit version of Windows 7 RC on my
Toshiba M750.
&lt;/p&gt;
&lt;p&gt;
To get around this without rebuilding with the 32-bit version I employed Windows 7’s
new &lt;a href="http://www.microsoft.com/windows/virtual-pc/download.aspx"&gt;XP Mode&lt;/a&gt; –
aka Virtual XP.
&lt;/p&gt;
&lt;p&gt;
First I followed the steps on the &lt;a href="http://www.microsoft.com/windows/virtual-pc/download.aspx"&gt;download
page&lt;/a&gt;:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
Enabled virtualisation extensions in the BIOS. 
&lt;/li&gt;
&lt;li&gt;
Download and install the Virtual PC Beta. 
&lt;/li&gt;
&lt;li&gt;
Download Windows XP Mode. 
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
That done I fired up the &lt;em&gt;Virtual Windows XP&lt;/em&gt; from my Start Menu:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_14.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_6.png" width="241" height="82" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This loaded up a Virtual Machine already running Windows XP.&amp;#160; I installed the
Cisco VPN Client and verified that it could connect to the VPN.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
This is where it gets a little tricky.&amp;#160; At this point I have my Toshiba, which
is the host and an XP machine which is a guest.&amp;#160; The XP Guest has a virtual adaptor
that leverages the host’s network adaptor and can connect to the remote network.&amp;#160;
But the host has not way to connect through the guest to get to the remote network.
&lt;/p&gt;
&lt;p&gt;
For initial testing I created a static route for one of the subnets and pointed it
to the IP Address of the guest.&amp;#160; This worked, but it is a bit fiddly as the guest
IP address is assigned by DHCP and as such will change depending on where I am.
&lt;/p&gt;
&lt;p&gt;
I wanted something that required a little less work to get connected.&amp;#160; To achieve
this I needed to create a virtual adaptor on the Host.&amp;#160; This is done by adding
a loopback adapter to the host.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Adding a Loopback Adapter to the Host&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
In Device Manager right click the root node and select &lt;em&gt;Add Legacy Hardware&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb.png" width="244" height="162" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
On the welcome screen click &lt;em&gt;Next&lt;/em&gt;.
&lt;/p&gt;
&lt;p&gt;
Then select &lt;em&gt;Install the hardware that I manually select from a list (Advanced) &lt;/em&gt;and
then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_1.png" width="244" height="181" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Scroll down and select &lt;em&gt;Network Adapters &lt;/em&gt;and then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_2.png" width="218" height="215" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Then select &lt;em&gt;Microsoft &lt;/em&gt;as the Manufacturer and &lt;em&gt;Microsoft Loopback Adapter &lt;/em&gt;and
then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_10.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_4.png" width="244" height="59" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
On the confirmation screen click &lt;em&gt;Next&lt;/em&gt;.&amp;#160; Then when the installation finishes
click &lt;em&gt;Finish&lt;/em&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Once this has completed you will find a new network adapter in the Network Connections.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_12.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_5.png" width="244" height="105" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I configured this adapter with a private IP address in a range that I don’t use at
home or work.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
Next I added a second Virtual Adapter to the Virtual Windows XP machine and bound
this to the new Loopback Adapter.&amp;#160; I assigned a static address to this in the
same range as the Loopback adapter.
&lt;/p&gt;
&lt;p&gt;
Because the network I am connecting to uses a number of subnets I wrote two quick
CMD scripts.&amp;#160; One adds the routes on the host, the other removes them.
&lt;/p&gt;
&lt;p&gt;
Virtual PC also creates shortcuts for applications installed in the guest on the Start
Menu of the host.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_16.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_7.png" width="240" height="178" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
To connect to my VPN I can run this and it hides Virtual Machine’s desktop and the
VPN client looks like it is running on the Windows 7 machine.&amp;#160; I then run my
script to create the routes and I can work away.&amp;#160; When I disconnect the VPN I
run another script to delete the routes again.&amp;#160; Of course I can add shortcuts
to all three actions to my desktop to ease the process.&amp;#160; Not quite as clean as
installing the client directly on the machine, but it works.
&lt;/p&gt;
&lt;p&gt;
&lt;font color="#ff0000"&gt;Update:&lt;/font&gt; For details of the command scripts &lt;a href="http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx"&gt;see
this post.&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12ee0de7-f998-4084-8b06-537b3dbd5d9a" /&gt;</description>
      <comments>http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</comments>
      <category>Connectivity</category>
      <category>M750</category>
      <category>Security</category>
      <category>Virtual PC</category>
      <category>Windows 7</category>
    </item>
  </channel>
</rss>