How to create Windows Server 2016 & 2019 VM’s – OpenVZ 7

In this post I will explain how to create Windows Server 2019 & Windows Server 2016 VM’s using OpenVZ 7 (based on KVM).

Create a new VM with Windows Server 2016 or 2019 (use win-2016 as distribution for 2019).

prlctl create SRV-WIN2019 --distribution win-2016 --vmtype vm

Download and add your Windows ISO:

prlctl set SRV-WIN2019 --device-add cdrom --image /root/downloads/server2019.iso

Enable VNC for remote access:

prlctl set SRV-WIN2019 --vnc-mode manual --vnc-port 5905 --vnc-passwd YourPassword

Optional, set a static MAC-address:

prlctl set SRV-WIN2019 --device-set net0 --mac 00:11:22:33:44:55

Enter your Private or Public IP Address + CIDR, Gateway and Nameserver:

prlctl set SRV-WIN2019  --device-set net0 --ipadd X.X.X.X/24 --gw X.X.X.X \

Set CPU Cores:

prlctl set SRV-WIN2019  --cpus 2

Set RAM/Memory size (in GB):

prlctl set SRV-WIN2019 --memsize 4G

Set Disk size (in GB):

prlctl set SRV-WIN2019 --diskspace 80G

Set I/O Limit in MB/s (Disk):

prlctl set SRV-WIN2019 --iolimit 50

Start your VM:

prlctl start SRV-WIN2019

Connect to your OVZ 7 Host IP + VNC Port 5905 with VNC Viewer and follow the Windows installation instructions.

Let’s install OVZ Guest Tools on Windows Server 2016 or 2019:

prlctl installtools SRV-WIN2019

Congrats! The installation has been completed! 🙂

Supported VM Operating Systems:

The following values are allowed:
win-2008                win-2012                win-2016                ubuntu
fedora-core             debian                  centos                  centos7
vzlinux                 vzlinux7                cloudlinux              cloudlinux7
Experimental support:
win-2000                win-xp                  win-2003                win-vista
win-7                   win-8                   win-8.1                 win-10
win                     rhel                    rhel7                   suse
sles11                  sles12                  psbm                    redhat
mandriva                xandros                 mageia                  mint
linux-2.4               linux-2.6               linux                   freebsd
chrome                  msdos                   netware                 solaris

6 thoughts on “How to create Windows Server 2016 & 2019 VM’s – OpenVZ 7

    1. Tom van Brienen Post author

      Hello Muhammed,

      You can connect to the host IP (OVZ7 Server) + VNC Port X.X.X.X:5905 with your VNC client. Make sure you can reach the OpenVZ server.

      For example:
      prlctl set VMName --vnc-mode manual --vnc-port 5905 --vnc-passwd YourPassword

      A VNC connection to the IP-address of the VM doesn’t work.


  1. Shaun

    Hi. I tried this but while windows was installing, I got a dos terminal which forced me to set the administrator password, which I did, but then nothing happened after that. Stopping and starting the VM again now produces error:
    Failed to start the VM: Operation failed. Failed to execute the operation. (Details: The name org.fedoraproject.FirewallD1 was not provided by any .service files)

    Any ideas?

    1. Tom van Brienen Post author

      Hello Shaun,

      Thank you for your reply.

      You can try to start & stop firewalld with: service firewalld start && service firewall stop
      Test the VM after this. You can also test it with firewalld enabled.

  2. Alexandr

    It’s great article! Help me a lot!!! Thank you!

    Could you tell me from where you got a list of supported OS’s and it’s template names….
    It’s impossible for me find something like this list in openvz documentation (((


Leave a Reply

Your email address will not be published.