Google IT Solutions: Hyper-v
Showing posts with label Hyper-v. Show all posts
Showing posts with label Hyper-v. Show all posts

Thursday, 12 June 2014

Hyper v Technology

What is hyper v Technology?

Virtualization technology have become a part of our life. In this article, I’m going to give a detailed explanation virtualization. I will take a look at Microsoft Hyper-V technology and examine it by performing the initial steps of configuration Installation and virtual machine deployment.

What is Virtualization?
Virtualization is the creation of a virtual version of an IT environment, including an operating system, a storage device. Hyper-v is a best tool for virtualization.

What is Microsoft Hyper-v?
Microsoft introduced Hyper-V as a virtualization platform in 2008, and it continued to release new Hyper-V versions with new Windows server versions, including Windows Server 2012 R2, Server 2012, Server 2008 R2 and Windows Server 2008.

How to install and configure Hyper-v?
Very simple and the same as any typical program installation. Check and see which Windows version you have. If it’s Windows Server OS you should activate the Hyper-V role through the Server Manager, and then perform the installation. Once the installation is complete, the computer will reboot. After it has rebooted, you will notice additional services have been installed, including Hyper-V Manager.

Next Hyper-V Manager to find out what you can do with this installation.
All Hyper-v management can control from Hyper-v Manager.
Hyper-v

Since Hyper-V role is also integrated into the Server Manager tool, you can find some useful information there, services related to Hyper-V and see recommended configurations, tasks, best practices, and online resources.
With Hyper-V Manager, anyone can create, change and delete VM machines; tune virtual networking and perform additional dependent operations.

Right-click the server node in the main window, point to New, and select Virtual Machine. You will then see the new Virtual Machine starting.
You must then enter a name for the virtual machine, find a place to store it and specify the amount of memory to allocate.

Hyper-v

Next you will select a network adapter for VM use, create a virtual hard disk (every VM needs a disk HDD) and then define how you are going to install an operating system to VM. You should then click Finish and your VM will be created.

To check if the VM is working, right-click on the name of the virtual machine and then click Connect, once the VM is initialized, the operating system installation should start automatically.
Hyper-v

Now you can install VMs and can manage here.

Wednesday, 28 May 2014

How to Migrate Virtual machine from VMWare to Hyper-V

Please follow below steps;

Step 1: Shut down the VM

This is important – most developers that I know simply suspend their VMs when they shut down or reboot the host machine. You need to Shut down the virtual machine in VMWare Workstation before you begin the conversion.

Step 2: Convert virtual hard disk from VMDK to VHD

The main part of the process is to convert the virtual hard disk format from VMDK to VHD. There’s a variety of conversion tools available for this task – I picked the WinImage utility since, ironically, I’ve used it in the past to convert VHD images to VMDK and found it to be very reliable.
If your VMDK virtual hard disk consists of multiple files, I recommend that you execute the following command to generate a single VMDK image:
Then use below method to convert in single disk.

Step 3:  Consolidating Multiple VMware VMDK Disk Files into One

In command prompt, navigate to where you have VMWare installed.  For me it was
C:\Program Files (x86)\VMware\VMware Workstation
In that folder you can use the vmware-vdiskmanager.exe program to perform this operation
vmware-vdiskmanager -r MyVirtualMachineDisk.vmdk -t 0 SingleDiskFile.vmdk
Replace MyVirtualMachineDisk.vmdk with the full path and file name of the first file of your split VMware disk set.



The “-t 0” means to turn it into a “single growable virtual disk“.  If you would rather pre-allocate all the storage for the disk, use “-t 2” instead, which means “preallocated virtual disk.
You can view more command line options by running the vmware-vdiskmanager.exe with no parameters.

DownLoad WinImage Utility

http://www.winimage.com/download.htm
  1. Download, install and start WinImage
  2. In the Disk menu, select Convert Virtual Hard Disk Image…
  3. In the Open file dialog, select VMWare VMDK (*.vmdk) as the file type and browse to your current VM location, select the file and press Open
  4. In the Convert Virtual Hard Disk Image dialog, pick Create Fixed Size Virtual Hard Disk Size to make your new VHD fixed-size or pick Create Dynamically Expanding Virtual Hard Disk to make it dynamic. I prefer the dynamically expanding option.
  5. In the Save As file dialog, browse to the location you’d like to save the VHD image and type in the File name and make sure the Save as type is set to Virtual Hard Disks (*.vhd), then press Save.
Step 4: Configure Hyper-V networking

If this is the first virtual machine on this Hyper-V host and you haven’t configured networking yet, follow the steps below to create a new virtual network:
  1. Start the Hyper-V Manager
  2. In the Action menu, select Virtual Switch Manager…
  3. Select External and press Create Virtual Switch
  4. Type in the Name, make sure that External network option is selected and pick the network card that provides Internet access in the dropdown, then press OK
  5. Press Yes on the Apply Networking Changes dialog
Step 5: Create a new virtual machine in the Hyper-V Manager

You are now ready to create a new Hyper-V virtual machine using the VHD image created earlier in Step 1.
  1. Open the Hyper-V Manager
  2. In the Action menu, select New > Virtual Machine… to launch the New Virtual Machine Wizard
  3. On the Before You Begin screen press Next
  4. On the Specify Name and Location screen type in the virtual machine Name and select the Location, then press Next
  5. On the Assign Memory screen enter the amount of Startup memory, then press Next
  6. On the Configure Networking screen select the External virtual network created earlier in Step 3, then press Next
  7. On the Connect Virtual Hard Disk screen select the Use an existing virtual hard disk option and browse to the location of the VHD created in Step 1
  8. On the Summary screen press Finish
  9. Select the newly created virtual machine in the Virtual Machines section, then bring up the Action > Settings… dialog for the VM
  10. Select the Processor node and increase the Number of virtual processors to the desired value, then press OK
  11. Make sure the VM is still selected in the Virtual Machines section, then use the Action > Start menu option to start the virtual machine
  12. In the Action menu, select Connect… to bring up the Virtual Machine Connection window
  13. Login to the VM
  14. Make sure that remote connections are allowed by going to Control Panel > Remote settings and making sure that one of the Allow connections options is selected
Enjoy :) 

Saeed