Search for:

Available article translations:

How to deploy Parallels Plesk Panel 11 on Microsoft Hyper-V system

Article ID: 114195, created on Jun 25, 2012, last review on Aug 12, 2014

  • Parallels Plesk 11.x for Windows

Release Notes

To simplify Parallels Plesk Panel (PP) 11 provisioning on Cloud for infrastructure providers (including service providers offering dedicated servers, VPS, or IaaS), Parallels introduces instructions on how to deploy PP on a Microsoft Hyper-V system.

Creating VM image

Due to a Microsoft Windows Server licensing restriction, we can't provide the PP Hyper-V image.
You can prepare the image by following these simple steps:

1. Go to Hyper-V Manager -> Choose your Hyper-V server -> New Virtual Machine Wizard.
2. Create a virtual machine with the following parameters, for example:
     -  Name: PPP 11 Image
     -  Memory: 2 GB
     -  Connection: Local Area Connection - Virtual Network
     -  Virtual Hard Disk: 127 GB
3. Install Microsoft Server 2008 R2 there.
4. Install Parallels Plesk Panel 11 with any component you want using Autoinstaller.
5. Shut down and export your image VM to a location, for example, C:\.

Your Parallels Plesk Panel VM image is ready. You can copy and use it on your Windows Server 2008 R2 machine.
NOTE: It is better not to switch on Remote Desktop (RDP) access on your image due to security reasons. The cloning script will do it during VM preparation after changing the Administrator password.

Steps to Deploy

Use PowerShell scripts from the attached as an example of batch VM cloning.
The cloning script is written on Windows PowerShell. Please be sure that Windows PowerShell Integrate Scripting Environment (ISE) and .NET Framework 3.5.1 server features are installed on your Hyper-V server node. To check and install it, go to Server Manager -> Features:

“PowerShell Management Library for Hyper-V” is also used to manage Hyper-V WMI API:
The main idea of the provided cloning script is to use the DHCP server to resolve the IP address of the new VM. You can use the MAC address script option to provide a fixed IP for each VM from the DHCP server.
WARNING: Please check the cloning script before using it. You will probably need another cloning scenario.

Cloning script usage

      1. Unzip to C:\PPPCloningScript, for example.
      2. Open CloneVM.ps1, for example, in Notepad.exe, and update the Administrator password that you set during VM image creation. This password is stored in the variable $VMDefaultPassword.
      3. Run powershell.exe.
      4. Cd C:\PPPCloningScript.
      5. Run “CloneVM.ps1” with these parameters:
.\CloneVM.ps1 <Importing image path> <Root path for cloned VMs> <New VM Hyper-V name> <New VM Host name> <New VM Administrator password> [New VM MAC (optinal)]

.\CloneVM.ps1 "C:\PPP 11.0 Image" "C:\PPP 11.0 Clones" "PLESK VM 001" "HVPLESK001” "1qazxsW" "00155DECF690"

Cloning script description, step-by-step

      1. Create a new VM by importing your VM image from the "Importing image path" location. The same operation can be done with "Hyper-V Manager" using the "Import Virtual Machine" wizard (though the script sets the “New VM Hyper-V name” also):

      2. Recreate a network connection. NOTE: The NIC recreation step is added to the script because of the Hyper-V API error when resolving the IP address:
.Get-WmiObject : Generic failure
At C:\PPPCloningScript\HyperV\vm.ps1:525 char:37
+ Get-WmiObject <<<< -Namespace "root/cimV2" -query ("Select * from Win32_PingStatus where Address='" + $query) |
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

You can check whether you need this step in your environment.

      3. Change the VM MAC address if it is provided in “New VM MAC” parameter.
      4. Start the new VM.
      5. Get the new VM IP address.
      6. Initialize the new VM. Initialize theParallels Plesk Panel environment, enable Remote Desktop (RDP), change the Administrator password and Host name, and install Parallels Plesk Panel Micro-Updates. This step executes the “prepare_vm.cmd” command file on the new VM using the “PsExec” tool: You can change “prepare_vm.cmd” how you like, but please do not remove the “cloning.exe” step. This step is needed to regenerate all Parallels Plesk Panel passwords and GUIDs for the new cloned installation.
      7. Restart the new VM. This step is needed to complete “cloning.exe” and “change host name operations.”

Additional information

Approximately 15 to 30 minutes are needed to clone the new VM with Parallels Plesk Panel, depending on Hyper-V node performance. 


f4c89357a6ff7298f273cb70f9d95452 56797cefb1efc9130f7c48a7d1db0f0c c81e59b61af9dca603ba03b14aabe968 42844a8183c58f5bd71c7d59929707e6

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification