Sunday, October 28, 2012

Enable and Configure Hyper-V on Windows 8 step by step

Hyper-v is virtualization solution is now available on Windows 8.  You can read more about Hyper-v here.
and you don’t have windows 8. you can buy and  download it from here.
Hyper-V is not enabled by default on windows 8. For enabling this
go to Control Panel >> Programs and Features >> on the left panel Click on “Turn Windows features on or off”.
Select  “Hyper-V” option and Click on OK.

Feature on or off

Once the installation done. It will prompt to reboot machine.
After machine restarted you can see Hyper-v on start metro interface.
Hyper-V manager

Create New Virtual Machine
1) Open Hyper-V manager, on the right panel Click on New option Select New Virtual Machine
New Virtual Machine

2)  Click on Next.

First Next

3) Enter Name of Virtual Machine and by selecting check box you can change Virtual Disk location where it will be stored.

Virtual Machine Name

4)  Specify amount of memory to allocate to virtual drive.
Select Use Dynamic Memory for this virtual machine.  Click on Next.
This will allocation only amount of memory that is needed for your virtual machine remaining can be
used by host machine.

Dynamic Memory Allocatio

5)  Select Network Adapter which is available on your machine and Click on  Next button.
If it’s your first time, I will explain later in this post,  how to Create Network Adapter.
Select Network Adapter


6) Now you can set how much memory you have to allocate to Virtual Disk. by default it’s set to 127 GB.
I keep as it is. Now here, you can see the extension of virtual machine is .VHDX which is new format introduced
in Hyper-V 3  which supports data storage capacity of 64 TB.
Also you can attach existing virtual machine by selecting second option and even you can attach virtual disk
later.
I am selecting first option.

Connect Virtual Hard Disk

7) Attach ISO image of any operating system which you want to install by selecting second option.
Click on Next.
Select OS

8) Click on Finish button to create virtual machine. If you want to change any settings you can click on Previous button and can do that.

Finish Step

In Hyper-V manager you can see my Virtual Machine named “Windows Server” has been created.

Hyper-V VM

Create Network Adapter
To create Network adaption go to option Virtual Switch Manager option from the right sidebar option.
Network Switch

Select Internal  switch type if you want to connect virtual disk to the Physical Machine. Using this switch you
can not access physical network oh the host machine.
Click on Create Virtual Switch.

Give name to Internal Switch and Click on OK.
Internal Network

And Now go to Hyper-V Manager, Right click on Virtual Machine and Click on Settings.
Click on Network Adapter option from left panel. and Select newly created Network Adapter switch.
Attach Network Card 

Create External Wi-Fi Network Adapter
Select External Network adapter and click on OK.
 Create External Switch

Enter name for switch “External wi-fi Ethernet”  and select External Network card from dropdown list and click Apply
and Ok.

Apply External Network
Start Virtual Machine

Right click on Virtual machine and click on Start option, this will start virtual machine. and double click on Virtual Machine
then Hyper-V Virtual Machine connection will open.
Start installation of OS.
Once OS is installed. Go to Action tab from Menu and select “Insert Integration Services Setup Disk” .
The Integration Services are software packages that improve integration between
the virtualization server and the virtual machine.
Machine will reboot after installation of Integration Services.
Learn more about how to configure Network Adapters.
Remote Desktop to your Virtual Machine from Host Machine

For remote desktop to your virtual machine from your host machine you need to enable remote desktop.
Go to System Properties from Control Panel and Select Remote Settings option. Under Remote tab
select second option Allow connections from computers running any version of Remote Desktop

Remote Desktop option

Now you need IP address of virtual machine for remote desktop.
Get the IP address of virtual machine and Open Remote Desktop Connection on host / physical machine
by typing “mstsc”  in RUN
Enter IP address of your virtual machine and click on Connect.

Remote Desktop Connection

Next a window will pop up for Security Credentials.
Username will be your : Computer name\Username
Password will be your user password for that username.
Security Credentials

That’s it. you will be logged in to your virtual machine from Remote Desktop Connection.

Wednesday, October 17, 2012

How to configure PDF iFilter on SharePoint multi farm server 2010

Recently I have installed PDF iFilter on SharePoint multi farm server 2010. Which has one Application Server and Two Web front Servers.

I’ve downloaded 64bit version of PDF iFilter from adobe. You can download this from here (Adobe  PDF iFilter 9 for 64bit platforms).

We have to install and configure  PDF iFilter on SharePoint Application server instead of Web front servers.
Steps to install and Configurations are

1) Install PDF iFilter on Application Server.

2) Download PDF icon file from pdf16.gif and copy at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\.

Image Location

3)  Add the following entry in docIcon.xml file, which is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML.

Image Mapping

4)  Add PDF file type on the Manage File Type page under Search Service Application.

File Type add
Click on New File Type >> add value .pdf

5) Open Registry go to Start > Run > Type regedit
Find   >>
\\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Offierce Server\
14.0\Search\Setup\ContentIndexCommon\Filters\Extension
 
7) Right click on Extension >> Select New >> select Key 
 
Reg Extension add Key 
 
8) Give value .pdf to key.
 
pdf key value 
 
9) Now add the following GUID in the default value as shown in the figure below.

{E8978DA6-047F-4E3D-9C78-CDBE46041603}
 
GUID value  
 
10) PDF iFilter is configured for SharePoint Server Search 14. So need to restart service. 
 

Configure Web Front Servers

11) Now login to your Web Front Server.
 
12) Here we need only to copy pdf16.gif image at
 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\. 
as shown above in Point 2.
 
13) Add the following entry in docIcon.xml file, which is at
 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
same as shown above Point 3.
 
14)  Do it for rest of Web Front Servers. 
 
15) Perform Full crawl to include PDF documents in search.
 
16) Once search completed you can see pdf files in search result.
All pdf files related to search query will appear in search result.
Thanks.
 

Monday, October 15, 2012

VHDX to VHD conversion

Recently I have started using Windows 8 to use Hyper-V on it.
Hyper-V on Windows 8 and Windows Server 2012 have new virtual hard disk format .VHDX which supports storage capacity of 64TB. You can download .VHDX format specification from here.
By default Hyper-V takes .vhdx format while creating virtual hard disk. And unfortunately Hyper-V on Windows Server 2008R2 and Virtual Box don’t support this format yet.
So here is the method of conversion from VHDX to VHD.

1) First you need to create virtual disk with extension .vhd. (I assume you have already a hard disk with .VHDX format)
2) Then go to New option Under Action section on right top box in Hyper-V >> Click on New >>
Select Hard Disk.
3) You will see below screen, Click on Next button
HD Wizard Popup

4)  Select VHD format and Click on Next button
SelectFormat

5)  You can keep default option selected or change it Dynamic as per your need. Click on Next button.
Type of disk

6) Give name to VHD and go Next.
give name to vhd

7) Select third option “Copy the contents of the specified virtual hard disk”.
and give your .vhdx drive path which you have to convert to .vhd format.
Convert

8) Click on Next button and this will copy your .vhdx content to your .vhd.
And VHD is ready to use on Virtual box, windows server 2008 hyper-v.