是否可以通过任何方法或API更改vCenter中的虚拟机操作系统?

问题描述

我们正在为用户创建一个面板,以使其能够在其虚拟机上更改操作系统,到目前为止,我们发现了诸如Ansible之类的工具,但这只能使我们能够删除旧的计算机并安装新的计算机。最终会删除所有快照,并使我们处于从头开始重新配置所有内容(网络配置,主机名等)的情况。

例如,我们在Ansible中得到了这个

- name: Deploy Virtual Machine from template in content library
     community.vmware.vmware_content_deploy_template:
       hostname: '{{ vcenter_hostname }}'
       username: '{{ vcenter_username }}'
       password: '{{ vcenter_password }}'
       template: '{{ vcenter_template_name }}'
       datastore: '{{ vcenter_datastore }}'
       datacenter: Datacenter1
       name: Sample_VM
       resource_pool: test_rp
       validate_certs: False

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...