Creating a Virtual Server with Microsoft Windows Server 2012 R2

Creating a Virtual Server

  • Create a virtual server definition.

  • Virtual server details.

  • Adding a virtual disk with VIRTIO driver.


    It is possible to increase the disk capacity additionally. The increase will take effect after restarting the server and extending the disk size in the operating system.

  • Adding a virtual NIC with VIRTIO driver.

  • Deploy the virtual server.

Starting the Virtual Server

The performance of the Microsoft Windows Server operating system can be optimized by using VIRTIO drivers for both disks and NICs. The VIRTIO drivers are not supported by the OS installer and need to be loaded during the installation by using a secondary CD-ROM ISO image.


Installing the Operating System

Loading the disk and NIC VIRTIO drivers from the secondary CD-ROM drive (E:\WIN7\AMD64\) into the OS installer.

../_images/windows_select_driver.png ../_images/windows_load_driver.png
You can download the latest VIRTIO drivers here:

Driver locations on the iso image:

  • Hard disk: viostor\<win_version>\amd64
  • Ethernet Adapter: NetKVM\<win_version>\amd64

You can click Load driver multiple times and add also the driver for the ethernet adapter during this Windows install phase.

See also

For instructions on how to add/manage ISO images see Managing an ISO Image.

Configuring VM Shutdown from Danube Cloud

The following settings are necessary to properly shut down the Windows operating system through Danube Cloud. Improper shutdown can cause damage to the file system when the virtual server is manually shut down or migrated via Danube Cloud.

  • Allowing shutdown without login.

    Run the Group Policy Object Editor tool (for example run via Run (WIN+R) -> gpedit.msc) and navigate to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options, where the Shutdown property must be set to Allow system to be shut down without having to log on.

  • Enabling immediate shutdown of a virtual server with logged in users.

    Run the regedit tool (for example run via Run (WIN+R) -> regedit) and navigate to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows NT -> CurrentVersion -> Windows where the ShutdownWarningDialogTimeout property must be changed to dword:00000001.

Zabbix Agent Installation

  • Download the Zabbix Agent installer from (recommended) or directly from the official web page
  • Run the installer and go through the configuration wizard, which is part of the installer. The most important setting is Server where the hostname or IP address of the Zabbix server must be put in.
  • Add a firewall rule to open the Zabbix Agent port 10050.
  • The Zabbix Agent can be tested by attaching a Zabbix template Template OS Windows to the virtual server via Danube Cloud Change Server Settings -> Show advanced settings -> Monitoring templates. The template must be allowed for use in the current virtual data center (Datacenter -> Settings -> MON_ZABBIX_TEMPLATES_VM_ALLOWED).
  • Log in into the Zabbix web frontend and check Configuration -> Hosts -> Name -> Availability. The virtual server’s Zabbix agent must be connected to the Zabbix server, which is indicated by a green Z icon.

QEMU Guest Agent Installation

The QEMU Guest Agent is a service running inside the guest operating system and waiting for commands from the Danube Cloud system.

Before creating a snapshot with Freeze filesystem attribute enabled, a “file system freeze” command is sent to the QEMU Guest Agent, which leads to the creation of a consistent snapshot by calling the Volume Shadow Copy Service (VSS).


Please make sure that the affected application software supports VSS.

  • Enable Windows Remote Management (WinRM).

  • Add permissions for running VSS by the qemu-agent service.


    Open Component Services -> Computers -> My Computer, right-click on My Computer and open Properties. Continue to COM Security -> Access Permission -> Edit Default, add a Network Service system account a set Local Access to allowed.

  • Download and install QEMU Guest Agent from or from

  • Restart the virtual server.

  • Create a snapshot with Freeze filesystem attribute enabled in order to test the QEMU Guest Agent. The snapshot status should be ok and a flag icon should indicate that the snapshot was created with the Freeze filesystem option enabled. In case the creation of an application consistent snapshot should fail, the monitoring will send a warning with the text: “Snapshot was created, but filesystem freeze failed”. To inspect the problem in the guest operating system, the VSS source should be examined in the event log (Event Viewer -> Windows Logs -> Application).


After installing and configuring the operating system and software, it is a good practice to disable the virtual server and make a snapshot from which you can create a template for quick creation of identical or similar servers. The virtual server may contain a deploy script, which is executed during the first run after the server is created from a template, in order to achieve full automation.


Zabbix is a registered trademark of Zabbix LLC.