💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 新配置cenost7的模版机的路径 ``` E:\VMS\Centos7\template\template.vmx ``` # 安装完vm-tools后执行命令测试 ``` vmrun.exe -T ws -gu root -gp 123456 runProgramInGuest "E:\VMS\Centos7\template\template.vmx" /usr/bin/bash /root/test.sh ``` # 关机命令 ``` vmrun.exe stop "E:\VMS\Centos7\template\template.vmx" ``` # 创建快照 ``` vmrun.exe -T ws snapshot "E:\VMS\Centos7\template\template.vmx" CLEAN ``` # 查看模版机已存在的克隆 ``` vmrun.exe listSnapshots "E:\VMS\Centos7\template\template.vmx" ``` # 从初始快照创建链接乐控虚拟机 ``` vmrun.exe -T ws clone "E:\VMS\Centos7\template\template.vmx" E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx linked -snapshot=CLEAN -cloneName=redis-90 vmrun.exe -T ws clone "E:\VMS\Centos7\template\template.vmx" E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx linked -snapshot=CLEAN -cloneName=redis-91 vmrun.exe -T ws clone "E:\VMS\Centos7\template\template.vmx" E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx linked -snapshot=CLEAN -cloneName=redis-92 ``` # 启动创建好的虚拟机 ``` vmrun.exe start E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx vmrun.exe start E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx vmrun.exe start E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx ``` # 修改IP地址和主机名 ``` vmrun.exe -T ws -gu root -gp 123456 runProgramInGuest "E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx" /bin/bash /root/first.sh 90 redis-90 vmrun.exe -T ws -gu root -gp 123456 runProgramInGuest "E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx" /bin/bash /root/first.sh 91 redis-91 vmrun.exe -T ws -gu root -gp 123456 runProgramInGuest "E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx" /bin/bash /root/first.sh 92 redis-92 ``` # 修改好后批量关机 ``` vmrun.exe stop "E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx" vmrun.exe stop "E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx" vmrun.exe stop "E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx" ``` # 关机后批量创建快照 ``` vmrun.exe -T ws snapshot "E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx" CLEAN vmrun.exe -T ws snapshot "E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx" CLEAN vmrun.exe -T ws snapshot "E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx" CLEAN ``` # 创建完快照后批量开机 ``` vmrun.exe start "E:\VMS\Centos7\redis-cluster\redis-90\redis-90.vmx" vmrun.exe start "E:\VMS\Centos7\redis-cluster\redis-91\redis-91.vmx" vmrun.exe start "E:\VMS\Centos7\redis-cluster\redis-92\redis-92.vmx" ``` # 删除一个虚拟机 ``` vmrun.exe deleteVM E:\VMS\Centos7\redis-cluster\redis-6380\redis-6380.vmx ```