refactoring the vm create script. init import, unfinished work.