<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8278344224100467369</id><updated>2024-08-29T15:52:01.975+01:00</updated><category term="Debian"/><category term="vmware"/><category term="linux"/><category term="ESXi"/><category term="Exchange 2007"/><category term="KVM"/><category term="PowerShell"/><category term="Squeeze"/><category term="active directory"/><category term="domain member"/><category term="migrate"/><category term="samba"/><category term="70-341"/><category term="70-342"/><category term="AES"/><category term="AES-NI"/><category term="CPU features"/><category term="CPU identification mask"/><category term="CPUID"/><category term="Clone"/><category term="Converting IDE to SCSI"/><category term="DNS BIND forwarders active directory VPN"/><category term="Exchange"/><category term="Host CPU is incompatible with the virtual machine&#39;s requirments at CPUID level 0x1 register"/><category term="HostDatastoreSystem.QueryVmfsDatastoreCreateOptions"/><category term="Hyper-V"/><category term="IPSec"/><category term="KB2592687"/><category term="KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN"/><category term="LAN Manager authentication level"/><category term="LUN"/><category term="Local security policy"/><category term="MySQL replication"/><category term="NTFS"/><category term="NTLM"/><category term="PCLMULQDQ"/><category term="Python"/><category term="RDP 8"/><category term="Remote Desktop Gateway"/><category term="Remote Downlevel Document"/><category term="SSH"/><category term="SSH machine keys"/><category term="Samba winbind"/><category term="Squid"/><category term="Template"/><category term="Virtual Center"/><category term="Watchguard"/><category term="Windows 10"/><category term="Windows 8"/><category term="Windows 8 Release Preview"/><category term="Windows 8 consumer preview"/><category term="XTM505."/><category term="Xenserver to VMware"/><category term="Your computer can&#39;t connect to the remote computer because an error occurred on the remote computer that you want to connect to"/><category term="alternate data stream"/><category term="arp wrong MAC address"/><category term="arp_filter"/><category term="clonezilla"/><category term="convert"/><category term="convertion"/><category term="copy and paste"/><category term="dd"/><category term="domain functional level 2008"/><category term="drviers"/><category term="expire"/><category term="file system"/><category term="fileserver"/><category term="filesystem"/><category term="gparted"/><category term="ha-datastoresystem"/><category term="headers"/><category term="hex key wpa urandom generator"/><category term="iSCSI"/><category term="jobname"/><category term="kerberos"/><category term="kerberos.dll"/><category term="migration"/><category term="move"/><category term="network"/><category term="ntp"/><category term="oVirt"/><category term="open-iscsi"/><category term="paravirtualised"/><category term="paravirtualized"/><category term="partition"/><category term="performance"/><category term="reboot Linux"/><category term="scheduler"/><category term="screen"/><category term="scsi adapter"/><category term="self signed certificate"/><category term="snapshots"/><category term="unblock"/><category term="vMotion"/><category term="vSphere"/><category term="virtual machine"/><category term="vmware tools"/><category term="vsphere client"/><category term="zone identifier"/><title type='text'>Admin Reminders</title><subtitle type='html'>I often find myself searching the internet for things I know can be done, but can&#39;t quite remember how to do. This blog attempts to bring some of these cerebrally elusive items together along with information or opinions on subjects I find myself interested in or having to do as a Sys Admin.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-3914173634846996320</id><published>2015-06-25T19:27:00.000+01:00</published><updated>2015-06-26T15:30:59.318+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CPU features"/><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><category scheme="http://www.blogger.com/atom/ns#" term="oVirt"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 10"/><title type='text'>Set CPU family for a specific VM on oVirt 3.5</title><content type='html'>I have been playing around with an &lt;a href=&quot;http://www.ovirt.org/Home&quot; target=&quot;_blank&quot;&gt;oVirt&lt;/a&gt; test lab now on and off for a couple of months and I must say I love it. The community is active and helpful (either via the users@ovirt.org mailing list or #ovirt on irc.oftc.net using IRC) and the software is continuously upgraded and improved by a well organised development team.&lt;br /&gt;
&lt;br /&gt;
One of the features that is missing in version 3.5 is the ability to set the CPU family on a VM to CPU family with a lower set of features than the current hardware (actually the cluster but that is likely to be set to the same thing). Sounds daft, why would anyone want to do this, well you can test if a VM would work on a older class of hardware I suppose. What I wanted it for a bug with Windows 10 previews that throw a&lt;a href=&quot;https://social.technet.microsoft.com/Forums/en-US/695c8997-52cf-4c30-a3f7-f26a40dc703a/failed-install-of-build-10041-in-the-kvm-virtual-machine-system-thread-exception-not-handled?forum=WinPreview2014Setup&quot; target=&quot;_blank&quot;&gt; SYSTEM THREAD EXCEPTION NOT HANDLED which prevents installing on a SandyBridge CPU on the KVM hypervisor&lt;/a&gt; (the hypervisor used by oVirt). The answer is to fall back to the older CPU family of Westmere. To do that on stock 3.5 oVirt you need to set the whole cluster to that CPU family, there is not option to do just a VM.&lt;br /&gt;
&lt;br /&gt;
I presumed someone else had figured a way to do this so asked on the #ovirt IRC channel, no one knew but did try to put me in touch with some who might help but they were away. I then emailed the mailing list and got back two prompt answers. &amp;nbsp;First saying I need to use something called VDSM hooks and another says the feature will be available in 3.6 if I can wait or upgrade before final release.&lt;br /&gt;
&lt;br /&gt;
I looked up VDSM hooks, these are (mostly python) scripts that can effect certain events on a running ovirt engine. The event I needed to look at is before_vm_start, following instructions and modifying the example script on &lt;a href=&quot;http://www.ovirt.org/VDSM-Hooks&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt; page I was able to customise my lab to enable CPU setting.
&lt;br /&gt;
Create the following script on each host in the cluster.&lt;br /&gt;
&lt;pre&gt;vi /usr/libexec/vdsm/hooks/before_vm_start/50_cpufamily&lt;/pre&gt;
Paste in the following text:&lt;br /&gt;
&lt;pre&gt;#!/usr/bin/python

import os
import sys
import hooking
import traceback


