display_vm_create function cleaned