I really like Spaces or Mission Control in Mac OS X.
There is a pretty good alternative in Windows, not built-in of course…But with a small app called Dexpot.
Download the beta here.
I really like Spaces or Mission Control in Mac OS X.
There is a pretty good alternative in Windows, not built-in of course…But with a small app called Dexpot.
Download the beta here.
Found this great tip at techrepublic.com!
Configure BgInfo to run via a GPO for a consistent experience
I found this great Powershell script that convert virtual disk files to eagered zeroed.
Awesome script! I had to make some changes to make it work in my environment.
function Set-EagerZeroThick{
param($vcName, $vmName, $hdName)
# Find ESX host for VM
$vmImpl = Get-VM $vmName
Write-Host $vmImpl
if($vmImpl.PowerState -ne "PoweredOff"){
Write-Host "Guest must be powered off to use this script !" -ForegroundColor red
return $false
}
$vm = $vmImpl | Get-View
Write-Host $vm
$esxName = (Get-View $vm.Runtime.Host).Name
Write-Host $esxName
# Find datastore path
$dev = $vm.Config.Hardware.Device[10] | where {$_.DeviceInfo.Label -eq $hdName}
Write-Host $dev
if($dev.Backing.thinProvisioned){
return $false
}
$hdPath = $dev.Backing.FileName
Write-Host $hdPath
# For Virtual Disk Manager we need to connect to the ESX server
$esxHost = Connect-VIServer -Server $esxName -User $esxAccount -Password $esxPasswd
# Convert HD
$vDiskMgr = Get-View -Id (Get-View ServiceInstance -Server $esxHost).Content.VirtualDiskManager
Write-Host $vDiskMgr
$dc = Get-Datacenter -Server $esxHost | Get-View
Write-Host $dc
$taskMoRef = $vDiskMgr.EagerZeroVirtualDisk_Task($hdPath, $dc.MoRef)
Write-Host $taskMoRef
$task = Get-View $taskMoRef
Write-Host $task
while("running","queued" -contains $task.Info.State){
$task.UpdateViewData("Info")
}
Disconnect-VIServer -Server $esxHost -Confirm:$false
# Connect to the vCenter
Connect-VIServer -Server $vcName
if($task.Info.State -eq "success"){
return $true
}
else{
return $false
}
}
$vmName = "vm1"
$vCenter = "vcenter_server"
$esxAccount = "rootuser"
$esxPasswd = "password"
Set-EagerZeroThick $vCenter $vmName "Hard disk 1"
To validate before and after running the eageredZeroed script I run the following script:
$vm = Get-VM vm1 | Get-View $vm.config.Hardware.Device[10].backing $vm.config.Hardware.Device[10].DeviceInfo
A couple of days ago I found a really great PowerCLI script that move templates i vSphere. Awesome post and script by afokkema at ict-freak.nl!
Storage vMotion is a great feature to Move your VMs to other datastores. But what if you want to move your Templates?
In the current version of vSphere there is no option within the Client
function Move-Template{
param( [string] $template, [string] $esx, [string] $datastore)
if($template -eq ""){Write-Host "Enter a Template name"}
if($esx -eq ""){Write-Host "Enter an ESX hostname"}
if($esx -ne "" -and $datastore -eq ""){$vmotion = $true}
if($datastore -ne ""){$svmotion = $true}
Write-Host "Converting $template to VM"
$vm = Set-Template -Template (Get-Template $template) -ToVM
if($svmotion){
Write-Host "Migrate $template to $esx and $datastore"
Move-VM -VM (Get-VM $vm) -Destination (Get-VMHost $esx) `
-Datastore (Get-Datastore $datastore) -Confirm:$false
(Get-VM $vm | Get-View).MarkAsTemplate() | Out-Null
}
if($vmotion){
Write-Host "Migrate $template to $esx"
Move-VM -VM $vm -Destination (Get-VMHost $esx) -Confirm:$false
($vm | Get-View).MarkAsTemplate() | Out-Null
}
}
The function above can be used to move a single template via:
Move-Template <template> <esxhost> <datastore>
Source: http://ict-freak.nl/2010/01/21/powercli-move-template/
Found this great post on how to speed up your Windows based DNS with forwarders.
The post describes a Windows Server 2003, but it worked just as well on my Windows 2008 R2 servers..
I ran a before and after with namebench on my mac and the results were amazing!
I’ve had some issues with application switching, Alt + tab, on my virtual Windows 7 machine. When I pressed alt + tab the Aero-preview pane got stuck. I had to press enter to switch applications.
So I downloaded and installed VistaSwitcher.
Great little app that’s, in my opinion, much better than the original in Windows 7.
Last week I upgraded a vCenter 4.0 installation to 4.1u1. The vCenter was installed on a 32-bit VM so I needed to migrate the installation to a new 64-bit host.
I tried to do the migration according to the vSphere 4.1 upgrade pre-installation requirements and considerations guide. But sadly I got an error during the migration process.
RESTORE FILELIST is terminating abnormally.
The error is described in this thread at vmware communities.
Also, the datamigration scripts makes the original vCenter database corrupt. So if the datamigration fails, as it did for me, the original installation is trashed. (Luckily the datamigration scripts exports a backup before trashing it. But this procedure stinks anyway.)
So how did I migrate? Well I found a workaround and did the following.:
On the old vCenter 4.0 server (32-bit)
On the new vCenter 4.1u1 server (64-bit)
I wonder why VMware don’t recommend this procedure in the first place?
Last week I cama across a great little Windows application, ZoomIT.
It’s a small, free app that let’s you zoom in and draw on the screen. Simply put: awesome!
ZoomIt is screen zoom and annotation tool for technical presentations that include application demonstrations. ZoomIt runs unobtrusively in the tray and activates with customizable hotkeys to zoom in on an area of the screen, move around while zoomed, and draw on the zoomed image. I wrote ZoomIt to fit my specific needs and use it in all my presentations.
ZoomIt works on all versions of Windows and you can use pen input for ZoomIt drawing on tablet PCs.
Download it here.
I found a great way to migrate all your files from a Sharepoint server. I have kind of had it with Sharepoint, at least for small installations. (You can read more about my new setup in How I built a Apache front-end for a Windows Share with SSL and LDAP Authentication)
The problem came up when I wanted to export all the files form the Sharepoint server. My first instinct was to open Sharepoint in Windows Explorer. But it kept throwing me the “your client does not support opening this list with windows explorer” when I tried to open the Sharepoint in Windows Explorer.
I was almost ready to give up when i found SPIEFolder. A great little application that did exactly what I wanted. I just downloaded is and ran it on the Sharepoint server, 2 minutes later the Sharepoint was exported.
….If only Microsoft could write tools like this.
Introduction
Allows you to either Import a file system folder (And all files and subfolders) into a SharePoint Document Library, and also export a SharePoint Document Library to the file system for WSS 2.0/SPS2003 or WSS 3.0/MOSS 2007. This tool completely replicates the a document libraries folder hierarchy to the file system when exporting, and replicates the folder hierarchy from the file system to the document library when importing.
Importing
The folder can be imported into a Document Library using the following syntax (Note the “import” argument: Example usage:
spiefolder http://krichiemoss "Shared Documents" c:\spiefolder\SeedFiles importThe end result is that the file system folder and complete contents and folder hierarchy is created in the document library on SharePoint
Exporting
To export a SharePoint Document Library to the file system, and replicate it’s folder hierarchy and contents, simply list the sites URL, List Name to read contents from, and File System path to export to. (It is not necessary to supply the optional “export” keyword as it is the default operation.
Example usage:
spiefolder http://krichiemoss "Shared Documents" c:\spiefolder\SeedFilesThis will export the contents of “Shared Documents” to the file system into the folder specified via c:\spiefolder\ and replicate the document libraries folder hierarchy.
Download: http://spiefolder.codeplex.com/
I found a great way to backup the vCenter SQL database running on SQL Express. The downside of running vCenter on SQL Express is the lack of the SQL agent. So running a scheduled backup of the SQL database is a bit tricky.
ExpressMaint is a small application set of scripts/stored procedures that enables you to run backup and maintenance jobs from commandline.(You could run the application ExpressMaint as well, but I installed the stored procedure version.)
I installed and configured it by doing the following:
c:\backups to store my backupssqlcmd -S .\SQLEXP_VIM -i c:\expressmaint.sqlc:\backups\database to store my database backupsc:\backups\reports to store my reportsc:\backups\backupscript.sql (SQL file that contains the backup settings, note that my script performs the backup and rebuilds the indexes on the vCenter database):exec expressmaint
@database = 'ALL_USER',
@optype = 'DB',
@backupfldr = 'c:\backups\databases',
@reportfldr = 'c:\backups\reports',
@verify = 1,
@dbretainunit = 'days',
@dbretainval = 5,
@rptretainunit = 'weeks',
@rptretainval = 1,
@report = 1
exec expressmaint
@database = 'VIM_VCDB',
@optype = 'REINDEX',
@reportfldr = 'c:\backups\reports',
@rptretainunit = 'days',
@rptretainval = 1,
@report = 1c:\backups\PerformBackup.cmd (this is the batch script that executes the backup):sqlcmd -S .\SQLEXP_VIM -i c:\backups\backupscript.sqlc:\backups\PerformBackup.cmd using the ordinary Windows scheduled task manager.