Move vm_setup to end