The project ovirt-vdsmfake has been discontinued and it’s no longer maintained. The following section is kept only for reference.


VDSM is a daemon component written in Python required by oVirt-Engine (Virtualization Manager), which runs on Linux hosts and manages and monitors the host’s storage, memory and networks as well as virtual machine creation/control, statistics gathering, etc. VDSM Fake is a support application framework for oVirt Engine project. It is a Java web application which enables to simulate selected tasks of real VDSM. But, tens or hundreds of simulated Linux hosts and virtual machines can be reached with very limited set of hardware resources. The aim is to get marginal performance characteristics of oVirt Engine JEE application (JBoss) and its repository database (PostgreSQL), but also network throughput, etc.


The basic idea is that the fake host addresses must resolve to a single IP address ( is also possible for all-in-one performance testing server configuration). Standard HTTP port 54321 must be accessible from the Engine. You can use /etc/hosts file on the server with oVirt-Engine or company DNS server. Instead of host IP address it is needed to specify fake host name. Apache XML-RPC library is a core technology for the Engine and VDSM communication. Many configured entities must be persisted after their creation. Simple Java object serialization is used for this purpose (directory /var/log/vdsmfake/cache).


The application runs in 2 modes:

  • simulation
  • proxy to real VDSM

All or selected XML requests/responses are optionally logged into a directory (/var/log/vdsmfake/xml). Currently the configuration is possible to update in web.xml, log4j.xml files only.

Supported methods

  • create hosts
  • create/attach/activate DATA/EXPORT/ISO NFS storage domains
  • create VM from iso (+ create network, create volume)
  • run/shutdown VM
  • migrate VM


VDSM Fake is a Maven configured project. Source code:

  • git clone git://


Required directories (set RW access):

  • /var/log/vdsmfake
  • /var/log/vdsmfake/xml
  • /var/log/vdsmfake/cache

Maven commands:

  • Generate WAR file: mvn install
  • Run sample web server: mvn jetty:run

or use e.g. Apache Tomcat

  • download from
  • cd apache-tomcat-7.0.34/webapps
  • copy vdsmfake.war as ROOT.war to apache-tomcat-7.0.34/webapps (remove standard ROOT folder first)
  • change HTTP port inside apache-tomcat-7.0.34/conf/server.xml to 54321
  • Run inside apache-tomcat-7.0.34/bin directory

oVirt-Engine Batch Configuration

The fake hosts and VMs can be installed by REST API - more info: REST_API_Using_BASH_Automation.



    function createEtcHosts {
        echo "" > ${OUT_FILE}
        for i in $(seq 1 ${N_HOSTS}); do
                echo "    fake${i}" >> ${OUT_FILE}

    function createHosts {
        for i in $(seq 1 ${N_HOSTS}); do
            createHost "fake${i}" "fake${i}" "123456" "Default"

    function createVM {
        local index=$1
        local vmName=Fedora17_fake${index}
        # 512M, disk 10GB
        createVirtualMachineFromTemplate "${vmName}" "Default" "Blank" "536870912"
        createVirtualMachineNIC "${vmName}" "ovirtmgmt"
        createVirtualMachineDisk "${vmName}" "10485760000" "Storage_DATA"
        createVirtualMachineCDROM "${vmName}" "Fedora-17-x86_64-DVD.iso"

    function createVMs {
        for i in $(seq 201 ${N_VMS}); do
            createVM ${i}