Download Latest Version vmi-honeymon-2.0.2.tar.gz (133.3 kB)
Email in envelope

Get an email when there's a new version of VMI Honeymon

Home
Name Modified Size InfoDownloads / Week
vmi-honeymon-2.0.2.tar.gz 2012-12-15 133.3 kB
vmi-honeymon-2.0.1.tar.gz 2012-11-28 132.2 kB
README 2012-10-09 4.1 kB
Totals: 3 Items   269.5 kB 0
Debian Wheezy and Xen 4.2 unstable:
	Install Wheezy from ISO (debian-wheezy-DI-a1-amd64-netinst.iso) with (at least) SSH server and default system tools.
	
	sudo apt-get install ocaml-findlib bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libdirectfb-dev libsdl-dev libjpeg-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex ocaml-findlib gcc-multilib xz-utils git-core subversion libxml2-dev libdevmapper-dev libnl-dev libyajl-dev gettext autoconf cvs blktap-dkms
	
	hg clone http://xenbits.xensource.com/xen-unstable.hg
	cd xen-unstable.hg
	./configure
	
	Check config/Tools.mk and make sure the following are set: "BISON := /usr/bin/bison" and "FLEX := /usr/bin/flex". If not, set them manually.
	
	make xen
	make tools
	
		If compilation fails with tools/firmware/etherboot/ipxe, apply the following patches:
	
		wget http://vmi-honeymon.sf.net/.../wheezy-gcc47-ipxe-patches.tar.gz && tar xzvf wheezy-gcc47-ipxe-patches.tar.gz
		patch tools/firmware/etherboot/ipxe/src/drivers/bus/isa.c < wheezy-gcc47-ipxe-patches/isa.c.patch
		patch tools/firmware/etherboot/ipxe/src/drivers/net/myri10ge.c < wheezy-gcc47-ipxe-patches/myri10ge.c.patch
		patch tools/firmware/etherboot/ipxe/src/drivers/net/myri10ge_mcp.h < wheezy-gcc47-ipxe-patches/myri10ge_mcp.h.patch
		patch tools/firmware/etherboot/ipxe/src/drivers/infiniband/qib7322.c < wheezy-gcc47-ipxe-patches/qib7322.c.patch
		
		Then do "make tools" again.
	
	
	make stubdom
	sudo make install-xen
	sudo make install-tools PYTHON_PREFIX_ARG=
	sudo make install-stubdom
	
	If libxlutil.h doesn't get installed to /usr/include, you need to copy it manually:
		ls /usr/include | grep libxlutil.h
		sudo cp tools/libxl/libxlutil.h /usr/include
	
	sudo update-rc.d xencommons defaults 19 18
	sudo update-rc.d xendomains defaults 21 20
	sudo update-rc.d xendomains defaults 21 20
	sudo update-rc.d xen-watchdog defaults 22 23
	
	sudo su
	echo "none            /proc/xen       xenfs   defaults        0       0" >> /etc/fstab
	echo xen-evtchn >> /etc/modules
	echo blktap >> /etc/modules

	echo 'options loop max_loop=255' > /etc/modprobe.d/loop.local
	
	echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" >> ~/.bashrc
	
	mv /etc/grub.d/10_linux /etc/grub.d/25_linux
	
	Edit /etc/default/grub and add:
	GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=512M,max:512M"

	Edit /etc/xen/xl.conf and add:
	autoballoon=0

	Then:
	update-grub
	
	Reboot

LibGuestFS on Debian Wheezy:
	
	sudo apt-get install gperf genisoimage febootstrap ntfs-3g-dev libfuse-dev

	Qemu 1.0 was having issues with libguestfs, recommended version is 1.1.1
	
	wget http://wiki.qemu.org/download/qemu-1.1.1.tar.gz
	tar xzvf qemu-1.1.1.tar.gz
	cd qemu-0.15.1
	./configure --disable-kvm
	make
	sudo make install
	
	wget http://libguestfs.org/download/1.18-stable/libguestfs-1.18.5.tar.gz
	tar xzvf libguestfs-1.18.5.tar.gz
	cd libguestfs.1.18.5.tar.gz
	./configure --disable-gobject --disable-ocaml --enable-gtk-doc-html=no LDFLAGS=-L/usr/lib/x86_64-linux-gnu LIBS=-ltermcap
	make
	make check (1/150 will fail or so..)
	sudo make install
	
	It's worth checking manually with guestfish and a VM to verify actually works.

LibVMI and Volatility:
	apt-get install libtool check python-fuse

	wget https://volatility.googlecode.com/files/volatility-2.1.tar.gz
	tar xzvf volatility-2.1.tar.gz

	git clone https://code.google.com/p/vmitools/
	cd vmitools
	./autogen.sh
	./configure
	make && make install
	cd tools/pyvmi
	python setup.py build
	python setup.py install
	cp pyvmiaddressspace.py ../../../volatility-2.1/volatility/plugins/addrspaces/

VMI-Honeymon:
	apt-get install libffi-dev

	wget http://ftp.gnome.org/pub/gnome/sources/glib/2.32/glib-2.32.4.tar.xz
	tar xvf glib-2.32.4.tar.xz
	./configure && make && make install
Source: README, updated 2012-10-09