Converting VMware to KVM: Rapid7’s “Metasploitable 2”

Benjamin Porter
6 min readJun 20, 2022
Photo by Señor Ashraf on Unsplash

Converting a VMware VM to KVM isn’t hard but can be tricky if you don’t know what to do. Here’s how to convert the Metasploitable2 VM to from VMware to KVM

Background (skip if you just want instructions)

I was recently asked by a (very good) friend, “how do run this VM in Gnome Boxes?” She is taking a cyber security course and is supposed to do some scanning and ‘sploiting of a VM called “Metasploitable 2” that is downloadable from Source Forge.

Unfortunately, the zip file that is downloaded contains a VMware VM that is not playable directly with KVM, such as Gnome Boxes. Yes one could simply download and install VMware Player (which is free of charge for running one machine at a time), but it is sorely lacking in features and it is not open source or free software. If you buy a licensed copy, you can get an amazing pack of features, but if you are already running Linux then you have a wonderful free and open source system for running VMs at your fingerprints, free of charge! This system is a combination of several tools, among the most important are KVM, qemu,virt-manager, and Gnome Boxes.

Finding instructions and resources for my friend was incredibly difficult. The small number of resources I could find were nearly 10 years old, and things…

--

--

Benjamin Porter

Ben Porter is a Software Engineer who specializes in distributed applications (like web apps). He is currently Chief Technology Officer (CTO) at Ameelio.org