Fix waiting resource at create_vm