<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Vmvare on Cylon&#39;s Collection</title>
    <link>https://www.161616.top/tags/vmvare/</link>
    <description>Recent content in Vmvare on Cylon&#39;s Collection</description>
    <generator>Hugo -- 0.125.7</generator>
    <language>zh</language>
    <lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.161616.top/tags/vmvare/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Linux VMware Tools详解</title>
      <link>https://www.161616.top/vmvare-tool-explain/</link>
      <pubDate>Wed, 17 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/vmvare-tool-explain/</guid>
      <description>VMware Tools描述 VMware Tools 中包含一系列服务和模块，可在 VMware 产品中实现多种功能，从而使用户能够更好地管理客户机操作系统，以及与客户机系统进行无缝交互。
在Linux虚拟机中安装VMware Tools 安装前准备
虚拟机必须打开cd/dvd驱动器，否则安装VMware Tools的选项无法选择 VMware Tools安装程序是使用Perl编写的，必须确认操作系统中安装Perl。 安装步骤
在虚拟机菜单中右键单击虚拟机，然后单击客户机 &amp;gt; 安装/升级 VMware Tools。
要创建一个挂载点 mkdir /mnt/cdrom
要装载 CDROM，mount /dev/cdrom /mnt/cdrom
要将安装文件文件复制到临时目录：cp /mnt/cdrom/VMwareTools*.tar.gz /tmp/；其中，* 部分是 VMware Tools 软件包的版本号，故以替代*。
解压文件：cd /tmp &amp;amp;&amp;amp; tar -zxvf VMwareTools*.tar.gz
运行PERL脚本以安装VMware Tools：cd vmware-tools-distrib &amp;amp;&amp;amp; ./vmware-install.pl，若要求选择，一路回车即可。
安装完成后清理 rm -fr {/tmp/VMwareTools*,/tmp/vmware-tools-distrib} ; yum remove perl -y，如不需要perl可以卸载
命令集合
bash 1 2 3 4 5 mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom cp /mnt/cdrom/VMwareTools*.tar.gz /tmp/ cd /tmp &amp;amp;&amp;amp; tar -xf VMwareTools*.</description>
    </item>
    <item>
      <title>Powershell阻止确认</title>
      <link>https://www.161616.top/powershell-confirm/</link>
      <pubDate>Sun, 19 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/powershell-confirm/</guid>
      <description>要阻止弹出确认提示，需要设置-Confirm为false,
text 1 new-VM -Name $hostname -Template $template -VMHost 10.11.31.5 -OSCustomizationspec TestLinux -Confirm:$false 获得当前确认级别
text 1 $ConfirmPreference 查看确认级别（$ConfirmPreference）支持的选项，类型为枚举
text 1 [ENUM]::GetNames($ConfirmPreference.GetType()) 设置确认级别
text 1 $ConfirmPreference=&amp;#34;None&amp;#34; </description>
    </item>
    <item>
      <title>centos安装powershell和powercli</title>
      <link>https://www.161616.top/centos-install-powershellpowercli/</link>
      <pubDate>Wed, 02 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/centos-install-powershellpowercli/</guid>
      <description>poershell github
