In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
"practical training for Systems Engineers"-02-preparing Lab Environment (batch cloning)-008-Fast-deployment-Virtual Machine batch cloning-VMware Workstation 15
Author: endless learning
QQ communication group: 454544014
1. Template machine
two。 Script
Param ([string] $importfile = $(Read-Host-prompt "Please enter a file name"))
$importedusers = Import-CSV $importfile
Foreach ($importeduser in $importedusers)
{
Cd "c:\ Program Files (x86)\ VMware\ VMware Workstation\"
# 1. Gram? Ron? Virtual simulation a machine ²
.\ vmrun.exe-T ws clone $importeduser.SourceFile $importeduser.TargetFile full-snapshot $importeduser.CloneSnapshot-cloneName $importeduser.CloneName
# 3. Open a Kai? Virtual simulation a machine ²
.\ vmrun.exe-T ws start $importeduser.TargetFile
D:
}
3. CSV
SourceFile,TargetFile,CloneSnapshot,CloneName
D:\ Cloud\ 1-VM\ 001-Win201901\ 001lun Win201901.vmxMagiD:\ Cloud\ 1-VM\ 011-DC01.i-x-Cloud.com\ 011Mub DC01.iMux Mustang Cloud.com.vmxMagol 004 Mustang Sysprepaper OKMagol 011ltel DC01.iMux Mustang Cloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001lun Win201901.vmxMagiD:\ Cloud\ 1-VM\ 012-DC02.i-x-Cloud.com\ 012Mustang DC02.iMux Mustang Cloud.com.vmxMagol 004 Mustang Sysprepcourt OKMagol 012Corp DC02.iMuk xMuyCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MustWin201901.vmxMagiD:\ Cloud\ 1-VM\ 013-DC03.i-x-Cloud.com\ 013MuthDC03.iMuyMuthCloud.com.vmxmxMagol 004Mustang OSSysprepsway OKMagol 013MuthDC03.iMuyMuthCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MustWin201901.vmxMagiD:\ Cloud\ 1-VM\ 021-CA01.i-x-Cloud.com\ 021Mustang CA01.iMushashi Cloud.com.vmxmxmxmxmxmxmxmxmxmxmxmxmxmxmxmx, 021Mube CA01.iMuzCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MustWS01901.vmxMagiD:\ Cloud\ 1-VM\ 031-WSUS01.i-x-Cloud.com\ 031whichle WSUS01.iMuxMuCloud.com.vmxMol 004Mustang Syspreparelle OKMet 031MustWSUS01.iMuxMuyCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MustWin201901.vmxMagiD:\ Cloud\ 1-VM\ 051-Ex01.i-x-Cloud.com\ 051Mustang Ex01.iMuhashi Cloud.com.vmxmxMagol 004 Mustang Sysprepfatel OKMagol 051 Mustang Ex01.iMub xMuyCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MustWin201901.vmxMagiD:\ Cloud\ 1-VM\ 052-Ex02.i-x-Cloud.com\ 052Mustang Ex02.iMuthCloud.com.vmxmxMagol 004Mustang Sysprepcourt OKMagol 052Mube Ex02.iMuthCloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001 Mustco Win201901.vmxMagiD:\ Cloud\ 1-VM\ 053-Ex03.i-x-Cloud.com\ 053 Mustang Ex03.iMuk Cloud.com.vmxmx Movie 004 Mustang Sysprepfab OKMagol 053 Mustang Ex03.iMux Cloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001After Win201901.vmxMagiD:\ Cloud\ 1-VM\ 061-SFBBE01.i-x-Cloud.com\ 061 Mustang SFBBE01.iMux Mustang Cloud.com.vmxMall 004 Mustang OSprepaPay OKMagol 061 Mustco SFBBE01.iMux Cloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001 Mustang Win201901.vmxMagiD:\ Cloud\ 1-VM\ 111-ADFS01.i-x-Cloud.com\ 111Mub ADFS01.iMux Mustang Cloud.com.vmxMol 004 Mustco Sysprepaper OKMar 111Mustang ADFS01.iMuyMux Mustang Cloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001After Win201901.vmxMagiD:\ Cloud\ 1-VM\ 112-ADFSProxy01.i-x-Cloud.com\ 112Mul ADFSProxy01.iMushashi Cloud.com.vmxMagi 004 Mustang OSprefab OKMagi 112Mul ADFSProxy01.ilux Cloud.com
D:\ Cloud\ 1-VM\ 001-Win201901\ 001MuthWAP01901.vmxMagiD:\ Cloud\ 1-VM\ 121-WAP01.i-x-Cloud.com\ 121MustWAP01.iMusashi Cloud.com.vmxmxMagol 004 Mustang Sysprepklay OKMagi 121MustWAP01.iMuyMuzCloud.com
D:\ Cloud\ 1-VM\ 002-Win201902\ 002 Mustang Win201902.vmxMagiD:\ Cloud\ 1-VM\ 041-OOS01.i-x-Cloud.com\ 041 Mustang OOS01.iMux Mustang Cloud.com.vmx Mae 004 Mustang Syspreparelle OKMed 041MuoOS01.iMux Mustang Cloud.com
D:\ Cloud\ 1-VM\ 002-Win201902\ 002 Mustang Win201902.vmxMagiD:\ Cloud\ 1-VM\ 071-SFBFE01.i-x-Cloud.com\ 071 Mustang SFBFE01.iMux Mustang Cloud.com.vmx memoir 004 Mustang Syspreppy OKMagol 071 Mustco SFBFE01.iMux Cloud.com
D:\ Cloud\ 1-VM\ 002-Win201902\ 002After Win201902.vmxMagiD:\ Cloud\ 1-VM\ 081-SFBEdge01.i-x-Cloud.com\ 081 Mustang SFBEdge01.iMux Mustang Cloud.com.vmx Maxwell 004 Mustang Syspreparelle OKMagi 081 Mustco SFBEdge01.iMux Cloud.com
D:\ Cloud\ 1-VM\ 002-Win201902\ 002 Mustang Win201902.vmxMagiD:\ Cloud\ 1-VM\ 091-SP01.i-x-Cloud.com\ 091Musco SP01.iMuthCloud.com.vmxMagol 004Mustang Sysprepcourt OKMagol 091 Mustco SP01.iMuhashi Cloud.com.com
4. Execute script
Set-executionpolicy remotesigned
D:
Cd "D:\ Cloud\ 0-Tool\ Virtual Machine batch Management-For-VMware_Workstation_15\ 01-Virtual Machine batch creation"
.\ 1-VMware_Workstation_15-Batch-Clone-VM.ps1
Please enter a file name:.\ 1-VMware_Workstation_15-Batch-Clone-VM-16.csv
PS C:\ Users\ Administrator > set-executionpolicy remotesigned
Perform policy changes
Execution policies can help you prevent the execution of untrusted scripts. Changing the enforcement policy may result in security risks, such as http://go.microsoft.com/fwlink/?LinkID=135170
Described in the about_Execution_Policies help topic in. Do you want to change the execution policy?
[y] Yes (Y) [A] all (A) [N] No (N) [L] all No (L) [S] pause (S) [?] Help (default is "N"): y
PS C:\ Users\ Administrator > cd "D:\ Cloud\ 0-Tool\ Virtual Machine batch Management-For-VMware_Workstation_15\ 01-Virtual Machine batch creation"
PS D:\ Cloud\ 0-Tool\ Virtual Machine bulk Management-For-VMware_Workstation_15\ 01-Virtual Machine batch creation >.\ 1-VMware_Workstation_15-Batch-Clone-VM.ps1
Please enter a file name:.\ 1-VMware_Workstation_15-Batch-Clone-VM-16.csv
5. Batch cloning-result
This article has been completed!
*
If you are a virtualization engineer, please continue to look down.
On the contrary: please stop!
*
"practical training for Virtualization Engineers"-A total of 12 video series, step-by-step teaching makes it easier for scholars to learn.
Part 1-Planning the effects of Server Virtualization experiments
Https://ke.qq.com/course/356355?tuin=c57e67b1
Part 2-configuring Server Virtualization Network
Https://ke.qq.com/course/356359?tuin=c57e67b1
Part 3-deploying Virtualized IT Infrastructur
Https://ke.qq.com/course/356383?tuin=c57e67b1
Part 4-Optical Fiber Storage and Optical Fiber Storage switch configuration
Https://ke.qq.com/course/356724?tuin=c57e67b1
Part 5-deploying VMware Server Virtualization
Https://ke.qq.com/course/356730?tuin=c57e67b1
Part 6-deploying Microsoft Server Virtualization
Https://ke.qq.com/course/356744?tuin=c57e67b1
Part 07-deploying Huawei Server Virtualization
Https://ke.qq.com/course/356746?tuin=c57e67b1
Part 8-deploying Citrix Server Virtualization
Https://ke.qq.com/course/356754?tuin=c57e67b1
Part 09-deploying Redhat oVirt Server Virtualization
Https://ke.qq.com/course/356756?tuin=c57e67b1
Part 10-deploying Proxmox VE 5.2 Server Virtualization
Https://ke.qq.com/course/356759?tuin=c57e67b1
Part 11-deployment of Super Fusion Sangfor aCloud 5.8.5
Https://ke.qq.com/course/356769?tuin=c57e67b1
Part 12-Real case-small Business Virtualization Project
Https://ke.qq.com/course/356773?tuin=c57e67b1
*
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.