I could practice and work on hacking the machines I already built, but another good addition to my lab is vulnerable machines. A good source of these is VulnHub. In this post I will cover how to add a VulnHub machine to Proxmox.
Prerequisite: Install Proxmox and Configure a Cluster
Download and Extract the Machine
The first step in adding the machine is to download it from vulnhub onto the host and extract it. For this example, I am using the machine Earth. To accomplish this, I entered the three commands below.
# mkdir vulnhub && cd vulnhub
# wget -O Earth.ova https://download.vulnhub.com/theplanets/Earth.ova
# tar xvf Earth.ova
Once downloaded you should have 3 files in the vulnhub directory.

Adding the VulnHub Machine to Proxmox
Now we need to create the VM in Proxmox to tie to the disk we downloaded. First we create the machine, and under operating system, select “Do not use any media.”


For the other options, I configured:
- System: default
- Disks: default
- CPU: 1 socket / 1 core
- Memory: 1024MB
- Network: DMZnet / MTU: 1450
Once created, but before booting, the next step is to remove the hard disk. You do that by first detaching the existing disk, and then remove the unused disk.

Now you import the disk, using the command below. Replace “115” with the number corresponding to your virtual machine in Proxmox, and the vmdk file with the correct file corresponding to the machine you downloaded.
# qm importdisk 115 Earth_dev-disk001.vmdk local-lvm --format vmdk

Once the disk imports, you need to go back to the GUI and change the disk type to SATA in the Proxmox interface.

After changing, you should see the hard drive in sata0.

The last step is to change the boot order to boot to the hard drive first, and then start the VM. After starting you should get the login screen.


The whole process is that simple. Now you can import new VulnHub machines anytime to try them out in your new Proxmox lab. Now that we have machines ready, its time to configure the DNS and firewall for external access.
0 Comments
2 Pingbacks