2012年6月29日星期五

Use Windows Server Backup to backup Hyper-V virtual machines in Windows Server 2012

In Windows Server 2008 and Windows Server 2008 R2, you can use the in-build tool Windows Server Backup to backup your Hyper-V virtual machines. However, there are some limitations:
1. You have to backup/restore all the virtual machines at the same time. It means you can't backup/restore individual virtual machines.
2. You have to backup the system drive and the drives contain virtual machine files. It means if you keep virtual machine in D:\ and E:\, you have to select C:\, D:\ and E:\ in the backup wizard.
3. You have to register the VSS Hyper-V Writer manually before the backup.

Now, in Windows Server 2012, there are some big changes.
1. You don't need to register the VSS Hyper-V Writer manually.
2. You can backup/restore individual virtual machines.
3. In the backup wizard, don't need to select the system partition and the partitions contain virtual machine files.

However, there are still some issues. You can't restore the virtual machine to original location on a different computer. The workaround is to rename this computer to the one which you performed the backup. But you can restore the virtual machines to another location in applications level, while this is not possible in Windows Server 2008 and Windows Server 2008 R2.

2012年3月21日星期三

Create an iSCSI Target server with Windows Server 8 in-build iSCSI Target feature


In the past, if you want to do some test which need iSCSI LUN, you have to install Microsoft iSCSI Target software or some third party applications. Now, Windows Server 8 Beta has an in-build iSCSI Target feature.

In the following paragraph, I will show you how to create an iSCSI Target server with Windows 8 in-build iSCSI Target feature.
  
1. Enable iSCSI Target Server feature 
1.1 Open Server Manager.
1.2 In Server Manager, click Manage, Add Roles and Features Wizard
1.3 In Roles page, expand File And Storage Services, select iSCSI Target Server
1.4 The wizard will prompt the following window, click Add Features.
1.5 Click Next to finish the wizard.

2. Create an iSCSI Target
2.1 In Server Manager, click File and Storage Services, iSCSI Virtual Disks.
2.2 Click “Launch the New Virtual Disk wizard to create a virtual disk”
2.3 You can select the Storage location to store the virtual disk. You can either select the volume in the list or type a custom path.
2.4 In Specify iSCSI virtual disk name window, you can type a name for the virtual disk.
2.5 In this window, you can specify the size of the virtual disk. You can use MB, GB or TB in the drop list.
2.6 In this window, you can either use an existing iSCSI Target or create a new iSCSI Target.
2.7 Type a new name if you want to create a new iSCSI Target.
2.8 Click Add to add iSCSI initiators for this iSCSI Target.
2.9 You can query initiator computer for ID or select from the initiator cache on the target server(if exist like the following one) or enter a value for the selected type.
2.10 In the “Enter a value for the selected type”, you can click the drop down list to select the one you preferred.
2.11 You can also enable authentication.
2.12 In the confirmation window, you will be able to see a summary of the process.
2.13 Click Create at the bottom of the window to finish the creation of the iSCSI Target.

3. Check the existing iSCSI Target
3.1 In Server Manager, click File and Storage Services, iSCSI Virtual Disks.
3.2 Scroll down the scroll bar to the bottom. Click View all targets and you will be able to see the following window.



2012年3月5日星期一

Convert Windows Server 8 from Full to Core or Core to Full without reinstallation

In the previous version of Windows Server system, if you want to covert a system from Full to Core or Core to Full, you have to perform a reinstallation.

Now, it's changed, you can transfer Windows Server 8 from Full to Core or Core to Full without reinstallation.
Note: This has been tested with Windows Server 8 Beta version.

You can use the following method to get it.

Full to Core

With PowerShell:
1. Import-Module Dism
2. Disable-WindowsOptionalFeature –online –Featurename ServerCore-FullServer

OR

With DISM:
Dism /online /disable-feature /featurename:ServerCore-FullServer

Core to Full

With PowerShell:
1. Import-Module Dism
2. Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt

OR

With DISM
Dism /online /enable-feature /featurename:ServerCore-FullServer /featurename:Server-Gui-Shell /featurename:Server-Gui-Mgmt

How to add language pack for Windows 8 Customer Preview and Windows Server 8 Beta

If you want to install a language pack on Windows 8 or Windows Server 8, you will be able to find that you can’t install it easily like what you did on a Windows 7 or Windows Server 2008 R2.

So I will show you the way to install language pack on Windows 8 or Windows Server 8.

1. Proceed to Control Panel\All Control Panel Items\Language. See the following screenshot, as it's a English based system, so English is showed "Windows display language: Enabled".












2. Click "Add a language" you want. For example, Simplified Chinese. See the following screenshot, you will not be able to find "Windows display language: Enabled" behind Simplified Chinese. If you click the Option behind it, you will be able to find the description "Connect to Internet to check for language packs".











3. Download the language pack. Open c:\windows\system32\lpksetup.exe, now you can install the language pack as you did on Windows 7.
4. Reboot the computer when the language pack installation finished.
5. Proceed to Control Panel\All Control Panel Items\Language. You will be able to find the "Windows display language: Available" under Simplified Chinese.














6. Click the option behind it and click the "Make this the primary language". Now you will be able to find Simplified Chinese has been moved to the top of the window.










7. Sign out and login to the system, you will be able to use the language you want.