Friday, January 22, 2016

This is an adventure in converting a dd raw disk image to a vmdk image suitable for vmware on Mac OSX.  Amazingly annoying so I documented it to save you the trouble.  Of course these instructions are valid for as long as all the software used stays the same.  Good Luck!


install Apples Xcode developers tools from the App Store

install macports from here:
http://www.macports.org/

This is the version I used:
MacPorts-2.3.4-10.11-ElCapitan.pkg

Then confirm it wall worked:
sudo port version

Update it, not sure what this does but you need to do it (uses internet):
sudo port selfupdate

Now install the Xcode command line tools (assuming you already installed Xcode)
sudo xcode-select --install

Now install qemu:
sudo port install emu
--->  Computing dependencies for qemu blah blah blah....


Then all the sudden I get this:



So naturally I click OK and allow massive amounts of additional code to be installed blindly on my computer...all provably secure and safe!

I also installed this

It will fetch a bunch of junk and finally get it all installed.  It probably installed a bunch of rootkits and implants along the way so my computer is probably totally owned now but hey computers are disposable now right?


BTW...as the first macport I installed this process took close to 45 minutes...most of it waiting for downloads of dozens of libraries.  To be specific these are the debs:

zip2
curl
curl-ca-bundle
expat
gdbm
gettext
glib2
gperf
help2man
libedit
libffi
libiconv
libpixman
libtool
ncurses
openssl
p5.22-locale-gettext
pcre
perl5
perl5.22
pkgconfig
python27
python_select
sqlite3
texinfo
xz
zlib

So now qemu is installed and I can now convert a raw dd disk image to a vmdk


qemu-img convert -O vodka original-disk.dd converted.vmd


/var/db/vmware/vmnet-dhcpd-vmnet1.leases
/var/db/vmware/vmnet-dhcpd-vmnet8.leases

These files contain current leases issued by the built in vmware DHCP server...helpful in finding the IP of a box you can't login to.







No comments:

Post a Comment