Cloning the VM - AD-EYE/AD-EYE_Core GitHub Wiki

Copying the VM

Download files from OneDrive:

Win10.xml
Win10_Matlab_Prescan.qcow2.gz

Uncompress the image

gzip -d -k Win10_Matlab_Prescan.qcow2.gz

And copy Win10_Matlab_Prescan.qcow2 to libvirt folder. If the machine has /disk2, the parent directory will be /disk2/libvirt/images/, otherwise /var/lib/libvirt/images/.

The xml definition of the machine can then be imported using virsh:

virsh define Win10.xml

Make sure that the CPU configuration is good and that the connection with the host and with the internet is working properly.

Connection issues

Cleaning the iptables rules of the host that can cause issue for communicating between host and guest:

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -t nat -F
sudo iptables -t mangle -F
sudo iptables -F
sudo iptables -X

To restore iptables:

sudo iptables-restore < save_iptables

To save iptables:

iptables-save > save_iptables

source: https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently