vm states and templates work
create vm almost finished