SBS 2008 Backup in Hyper-V Server R2
Windows SBS 2008 prefers to back up to a removable USB drive, which is a problem if your SBS is virtualized in Hyper-V, which doesn’t support USB. There are workarounds, such as FabulaTech’s USB over Network, which I’ve used, and like. But the current version (4.2) has issues, as I posted a few days ago. I expect them to resolve those, but in the meantime, here is a purely Microsoft solution – use Hyper-V R2’s new dynamic storage capabilities!
Dynamic storage? Yup. Hyper-V R2, whether as a role on Windows Server 2008 R2, or as the standalone Hyper-V Server R2, supports hot add and removal of VHDs. This gives us a way to indirectly support USB hard disks.
First, this only works with R2, so make sure you`re running the latest version of the Hyper-V Manager. You`ll need a Windows 7 or Server 2008 R2 machine with the Remote Server Administration Tools (RSAT) installed.
Next, make sure you`re VM has at least one SCSI adapter added to it. If you create a new VM in Hyper-V R2, this happens automatically, but if you created the VM in the original version of Hyper-V, it may not have a SCSI adapter. Before this will work, you must have a SCSI adapter added to the VM.
Now, plug in your USB hard disk, and format with NTFS from the host. (If you`re running Hyper-V Server R2, you may need to use diskpart.exe for this. ) Next, in the Hyper-V Manager, click on New, Hard->Hard Disk in the Action Menu to open the New Hard Disk Wizard.
Select Fixed Size, and click Next.
Point to the removable USB disk and supply a name for the VHD. Click Next and specify the size of the VHD. Make it essentially the full size of the USB disk.
Click Finish and the virtual hard disk will be built. This can take a while, be patient. Once the VHD has been built, you can add it to a running VM. Select the VM in Hyper-V Manager, and open the Settings for it.
Select the SCSI controller in the left pane, and Hard Disk in the right pane.
Click Add, and then enter the path to the VHD on your USB hard disk.
Click OK and the VHD is available in the SBS VM.
Now follow standard SBS steps to configure SBS Backup to use the virtual disk you just added. (For details on SBS Backup, see Windows Small Business Server 2008 Administrator’s Companion.)
You’ll need to add and remove disks using the Hyper-V Manager to avoid issues for the SBS Backup, or, alternately, you could write a PowerShell script using WMI to manage the process.
Charlie.