8. Cloning an OVA or Qcow to an IsardVDI Desktop¶
This section explains how to import a disk from an OVA, a QCOW, or a file from a clone. To do this, you need two desktops:
- A desktop where these files will be stored and where an NFS server will run, accessible from other desktops as a cloning source.
- A second desktop with a rescue CD or a live CD to clone the content of the qcow/img/vmdk disk on the NFS server to the desktop's disk. Afterwards, change the boot type from ISO to hard disk so that the desktop boots from the cloned disk.
Fedora Desktop¶
The desktop is created from the Fedora ISO, in the Media section with the Create new desktop button (see Media).
A distribution that has all the virtualization tools in its package catalog is needed. In this case Fedora is used, with the following hardware:
- 4 vCPUs
- 6 GB of RAM
- 80 GB hard disk (it can be reduced if you already know that so much space will not be needed).
Add at least these networks:
- Default
- Personal1
As media, the latest available Fedora ISO is used. You must also choose an operating system template suitable for the operating system you want to clone; in this case, a fairly generic one, for example Debian 10 (the available templates depend on what the administrator has added).
NFS Server¶
The NFS server is a desktop based on Alpine, a very lightweight Linux distribution, with the following hardware:
- 2 vCPUs
- 1 GB of RAM
- 120 GB hard drive (enough to add files to the server)
- Networks:
- Default
- Personal1
Once the desktop is created, NFS is installed and configured. When you log in to Alpine, run the installation assistant with the following command:
Set nfs-server as the hostname.
In the networks section, configure the Default network for DHCP and assign a private IPv4 address to the Personal1 network; in this example, 192.168.99.10/24.
Choose the time zone and allow SSH connection as the root user.
Finally, select the disk where the installation is done to finish the assistant.
Next, stop the desktop and edit it to set Boot: Hard Disk and remove the ISO from the media:
Note
To avoid repeating these steps, you can use the work done to create a template named after the Alpine version. In the description, it is a good idea to add features such as the disk size and the networks, to identify it easily among the templates.
- Name: "Alpine 3.23"
- Description: "USER: root / PWD:
<password>- Alpine 3.23 just installed with default and personal network at 192.168.99.10, 120 GB disk" - Permissions: Everyone (all the users of the category have access).
The NFS Server desktop is now based on the "Alpine 3.23" template.
To create the NFS server, follow the Alpine wiki guide https://wiki.alpinelinux.org/wiki/Setting_up_an_NFS_server.
Run the following commands:
apk add nfs-utils iproute2
mkdir -p /export/shared
echo "/export/shared *(rw,sync,no_root_squash)" > /etc/exports
rc-update add nfs
Reboot to make sure the service starts and check that the NFS service is listening on the associated ports:
To check that the export works, run:
You should see the following:
/export/shared <world>(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)
Connect the cloning desktop to the NFS server¶
Warning
Do not install Fedora: choose the Try Fedora option.
Once it has started, configure an IP address on the same network as the NFS server.
If needed, you can change the keyboard layout:
Check the connectivity between the two machines:
Create a folder and mount the NFS share on it:
Check that it has been mounted correctly with:
Clone hard disk from an OVA¶
From Fedora, download the OVA to the NFS-mounted directory:
The QEMU utilities let you mount the disk:
sudo dnf install qemu-tools-2:6.2.0-17.fc36.x86_64
sudo modprobe nbd
sudo tar xvf wazuh-4.8.0.ova
sudo qemu-nbd --connect=/dev/nbd0 /mnt/nfs/wazuh-4.8.0-disk-1.vmdk
Check that it has been mounted correctly, as shown in the image:
Clone the disk with dd in 4M blocks, showing the progress:
Verify that the clone was successful¶
Once the cloning has finished, stop the Fedora desktop and edit it as follows:
- Change the name to Wazuh.
- Remove the Fedora ISO.
- Set Boot: Hard Disk.
- Set Disk bus: SATA (it is more standard than the Virtio bus).
- Keep only the networks the desktop needs.
- Increase Memory (GB) to 8 (Wazuh recommendation).
Start the virtual machine. Warnings may appear that some VirtualBox devices, such as the video card, cannot be found, but the machine boots and works correctly with the Default video.
Once the system has started, log in with the user wazuh-user and the password wazuh. The keyboard can be changed to Catalan with the following command:
Add a temporary IPv4 address:
Create a desktop, for example based on Ubuntu 22.04, add the Personal1 network to it and configure it with an IP from the 192.168.99.0/24 network.
Check that wazuh is running by accessing it via the web and via SSH, as shown in the screenshot:
Troubleshooting
If it is a Windows or a very old operating system, it may not detect virtio network cards until the drivers are installed. A network with an "Intel" or "Realtek" card should be compatible.