if os.environ.has_key(&#39;cpufamily&#39;):
    try:
       domxml = hooking.read_domxml()   #here we read the VM XML into the domxml variable
       vcpu = domxml.getElementsByTagName(&#39;cpu&#39;)[0] #find and read the CPU definition in the VM XML
       sys.stderr.write(&#39;cpufamily: Changing cpu family to: %s\n&#39; % os.environ[&#39;cpufamily&#39;])  #sys.stderr.write is caught by vdsm and logged into vdsm.log for debugging
       e = domxml.createElement(&#39;model&#39;)
       txt = domxml.createTextNode(os.environ[&#39;cpufamily&#39;])
       e.appendChild(txt)
       modelnode = vcpu.getElementsByTagName(&#39;model&#39;)[0]
       vcpu.replaceChild(e,modelnode)
       hooking.write_domxml(domxml)                       #and write to the altered domxml
    except:
       sys.stderr.write(&#39;cpufamily: [unexpected error]: %s\n&#39; % traceback.format_exc())
       sys.exit(2)
&lt;/pre&gt;
&lt;br /&gt;
Change the script to be executable:
&lt;br /&gt;
&lt;pre&gt;# chmod +x /usr/libexec/vdsm/hooks/before_vm_start/50_cpufamily
&lt;/pre&gt;
If you are using the hosted engine setup on one of the hosts put the HA agents into global maintenance with:
&lt;br /&gt;
&lt;pre&gt;# hosted-engine --set-maintenance --mode=global
&lt;/pre&gt;
Then on just the engine machine:
&lt;br /&gt;
&lt;pre&gt;# engine-config -s UserDefinedVMProperties=&#39;cpufamily=^(Conroe|Penryn|Nehalem|Westmere|SandyBridge)$&#39; --cver=3.5&lt;/pre&gt;
&lt;pre&gt;# service ovirt-engine restart
&lt;/pre&gt;
Take the ha agents out of maintenance mode:
&lt;br /&gt;
&lt;pre&gt;# hosted-engine --set-maintenance --mode=none
&lt;/pre&gt;
This should now allow you to log into the engine GUI, edit a VM (or create a new one) under advanced options go to custom properties and select the cpufamily key and set an appropriate CPU family, the next time you boot your VM will only have access to those CPU features relevant to the CPU family you have selected.


</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/3914173634846996320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2015/06/set-cpu-family-for-specific-vm-on-ovirt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/3914173634846996320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/3914173634846996320'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2015/06/set-cpu-family-for-specific-vm-on-ovirt.html' title='Set CPU family for a specific VM on oVirt 3.5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-1754912292412696316</id><published>2015-02-16T20:36:00.003+00:00</published><updated>2015-06-25T15:26:48.988+01:00</updated><title type='text'>Genius open-vm-tools</title><content type='html'>I have always felt that running a Debian VM in a VMware environment was a little bit of a pain, installing the vmware tools was easy enough that you could do it in a few minutes but not so easy that I could remember how to do it (hence &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/08/installing-vmware-tools-on-debian.html&quot; target=&quot;_blank&quot;&gt;this post&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
Now VMware fully support open-vm-tools things are much easier if you are running wheezy or newer, you can simply run:&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;apt-get install open-vm-tools&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Then everything just works.&lt;br /&gt;
&lt;br /&gt;
I look forward to the day when the Debian installer detects that it is getting installed on a VMware VM and does this automatically for you at install.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/1754912292412696316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2015/02/genius-open-vm-tools.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1754912292412696316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1754912292412696316'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2015/02/genius-open-vm-tools.html' title='Genius open-vm-tools'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-5586238937536328039</id><published>2014-11-05T22:26:00.001+00:00</published><updated>2015-02-06T22:54:27.557+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="70-341"/><category scheme="http://www.blogger.com/atom/ns#" term="70-342"/><category scheme="http://www.blogger.com/atom/ns#" term="Exchange"/><category scheme="http://www.blogger.com/atom/ns#" term="Hyper-V"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Powershell script to bring up Hyper-V VMs Slowly enough that they function</title><content type='html'>The below Powershell script is something I wrote out of frustration while on an Exchange Messaging course to try to improve my mood. The Hyper-V VMs we were starting for each lab took an absolute age to load up and become responsive after we reverted their state at the end of each lab.&amp;nbsp;This script attempts to start machines one after another with a configurable gap in between, the idea being you could set the $vms array to the machines you want started then wander off for a bit of a break then hopefully when you return the VMs would have loaded and be responsive.&lt;br /&gt;
&lt;br /&gt;
You may ask why wouldn&#39;t you just start them all together, well the machines that were running the VMs were not up to spec and each of the VMs seemed to be based off of a single VM using dereferenced  disks which severely impacted performance.
The VMs took so long to load that Services on each of them often failed to start because of timeouts.&lt;br /&gt;
&lt;br /&gt;
I thought I would share&amp;nbsp;in the hope it may save someone else pulling their hair out.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;# Machines to start in order to start
$vms = &quot;20342B-LON-DC1&quot;, &quot;20342B-LON-CAS1&quot;, &quot;20342B-LON-MBX1&quot;, &quot;20342B-LON-CL1&quot;, &quot;20342B-LON-CL2&quot; , &quot;20342B-LON-LY1&quot;
# minimum uptime in seconds to check for before starting next machine
$delaytime = 45
Function StartVM
 {
     param ($Name)
     $vmquery = get-vm $Name
     if ($vmquery.state -eq &quot;off&quot;)
     {
        Write-Host &quot; not running, starting&quot; -NoNewline
        start-vm $Name
        $vmquery = get-vm $Name
     }
     elseif ($vmquery.state -eq &quot;Running&quot;)
     {
        Write-Host &quot; already running&quot; -NoNewline
     }
     While ($vmquery.uptime.TotalSeconds -lt  $delaytime) { $vmquery = get-vm $Name; sleep 2 ; Write-Host . -NoNewline }  
     write-host &quot; uptime is &quot;-nonewline
     write-host $vmquery.uptime.TotalSeconds -NoNewline
     write-host &quot; seconds, over $delaytime so assumed to be up and running.&quot;
}
foreach ($vm in $vms) {
    write-host &quot;Checking $vm... &quot; -NoNewline
    StartVM $vm 
}
write-host &quot;If $delaytime seconds was long enough your VMs should be functioning now.&quot;

&lt;/pre&gt;
&lt;br /&gt;
I am still on the course studying for 70-341: Core solutions of Microsoft Exchange Server 2013 and 70-342: Advanced Solutions of Microsoft Exchange Server 2013, So I may well update the script as I run more labs. Ideally I would like to improve the script so it waits until the started VM is &quot;responding&quot; before starting the next one but this has proved difficult, if you have any suggestions please let me know.&lt;br /&gt;
&lt;br /&gt;
Update: 06/02/2015, I have improved the script a little, it now copes better with machines being started from other sources or if the script is restarted and the times are in seconds as the latest tests I have endured have been on lab machines using SSDs which significantly improves performance.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/5586238937536328039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2014/11/the-below-powershell-script-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/5586238937536328039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/5586238937536328039'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2014/11/the-below-powershell-script-is.html' title='Powershell script to bring up Hyper-V VMs Slowly enough that they function'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-4620174738271169550</id><published>2014-09-09T21:22:00.000+01:00</published><updated>2014-10-08T05:48:39.417+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="scheduler"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual machine"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>Squeezing more from your Linux VMs</title><content type='html'>&lt;div&gt;
There is a way to squeeze a little more from Linux VM&#39;s.&lt;br /&gt;
&lt;h2&gt;
The theory&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
Linux has a number of ways of sharing it&#39;s storage IO among different processes, the norm seems to be to use the Completely Fair Queuing (CFQ) scheduler which helps to prevent a single process from using more than it&#39;s fair share of storage IO. This is usually helpful in an environment where this one Linux box is the only OS using a storage device but when it is running on an hypervisor the hypervisor is also busy trying to dish out fair access to the storage so we are effectively doubling up calculating fair access. There are other schedulers that we can choose from and for VM&#39;s it seems to make the most sense to use either the noop or the deadline schedulers. They are both more simple to calculate then CFQ.&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
The practice&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
If you are using the device sda for your drive use the following to check what scheduler you are using :&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;# cat /sys/block/sda/queue/scheduler&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
which will return something like&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;noop anticipatory deadline [cfq]&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
Which indicates that the scheduler for this device is CFQ.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To change it on the fly you just:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;echo noop &amp;gt; /sys/block/sda/queue/scheduler&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
If you want to make the change work across reboots you will need to add elevator=noop to your kernel boot parameters, on a Debian system you edit /etc/default/grub and add &quot;elevator=noop&quot; to the GRUB_CMDLINE_LINUX line then run:&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;# update-grub&lt;/pre&gt;
&lt;/div&gt;
To update the grub configuration.&lt;br /&gt;
&lt;br /&gt;
Sources: &lt;a href=&quot;http://kb.vmware.com/kb/2011861&quot;&gt;kb.vmware.com/kb/2011861&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://serverfault.com/questions/360718/kvm-low-io-performance&quot;&gt;http://serverfault.com/questions/360718/kvm-low-io-performance&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/4620174738271169550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2014/09/squeezing-more-from-your-linux-vms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4620174738271169550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4620174738271169550'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2014/09/squeezing-more-from-your-linux-vms.html' title='Squeezing more from your Linux VMs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-1642602425773973376</id><published>2013-12-15T12:05:00.002+00:00</published><updated>2013-12-15T12:05:42.970+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KB2592687"/><category scheme="http://www.blogger.com/atom/ns#" term="LAN Manager authentication level"/><category scheme="http://www.blogger.com/atom/ns#" term="RDP 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Desktop Gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="Your computer can&#39;t connect to the remote computer because an error occurred on the remote computer that you want to connect to"/><title type='text'>Remote desktop gateway connections failing when KB2592687 installed.</title><content type='html'>While setting up a lab running Remote Desktop Gateway on Windows Server 2012 R2 I came across a strange problem. I was able to connect through the RD Gateway using some machines but not others.&lt;br /&gt;
On the machines that were failing I got the following message when trying to connect:&lt;br /&gt;
&quot;Your computer can&#39;t connect to the remote computer because an error occurred on the remote computer that you want to connect to. Contact your network administrator for assistance.&quot;&lt;br /&gt;
&lt;br /&gt;
After much pulling of hair I narrowed it down to something to do with the&amp;nbsp;&lt;a href=&quot;http://support.microsoft.com/kb/2592687&quot; target=&quot;_blank&quot;&gt;KB2592687&lt;/a&gt;&amp;nbsp;update. This update installs RDP version 8.0 on Windows 7 SP1 machines. This update was present on both the machine I was trying to connect to and on the clients that were failing. There is a list of known problems in knowledge base article but none of them applied to my setup.&lt;br /&gt;
&lt;br /&gt;
More searching found loads of red herrings, then I discovered this &lt;a href=&quot;http://social.technet.microsoft.com/Forums/windowsserver/en-US/3842a844-46c4-4943-9cc7-a88bcfa9119a/remote-desktop-gateway-cant-connect-from-rdp-80-server-2012&quot; target=&quot;_blank&quot;&gt;post&lt;/a&gt;. It mentions LAN manager authentication level settings (Local security policy-&amp;gt;Local Policies-&amp;gt;Security Options-&amp;gt;Network Security: LAN Manager authentication level). On the failing client it was set to &quot;Send LM &amp;amp; NTLM - user NTLMv2 session security if negotiated.&quot; Changing it to &quot;Send NTLMv2 response only&quot; (which seems is the default on Vista and above) made the connection work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/1642602425773973376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2013/12/remote-desktop-gateway-connections.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1642602425773973376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1642602425773973376'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2013/12/remote-desktop-gateway-connections.html' title='Remote desktop gateway connections failing when KB2592687 installed.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-8837107381876215496</id><published>2013-06-16T16:22:00.000+01:00</published><updated>2013-06-16T16:22:31.300+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="file system"/><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="gparted"/><category scheme="http://www.blogger.com/atom/ns#" term="partition"/><title type='text'>Extending disks on a Windows VM</title><content type='html'>Extend disks on a Windows Server 2008 R2 machine (and probably Windows 7 as well).&lt;br /&gt;
&lt;br /&gt;
Extend the hard drive in VM Settings, this can be done while Windows is running but I was unable to get Windows to see the new size until after I rebooted the VM.&lt;br /&gt;
&lt;br /&gt;
GUI&lt;br /&gt;
Server manager-&amp;gt;Storage-&amp;gt;Disk management, right click on the drive and choose &quot;Extend Volume...&quot; select size to expand to then click next.&lt;br /&gt;
&lt;br /&gt;
Command line way&lt;br /&gt;
Start-&amp;gt;Run and type diskpart.&lt;br /&gt;
At the disk part prompt type:
&lt;br /&gt;
&lt;pre&gt;DISKPART&amp;gt; list disk
&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online           40 GB  5121 MB
&lt;/pre&gt;
&lt;br /&gt;
This will show you a list of the disks in the system, once you have identified the disk you want by it&#39;s number (I only have disk 0 (zero) in the example above).&lt;br /&gt;
We now need the volume number: 
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;DISKPART&amp;gt; list volume&lt;/pre&gt;
&lt;pre&gt;  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D   CD           CDFS   DVD-ROM      112 MB  Healthy    
  Volume 1         System Rese  NTFS   Partition    101 MB  Healthy    System
  Volume 2     C                NTFS   Partition     40 GB  Healthy    Boot
&lt;/pre&gt;
Now &quot;select&quot; the volume you want to extend (in this case I am extending my C drive so it is volume 2).

&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;DISKPART&amp;gt; select volume 2

Volume 2 is the selected volume.
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
Now tell diskpart to extend the volume into the all the free space on disk 0:

&lt;br /&gt;
&lt;pre&gt;DISKPART&amp;gt; extend disk=0

DiskPart successfully extended the volume.&lt;/pre&gt;
That is it, all done.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another easy way to extend disk sizes (as well as many other useful functions) is to run a live CD of &lt;a href=&quot;http://gparted.sourceforge.net/livecd.php&quot; target=&quot;_blank&quot;&gt;gparted&lt;/a&gt;. This will also works with other operating systems such as Linux. In fact it should work any file system that gparted understands, check out there &lt;a href=&quot;http://gparted.sourceforge.net/features.php&quot; target=&quot;_blank&quot;&gt;features page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/8837107381876215496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2013/06/extending-disks-on-windows-vm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8837107381876215496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8837107381876215496'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2013/06/extending-disks-on-windows-vm.html' title='Extending disks on a Windows VM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-8244122438608545652</id><published>2013-05-13T12:00:00.000+01:00</published><updated>2013-05-13T15:56:05.523+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="IPSec"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Watchguard"/><category scheme="http://www.blogger.com/atom/ns#" term="XTM505."/><title type='text'>Setting up a branch office VPN between a Watchguard XTM505 and a Debian linux box.</title><content type='html'>Lets us say you have two sites and want to build a VPN between them. The first site has a Watchguard XTM device has a public IP address of 99.99.99.99 which protects a private IP address range of 10.0.1.0/24 and your second site has just a Debian Linux box which has a dynamic IP address that protects a private IP address range of 10.0.2.0/24&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
&lt;u&gt;Debian side&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Install needed
packages:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# apt-get install
ipsec-tools racoon&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Choose &quot;direct&quot; for racoon
setup&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Edit
/etc/ipsec-tools.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#!/usr/sbin/setkey -f&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# NOTE: Do not use this file
if you use racoon with racoon-tool&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# utility. racoon-tool will
setup SAs and SPDs automatically using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#
/etc/racoon/racoon-tool.conf configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;## Flush the SAD and SPD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# flush;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# spdflush;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;spdadd 10.0.1.0/24 10.0.2.0/24 any -P in ipsec&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
esp/tunnel/99.99.99.99-10.0.2.254/require;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;spdadd&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;10.0.2.0/24&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;10.0.1.0/24&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;any -P out ipsec&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
esp/tunnel/&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;10.0.2.254&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;-99.99.99.99/require;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Edit
/etc/racoon/psk.txt and add the line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;99.99.99.99 &amp;nbsp; Somerandomkey&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Edit
/etc/racoon/racoon.conf&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# Simple racoon.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# Please look in
/usr/share/doc/racoon/examples for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# examples that come with
the source.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# Please read racoon.conf(5)
for details, and alsoread setkey(8).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;# Also read the Linux IPSEC
Howto up at&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#
http://www.ipsec-howto.org/t1.html&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;path pre_shared_key
&quot;/etc/racoon/psk.txt&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;path certificate
&quot;/etc/racoon/certs&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;remote 99.99.99.99 {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exchange_mode aggressive,main;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dpd_delay 20;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dpd_maxfail 5;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_identifier user_fqdn
&quot;something@company.com&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proposal {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lifetime time 28800 second;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encryption_algorithm 3des;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hash_algorithm sha1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; authentication_method
pre_shared_key;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dh_group modp1024;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;sainfo address&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;10.0.2.0/24&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;any address&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;10.0.1.0/24&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;any {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lifetime time&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;28800 second&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pfs_group modp1024;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encryption_algorithm 3des;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; authentication_algorithm hmac_sha1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compression_algorithm deflate;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB; mso-fareast-theme-font: minor-fareast;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;u&gt;Watchguard side&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-GB; mso-fareast-theme-font: minor-fareast;&quot;&gt;I have simply taken screen shots for the configuration for the watchguard side:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdhau1x4BDWoBxBc9-UHmYrtinSrBgllfMuAQV2ig9IShYKi_lSmopy215rvkiix_Gc7i6YsGTJCewPDw9pYThuDvN4ZyPbf0JmW_ieD8O8o2n3DDeyfsOr5Af72qFOrgmKfaqLSefIKM/s1600/ipsec1a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdhau1x4BDWoBxBc9-UHmYrtinSrBgllfMuAQV2ig9IShYKi_lSmopy215rvkiix_Gc7i6YsGTJCewPDw9pYThuDvN4ZyPbf0JmW_ieD8O8o2n3DDeyfsOr5Af72qFOrgmKfaqLSefIKM/s1600/ipsec1a.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You will need to ensure that the preshared random key is the same as you used in the&amp;nbsp;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 13px;&quot;&gt;/etc/racoon/psk.txt file you created above.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSNS6MNWI_-NeP3fS5rLl_eoJMy8rWRSExhUWIHgWt51S5jVhMw1cCYORp3akd2fqQSfSL3UQnXOlD4MrB7Mdxcots0scbKQNYObX77S6i32gu4MNfapM1wys11P4QjKPvDxfIxEAPMpE/s1600/ipsec1b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSNS6MNWI_-NeP3fS5rLl_eoJMy8rWRSExhUWIHgWt51S5jVhMw1cCYORp3akd2fqQSfSL3UQnXOlD4MrB7Mdxcots0scbKQNYObX77S6i32gu4MNfapM1wys11P4QjKPvDxfIxEAPMpE/s1600/ipsec1b.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC2Pm4NOEs1pFDzpUAB15ITkzQMfhOEgo1pif0nBxaCRyX-MLaTR70PzGnyn8mYYdVhDCtZocpdK_oOR37r3GXVl8hp-JrOFiociXpMCvfJ757x1txzpDApmerDiKGu7fGsJeUoB6N08g/s1600/ipsec2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC2Pm4NOEs1pFDzpUAB15ITkzQMfhOEgo1pif0nBxaCRyX-MLaTR70PzGnyn8mYYdVhDCtZocpdK_oOR37r3GXVl8hp-JrOFiociXpMCvfJ757x1txzpDApmerDiKGu7fGsJeUoB6N08g/s1600/ipsec2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCku3lZgWxCjx4h1pwh0rXeULfdFcLtjy-NOtBY8lkmG7X-SZ0PzY5orRHgULD7DP1omxZ55Qf0zvSCSZiZqIUzjW1wJEvXDLe7mhBcZV6mzxqAVRBhMVdORiIaP8CqMSFpRS1sF4q-sM/s1600/ipsec3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCku3lZgWxCjx4h1pwh0rXeULfdFcLtjy-NOtBY8lkmG7X-SZ0PzY5orRHgULD7DP1omxZ55Qf0zvSCSZiZqIUzjW1wJEvXDLe7mhBcZV6mzxqAVRBhMVdORiIaP8CqMSFpRS1sF4q-sM/s1600/ipsec3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaclCqRNnqVLb9Lm5kTP60lYD3Zk1qO3g-wXl84iMvfGEsun57Z6c9giuoMWiVk7Tsx0JBs51qI0tXlHKcZQ6tpv1RBX74cj20gEN0iCjlsCE6htRRA5IS-z_rTkAuDwjNGUzxNQpj_B4/s1600/ipsec4a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaclCqRNnqVLb9Lm5kTP60lYD3Zk1qO3g-wXl84iMvfGEsun57Z6c9giuoMWiVk7Tsx0JBs51qI0tXlHKcZQ6tpv1RBX74cj20gEN0iCjlsCE6htRRA5IS-z_rTkAuDwjNGUzxNQpj_B4/s1600/ipsec4a.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXC2CPVAvhHV2NyVhyphenhyphenTIwK0D-6GPpulAcgIGNVdv561OnkFnli8IEqz4CE0abREHebRJKauNmAwasqsKueUZ_JUCsjd1oJOpGEWxVMNLPHrNGdto62zv5V72DMDscEbontkArVpyC4DhM/s1600/ipsec4b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXC2CPVAvhHV2NyVhyphenhyphenTIwK0D-6GPpulAcgIGNVdv561OnkFnli8IEqz4CE0abREHebRJKauNmAwasqsKueUZ_JUCsjd1oJOpGEWxVMNLPHrNGdto62zv5V72DMDscEbontkArVpyC4DhM/s1600/ipsec4b.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/8244122438608545652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2013/05/setting-up-branch-office-vpn-between.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8244122438608545652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8244122438608545652'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2013/05/setting-up-branch-office-vpn-between.html' title='Setting up a branch office VPN between a Watchguard XTM505 and a Debian linux box.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdhau1x4BDWoBxBc9-UHmYrtinSrBgllfMuAQV2ig9IShYKi_lSmopy215rvkiix_Gc7i6YsGTJCewPDw9pYThuDvN4ZyPbf0JmW_ieD8O8o2n3DDeyfsOr5Af72qFOrgmKfaqLSefIKM/s72-c/ipsec1a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-9067064824815560811</id><published>2013-03-19T00:58:00.000+00:00</published><updated>2013-12-17T10:21:13.657+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="domain member"/><category scheme="http://www.blogger.com/atom/ns#" term="snapshots"/><title type='text'>VMs, snapshots and domain computer accounts.</title><content type='html'>Have you ever had the problem where you have reverted a VM&#39;s snapshot to find that it&#39;s computer password is out of sync with the domain? I have, loads of times. This is often seen with the following message when you attempt to log in: &quot;Windows cannot connect to the domain, either because the domain&lt;br /&gt;
controller is down or otherwise unavailable, or because your computer&lt;br /&gt;
account was not found.&quot;&lt;br /&gt;
&lt;br /&gt;
The problem is that Windows machines on a Domain change their computer account passwords with a Domain controller every 30 Days. If a machine changes it&#39;s computer password with a domain controller and you then revert to a snapshot that was taken before the password was changed the computer account will no longer be able to authenticate on the network and domain users won&#39;t be able to logon.
&lt;br /&gt;
&lt;br /&gt;
How do you get around this? One way is in &lt;a href=&quot;http://support.microsoft.com/kb/154501&quot; target=&quot;_blank&quot;&gt;Microsoft&#39;s KB article 154501&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
This can reduce the security on your domain, or at least the security between the DC and the workstation you make the following registry changes on but if you have a testing setup like I do this is not much of a problem and the&amp;nbsp;convenience&amp;nbsp;easily&amp;nbsp;outweighs&amp;nbsp;any security issues (in my opinion :).&lt;br /&gt;
You can set the DisablePasswordChange registry entry to 1 in :&lt;br /&gt;
&lt;br /&gt;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters&lt;br /&gt;
&lt;br /&gt;
That has now stopped this machine from changing it&#39;s domain password every 30 days. Now we need to get the machine back onto the domain, to&amp;nbsp;achieve&amp;nbsp;this do one of the following:&lt;br /&gt;
&lt;br /&gt;
A. Remove the computer from the domain and add it back in again. Easy enough you say. I have a lot of test machines floating about that don&#39;t always have the same local administrator password. So it is a good idea to make sure that you know a local administrators password before you remove the machine from the domain otherwise you will end up with a machine you cannot access via windows (all is not necessarily lost, &lt;a href=&quot;http://trinityhome.org/&quot; target=&quot;_blank&quot;&gt;trinity rescue kit&lt;/a&gt; can help here).&lt;br /&gt;
&lt;br /&gt;
B. Remove and rejoin the machine to the domain using the netdom.exe command:&lt;br /&gt;
&lt;pre&gt;netdom remove &amp;lt;machine name&amp;gt; /Domain:&amp;lt;domain name&amp;gt; /userd:&amp;lt;domain name&amp;gt;\&amp;lt;domain administrator account name&amp;gt; /passwordd:&amp;lt;domain administrator password&amp;gt;
&lt;/pre&gt;
Wait for the response:&lt;br /&gt;
&lt;pre&gt;The command completed successfully.
&lt;/pre&gt;
Then run:&lt;br /&gt;
&lt;pre&gt;netdom join &amp;lt;machine name&amp;gt; /Domain:&amp;lt;domain name&amp;gt; /userd:&amp;lt;domain name&amp;gt;\&amp;lt;domain administrator account name&amp;gt; /passwordd:&amp;lt;domain administrator password&amp;gt;
&lt;/pre&gt;
Again we are looking for the response:&lt;br /&gt;
&lt;pre&gt;The command completed successfully.
&lt;/pre&gt;
It is probably best to reboot the machine at this point, it is a windows machine after all we were messing with the domain membership and I simply would trust a machine in this state to function as expected unless it is rebooted.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/9067064824815560811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2013/03/vms-snapshots-and-domain-computer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/9067064824815560811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/9067064824815560811'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2013/03/vms-snapshots-and-domain-computer.html' title='VMs, snapshots and domain computer accounts.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-6363880598995708843</id><published>2012-11-14T17:29:00.000+00:00</published><updated>2013-01-20T21:14:35.367+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dd"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="ESXi"/><category scheme="http://www.blogger.com/atom/ns#" term="ha-datastoresystem"/><category scheme="http://www.blogger.com/atom/ns#" term="HostDatastoreSystem.QueryVmfsDatastoreCreateOptions"/><category scheme="http://www.blogger.com/atom/ns#" term="iSCSI"/><category scheme="http://www.blogger.com/atom/ns#" term="LUN"/><category scheme="http://www.blogger.com/atom/ns#" term="open-iscsi"/><title type='text'>ESXi not accepting previously used volume</title><content type='html'>I recently had a problem on an ESXi 5.0 box I was trying to add a iscsi target to. I had set up a 6 TB &amp;nbsp;iSCSI LUN but everytime I tried adding it to ESXI I got the following error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Call &quot;HostDatastoreSystem.QueryVmfsDatastoreCreateOptions&quot; for object &quot;ha-datastoresystem&quot; on ESXi &quot;ESX HOSTNAME&quot; failed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It turned out that the setup wizard on the device had happily created a volume and formatted it with ext4 before I realised what it was doing. Although I removed this volume the partition information wasn&#39;t removed from the array and this was upsetting ESXi.&lt;br /&gt;
&lt;br /&gt;
How do you fix it? As there was no obvious way to wipe the partition info from within the Array&#39;s management interface I decided to do it from a Debian VM running on that host.&lt;br /&gt;
&lt;br /&gt;
Firstly I removed the discovery information from the ESXI server so it isn&#39;t trying to interfere then on the Debian VM I installed open-iscsi with:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;apt-get install open-iscsi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Start the open-iscsi daemon with:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/etc/init.d/open-iscsi start&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Query the iSCSI target on the storage device:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm -m discovery -t st -p 192.168.1.99&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Which should return something like this:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;192.168.1.99:3260,0 iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you have set up iSCSI authentication on your storage device you will need to run something like the following commands using the iqn in the above response.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm &amp;nbsp; --mode node &amp;nbsp;--targetname &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&quot; &amp;nbsp;-p 192.168.0.99:3260 --op=update --name node.session.auth.authmethod --value=CHAP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm &amp;nbsp; --mode node &amp;nbsp;--targetname &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&quot; &amp;nbsp;-p 192.168.0.99:3260 --op=update --name node.session.auth.username --value=username&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm &amp;nbsp; --mode node &amp;nbsp;--targetname &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&quot; &amp;nbsp;-p 192.168.0.99:3260 --op=update --name node.session.auth.password --value=password&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Logon to the storage device:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm -m node --targetname &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&quot; --portal &quot;192.168.0.99:3260&quot; --login&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
All being well this should now create a SCSI device as if you had attached a hard drive directly to the system. I looked at the bottom of the output from the dmesg command to find out which device (/dev/sdb).&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
I used the following command to write zeros to the first half a MB of the disk which will overwrite any partition table information (care should be taken that you have the correct device when using this command, it will eat your drive):&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;dd if=/dev/zero of=/dev/sdb bs=512 count=1024&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Now logout of the storage device with the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iscsiadm -m node --targetname &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iqn.2010-12.com.manufacturer:nasdevice.name&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&quot; --portal &quot;192.168.0.99:3260&quot; --logout&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
ESXi should now happily accept the iSCSI LUN when you attempt to add it.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/6363880598995708843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/esxi-not-accepting-previously-used.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/6363880598995708843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/6363880598995708843'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/esxi-not-accepting-previously-used.html' title='ESXi not accepting previously used volume'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-5107405342460985115</id><published>2012-11-12T12:01:00.000+00:00</published><updated>2012-11-12T12:01:55.874+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Local security policy"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8"/><title type='text'>Local security policy on Windows 8</title><content type='html'>The Local Security Policy MMC in Windows 8 how now been moved further away from the user (perhaps with good cause) and is available by searching for &quot;secpol.msc.&quot;&lt;br /&gt;
&lt;br /&gt;
This is&amp;nbsp;reminiscent&amp;nbsp;of the move to hide the Component services mmc in Windows 7/Windows Server 2008 R2 which can me accessed by searching for &quot;comexp.msc.&quot;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/5107405342460985115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/local-security-policy-on-windows-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/5107405342460985115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/5107405342460985115'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/local-security-policy-on-windows-8.html' title='Local security policy on Windows 8'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-2392888117602807954</id><published>2012-11-06T16:33:00.000+00:00</published><updated>2012-11-09T16:07:40.408+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8 consumer preview"/><title type='text'>Installation of .net 3.5 on Windows Server 2012</title><content type='html'>I struggled installing .net 3.5 on Windows 2012 Server. After going through the add features and selecting .net 3.5 I got the following Warning:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;The request to add or remove feature on the specified server failed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Installation of one or more roles, role services, or features failed. - The source files could not be downloaded.
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Use the /source option to specify the location of the files that are required to restore the feature. The file location should be either the root directory of a mounted image or a component store that has the Windows Side-by-Side directory as an immediate subfolder.
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
From a administrative command prompt run the following:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:\sources\sxs /LimitAccess /all&lt;/pre&gt;
&lt;br /&gt;
This will install .net 2.0 and 3.5.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/2392888117602807954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/installation-of-net-35-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2392888117602807954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2392888117602807954'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/11/installation-of-net-35-on-windows.html' title='Installation of .net 3.5 on Windows Server 2012'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-1359104197772811184</id><published>2012-07-13T12:35:00.004+01:00</published><updated>2012-08-10T13:57:02.463+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="active directory"/><category scheme="http://www.blogger.com/atom/ns#" term="jobname"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Downlevel Document"/><category scheme="http://www.blogger.com/atom/ns#" term="samba"/><title type='text'>&quot;Remote Downlevel Document&quot; instead of jobname in Samba</title><content type='html'>To save the planet I implemented a print to PDF server for our Quality Assurance department at work. It consists an installation of Samba and a hand full of custom scripts.&lt;br /&gt;
&lt;br /&gt;
I recently upgraded this server and added it to our domain (up until now there were no sensitive documents being processed but as we planned on adding these it became necessary to restrict access to some shares).&lt;br /&gt;
&lt;br /&gt;
I have just spent far too much time trying to work out why windows was not passing the document name from the printing application correctly. It seems that the &quot;jobname&quot; parameter being passed from Samba to my script was always &quot;Remote Downlevel Document&quot; when previously it was something more helpful like the title of a document.&lt;br /&gt;
&lt;br /&gt;
The offending line in the configuration was:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;disable spoolss = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Once this was removed everything started working as before.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/1359104197772811184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/07/remote-downlevel-document-instead-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1359104197772811184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1359104197772811184'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/07/remote-downlevel-document-instead-of.html' title='&quot;Remote Downlevel Document&quot; instead of jobname in Samba'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-1588975970125594037</id><published>2012-06-21T15:09:00.002+01:00</published><updated>2012-06-21T15:09:31.608+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="screen"/><category scheme="http://www.blogger.com/atom/ns#" term="SSH"/><title type='text'>Using screen on a linux server</title><content type='html'>Once in a while I need to leave a process running for a long period of time on a Linux server I will use the screen command. Screen allow you to run a process in a session then disconnect your SSH session but leave the process running, then log back in later and check in on the process from another SSH session.&lt;br /&gt;
&lt;br /&gt;
Once screen has been installed (sudo apt-get install screen on a Debian system) you can simply type screen followed by the command line for the process you want to run. So if you want to leave a network trace running you would use something like:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# screen tcpdump -ieth0 host hostname.domain.com -w ./host.cap&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This would start up tcpdump and run it in a screen session.&lt;br /&gt;
&lt;br /&gt;
If you only have one screen session running on a&amp;nbsp;machine&amp;nbsp;then to get to it you can use:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# screen -r&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
However if you plan on running more than one session then you may want to give the sessions names, so for example you can run :&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# screen -S capture-session&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;tcpdump -ieth0 host hostname.domain.com -w ./host.cap&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Then you can access that specific session with:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# screen -r capture-session&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Once you are in a session it will perform like an ordinary SSH connection. If you wish to disconnect but leave the session running you will need to press &amp;lt;CTRL&amp;gt;+a, then d.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/1588975970125594037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/using-screen-on-linux-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1588975970125594037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/1588975970125594037'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/using-screen-on-linux-server.html' title='Using screen on a linux server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-4124202964616945848</id><published>2012-06-19T21:17:00.000+01:00</published><updated>2012-06-20T11:59:58.410+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ESXi"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8 Release Preview"/><title type='text'>Installing Windows 8 x64 Release Preview on an ESXI VM</title><content type='html'>I simply thought that it would be a case of installing Windows 8 release&amp;nbsp;preview&amp;nbsp;and I would be able to have a tinker. Unfortunately not.&lt;br /&gt;
&lt;br /&gt;
Firstly make sure you are on ESXi 5.0 update1. Create a virtual machine and set the OS to &quot;Microsoft Windows 8 (64-bit)&quot;. At the end of creating the VM, us the check box&quot;open setting dialog&quot;&lt;br /&gt;
&lt;br /&gt;
In the VM&#39;s settings:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Change the video card to Auto detect settings and check the &quot;Enable 3D support&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;go to the Options-&amp;gt;Boot Options and change the firmware to EFI&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Now proceed with the installation of Windows 8 Release Preview and all should work.&lt;br /&gt;
&lt;br /&gt;
I didn&#39;t modify the settings on the VM the first time I tried to install Windows 8 and ended up having to reinstall after making the above changes.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/4124202964616945848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/installing-windows-8-x64-release.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4124202964616945848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4124202964616945848'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/installing-windows-8-x64-release.html' title='Installing Windows 8 x64 Release Preview on an ESXI VM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-4995262970601880963</id><published>2012-06-06T20:29:00.000+01:00</published><updated>2012-06-21T17:52:51.814+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL replication"/><title type='text'>MySQL Server Replication</title><content type='html'>Recently had cause to check out MySQL&#39;s replication capabilities. One of the programmers wanted a wiki for his department&#39;s to use. We already used &lt;a href=&quot;http://www.mediawiki.org/&quot; target=&quot;_blank&quot;&gt;Mediawiki&lt;/a&gt; on a Debian box for another department so I thought we could beef up the box with some RAM then add a new wiki to it, change the backup scripts and we would be done. However I got thinking that this might be an&amp;nbsp;opportunity&amp;nbsp;to provide a more resilient set up where the MySQL server running the wiki could replicate to an offsite location. This could then provide a read-only back up to the existing machine in case of failure. I will of course still need to take backups (just in case some Flump deletes the lot).&lt;br /&gt;
&lt;br /&gt;
The following is how I set up replication between a production mediawiki server&amp;nbsp;with the MySQL server installed locally.&lt;br /&gt;
&lt;br /&gt;
It kind of goes without saying that you will need at least two machines each running MySQL, in my set up both machines were Debian 6 (Squeeze).&lt;br /&gt;
&lt;br /&gt;
On the Production machine we will need to to configure MySQL so it knows it is going to be part of a replication group. Edit my.cnf and add or modify the following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;server-id = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;log_bin = /var/log/mysql/mysql-bin.log&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
We also need to get MySQL to bind to the network address of the NIC&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;bind-address = 0.0.0.0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
On the Offsite machine we need to tell it to be a slave:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;server-id = 2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;log_bin = /var/log/mysql/mysql-bin.log&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
We need to create an account on the master (production) machine for the slave to be able to log on to the master for replication.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mysql -u root -p&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt;&amp;nbsp;&amp;nbsp;CREATE USER &#39;replicationos&#39;@&#39;%&#39; IDENTIFIED BY &#39;password&#39;;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.10 sec)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt;&amp;nbsp;GRANT REPLICATION SLAVE ON *.* TO &#39;replicationos&#39;@&#39;%&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
We now need to get the Replication master binary log components. If this is done on a production machine then I suggest you do it quickly&amp;nbsp;because&amp;nbsp;you will stop certain transactions from&amp;nbsp;occurring&amp;nbsp;while the tables are locked.&lt;br /&gt;
&lt;br /&gt;
open two sessions to mysql, in the first run:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;&quot;&gt;mysql&amp;gt; &lt;strong class=&quot;userinput&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: inherit; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px; vertical-align: baseline;&quot;&gt;FLUSH TABLES WITH READ LOCK;&lt;/code&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;br /&gt;
In the second session run:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt; show master status;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;+------------------+----------+--------------+------------------+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;| File &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Position | Binlog_Do_DB | Binlog_Ignore_DB |&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;+------------------+----------+--------------+------------------+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;| mysql-bin.000003 | &amp;nbsp; &amp;nbsp;21381 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;+------------------+----------+--------------+------------------+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1 row in set (0.02 sec)&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Make a note of the&quot;File&quot; and &quot;Postition&quot;:&lt;br /&gt;
&lt;br /&gt;
Exit mysql client in the second session (still leaving the first logged in). Now&amp;nbsp;dump the data out ready to be imported by the slave with:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mysqldump -p --all-databases --lock-all-tables &amp;gt;/root/dbdump.db&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Copy the dbdump.db to the slave machine with scp then on the slave machine start mysql with the --skip-slave-start option:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysqld --skip-slave-start&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Import the data with:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql -p &amp;lt; /root/dbdump.db&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to tell the slave machine about the master using the &quot;File&quot; and &quot;Position&quot; we noted in a earlier step with the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt; CHANGE MASTER TO MASTER_HOST=&#39;wiki.company.com&#39;, MASTER_USER=&#39;replicationos&#39;, MASTER_PASSWORD=&#39;password&#39;, MASTER_LOG_FILE=&#39;mysql-bin.000003&#39;, MASTER_LOG_POS=21381;&lt;/span&gt;
&lt;br /&gt;
Now start the slave process:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt; start slave;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Wait for a few moments then check the status of replication with the following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SHOW SLAVE STATUS\G&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;*************************** 1. row ***************************&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Slave_IO_State: Waiting for master to send event&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_Host: wiki.company.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_User: replicationos&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_Port: 3306&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Connect_Retry: 60&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_Log_File: mysql-bin.000027&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Read_Master_Log_Pos: 37742&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Relay_Log_File: mysqld-relay-bin.000511&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Relay_Log_Pos: 7333&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Relay_Master_Log_File: mysql-bin.000027&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Slave_IO_Running: Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Slave_SQL_Running: Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Replicate_Do_DB:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Replicate_Ignore_DB:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Replicate_Do_Table:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Replicate_Ignore_Table:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Replicate_Wild_Do_Table:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; Replicate_Wild_Ignore_Table:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last_Errno: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last_Error:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Skip_Counter: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exec_Master_Log_Pos: 37742&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Relay_Log_Space: 7489&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Until_Condition: None&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Until_Log_File:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Until_Log_Pos: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master_SSL_Allowed: No&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master_SSL_CA_File:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master_SSL_CA_Path:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_SSL_Cert:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master_SSL_Cipher:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master_SSL_Key:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Seconds_Behind_Master: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Master_SSL_Verify_Server_Cert: No&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_IO_Errno: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_IO_Error:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last_SQL_Errno: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last_SQL_Error:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1 row in set (0.00 sec)&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The \G in the &quot;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SHOW SLAVE STATUS\G&quot;&lt;/span&gt;&amp;nbsp;is short hand for &quot;ego&quot; in the MySQL client and it means &quot;Send command to mysql server, display result vertically.&quot; Check that the &quot;Slave_IO_State&quot; is &quot;Waiting for master to send event&quot; and that &quot;Seconds_Behind_Master&quot; is 0 and that means that your slave is&amp;nbsp;synchronised&amp;nbsp;with your server (unless you have only just lost network connection to the master).&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/4995262970601880963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/mysql-replication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4995262970601880963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4995262970601880963'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/06/mysql-replication.html' title='MySQL Server Replication'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-7380494262874255796</id><published>2012-04-20T22:41:00.000+01:00</published><updated>2012-04-20T22:41:27.087+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arp wrong MAC address"/><category scheme="http://www.blogger.com/atom/ns#" term="arp_filter"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Linux giving out wrong MAC address</title><content type='html'>I recently had a problem where a&amp;nbsp;Linux&amp;nbsp;box with multiple NICs running a iptables firewall script was not accepting connections when it should. I ran tcpdump to find that ARP lookups&amp;nbsp;received&amp;nbsp;by the box were actually giving out the a MAC address from a different NIC. This seemed&amp;nbsp;bizarre at first, but knowing Linux&#39;s networking strength I realised that I was missing something and that I probably needed to tweak the kernel to behave the way I wanted.&lt;br /&gt;
&lt;br /&gt;
A quick Google found that I probably wanted to turn on arp_filter in the kernel. So I ran the following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/arp_filter&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Immediately tcpdump showed that the kernel was now behaving the way I wanted it to and handing out only the MAC address for the relevant NIC.&lt;br /&gt;
&lt;br /&gt;
To make the change permanent (i.e. survive a reboot) you could add the above line to a init script or add the following line to /etc/sysclt.conf&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;net.ipv4.conf.all.arp_filter = 1&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/7380494262874255796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/04/linux-giving-out-wrong-mac-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7380494262874255796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7380494262874255796'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/04/linux-giving-out-wrong-mac-address.html' title='Linux giving out wrong MAC address'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-3763607842182250037</id><published>2012-04-17T22:29:00.001+01:00</published><updated>2012-04-17T22:29:54.052+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alternate data stream"/><category scheme="http://www.blogger.com/atom/ns#" term="NTFS"/><category scheme="http://www.blogger.com/atom/ns#" term="unblock"/><category scheme="http://www.blogger.com/atom/ns#" term="zone identifier"/><title type='text'>NTFS alternate data streams and zip files</title><content type='html'>If you download a zip file onto a NTFS partition Internet Explorer will store zone information in the file using something called alternate data streams. If the zone information is stored with the file it will be &quot;blocked&quot; within Windows. The file can easily be unblocked by clicking the &quot;Unblock&quot; button in the files properties (if your user account has the correct permissions).&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_t7DC1oZqMvYqW9V_HwgOMxHnfcWXz39O1gXVRxLyn_iNN1bfrgWq9_EIZQ55kdQOj4svoQlFa24JHTyxGZhOKsdqDWCgxKQ7EEKLYyR82T_uaL52X7w3nFDDMBabFgzpavkCol9BsMI/s1600/unblock.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_t7DC1oZqMvYqW9V_HwgOMxHnfcWXz39O1gXVRxLyn_iNN1bfrgWq9_EIZQ55kdQOj4svoQlFa24JHTyxGZhOKsdqDWCgxKQ7EEKLYyR82T_uaL52X7w3nFDDMBabFgzpavkCol9BsMI/s400/unblock.png&quot; width=&quot;291&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;File properties showing the unblock button&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
We recently had a problem where we were&amp;nbsp;downloading&amp;nbsp;a zip file to a customer&#39;s&amp;nbsp;machine, unzipping the archive and when we tried to run the executable that was in the archive it was failing. It seems that if you do not &quot;unblock&quot; the zip file then all of the files extracted from the archive will all be in the same blocked state. This was causing problems for our support team and it seems the answer to this problem is to simply unblock the zip before unpacking the archive (I suppose&amp;nbsp;you could unblock each individual file after the extraction but we had a lot of files).&lt;br /&gt;
&lt;br /&gt;
To see this behaviour download a file with IE and look at the properties. The alternate data stream is called Zone.Identifier, you can see the contents of the alternate data stream with the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;more &amp;lt; fullfilename:Zone.Identifier&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8AnsKRSDNqyV4CLlfyrhkO4Yno0qWgFYT54MpZ0Z0GM0O4oOw5oNbixg5JMO7HP91V03bl2eL_zpuVBZ1NDxVG69S0shPHvcl5iFU1HXgnGH1mWaai3Lk-QgPBPto4A_504BPlf0R5qg/s1600/cmd+zone+identifer.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8AnsKRSDNqyV4CLlfyrhkO4Yno0qWgFYT54MpZ0Z0GM0O4oOw5oNbixg5JMO7HP91V03bl2eL_zpuVBZ1NDxVG69S0shPHvcl5iFU1HXgnGH1mWaai3Lk-QgPBPto4A_504BPlf0R5qg/s640/cmd+zone+identifer.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Seeing the zone information saved with the alternate data stream on a downloaded file&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/3763607842182250037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/04/ntfs-alternate-data-streams-and-zip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/3763607842182250037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/3763607842182250037'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/04/ntfs-alternate-data-streams-and-zip.html' title='NTFS alternate data streams and zip files'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_t7DC1oZqMvYqW9V_HwgOMxHnfcWXz39O1gXVRxLyn_iNN1bfrgWq9_EIZQ55kdQOj4svoQlFa24JHTyxGZhOKsdqDWCgxKQ7EEKLYyR82T_uaL52X7w3nFDDMBabFgzpavkCol9BsMI/s72-c/unblock.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-724912451802680575</id><published>2012-02-24T18:07:00.000+00:00</published><updated>2012-02-24T17:55:55.893+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="copy and paste"/><category scheme="http://www.blogger.com/atom/ns#" term="vsphere client"/><title type='text'>Copy and paste in the vSphere client</title><content type='html'>I assumed that the ability to copy and paste text between your desktop and virtual machines had been removed entirely from the vSphere client. It turns out that it has just been disabled by default for security reasons and that it can be enabled per VM or per ESX host.&lt;br /&gt;
&lt;br /&gt;
I found a need for this when setting up machines with little or no contact with the outside world, but that you want to make complicated configuration changes that you have previously documented.&lt;br /&gt;
&lt;br /&gt;
Information on how to enable copy and paste in the vSphere client is available in VMware&#39;s &lt;a href=&quot;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1026437&quot; target=&quot;_blank&quot;&gt;KB article 1026437&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/724912451802680575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2012/02/copy-and-paste-in-vsphere-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/724912451802680575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/724912451802680575'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2012/02/copy-and-paste-in-vsphere-client.html' title='Copy and paste in the vSphere client'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-8027167473711398042</id><published>2011-12-16T15:47:00.000+00:00</published><updated>2012-02-06T12:57:48.164+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="convertion"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="migrate"/><category scheme="http://www.blogger.com/atom/ns#" term="migration"/><category scheme="http://www.blogger.com/atom/ns#" term="Xenserver to VMware"/><title type='text'>Converting a Debian VM from Xenserver to vSphere</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can transfer the data for the machine from one&amp;nbsp;environment to another&amp;nbsp;using &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/12/convert-windows-machine-to-vmware-vm.html&quot; target=&quot;_blank&quot;&gt;clonezilla&lt;/a&gt;. Once it is&amp;nbsp;transferred&amp;nbsp;I found that the machine does not boot. On further investigation I realised that there are many differences between a Debian install on Xenserver and on vSphere.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you get the message &quot;Operating system not found&quot; you will need to install grub to the virtual hard disk. To do this boot a liveCD (such as clonezilla).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;As root run grub, at the grub&amp;gt; prompt type:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;grub&amp;gt; find /boot/grub/stage1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This will return the location of grubs stage one, make a note of this location for the next command. Type&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;grub&amp;gt; root (hd0,0) &lt;/span&gt;&amp;lt; this is the location returned by the last command&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now install grub to the master boot record (MBR) with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;grub&amp;gt; setup (hd0)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;then quit grub with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;grub&amp;gt; quit&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Reboot to get the grub menu but if you let it try and continue using the default settings it will very likely hang because it will try to use a block device name that begins with xvd, these are xenserver specific and will not exist on the VMware VM.&amp;nbsp;To get it to continue booting you need to hit &#39;e&#39; on the grub selection screen, then edit the boot line to replace the device that looks like /dev/xvda1 and made it look like /dev/sda1, also remove the &quot;console=hvc0&quot; otherwise you will not be able to see interact with your OS via the console (hvc0 is another xenserver specific device name).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Once we have booted the system we need to go about preparing the system to boot correctly when left to it&#39;s own devices (geddit?), firstly ensure the keyboard keymap is set up correctly with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 24px;&quot;&gt;# dpkg-reconfigure console-data&lt;/span&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit /etc/fstab to change all references to xvd devices to sda in /etc/fstab&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On many of the machines I&amp;nbsp;transferred&amp;nbsp;using this method I found that they had no swap partitions after the transfer. So I simply set the disk size slightly bigger than the source disk when initially creating the VM in vSphere, then added a partition with fdisk. I usually set the swap partition as /dev/sda2.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You then need to make that partition a swap partition with (I have found often that a reboot is&amp;nbsp;required&amp;nbsp;before the command works):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;# mkswap /dev/sda2&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Then you can mount it with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;# swapon /dev/sda2&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;And see if the swap space is available with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;# free&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Don&#39;t forget to update /etc/fstab so it is pointing to the correct device for the swap partition so it is automounted at boot.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The CDRom is set to /dev/hdc unless you have changed the VM&#39;s hardware settings, update this in /etc/fstab as well.&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We need to change grubs configuration so that it automatically boots a with appropriate parameters, this information is stored in /boot/grub/menu.list. You can achieve this by either running the following commands:&lt;/span&gt;&lt;p&gt;

&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;sed -i &#39;s/xvd/sd/g&#39; /boot/grub/menu.lst&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;sed -i &#39;s/console=hvc0//g&#39; /boot/grub/menu.lst&lt;/span&gt;&lt;p&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Or edit &amp;nbsp;/boot/grub/menu.lst, find the line that begins # kopt, remove the console=hvc0 from the end and change the &quot;xvd&quot; device to the correct boot device.&amp;nbsp;move down to the botton where the menu choices are configured and change the device and remove the console=hvc0 from each of the one you will likely use (the top one only in my case).&lt;/span&gt;&lt;br /&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit /etc/inittab and comment out the line that begins &quot;co:&quot;&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Remove the xenserver specific packages from your apt sources list with:&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;rm /etc/apt/sources.list.d/citrix.list&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Update your packages list:&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;apt-get update&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Remove all the kernels that are installed with:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;apt-get remove linux-image*&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You will get a warning asking about the removal of the running linux kernel, say &quot;No&quot; to this as we will install another one that we can get headers for in the next step.&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Install a more appropriate kernel with:&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small;&quot;&gt;apt-get install linux-image-2.6-686&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Reboot to run the newly installed kernel.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Install VMware tools, details of how in my &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/08/installing-vmware-tools-on-debian.html&quot; target=&quot;_blank&quot;&gt;post here&lt;/a&gt;, then reboot to test.&lt;/span&gt;&lt;p&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To get the most out of the VM you should switch hardware to&lt;a href=&quot;http://admin-reminder.blogspot.com/2011/12/paravirtualizing-vsphere-guests.html&quot; target=&quot;_blank&quot;&gt; paravirutal drivers for SCSI controllers and NICs.&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eef4f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-size: 1.2em; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: auto;&quot;&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/8027167473711398042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/converting-debian-vm-from-xenserver-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8027167473711398042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/8027167473711398042'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/converting-debian-vm-from-xenserver-to.html' title='Converting a Debian VM from Xenserver to vSphere'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-6403523191773448039</id><published>2011-12-15T23:20:00.000+00:00</published><updated>2012-05-31T21:17:21.702+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Clone"/><category scheme="http://www.blogger.com/atom/ns#" term="clonezilla"/><category scheme="http://www.blogger.com/atom/ns#" term="migrate"/><category scheme="http://www.blogger.com/atom/ns#" term="move"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>Convert a Windows machine to a VMware VM with Clonezilla</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I have had need to do manual conversions of physical and virtual machines for several reasons previously. Some of these reasons have included:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There is not enough free space on the machine&#39;s disk(s), (also know as &quot;I haven&#39;t got time to wait for the machine&#39;s administrator to tidy up&quot;)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;VMware Convert no longer supports the conversion of that operating system.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We can&#39;t afford PlateSpin&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I wonder if I could do a conversion the hard way.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This takes me back to my first ESX Project. The company I worked for had about 8 test machines sitting along one office wall. The situation was already out of hand and I was being asked for more test machines. I decided we needed a to think big and decided on and got approved ESX on a couple of big (at least for us) servers to virtualise the test environment. I managed to simply move all the test machines by installing a fresh OS and installing and configuring all the software my self, with the help of the relevant departments. I then came to our Windows NT 4.0 software build machine.... No-one, not even the developer that put it together knew what was on there. We were building releases every couple of weeks at the time. It goes without saying this is not a good place to be, and baring a complete hardware failure on the physical machine there was no way anyone was going to be rebuilding the machine. I scratched my head and had previously used dd and tar to move installs from one machine to another on Linux, so I had a crack at it, and to my surprise a few hours later I had run a P2V by hand with a Linux live CD. I had even managed convince Windows NT to let me switch the drives from IDE to SCSI.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Having used Clonezilla to store a few images from machines that were shipped without restore media in the past, I wondered how easy it would be to back up an image of a machine and restore it into a new virtual environment. As it turns out with Clonezilla I don&#39;t even need to create an image, the tools are there to transfer the data from one machine&#39;s disk and write it directly to the disk of another.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The&amp;nbsp;conversion&amp;nbsp;here is from a Xenserver VM to a VMware VM but the technique used here will probably work else where.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Put a Clonezilla live CD in both your (virtual) machines and boot them.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The default boot option for Clonezilla worked fine for me on both machines, your mileage may vary.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select your language options as necessary&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On the source machine:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;Start_Clonezilla&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;device-device&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;Beginner&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;disk_to_remote_disk&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;dhcp&quot; or assign an IP address with &quot;static&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now it should show you a list of disks in the system, select the one you wish to transfer.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;Skip checking/repairing source file system&quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clonezilla will now show you the command it is about to run, press &quot;Enter.&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You will be asked to confirm at a few important stages that you wish to proceed.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When you see &quot;Waiting for the target machine to connect...&quot; you have finished with the source machine for now, except take a note of the commands it is telling you run on the destination machine (See below image.)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4fhga7vJqq6B-ce3ZHdiNs9_2GYhaMrFox1gneSqfzHXtwqPen5mcWqBI14ouex_Sy_LDzQTLFJ3Qtrtg2TuVyCLsTbiFMO2nbwHpGoF_Kcxvv-2IPSkQOONG5ZvQA8OdRiy4H4BwPIw/s1600/clonezilla_source_ready.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;481&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4fhga7vJqq6B-ce3ZHdiNs9_2GYhaMrFox1gneSqfzHXtwqPen5mcWqBI14ouex_Sy_LDzQTLFJ3Qtrtg2TuVyCLsTbiFMO2nbwHpGoF_Kcxvv-2IPSkQOONG5ZvQA8OdRiy4H4BwPIw/s640/clonezilla_source_ready.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On the destination machine:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select &quot;Enter_shell&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Select (2)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Type:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo su - (to change to the root user)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Type:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ocs-live-netcfg (and setup the networking)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Type:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ocs-onthefly -s 192.168.1.1 -t sda &amp;nbsp;(replacing 192.168.1.1 and sda with the relevant IP address and device name)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You will again be asked to confirm at&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;poignant&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;stages.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8kAlzS2Dv-Ej2qtDmkUqPyb4WOyrPKDBVqAjVP6LNHwcHemp3lbiXYS0Bc85o_ckcNibVv0jDO8EdrPrZgsaLIo_Kp9h46zBv_HSGGcG4bRQY4Iakh2_8nZ7kJVdOAwZtsGGDoO4szK4/s1600/clonezilla_progress.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8kAlzS2Dv-Ej2qtDmkUqPyb4WOyrPKDBVqAjVP6LNHwcHemp3lbiXYS0Bc85o_ckcNibVv0jDO8EdrPrZgsaLIo_Kp9h46zBv_HSGGcG4bRQY4Iakh2_8nZ7kJVdOAwZtsGGDoO4szK4/s320/clonezilla_progress.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You should see a progress bar which includes an estimate for the finish time.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When this finishes you should now be able to boot the destination VM and install the VMWare tools to make everything pretty and efficient. Don&#39;t forget to install the &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/12/paravirtualizing-vsphere-guests.html&quot;&gt;paravirtual SCSI and network card drivers&lt;/a&gt; if your OS is supported.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you have success (or failure) with this migration method please leave a comment below, it certainly helped me out of a hole.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/6403523191773448039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/convert-windows-machine-to-vmware-vm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/6403523191773448039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/6403523191773448039'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/convert-windows-machine-to-vmware-vm.html' title='Convert a Windows machine to a VMware VM with Clonezilla'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4fhga7vJqq6B-ce3ZHdiNs9_2GYhaMrFox1gneSqfzHXtwqPen5mcWqBI14ouex_Sy_LDzQTLFJ3Qtrtg2TuVyCLsTbiFMO2nbwHpGoF_Kcxvv-2IPSkQOONG5ZvQA8OdRiy4H4BwPIw/s72-c/clonezilla_source_ready.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-2052225249416915294</id><published>2011-12-05T17:30:00.001+00:00</published><updated>2012-02-22T18:28:35.067+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="SSH machine keys"/><category scheme="http://www.blogger.com/atom/ns#" term="Template"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtual Center"/><category scheme="http://www.blogger.com/atom/ns#" term="vSphere"/><title type='text'>Virtual Center Template for Debian</title><content type='html'>When using a windows template, VMware&#39;s Virtual Center can help you customise the resulting virtual machine with a wizard, unfortunately it doesn&#39;t do this for Debian which happens to be &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/02/why-i-mostly-use-debian-linux.html&quot; target=&quot;_blank&quot;&gt;my Linux distribution of choice&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
To create the template I just installed a nice minimal installation onto a new VM, &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/08/installing-vmware-tools-on-debian.html&quot; target=&quot;_blank&quot;&gt;added the vmware tools&lt;/a&gt;, changed the &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/12/paravirtualizing-vsphere-guests.html&quot; target=&quot;_blank&quot;&gt;VM to use paravirtual hardware&lt;/a&gt;&amp;nbsp;then converted it to a template.&lt;br /&gt;
&lt;br /&gt;
After each &quot;Deploy from template&quot; I simply run through the following:&lt;br /&gt;
&lt;br /&gt;
It would be potential security risk to have all the VMs using the same SSH keys so I regenerate SSH keys for the VM with:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# rm /etc/ssh/ssh_host*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# dpkg-reconfigure openssh-server&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Update packages&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-get upgrade&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Set the IP address (well it is likely to be a server) with:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# vi /etc/network/interfaces&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Change host name as it isn&#39;t helpful to have duplicate host names due to the confusion it can cause me:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# vi /etc/hostname&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Amend hosts file (to match the host name)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# vi /etc/hosts&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Do a quick &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/07/always-reboot-linux-box.html&quot; target=&quot;_blank&quot;&gt;confidence reboot&lt;/a&gt; then go about installing the software onto the VM as usual to make it fit for the task you need it for.&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/2052225249416915294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/virtual-center-template-for-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2052225249416915294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2052225249416915294'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/virtual-center-template-for-debian.html' title='Virtual Center Template for Debian'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-4925109645116520267</id><published>2011-12-01T20:19:00.001+00:00</published><updated>2014-09-09T21:26:12.567+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Converting IDE to SCSI"/><category scheme="http://www.blogger.com/atom/ns#" term="drviers"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="paravirtualised"/><category scheme="http://www.blogger.com/atom/ns#" term="paravirtualized"/><category scheme="http://www.blogger.com/atom/ns#" term="scsi adapter"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>Paravirtualizing vSphere guests</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Although just setting up a virtual machine on a ESX server works well there are ways to improve the VM&#39;s performance and reduce some of the CPU overhead required when the VM interacts with the virtual hardware. The two ways I have used are installing paravirtualized drivers for network interface and for the storage controller.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Windows&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you are installing Windows from media or an ISO image:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit the VM settings, replace any networks adapters with ones that are of the type &quot;VMXNET 3.&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Change the SCSI controller type to &quot;Paravirtual&quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On the floppy drive choose &quot;use existing floppy image in datastore:&quot;, click browse, then find the relevant image in vmimages\floppies for your version of windows. Dont forget to &quot;select connect at startup&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hit F6 during the&amp;nbsp;initial&amp;nbsp;installation to add the paravirtual SCSI drivers from the floppy image.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The OS wont recognise the network card until the VMware tools are installed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If the VM is already set up and running Windows with VMware tools the drivers for the paravirtualised SCSI adapter are also installed with VMware tools but you will need to add a second SCSI adapter of the type &quot;Paravirtual&quot; and boot before Windows will be happy to with the first (boot) SCSI adapter being set to &quot;Paravirtial.&quot;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit the VM settings, replace any networks adapters with ones that are of the type &quot;VMXNET 3&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Using the Vshpere client Edit the settings of your Windows VM, Click the &quot;Add...&quot; button, choose &quot;Hard Disk&quot;, Choose &quot;Create a new Virtual disk&quot; and set a small size like 8 MB.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If your VM already has a SCSI controller you will need to add an additional one. To get another controller you will need to choose a virtual device node which is from the second SCSI controller. I usually just select SCSI(1:0).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Check device manager to ensure the the PVSCSI controller has been detected.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihXVLibEmjlDp1k7aYG_7dcZMe1xSTbnC_GkRKCiRcDC1rMDxkRiPkengoMJUB1Ao0ffZabPwsFcB2DorFi8wbC7j5oTb0R1a-Mj6BOcCFCG5VbkKtGw_HztXtAlz34lmqh7xPqSMxhb0/s1600/storage+controller.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihXVLibEmjlDp1k7aYG_7dcZMe1xSTbnC_GkRKCiRcDC1rMDxkRiPkengoMJUB1Ao0ffZabPwsFcB2DorFi8wbC7j5oTb0R1a-Mj6BOcCFCG5VbkKtGw_HztXtAlz34lmqh7xPqSMxhb0/s1600/storage+controller.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Shutdown the VM, remove the hard drive you have just added and change the remaining SCSI adapter to type &quot;Paravirtual&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Start the machine, if all is well (you will see a blue screen if it isn&#39;t) you will have successfully changed windows to use a more efficient way to talk to it&#39;s boot drive.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Converting IDE drives to SCSI&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I struggled with Windows XP box that I had imported using VMware Converter that only had an IDE drive. I tried deleting the hard drive (I was careful not to delete the underlying files), then I went to add the hard drive and set it to SCSI it would only allow IDE. I overcame this by shutting down the virtual machine, editing the relevant .vmdk file and changing the ddb.adapterType parameter to lsilogic like so:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ddb.adapterType = &quot;lsilogic&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You should now be able to add the hard drive back in specifying the existing .vmdk file and set the SCSI adapter to &quot;Paravirtual&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Debian 6&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On a system that is already running and the &lt;a href=&quot;http://admin-reminder.blogspot.com/2011/08/installing-vmware-tools-on-debian.html&quot;&gt;VMware tools are installed&lt;/a&gt;. I ran&amp;nbsp;all updates and it was simply a case of removing the existing network adapter and adding a new one of the type &quot;VMXNET 3&quot; and changing the SCSI adapter to &quot;Paravirtual&quot; and everything worked.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Update: Also check out this post on changing the IO scheduler on linux VMs&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://admin-reminder.blogspot.co.uk/2014/09/squeezing-more-from-your-linux-vms.html&quot; target=&quot;_blank&quot;&gt;squeezing more from your Linux VMs&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/4925109645116520267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/paravirtualizing-vsphere-guests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4925109645116520267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/4925109645116520267'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/12/paravirtualizing-vsphere-guests.html' title='Paravirtualizing vSphere guests'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihXVLibEmjlDp1k7aYG_7dcZMe1xSTbnC_GkRKCiRcDC1rMDxkRiPkengoMJUB1Ao0ffZabPwsFcB2DorFi8wbC7j5oTb0R1a-Mj6BOcCFCG5VbkKtGw_HztXtAlz34lmqh7xPqSMxhb0/s72-c/storage+controller.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-2719119886759722668</id><published>2011-11-30T21:06:00.001+00:00</published><updated>2013-07-26T12:30:40.976+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AES-NI"/><category scheme="http://www.blogger.com/atom/ns#" term="CPU identification mask"/><category scheme="http://www.blogger.com/atom/ns#" term="CPUID"/><category scheme="http://www.blogger.com/atom/ns#" term="Host CPU is incompatible with the virtual machine&#39;s requirments at CPUID level 0x1 register"/><category scheme="http://www.blogger.com/atom/ns#" term="PCLMULQDQ"/><category scheme="http://www.blogger.com/atom/ns#" term="vMotion"/><title type='text'>VMware CPUID masks for AES-NI and PCLMULQDQ</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Today I have been messing with with CPUID masks in ESXi/vSphere. Most people in my position wouldn&#39;t normally have to worry about this, but I work for a small company so the budget especially these days is necessarily lean so we chose go for&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;vSphere 5 Essentials PLUS which does not include Enhanced vMotion Compatibility (EVC)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The problem I had was there were two servers that were brought at different times and as is often the case had slightly different specification based on the deals the vendors were offering at the time. Basically the Intel processors had slightly different capabilities Xeon E5530 and E5620 The problem came up when I tried to vMotion VMs from one box to the other, Virtual Center complained that the older server lacked the PCLMULQDQ and AES-NI CPU features:&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguR5toVb5t9Ybr-JFxzj7mYrXkPeWASgh9v_j3JUlMBV2o5vxtl1rgd1oOg7dx1BQf86UI5Dj8eqzsTPKGLYGjZeLGFz1Q8Ms1yOfkVqgUSdqDS1uKadHmBprjGeG8y3GqeELsGOCe4IY/s1600/CPU+ID+Mask.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Host CPU is incompatible with the virtual machine&#39;s requirments at CPUID level 0x1 register &#39;ecx&#39;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguR5toVb5t9Ybr-JFxzj7mYrXkPeWASgh9v_j3JUlMBV2o5vxtl1rgd1oOg7dx1BQf86UI5Dj8eqzsTPKGLYGjZeLGFz1Q8Ms1yOfkVqgUSdqDS1uKadHmBprjGeG8y3GqeELsGOCe4IY/s1600/CPU+ID+Mask.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So working my way through the KB articles on the VMware website I realised that we were not licensed for EVC so KB 1993 applied. It took me a while to get my head around what was going on but you need to tell the VM when it starts up to ignore the flags for those 2 CPU features so that it isn&#39;t using them, so it can happily be moved between host servers that do and don&#39;t support those CPU instructions.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So down to the nitty gritty, how do you actually disable these features. Connect the vSphere client, to either your vCenter server or the ESX server itself. Right click the VM you wish to make more mobile and choose &quot;Settings&quot;, then on the &quot;Options&quot; tab select CPUID Mask then click on the &quot;Advanced...&quot; tab. Scroll down to the &quot;Level 1&quot; section and for &quot;ecx&quot; the mask you need is (presented here for your copy and paste delight):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;---- --0- ---- ---- ---- ---- ---- --0-&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This was explained in the KB 1993 article but they refer to the &quot;Level&quot; as &quot;a&quot; &amp;nbsp;which is not mentioned in the ESXi 5.0/vSphere 5 configuration screens.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxWPRlzcK0lglgdjIpZZPF1_EYQmmVMF94jau6iFH-q43tl5KSADVPkSW7k70OA5fs0gCWVBDlOdeCxEJVY459gI6SSPlZUkGu1TSoaKm8h-kcJmDm2JPN-uk4GJQcP7maWulrA352nqc/s1600/cpuid+mask.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;568&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxWPRlzcK0lglgdjIpZZPF1_EYQmmVMF94jau6iFH-q43tl5KSADVPkSW7k70OA5fs0gCWVBDlOdeCxEJVY459gI6SSPlZUkGu1TSoaKm8h-kcJmDm2JPN-uk4GJQcP7maWulrA352nqc/s640/cpuid+mask.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;After I changed this setting all the VMs were happy to v|Motion back and forth between the servers.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/2719119886759722668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/vmware-cpuid-masks-for-aes-ni-and.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2719119886759722668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/2719119886759722668'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/vmware-cpuid-masks-for-aes-ni-and.html' title='VMware CPUID masks for AES-NI and PCLMULQDQ'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguR5toVb5t9Ybr-JFxzj7mYrXkPeWASgh9v_j3JUlMBV2o5vxtl1rgd1oOg7dx1BQf86UI5Dj8eqzsTPKGLYGjZeLGFz1Q8Ms1yOfkVqgUSdqDS1uKadHmBprjGeG8y3GqeELsGOCe4IY/s72-c/CPU+ID+Mask.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-7374890375389577538</id><published>2011-11-15T11:50:00.001+00:00</published><updated>2011-11-15T12:30:57.559+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="expire"/><category scheme="http://www.blogger.com/atom/ns#" term="self signed certificate"/><title type='text'>Exchange 2007 certificate expired</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Once a year Outlook starts to moan about the certificate on the Exchange server. This is because the certificate on the Exchange server was set to expire one year after creation.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To check weather this is actually your problem run the following command at an Exchange PowerShell prompt.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Get-ExchangeCertificate | list&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This will show you a list of the certificates used by Exchange, the one we are interested in has IIS mentioned in it&#39;s list of services. The NotAfter field will tell you when the certificate expires. For me it shows a time about half an hour ago, so we need a new&amp;nbsp;certificate. To create a new one run the following as an Exchange Server Administrator:&lt;/span&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;New-ExchangeCertificate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 19px;&quot;&gt;This command will ask if you want to overwrite the existing default SMTP&amp;nbsp;certificate, answer yes to this. It should now display (along with other info) a thumbprint for the newly created certificate. Rather than have to re-type this, take a copy of it and use it to paste into the next command. We need to enable the newly created certificate for the IIS service, we do this with:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Enable-ExchangeCertificate -Thumbprint &amp;lt;thumbprint from previous command&amp;gt; -Service IIS&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 19px;&quot;&gt;You can remove old certificates from the exchange certificate store with the following command:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Remove-ExchangeCertificate -&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 19px;&quot;&gt;Thumbprint &amp;lt;thumbprint of old certificate&amp;gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 19px;&quot;&gt;If you need a list of certificates details including their thumbprints re-run:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Get-ExchangeCertificate | list&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
After running the above I noticed that the certificate is now set to be valid for 5 years instead of 1 year. On further investigation it appears that Exchange 2007 SP2 changed the default for self signed certificates from 1 year to 5 years, woohoo!</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/7374890375389577538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/exchange-2007-certificate-expired.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7374890375389577538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7374890375389577538'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/exchange-2007-certificate-expired.html' title='Exchange 2007 certificate expired'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8278344224100467369.post-7218807331220737519</id><published>2011-11-08T18:46:00.001+00:00</published><updated>2011-11-08T18:46:46.933+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Setting an “out of office” message for a user on Exchange 2007</title><content type='html'>&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To set an out of office message for someone else you will need give permission to the user you want to enable or modify the out of office message using the PowerShell extensions for Exchange At the power shell prompt issue the following command:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Add-MailboxPermission &amp;lt;user’s mailbox name&amp;gt; -AccessRights FullAccess -user &amp;lt;administrators account name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now you have issued the correct permissions to allow you to log into outlook web access (OWA) as the above administrator account and switch to the above user mailbox and set their out of office messages..&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Using Internet explorer, go to https://&amp;lt;FQDN for your exchange server&amp;gt;/owa and login as the administrator&#39;s account you specified in the above PowerShell command.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Once you have logged in (may take a while if it hasn’t been used recently due to the way Exchange dominates a server) click the username with admin rights that you logged in with in the top right and type in the name of the user you want to set the out of office reply for. Once logged in as them, select options (top right), then select Out of office autoreply from the list on the left and complete as necessary.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://admin-reminder.blogspot.com/feeds/7218807331220737519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/setting-out-of-office-message-for-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7218807331220737519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8278344224100467369/posts/default/7218807331220737519'/><link rel='alternate' type='text/html' href='http://admin-reminder.blogspot.com/2011/11/setting-out-of-office-message-for-user.html' title='Setting an “out of office” message for a user on Exchange 2007'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13408539172573740733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>