How to batch extend VM disk
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to batch extend VM disk相关的知识,希望对你有一定的参考价值。
Add-PSSnapin vmWARE.VimAutomation.Core
$vc="vCenterHostName"
connect-viserver $vc
$VMinfo = get-content "c:\VMName.csv"
foreach ($VM in $VMinfo){
Get-HardDisk -vm $VM | where {$_.Name -eq "Hard Disk 1"} |Set-HardDisk -CapacityGB 60 -Confirm:$false
}
根据实际情况更改VC名字和Hard disk number and size.
以上是关于How to batch extend VM disk的主要内容,如果未能解决你的问题,请参考以下文章
How to enable C development in a Windows 10 development environment VM
解决git未指定冲突处理方法的问题 - hint: Pulling without specifying how to reconcile divergent branches ishint: di(
How to Install VMware Tools on RHEL 7/CentOS 7
Virtual Network - How to use it in a guest
How To Install Proxmox Nested on VMware ESXi (Full Support OpenVZ & KVM)