Thursday, March 29, 2012

How to restore Data from a VHD file

This will happens after the VPC get corrupted or when you don’t have password to logging to that VPC (Virtual PC).
1. First go in to Computer management window


2. Then right select the Attached VHD from the disk Management.


3. Brows and find the path of the VHD file and click ok
4. Now you can see that VHD file is mapped in your Volume table. Rite click on the Volume that you want to access and click Explore.

5. Once you want to remove this VHD from your PC volume list, right click and say Detached VHD

Thursday, March 22, 2012

System Center Configuration Manager Installation Step by Step

Configuration Manager Primary Site Server Prerequisites
The following software must be installed before running Setup on a server to support the primary site server role:
Site Database Server Prerequisites
Configuration Manager 2007 primary sites require access to a SQL Server database to host the site database. The site database can be hosted on a SQL Server instance installed on the same server as the primary site, on a remote computer, or on a virtual SQL Server cluster instance. The following conditions apply:
  • SQL Server 2005, Service Pack 2 is the earliest version of SQL Server supported for hosting the Configuration Manager 2007 site database. For more information about the SQL Server versions that are supported to host the site database, see Configuration Manager Supported Configurations.
  • SQL Server Express editions are not supported for hosting the Configuration Manager 2007 site database.
  • The SQL database service is the only SQL Server component required to be installed to host the site database.
SMS Provider Prerequisites
Because Configuration Manager 2007 allows you to install the SMS Provider on a computer other than the site server or site database server, you should check to ensure that the computer you have identified to install the SMS Provider on meets the following prerequisites:
  • The SMS Provider must be installed on a computer in the same domain as the site server and site database server site systems.
Important
The SMS Provider must be installed on a computer with the same operating system language as the site server's operating system language when a site contains site servers or clients with different language operating systems installed.
  • The SMS Provider cannot be installed on a virtual SQL Server cluster computer or a physical computer hosting a virtual SQL Server cluster node.
  • The SMS Provider cannot be installed on a computer already hosting the SMS Provider for another site.
  • If applicable, the following updates should also be applied to the system before installing the SMS Provider:
Configuration Manager Secondary Site Server Prerequisites
If applicable, the following updates should be applied to the system before installing a secondary site server:
Configuration Manager Console Prerequisites
Before installing the Configuration Manager console on a remote computer, you should ensure that it meets the minimum requirements outlined in the Configuration Manager supported configurations, as well as the following installation prerequisites:

First Copy the Installation Folder in to Windows 2008 Server


















Start the SCCM 2007 SP2 DVD and click on Configuration Manager 2007 SP2 under Setup









Click on Run the prerequisite checker















Start the SCCM 2007 SP2 DVD and click on Configuration Manager 2007 SP2 under Setup
















Review the welcome screen









Choose the first option; Install a Configuration Manager Site server









Next we get to choose the type of installation, as we want to see all the options, choose Custom









For Site Type, stick with the default (primary site)










Decide if you want to participate in CEIP

















Specify your key









Select where to install it.









Enter your Site Settings and Site Code name








For the mode type, choose mixed mode (it is easier to setup and we can always migrate to Native mode in the future).









Specify your client agent settings..









Enter your Database server details. (Once you setup the SQL server correctly, this field will automatically get filled. But if you want you can change it)









Specify your SMS provider settings.









Specify the management point.








Decide your TCP port settings. If you want you can keep it as default.









Check for updates










Create a local folder to store these updates if necessary









Updates will be downloaded...









Once done, click Ok to review your settings summary


















And click Next to start the prerequisite check (final)











Before going for the installation we have to fix these prerequisites. For that go in to Windows features and Select BITS, WEBDEV and install WSUS Client component.



















After a long wait you should see this. Click next to continue.

















Reboot the Server.
Now you can log in to SCCM.

Wednesday, March 21, 2012

How to change UUID of VirtualBox vdi and VHD

ERROR: Cannot register the hard disk '/*/*.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} because a hard disk '/*/*/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} already exists in the media registry ('/*/*/.VirtualBox/VirtualBox.xml')











 
Or this Error
Failed to open the hard disk ….” and “Cannot register the hard disk C:\path\to\new\vdi with UUID {xxxx} because a hard disk C:\path\to\old\vdi already exists in the media registry (C:\path to VirtualBox.xml













 
 
To troubleshoot this,
1.1 Open Command Prompt in Administrator mode, and then go in to “C:\Program Files\Oracle\VirtualBox
Cd C:\Program Files\Oracle\VirtualBox












 
If you run “Dir” you can see all the files in there





















 
 
Then run “VBoxManage internalcommands sethduuid /path/to/virtualdisk.vdi

NOTE: The command has been changed in previous versions on the Virtual box. So in that case command in there would be…
VBoxManage.exe internalcommands setvdiuuid "C:\path\to\new\vdi"

IN my case I’ll run it as “VBoxManage internalcommands sethduuid D:\Share\win2008R2\NewVHD1.vhd
Because I’m using Virtual box Version 4.1.8



















Congratulations again. VPC will work now.

If you want co configure a VPC in Oracle VM VirtualBox please see this Post,
http://ftcreator.blogspot.ca/2012/03/virtualbox-how-to-create-virtual-pc.html

If you are running Windows 8 and  if you get below mentioned error,



 
 
VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execu
tion failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or
failed to start.
 
Then what you have to do is Close all the  Oracle VM applications running and try to chaneg the UUID in command line. this should work and make sure to run CMD in Run as administrator mode.

VirtualBox: How to Create a Virtual PC

Create a VPC in Oracle VM Virtual Box

1.Click on the New button

2. Click Next

3. Give a Name for the New VPC and select the Operating system and the Version

4. Give a Value for the RAM in the VPC


5. Select the existing Hard Disk from the drive
6. Click on Create :)

7. Congratulations you are done with that.

But if you are getting this error
ERROR: Cannot register the hard disk '/*/*.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} because a hard disk '/*/*/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} already exists in the media registry ('/*/*/.VirtualBox/VirtualBox.xml')

Or this Error
Failed to open the hard disk ….” and “Cannot register the hard disk C:\path\to\new\vdi with UUID {xxxx} because a hard disk C:\path\to\old\vdi already exists in the media registry (C:\path to VirtualBox.xml
To troubleshoot this,
1.1 Open Command Prompt in Administrator mode, and then go in to “C:\Program Files\Oracle\VirtualBox
Cd C:\Program Files\Oracle\VirtualBox

If you run “Dir” you can see all the files in there

Then run “VBoxManage internalcommands sethduuid /path/to/virtualdisk.vdi
NOTE: The command has been changed in previous versions on the Virtual box. So in that case command in there would be…
VBoxManage.exe internalcommands setvdiuuid "C:\path\to\new\vdi"
IN my case I’ll run it as “VBoxManage internalcommands sethduuid D:\Share\win2008R2\NewVHD1.vhd
Because I’m using Virtual box Version 4.1.8

Congratulations again. VPC will work now.