本次采用github下载对应的rpm进行安装
windows下安装方法
离线安装包下载地址
text 1 yum install -y https://github.com/PowerShell/PowerShell/releases/download/v7.0.0/powershell-lts-7.0.0-1.rhel.7.x86_64.rpm 安装完成后再终端输入以下命令 pwsh。在一个PowerShell会话，您可以通过运行以下命令来检查的PowerShell的版本。
text 1 2 3 4 5 6 7 PS /root&amp;gt; $PSVersionTable.PSVersion Major Minor Patch PreReleaseLabel BuildLabel ----- ----- ----- --------------- ---------- 7 0 0 Set-PSRepository -Name &amp;#34;PSGallery&amp;#34; -InstallationPolicy &amp;#34;Trusted&amp;#34; 接下来，运行以下命令来安装VMware.PowerCLI模块。这将发现和在PSGallery安装最新版本的模块
text 1 Find-Module &amp;#34;VMware.PowerCLI&amp;#34; | Install-Module -Scope &amp;#34;CurrentUser&amp;#34; -AllowClobber 完成后，通过运行以下命令进行检查，以确保该模块安装。
text 1 2 3 4 5 6 7 8 9 10 11 12 13 Get-Module &amp;#34;VMware.PowerCLI&amp;#34; -ListAvailable | FT -Autosize PS /root&amp;gt; Get-Module &amp;#34;VMware.</description>
    </item>
    <item>
      <title>powercli The SSL connection could not be established, see inner exception. 问题解决</title>
      <link>https://www.161616.top/powercli-the-ssl-connection-could-not-be-established-see-inner-exception/</link>
      <pubDate>Wed, 02 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/powercli-the-ssl-connection-could-not-be-established-see-inner-exception/</guid>
      <description> text 1 Connect-VIServer -Server 这里是“SSL连接不能建立&amp;hellip;&amp;hellip;”这实际上意味着你没有一个有效的证书。如果你想连接到vCenter没有一个有效的证书，您必须允许可以改变你的vCenter证书到受信任的一个，这是正确的解决方案，也可以忽略无效的证书，以规避所有的安全性，但使它现在的工作。
忽略无效证书
text 1 Set-PowerCLIConfiguration -InvalidCertificateAction:ignore 再次登陆可正常登陆 </description>
    </item>
    <item>
      <title>powercli常用命令</title>
      <link>https://www.161616.top/powercli-vsphere-command/</link>
      <pubDate>Wed, 02 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/powercli-vsphere-command/</guid>
      <description>pwsh 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 Connect-VIServer -Server 10.11.17.20 -User administrator@vsphere.local -Password DC02@123456 Get-OSCustomizationSpec linux1|Get-OSCustomizationNicMapping|Set-OSCustomizationNicMapping -IpMode UseStaticIP -SubnetMask 255.255.255.0 -DefaultGateway 10.10.12.254 -IpAddress 10.10.12.114 new-VM -Name zy-ntw-prod-dbvm-pushredis01 -Template template-centos76 -VMHost 10.10.12.14 -OSCustomizationspec linux1 Get-VM -name zy-ntw-prod-dbvm-pushredis01|set-VM -MemoryGB 96 -NumCPU 16 get-vm zy-ntw-prod-dbvm-pushredis01|New-HardDisk -CapacityGB 100 New-Snapshot -Name &amp;#34;20200622&amp;#34; Connect-VIServer -Server 10.</description>
    </item>
    <item>
      <title>powercli创建虚拟机步骤及批量创建脚本</title>
      <link>https://www.161616.top/create-vm-with-powercli/</link>
      <pubDate>Wed, 02 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/create-vm-with-powercli/</guid>
      <description>文档中心 https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.powercli.cmdletref.doc%2FSet-OSCustomizationSpec.html https://blogs.vmware.com/PowerCLI/2014/05/working-customization-specifications-powercli-part-1.html http://powershelldistrict.com/powercli-oscustomizationspec/ https://powercli-core.readthedocs.io/en/latest/cmd_new.html#new-oscustomizationspec 官方文档中心
添加一块新硬盘
text 1 get-vm {vmname}|New-HardDisk -CapacityGB 300 批量设置硬件
text 1 Get-VM -name {hostname}*|set-VM -MemoryGB 4 -NumCPU 2 基于模板创建虚拟机
text 1 new-VM -Name {hostname} -Template template-centos76 -VMHost 10.112.131.5 -OSCustomizationspec TestLinux 设置规范模板
text 1 2 3 4 5 6 7 8 9 10 11 Get-OSCustomizationSpec TestLinux|Get-OSCustomizationNicMapping|Set-OSCustomizationNicMapping \ -IpMode UseStaticIP \ -SubnetMask 255.255.255.0 \ -DefaultGateway 10.11.121.254 \ -IpAddress 10.11.121.203 Get-OSCustomizationSpec TestLinux|Get-OSCustomizationNicMapping|Set-OSCustomizationNicMapping \ -IpMode UseStaticIP \ -SubnetMask 255.</description>
    </item>
  </channel>
</rss>
