Add VM base image creation
work in progress
refactor system calls