- Launch the DiskPart utility by typing diskpart at the Start Menu. If your system does not have diskpart you can download it from here
- Run the list disk command to, surprisingly, list the disks in your system
- Now run select disk % where the "%" is actually the number of your USB drive (obtained above).
- Run clean.
- Now run create partition primary.
- Let's set the partition to active by entering active
- Now we format the drive with the FAT32 filesystem via the format fs=fat32 quick command
- Run the assign command to assign a drive letter to our USB device
- Copy the entire contents of the installation DVD to your USB device (a simple drag and drop will do)
- Plug the USB drive into the target system and proceed with the (hopefully faster) installation.
Tuesday, June 28, 2011
Installing Windows 7 / 2008 R2 from a USB Stick
Thursday, June 23, 2011
Trend Micro OfficeScan Uninstallation
If you, like me, have ever been faced with having to uninstall Trend OfficeScan, only for it to ask for a long-lost password, you were pretty much out of luck. Trend does have a KB article with manual un-installation steps, but that is an exercise in frustration.
- Open a command prompt and navigate to the folder where your Trend AV client is installed, usually c:\Program Files\Trend Micro\*****
- Execute the following command: NTRMV.exe -331
Monday, March 7, 2011
Repurposing an old Cisco PIX to provide secure public WiFi on a corporate LAN
I am in the planning stages of a fun little project, whereby the clients goal is to provide secure wireless access to guests over a ADSL link dedicated to this purpose. Simple enough, but this traffic will travel over the same edge to core switches that carry business traffic, so we will have to set up some VLAN’s.
This client recently retired their ageing PIX firewall and replaced it with new Cisco ASA’s. So instead of chucking the PIX we will press it into service as the secure gateway / firewall for the public ADSL Internet breakout.
The PIX in this case has two physical interfaces named ethernet0 and ethernet1. ethernet0 will be connected to the ADSL and ethernet1 to the LAN. ethernet1 will be configured in a VLAN, and the switch ports to which the guest AP’s connect will be configured to do the appropriate VLAN tagging.
Here is how to configure the PIX
- interface ethernet0 auto
- interface ethernet1 auto
- interface ethernet1 vlan1 physical
- interface ethernet1 vlan10 logical
- nameif ethernet0 outside security0
- nameif ethernet1 inside security100
- nameif vlan10 guest_wifi security10
Most client devices nowadays expect DHCP and since they don’t logically touch the corporate network we’ll have to make do with running DHCP off the PIX:
- dhcpd address 192.168.202.100-192.168.202.200 guest_wifi
- dhcpd dns 192.168.0.1 (substitute this with your ISP’s DNS Server)
- dhcpd lease 3600
- dhcpd ping_timeout 50
- dhcpd enable guest_wifi
- ip address wifi 192.168.202.1 255.255.255.0
And that should work rather brilliantly – I will know for sure in about a weeks time when I implement.
Friday, March 4, 2011
Creating a Hyper-V Cluster after the fact, or, how to preserve and add existing VMs to a Cluster.
I was faced with an interesting challenge recently. a Client was running two standalone Hyper-V hosts with about 4 VMs each running on a Storage Area Network(SAN). I installed the SAN previously to provide increased IO performance for their SCADA (Citect, for those taking notes) system.
This was essentially a very effective proof of concept as far as the client was concerned and they wished to take advantage of the more advanced features offered by Clustered Hyper-V (stuff like live migration etc.).
This posed a challenge, because we needed to convert the LUNs occupied by the VM’s to highly available Cluster Shared Volumes (CSV’s). In Hyper-V, a VM needs to be hosted on a CSV in order to be made highly-available. So off I went trying to figure out a non disruptive way to convert all my LUNs to CSV, without losing any data. This is what I came up with.
- Shut down your VM(s)
- Open Disk Management on your Hyper-V host and remove drive letter from LUN hosting the VM
- Open Failover Cluster Manager (FCM) –> Storage –> Add Disk –> Select Disk from Step 2 –> Click OK
- Still in FCM - Go to Cluster Shared Volume - Add Storage – select the disk you added in Step 3
- Open up Hyper-V Manager on the same host (notice the VM status is critical because you removed the drive letter). Remove the VM
- Create a new VM, opt to store it under the %systemdrive%\ClusterStorage folder which was created automatically when you performed Step 4. VERY IMPORTANT – Do not add any disks to the VM!
- Right click the VM you created in Step 6 and choose Edit Settings. Add the original VM’s disks (boot drive to be added to IDE controller 0). The existing VHD’s will be found in %systemdrive%\ClusterStorage
- Open FCM – Go to Services and Applications – in the Action pane select Configure a Service or Application –> select Virtual Machine –> Check the VM created in Step 6 –> Complete Wizard
- Ensure that the VM is connected to the correct network in Hyper-V Manager
- Because we are connecting a new NIC to the VM you will have to re-specify the IP address inside the VM once the VM has started up
Rinse and repeat for all existing VMs you want to make highly available. The Microsoft way would be to export the VM’s and import it again. Nothing wrong with that, apart from the fact that it takes a lot of time and storage to do, depending on the size of the VM. My way is quick and easy and it works!
Wednesday, February 23, 2011
Partial/No Redundancy on iSCSI Datastores
Expensive fiber SANs are not price-compatible with a lot of my clients, therefore a lot of my time is spent in iSCSI environments. I’ve noticed in all instances that the Multipathing Status for all my iSCSI datastores are Partial/No Redundancy when viewed on the Storage Views tabs in vCenter. This bothers me because I always go to great lengths to ensure that I set up my iSCSI multipathing correctly.
I therefore breathed a big sigh of relief when I discovered that this behaviour is a bug as confirmed by VMware Technical Support. The rule for displaying the “Multipathing Status” is as follows:
Full Redundancy – If you have 2 separate adapters and 2 separate paths to the datastore
Partial/No Redundancy – If there is one path which is Up
Unknown – If there is at least one path with an “Unknown” status
All Paths Down – No way to reach the datastore
You will always only have one adapter when using a software iSCSI Initiator, this implies a single point of failure which gives us the dreaded “Partial/No Redundancy” status. So as things stand now software iSCSI will always be displayed with a degraded status. Methinks VMWare should develop separate rules / algorithms for fiber and iSCSI SANs…
Saturday, January 22, 2011
HP Proliant NIC Teaming with Windows Server 2008 R2 Hyper-V
Turns out that if you follow this process and then install the Hyper-V role later on there is a possibility of running into problems.
In a nutshell, you need to install the OS, Hyper-V role and all the latest MS updates and Hotfixes. Only then should you install the HP NIC teaming software
This HP Whitepaper (Using HP Proliant Network Teaming Software with Microsoft Windows Server 2008 Hyper-V or with Microsoft Windows Server 2008 R2 Hyper-V) explains in detail what the proper procedure is, and some of the issues you might run into. As an extra it also delves into setting up VLAN’s.
Tuesday, December 7, 2010
Integrating Websense with ISA 2006
I recently had the dubious “pleasure” of having to install and integrate Websense with an ageing ISA 2006 Server. After lots of trials and tribulations (then it works, then it doesn’t, or it appears to work but doesn’t filter etc. etc.) I finally had to throw in the towel and call Websense support. Here is what I had to do to get it working:
- Install Websense (with Filtering module) on the ISA server, making sure to select "the “ISA Integration” option during installation
- Installed the Websense ISAPI filter as per this Websense guide
- Stop and disabled the Filtering Service
- Edited the wsMSP.ini file (located in %windir%\system32) on the ISA 2006 server and change the EIMServerIP value to match the IP of the Websense server (in this case my ISA server)
- Created a “ignore.txt” file as per the Configuring ISAPI Filter section in the Websense Installation Guide for Microsoft ISA Server
- Websense support then had me disable ALL authentication methods in ISA Server. I did this via Configuration – Networks – Internal – Properties – Web Proxy – Authentication
- They then had me set up the following Access Rule in ISA Server: "All outbound traffic" TO AND FROM "Local Host" and "All Protected Networks"
Only after all this did it work as expected. I have not had the opportunity to test this with ISA’s successor, Microsoft’s Threat Management Gateway, but I would imagine that the procedure should remain fairly similar.