|
Virtualization Resources, Articles and reviews
| | Follow the steps to optimize and performance tune you .VHD file for a MS Virtual PC virtual machine.
- Clean out temporary files from all locations
Use application from www.CCleaner.com
- Disable Hibernation
- Use disk cleanup
- Turn Off System Restore
- Set compression
- Defrag drive and Paging File
- Zero out VHD Free Space
Option A: Capture the Virtual Disk Precompactor .ISO 7A1. Located at c:\program files\microsoft virtual pc\virtual machine additions\virtual disk precompactor.iso
7A2. Run the Precompactor From within the VPC
Option B: Or use Heidi Eraser 7B1. Alternatively use this free space zeroing tool from http://www.heidi.ie/eraser/
8. Shutdown VPC 9. Run the VPC2007 Virtual Disk Wizard. Select Edit existing disk and later use Compact option. | MS Virtual PC | | | | MS HyperV | | | These Commands can be used for different purposes on Hyper-V.
- To enable Hyper-V role in a core install of Windows 2008
- ocsetup Microsoft-Hyper-V
- Enable Remote Management
- netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
- Enable firewall rules for Windows Management Instrumentation (WMI)
- netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes
- Enable Remote Desktop
- cscript \windows\system32\scregedit.wsf /ar 0
- cscript \windows\system32\scregedit.wsf /cs 0
- Reboot
- shutdown /t 0 /r
- To Add user
- net user faisal * /add
- Adding user to DCOM Users Group
- net localgroup “Distributed COM Users” /add domain\faisal
- Enable Windows Firewall
- netsh advfirewall set currentprofile state on
- [old] Netsh firewall set opmode enable
- Disable Windows Firewall
- Netsh firewall set opmode disable
- Using Netsh advfirewall to manage firewall
- http://support.microsoft.com/kb/947709
- Export Firewall Policy
- netsh AdvFirewall export "c:\advFirewallPolicy.wfw"
- Reset firewall policies to default out of box
- netsh advfirewall reset
- Display Profiles and Global Properties
- netsh advfirewall show allProfiles
- View All Firewall Rules
- netsh advfirewall firewall show rule name=all dir=in type=static
- netsh advfirewall firewall show rule name=all dir=in type=dynamic
- Enable ICMP echo in firewall
- netsh advfirewall firewall add rule name="ICMP Allow Incoming V4 Echo Request by FM" protocol=icmpv4:8,any dir=in action=allow
- Enable Winrm on client and server
- winrm quickconfig -q
- Configure Trusted Hosts using Winrm
- winrm set winrm/config/client @{TrustedHosts="*"}
- Start Winrs session
- winrs -r:nameofyourservercoresystem -u:faisal -p:Mypassword cmd
- Enable PowerShell
- start /w ocsetup MicrosoftWindowsPowerShell
- Install .NET Framework
- start /w ocsetup NetFx2-ServerCore
- Connecto to SAN Storage on Hyper-V Server 2008 and Server Core Installations of Windows Server 2008
- iscsicli.exe
- To start graphical iSCSI client Configuration tool
- iscsicpl
- Managing the iSCSI service (two options)
- sc config MSiSCSI start= auto
net start MSiSCSI
- Prepare the storage for use my a guest
- diskpart.exe
- To obtain Volume GUID
- mountvol.exe
| MS HyperV | | | | MS HyperV |
|
|
|
|