Search

Language:  
Search for:

Available article translations:

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

APPLIES TO:
  • Parallels Plesk Panel 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 PPPCloningScript.zip 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: http://pshyperv.codeplex.com/
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 PPPCloningScript.zip 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)]

Example:
.\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: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx. 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. 


Attachments:


bbe0373935bc886984e30ddeb0b46919 56797cefb1efc9130f7c48a7d1db0f0c 49af2da0f2dd4c81e962790bbbd0c2b4 5fc602d72ea565f353b9320e2ef62a1b

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Desktop Virtualization
- Parallels Desktop 8 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification