Instructions nicked from and

unzip metaploitable-linux-2.0.0.zip

cd Metasploitable2-Linux

qemu-img convert -O qcow2 Metasploitable.vmdk prometheus.qcow2

sudo cp prometheus.qcow2 /var/lib/libvirt/images/

sudo chown root:root /var/lib/libvirt/images/prometheus.qcow2

wget 'https://raw.githubusercontent.com/FreedomBen/vmware-to-kvm/main/vmware2libvirt.py'

python vmware2libvirt.py -f Metasploitable.vmx > prometheus.xml

Edit metasploitable.xml: replace “Metasploitable2-Linux” with “prometheus” replace line 21 with path to the qcow2 image: “/var/lib/libvirt/images/prometheus.qcow2” replace “/usr/bin/kvm” with “/usr/bin/qemu-system-x86_64” change network configuration scratch that I bastardised the whole lot. Pay special attention to emulator, driver, target, address in disk section.

sudo cp prometheus.xml /etc/libvirt/qemu

sudo chown root:root /etc/libvirt/qemu/prometheus.xml

sudo chmod 600 /etc/libvirt/qemu/prometheus.xml

Define vm from xml file

sudo virsh -c qemu:///session define /etc/libvirt/qemu/prometheus.xml

To start the vm:

sudo virsh start prometheus

View metasplotable via vnc

virt-viewer -c qemu:///system prometheus

Rename to something nicer

sudo virsh domrename prometheus your_name