Вы находитесь на странице: 1из 8

Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Gem Grab Ad

Mike's Blog

TECHNOLOGY

PHYSICAL TO VIRTUAL (P2V) GUIDE USING


SYSTEM CENTER VIRTUAL MACHINE
MANAGER 2012 SP1
MARCH 26, 2013 | MIKE | LEAVE A COMMENT

This guide demonstrates how to virtualize a physical machine running Windows. It requires a VMM
server managing at least one Hyper-V host available for placement. The physical machine must be
connected to the same network as the Hyper-V host and the VMM server for successful conversion.
Additionally, local or domain administrative credentials are required. The process is initiated from the
VMM console and is completed using the wizard. Powershell script included.

Select Convert Physical Machine from the Create Virtual Machine dropdown menu in VMM.

Specify the computer you wish to virtualize, providing valid credentials with appropriate privilege.

1 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Name the virtual machine that will be created as the container of the virtualized physical machine.
This does not have to match the hostname of the computer. Provide a description if desired.

Scan the system (by clicking Scan System).

Review the scan results and proceed if details appear as expected. Take note of network adapters for
setting up VM networks later in the wizard.

2 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Configure the volumes to be converted to VHDs. Note that system volumes are mandatory.

Verify the VM Configuration – Number of processors and Memory. These default values will reflect
the physical system’s configuration and may be changed based on current needs. For example, if a sys-
tem is under P2V as a cheaper alternative to a memory upgrade, you may increase the memory here
if it is available. It would not be advised to choose a lower value here to ensure functionality of the vir-
tualized system as close to the original physical machine as possible.

Choose a server for placement with at least a 1-star rating. A zero-star rating indicates an incompati-
ble system configuration such as invalid network configuration, insufficient memory, host not re-
sponding, or other similar problems.

3 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Choose the placement location. This is the path on the target server, where the VM will reside.

Configure the network configuration to match the existing machine. If you are performing P2V for
testing or backup, it may be advisable to leave the connections as Not connected to prevent acciden-
tal access to the newly created VM in place of the existing physical machine.

Choose the Automatic actions for this VM. Generally, “Automatically turn on the virtual machine if it
was running when the physical server stopped” should be chosen here. It is not the default option.

4 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Correct any issues detected by the wizard, if any, and click Check Again until “No issues detected.” In-
formation is shown in the window.

Review the summary and click Create to start the conversion process. It may not be wise to start the
virtual machine after deploying it since your physical machine will continue to run.

Check the Jobs section of VMM for detailed progress information

5 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

Read on to see how to do the same thing in Powershell.

<!––nextpage––>

This entire process can also be completed using the following Powershell template:

$Credential = get-credential

New-SCComputerConfiguration -VMMServer localhost -SourceComputerName “IIS1″ -Credential


$Credential

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -VMMServer localhost -VMHost $VMHost -RunAsynchronously -JobGroup 7801807d-


deee-4cc1-9354-3f06af46a5f7 -SourceNetworkConnectionID “00:11:43:DF:DA:2F” -MACAddress
“00:11:43:DF:DA:2F” -MACAddressType Static -NoConnection -ComputerConfiguration $Comput-
erConfiguration

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -VMMServer localhost -VMHost $VMHost -RunAsynchronously -JobGroup 7801807d-


deee-4cc1-9354-3f06af46a5f7 -SourceNetworkConnectionID “00:11:43:DF:DA:30″ -MACAddress
“00:11:43:DF:DA:30″ -MACAddressType Static -NoConnection -ComputerConfiguration $Comput-
erConfiguration

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

6 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -VMMServer localhost -VMHost $VMHost -RunAsynchronously -JobGroup 7801807d-


deee-4cc1-9354-3f06af46a5f7 -VolumeDeviceID “\\?\Volume{b3f04939-0c4d-
11df-8f18-806e6f6e6963}\” -Dynamic -IDE -Bus 0 -LUN 0 -ComputerConfiguration $ComputerCon-
figuration

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -VMMServer localhost -VMHost $VMHost -RunAsynchronously -JobGroup 7801807d-


deee-4cc1-9354-3f06af46a5f7 -VolumeDeviceID “C” -Dynamic -IDE -Bus 0 -LUN 1 -ComputerCon-
figuration $ComputerConfiguration

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -VMMServer localhost -VMHost $VMHost -RunAsynchronously -JobGroup 7801807d-


deee-4cc1-9354-3f06af46a5f7 -VolumeDeviceID “D” -Dynamic -IDE -Bus 1 -LUN 0 -ComputerCon-
figuration $ComputerConfiguration

$Credential = get-credential

$VMHost = Get-SCVMHost -VMMServer localhost | where {$_.Name -eq “HY-


PERV2012.DALARIS.LOCAL”}

$ComputerConfiguration = Get-SCComputerConfiguration -VMMServer localhost | where {$_.Name


-eq “IIS1″}

New-SCP2V -Credential $Credential -VMMServer localhost -VMHost $VMHost -Path “D:\VM”


-RunAsynchronously -JobGroup 7801807d-deee-4cc1-9354-3f06af46a5f7 -Trigger -Name “IIS1″
-Description “Web Server” -ComputerConfiguration $ComputerConfiguration -CPUCount 4 -Memo-
ryMB 4096 -StartAction TurnOnVMIfRunningWhenVSStopped -DelayStartSeconds 0 -StopAction

7 of 8 8/23/2015 11:30 PM
Physical to Virtual (P2V) Guide Using System Center Virtual Machine Ma... http://mike.anobile.info/2013/03/physical-to-virtual-p2v-guide-using-syst...

SaveVM

If you'd like to share this, click below:

0 Like 0 Tweet 0
StumbleUpon

Related:

Migrate a virtual machine using Adding a Hyper-V host to a VMM Performing Live Migration with
System Center Virtual Machine Server Hyper-V Manager
Manager 2012

P2V SYSTEM CENTER VIRTUALIZATION

8 of 8 8/23/2015 11:30 PM

Вам также может понравиться