Size value is too long when I grab snapshot size of a VM. It’s something like the screenshots below.
I got a request few weeks ago. Reporting virtual machines that powered off more than 3 days. I didn’t find out-of-box report in vROps can do that. I had to create customized one. Following is how I did.
If you are multi-language IT Pro you may want to show articles in multiple languages just like me. I use Polylang in my blog to switch English and Chinese version. I used to add “Language Switcher” tag in my articles. It’s manual process that I had to remember the tag in somewhere, copy and past it to articles when I was writing. It’s frustration to repeat it in every article. Another problem was I have to add “Read More” tag in each article before I add “Language Switcher” tag. That’s because each post shows a switcher in home page if I don’t do that. It confuses Polylang which URL each article should goes. I want to find a perfect way to fix this problem! Here we go…
I just wrote a new post to show you how to create customized report of snapshot older than X days.
There are several ways to reporting snapshots. You can use PowerCLI, VRTools, or even vSphere Client itself. Today I will show you how to reporting by vRealize Operations Manager (vROps) 6.x. The benefit of vROps reports is you can schedule it by sending email with PDF & CSV reports. I found a post discuss how to reports by vROps. But it requests modify policy, it may impacts global calculation. What if your teams request different criteria for reports?
HPE SPP2016.04 is released. I usually test April version since it’s always stable than October or other earlier version.
HPE SPP2016.04 刚刚发布。我一般都测试4月份的版本，因为相对于10月份或者更早的版本要稳定一些。
I want to try make a remote control car by Raspberry Pi. The first question is how to power a portable Raspberry Pi? There are lot of solutions in internet. I want to find a simple, cheap and long battery life solution. Some articles introduced power bank but it overs $100 and only provides 5v output. I need some thing can provide not only 5v power for Raspberry Pi, but also more than 7v for L298N.
Cisco UCS blade system is the best blade system I used so far. Whatever the hardware, software or support is perfect. I recommend leverage the system for primary system of virtualization. UCS blade system architecture is different with HP. I feel it more likes a network system. Fabric Interconnect (FI) modules exchange data between uplinks and internal components. IOMs on each chassis controls data routing. Architecture is complicate, but it’s powerful to manage large datacenter. Talking about large datacenter, you may have hundred chassis or blades. Data goes through FIs, IOMs and blades, you could see issues on any layer. It’s hard to find out where exactly the problem is. UCS Manager provides statistics for ports just like how Cisco does on network switches. You can show statistics of a particular port. But it doesn’t tell you when and which layer it happened. I tested Cisco UCS adapter for vRealize Operation Manager before I reviewed NetApp adapter for vRealize Operation Manager. It’s developed by same company Blue Medora. I’d like to introduce few of this product, it’s just my personal review.
思科UCS刀片系列是我至今用过最好的刀片系统。无论是硬件、软件还是技术支持都堪称完美。个人推荐在大型虚拟化机房里把思科UCS作为主要设备。思科UCS刀片系统的架构和惠普的完全不同，感觉更像是个网络设备。Fabric Interconnect (FI)模块负责上联口和内部各组件之间的数据交换、IOM负责各刀箱数据路由。架构看起来很复杂，但是在管理大型数据中心时非常强大。说到大型数据中心，比如有 上百个刀箱和刀片服务器，数据要经过FI、IOM、刀片等，问题可能发生在任何层面，大型虚拟化数据中心很难找到问题的根源。UCS Manager有提供类似思科网络交换机一样的计数器功能，可以显示每一个端口的计数情况，但是这个监控工具不会告诉你什么时间、在哪个层面发生了问题 。在测试NetApp存储性能监控组件之前我有幸测试了vRealize Operations Manager 6的Cisco UCS性能监控组件。该组建同样由Blue Medora开发。以下简单介绍一下，只是我的个人观点 。
NetApp released Virtual Storage Console (VSC) 6.1 for vCenter 6.0. The solution is only support vSphere Web Client now. I did some testing on my lab, faced a very special case.
NetApp发布了Virtual Storage Console (VSC) 6.1 对应 vCenter 6.0。这个产品现在只支持vSphere Web Client了。我在实验环境下做了一些测试，遇到一个非常特殊的案例。
Today I got a strange problem about share folder. Some virtual machines cannot access network share path. It gave me Unspecified Error 0x80004005 when I opened a share folder on explorer. It gave me The network path was not found 0x80070035 when I opened same share folder by clicking Start – Run.
今天遇到了一个很奇怪的问题。有些虚拟机无法访问网络共享文件夹。当用文件浏览器打开共享文件夹时会弹出Unspecified Error 0x80004005错误。如果在开始 – 运行 里打开相同的文件夹又会提示The network path was not found 0x80070035。
vRealize Operation Manager 6 （又叫vROps）是vCenter Operation Manager的全新版本，我从vCenter Operation Manager还是1.0时就开始使用了，很喜欢自我学习和动态阀值这两个功能。但是这款产品只能监控虚拟层面，如果可以监控存储层面就完美了。在比较大的vSphere环境中虚拟机是共享ESXi数据存储（datastore）的，如果少数虚拟机产生很高的IO，可能会影响到其他处于同一个存储上的虚拟机。想象一下，如果你有100个LUN跑在一个NetApp存储上，300个虚拟机在使用这100个LUN，某日用户说他们的虚拟机很慢，但是他们并没有跑什么应用，这时候就会比较难判断到底是哪儿出了问题，因为虚拟机可能共享同一个数据存储（datastore），数据存储存建于LUN上，LUN 可能来自某个聚合（Aggregate），并且多个LUN可能来自同一个物理磁盘。vCenter Operation Manager 在5.x时代有提供一款NetApp存储监控组件，但问题是很难把vSphere的数据存储（Datastore）和NetApp存储的设备关联起来。
vRealize Operation Manager 6 (aka vROps) is new generation of vCenter Operation Manager. I started to use vCenter Operation Manager since version 1.0. I like the idea of self-learning and dynamic threshold. But the product only monitors virtualization layer. It would be perfect if it’s able to monitor under layer storage. In large vSphere environment, virtual machines share IO capacity of datastores. If few virtual machines running high disk IO it may lead to other virtual machines get performance degrading in same storage. Think about you have 100 datastores come from a NetApp filer, and 300 virtual machines running on its. One user says their virtual machine is slow but no workload from applications end. It hard to say where the latency comes from because multiple virtual machines may share same datastore, multiple LUNs share same aggregate, and maybe same physical disks. vCenter Operation Manager provided NetApp Adapter for 5.x few years ago. But the problem was it’s too hard to associate storage objects with vSphere datastore objects.
vRealize Automation 7 (vRA 7)和vRA6比起来有很多增强和改进。网上有大量的文章介绍这方面以及安装方法。vRA7的初始设置和vRA6有很大不同。以下是我的一些经验，可以帮你快速搭建实验环境。
vRealize Automation 7 (vRA 7) has lot of enhancements and changes compare with vRA 6. There are plenty of introductions available in internet. The initial configuration is different with vRA 6. I’m going to share my experience. You can easily build up LAB or POC by following this post.
错误提示 “To view this page ensure that Adobe Flash Player version 11.5.0 or greater is installed. “。登陆框依旧可见，但是登陆后页面成空白状。
You may see that error message “To view this page ensure that Adobe Flash Player version 11.5.0 or greater is installed. ” when you open vSphere Web Client 6.0 on IE 11 on Windows 8.1. The login fields still visible, but the page go to blank after you login.
某日，vCenter Server突然无法搜索虚拟机了。在vSphere Client中搜索时会提示 Unable to connect to web services to execute query. Verify that the ‘VMware VirtualCenter Management Webservices’ service is running on https://vCenter_Server_FQDN:10443。没过几个小时用户就开始抱怨vSphere Web Client也出问题了，总是提示错误 Client is not authenticated to VMware Inventory Service – https://Inventory_Service_FQDN:10443。
Best practices to manage enterprise Active Directory is organizing servers by particular properties. For example, servers maybe put into different OU by role, business group or function…etc. Following is a vRO workflow sample to automate provisioning computers in proper OUs according to user choice in vRA Service Catalog. I’ll just give brief of each step in this article, so please make sure you understand both products before read this post.
当创建虚拟机的时候你可能需要将虚拟机根据不同的属性放入不同的OU中，比如根据角色、组、用户组等。在vRealize Automation Center (vRA)中可以很轻易地创建一个下拉菜单实现这类属性的选择，但是这类属性的值往往都以字符串的形式传递到vRO中，而vRO的活动目录工作流中并没有提供字符串转OU对象的功能。
When you put virtual machine to particular OU, you may refer to virtual machine properties, such as ‘server role’, ‘server group’ or ‘user group’…etc. It’s easy to set a drop-list in blueprint of vRealize Automation Center (vRA) to let users choose this kind of properties but hard to create a computer account in corresponded OU location in vRO. That’s because vRA passes most of values to vRO as strings, Active Directory workflows in vRO do not provide a way to convert string to OU.
One day, my vCenter Server suddenly lost search. It popped me “Unable to connect to web services to execute query. Verify that the ‘VMware VirtualCenter Management Webservices’ service is running on https://vCenter_Server_FQDN:10443” when I did object search on vSphere Client. Few hours later people starting complaint they got error on vSphere Web Client, it show “Client is not authenticated to VMware Inventory Service – https://Inventory_Service_FQDN:10443“.
今天在vRealize Operation Manager 6.0创建了几个super metric，主要用来计算ESXi主机的物理链路吞吐量。结果发现这些super metric只是出现在部分主机里。估计是有什么bug。快速解决的办法是重启一下vROps vApp。
Today I created few super metrics on vRealize Operation Manager 6.0 to calculate throughput of physical links on ESXi host. The super metrics just present to part of the selected hosts. I guess it’s some kind of minor bug. A reboot of vROps vApp can works around it. Just heads up.
I don’t know why VMware doesn’t allow hidden default dashboards in VMware design vRealize Operation Manager (vROps). They also states no solution in current version. I searched internet, only thing I found was a community post that someone wants to delete the dashboards, but no proper answer.
微软刚刚发布了Windows Server 2016的技术预览3。新版本中有很多增强，看起来微软的软件定义的数据中心正在赶上VMware。一个稳定的虚拟层是软件定义数据中心的前提，但这是微 软的软肋。你不得不不停地打各种补丁和重启服务器，甚至有些企业有定期的重启计划。微软在Windows Server 2008 的时候引入了核心模式并且在Windows Server 2012 R2中得到增强。但是Windows Server 2012 R2瞄准的是中小企业市场，我不认为他们会使用核心模式，因为复杂度要提升很多。
First of all, this article is nothing related to PowerCLI. You probably know how to set Path Selection Policy (PSP) by vSphere Client, but how you can set up 100 LUNs manually? We have some script can make your life easy.
You almost can do everything as long as vRealize Automation Center (aka vRA) and vRealize Orchestrator (aka vRO) are integrated. I think that’s the hard part if you are newbie like me. After reading lot of articles, I learned how it works. Following is my experience, please let me know if you see anything wrong.
It’s frustration to check RDM information, you have to check across all ESXi hosts to make sure configuration is aligned. I just figured out two line commands to get path selection policy (aka PSP).
Microsoft just released technical preview 3 of Windows Server 2016, it’s catching up VMware on SDDC. I can see a lot of enhancement in the new version. A stable hypervisor is prerequisite of SDDC but it’s weakness of Microsoft. You have to patch and reboot frequently, some organizations even have regular reboot schedules. Microsoft introduced core mode on Windows Server 2008, it much enhanced on Windows Server 2012 R2. But Windows Server 2012 R2 aims to SBM. I didn’t think SBM organizations really need that if you compare operation complexity of core mode with GUI.
ESXi 5.5 Update 2 is stable version, but I got PSOD on one UCS blade few days ago. It scared me since there was a big bug when I upgraded ESXi from 5.1 to 5.5 Update 1 last year(See detail ESXi 5.5 and Emulex OneConnect 10Gb NIC), it lead to dozen virtual machines crashed over and over again.I bet I’m gonna to die if it happens again. :-)
ESXi 5.5 Update 2 算得上比较稳定的版本了，但前几天遇到一台紫屏，差点儿吓尿了。半年前从ESXi 5.1升级到ESXi5.5 Update 1时候遇到个大BUG（详情见我的文章ESXi 5.5 and Emulex OneConnect 10Gb NIC），搞得几十台几十台机器挂，这次升级再来一次估计职业生涯就此结束了。
The title looks scared, is it? Actually I don’t want to talk about any problem of VMware product but just a feature.
I always treat virtual machine snapshots like a big risk. It caused several outages in our infrastructure. Please check out Best practices for virtual machine snapshots in the VMware to understand how it impacts production.
虚拟机快照对我来说绝对是个大威胁，已经在我的生产环境里发生过好几次由此引发的故障了。如果你要了解快照对生产环境的影响可以看看：Best practices for virtual machine snapshots in the VMware
Someone setup a non-secure wifi around my apartment, I never connected it till yesterday since I worried it’s may be a honeypot. I had some me time yesterday night, so I setup a virtual machine to connect the wifi.
I wrote a post about how to integrate PowerCLI with PowerShell manually. I rebuilt my computer few days ago, need to integrate PowerCLI again. I used to scripting by PowerGUI, but something always lead to PowerGUI lost menu, it frustrated me a long time. I cannot figured out what’s the root cause. So I wondered is it possible use PowerShell ISE instead of PowerGUI?
I just found an article show how to check alignment of Windows virtual machine and datastore.
刚找到一篇关于 如何查看Windows虚拟机和ESXi datastore是否和存储扇区一致 的文章。
vCenter Server 5.5 Update 2e contains fix of Storage Monitor Service. It’s also a stable version since 5.5 Update 1. I got a problem when I upgraded my development vCenter Server last weekend. I’d like to share the solution since VMware doesn’t document that problem. (Maybe I didn’t find it. :-)) It’s kind tricky.
vCenter Server 5.5 Update 2e包含SMS服务的bug修复，它也是当前比较稳定的版本。上周我在升级vCenter Server到这个版本时遇到了一个问题。此问题不是那么容易修复因为VMware的KB并没有提供解决方案，我在这里把我的方法共享出来。