Skip to main content

Posts

Showing posts from 2014

Run multiple WordPress website by different user on Nginx

There are lot of articles tell how to install and setup Nginx + PHP-FPM + MYSQL. But few talk about how to secure WordPress website on the infrastructure. If you are a Windows guy, you perhaps familiar with ACL, it's similar in Linux world. A user or group has 3 essential permission: read, write or execute. Read this article to understanding how permission works on Linux.

Slow network performance on a virtual machine

It's been a while since last technical post. I was pretty busy on preparation of holiday maintenance plan as well as few problems in virtual environment. There was one I'd like to share as it's a sample to show how to 'touch' hardware layer from virtual layer. :-)

Public cloud and web hosting provider Krypt reviews

My blog finally backed online!! Due to a updating issue on PhotoVPS infrastructure, my virtual machine ran into unstable since Monday. I didn't notice it till Wednesday. The virtual  machine got intermittently network connectivity issue, PhotoVPS engineers can only temporarily fix it.  I was struggled by the situation, finally I decided order a new virtual machine on Krypt . Krypt  is ideally place for me since they are VMware certified partner, they helps VMware improves  vCloud products and develops in public cloud market. The network performance is also the greatest from North American to China in US service providers, they have dedicate bandwidth to China Telecom.

vSphere Client time out to login vCenter and domain user cannot login vcops

You probably will see similar issue below if you upgrade vCenter Server from 5.x to 5.5. vSphere Client show following error when login to vCenter Server by domain account. The vSphere Client could not connect to vCenter server. The server vCenter server took too long to respond. (The command has timed out as the remote server is taking too long to respond.)

My blog was award to vExpert 2014

Few days ago, VMware sent an email notification to me that my blog was award to vExpert 2014. I would thanks Sean's reference and suggestion. I'm very glad to hear that news! It encourage me continue contribute to virtualization community, share my experience with people. Here is the link lists my name and Twitter account. http://blogs.vmware.com/vmtn/2014/10/vexpert-2014-q3-announcement.html . 几天前,VMware通知我获得了本年度vExpert的殊荣。我非常高兴我可以获得这项荣誉。非常感谢Sean的推荐和给我的建议,这项荣誉是我对虚拟化社区做出贡献的鼓励,我会继续将我的经验和大家分享!你可以 点击这里 查看到我的名字和我的Twitter帐号。

Blue Screen with Bug Check 50 on ESXi 5.x

Some critical VMs got blue screen in last few weeks. After working with OS and hardware vendor, we figured out the root cause eventually. It's a CPU problem related to Intel v2 CPU of E3, E5 and E7 families. The detail information is documented in VMware KB Windows 2008 R2 and Solaris 10 64-bit virtual machines blue screen or kernel panic when running on ESXi 5.x with an Intel E5 v2 series processor .

How to get HP ProLiant blade server and enclosure information

An enterprise infrastructure administrator needs to run plenty of reports for firmware, software version, or any kind of infrastructure data in their day-to-day operation. Some vendors provide powerful tools to pull out data from their solution, but what if you don't have such tools? It is pain to get data manually especially for large number of servers. I'm going to share my trick to you. I'll use HP ProLiant blade system for example, as it's very common case in enterprise datacenter.

如何删除Raspberry Pi上安装的软件

做为一位 Raspberry Pi (树莓派)的新手,面对这个庞大的系统,真心不知道从何下手。在网上搜各种有关Raspberry Pi的信息,发现只有英文文章能比较详尽的介绍怎么使用它,中文的信息要么是从英文翻译过来,不知所云;要么蜻蜓点水一般感觉只有高高手才能看得懂。 我会尝试把我这个新手学到的东西记录在我的博客里,希望对Raspberry Pi中文社区有所贡献。 感觉自己有些技术洁癖,不喜欢系统上被预装各种软件,比如当我打入python时,会提示我有2.7,3.0,3.2三个版本存在于我的系统里!所以我很好奇我的Raspberry Pi上到底已经内置了哪些软件,怎么删除这些不需要的软件。其实这个问题已经困扰我很久了,由于一直使用Windows,对于添加删除程序的概念一直是 规范、整洁、方便。没想到Linux的软件是如此的自由,以至于我根本不知道哪些应该删除,哪些不应该。 幸好现在的 Debian 发行版本已经内置了很多好的工具帮我解决这个问题!我的Raspberry Pi上安装的是官方推荐的 raspbian ,这是Debian的衍生版本,几乎所有的命令都和Debian下一致。你可以在Raspberry Pi的 下载页面 找到这款系统,当然你还可以选择很多其他的系统。 OK,言归正传,说到删除,我们需要先知道系统里都安装了哪些软件,下面这个命令可以检索出系统内的所有软件。 dpkg-query -l | grep 软件名字 dpkg-query 命令 是用于检索安装包的。 -l 参数 表示列出所有的包。 | 管道标识符 表示传递列出的所有包到 管道标识符后边的命令中。 grep 命令 是用于过滤 软件名字 参数 表示你要找的安装包名字 举例, 列出所有名字里含python的安装包: dpkg-query -l | grep python 用上边的方法列出你要找的包后,下一步我需要删除不需要的软件了。 apt-get --purge remove 软件名字 apt-get 命令 是操作软件的命令 --purge 参数 表示将软件相关的配置文件一并删除 remove 参数 表示删除软件 软件名字 参数 表示你要删除的软件,也可以是多个名字,用逗号隔开 举例,删除chromium和所有相关的软件: apt-get --purge remove chro

Upgrade raspberry pi on fly

This article is for the new users whom just like me! :-) I got a Raspberry Pi about half years ago, I'm pretty new in Linux world, so I rebuilt my pi over and over again whenever there was a new release...it takes lot of time to do it. Thanks Safari(a online library for IT guys). Today I found a new way to do it on fly! Just run following two commands it will upgrade system automatically. #apt-get update This command line updates the latest repository information. #apt-get upgrade It's upgrade all older packages to latest version. It may takes long time to complete upgrading, you'd better make sure the SSH alive during that time.

How to Delete a Pending Host from SCVMM 2012 R2

A Hyper-V host shows Pending status under VMs and Services section, the host invisible under Fabric section. You may experience following symptoms when you re-add the Hyper-V host to SCVMM 2012 R2. There were no computers discovered based on your inputs. Please verify the following: Your Virtual Machine Manager Server service account has at least read access to the Active Directory domain you requested to discover. Your Virtual Machine Manager Server has access to the computer in the discovery scope. The servers you specified are powered on and running. You specified valid credentials to access the servers. The user account that you specified has Administrator privileges on the Windows servers to be discovered. The servers you specified are already managed by Virtual Machine Manager. You may see following error when you try to delete the Hyper-V host from SCVMM 2012 R2. Error (2606) Unable to perform the job because one or more of the selected objects are locked by anoth

PortChannel does not work on Cisco UCS Fabric Interconnect

Whatever  you configure on MDS, whatever you configure on Cisco UCS FIs, whatever you do for port channel on both side, the Cisco UCS uplink ports always down with error message Initilize failed , or  Error disabled . Congratulation! your device hit MDS firmware bug...https://tools.cisco.com/bugsearch/bug/CSCtr01652/?reffering_site=dumpcr.  

Domain account locked out on vCenter Server

That's a very small problem but it struggles you if you are enterprise datacenter administrator. As you may know the best practices to run application is by service account . But sometimes  you may testing applications by your own domain account and forget remove it. Few days ago, my domain account locked out on domain controller. The audit report indicated it locked out by vCenter Server every 5 seconds. Then I logged in the vCenter Server, checked out  Task Scheduler ,  Services ,  Task Manager ...etc. Nothing was running under my domain account. I stopped applications one by one on the vCenter Server and related plugin services. No help, I felt so frustrated!!! Here is how I figured it out eventually. Download TCPView from Microsoft website. Run it on the vCenter Server. Sort by  Local  Address . See which foreign address is connecting the vCenter Server. After the steps above I finally figured out that root cause was my VMware View LAB VM tried to authenticate on vCente

Extremely slow when run PowerShell script by scheduled taks

I like automition/programming as much as I like Windows, my first offical training in University was VB, then I learned PHP and HTML after graduated. I can't believe my first PHP program was welcomed in internel. But I stopped develop the skill. I got lot of special request for virtual environment. Some people want to monitor snapshot, some want to check space status, and some request to create backup for VM...etc. Regular operation cannot satisify the requests, most of the requests are time consuming operation. Automation can save my ass. :-) You may know PowerCLI - VMware automation product for PowerShell. If you put PowerCLI scripts as scheduled task, you will be able to do any workflow you want by schedule. But there is a problem stuggled me for a long time. The scheduled PowerCLI script is instable, sometimes script ran very well, sometimes script ran extremely slow, sometimes script hung, or sometimes script unexpected stopped. In troubelshooting I noticed it need a long wait

$array.count does not show anything in PowerCLI

I developed a script to take snapshot on VM and delete older snapshot regularly. I  used  variable $snapshots to receive data from Get-Snapshot command, then determine how many existing snapshots according to return of  $snapshots.count . Somehow the script always ran incorrect behavior. When I deep looked into $snapshots , I found a interesting things. Computer A, $snapshots.count return nothing if no, or one snapshot received. Computer B, $snapshots.count returned 0 if no, or returned 1 if one snapshots received. Then I checked out  $PSVersionTable , found computer A powershell version is 2.0, B is 3.0, looks like this is a bug in 2.0. The issue got fixed after upgrade to 3.0, one more benefit is I got performance improve to load PowerCLI components after upgrading. You could install  Widnows Management Framework 3.0 to upgrade PowerShell. I tested it on PowerCLI 5.5 Update1.

Device or Resource Busy

You may read my post  How to find which ESXi 5.1 host lock the VM , it's a solution to figure out which host lock down a file. But sometimes you may face similar problem but different solution. You are able to browse the file by CLI or GUI, but cannot delete by either way. It returns you  device or resource busy or similar error messages. You could try following command to delete the file/folders: rm [File or folder name] -rf

Virtual Machine Disappeared on vCenter Inventory

Just googled this issue, some of people got similar problem, following was my problem and solution, hope it's useful for you. Virtual machine maybe lost on vCenter Server inventory for some reason, it's also disappeared on ESXi inventory when you connect to the individual host directly. You are able to find the VM process by  esxcli vm process list , but not able to get it by  vim-cmd vmsvc/getallvms . If you try load the VM manually by commeand vim-cmd vmsvc/reload [vmid] , it back you error: (vim.fault.NotFound) { dynamicType = <unset>, faultCause = (vmodl.MethodFault) null, msg = "Unable to find a VM corresponding to "vmid"", } You can also find the VM process by  esxtop command. My solution was remove the ESXi host from vCenter Server, then restart management services, and then browse the VM folder, add the VM back to inventory, then join the host back to vCenter Server.  

How to get HBA WWPN of ESXi hosts

It's busy month, I haven't update my blog since I back from Phuket with my wife. I'm running into multiple projects, a little overload. Just a quick share, my storage team ask me provide WWPN of all hosts to do a health check. it's nightmare to pull out the data from vSphere client or web client. Just found a way to get it. Get-VMHost -Location | Get-VMHostHBA -type fibrechannel | select VMHost,Device,@{N="WWPN";E={"{0:X}" -f $_.PortWorldWideName}} Especially "{0:X}" -f $_.PortWorldWideName} {0:X} is format, check out here   to find more. -f is kind of pipeline. $_.PortWorldWideName is the value you want to convert.  

Receive Side Scaling on UCS Blades

To implement enterprise application like SAP, Oracle or SQL on UCS virtualization environment. Default setting of UCS blades may not suitable for the application. We always expect highest performance by optimize hardware and ESXi. In my UCS training session, I noticed one "hidden" parameter may helpful for performance. Receive Side Scaling – So called RSS, it's a feature that allows you to utilize multiple CPUs and multiple cores per CPU to process the receiving network load. Without RSS, all of the receive network traffic is processed by one CPU and by only one core of the CPU. Essentially, RSS distributes receiving network load to all of the CPUs and their cores. The parameter is an option in BIOS, but it's not under BIOS policy in UCS Manager. You should go to Servers tab, extend Policies node, and check an Eth Adapter Policy under Adapter Policy node, Receive Side Scaling (RSS) is available in Options section of right frame. Blade should be rebooted to lever

How to Install Proper Drivers for 3rd Party Network Adapter on ESXi 5.x

Most company use HP, Cisco, IBM network adapter, most of their network adapter drivers include in ESXi 5.x images. But what if your network adapter is other vender? I’m going to show you how to identify and install proper drivers for 3 rd party network adapter on ESXi 5.x. My ESX 4.0 server (HP DL380G7) was working properly for VDI environment. I upgraded the hosts to ESXi 5.x to leverage by new features, but unfortunately 3 rd party network adapter didn’t work after installed ESXi 5.1. vmnic0, 1, 2, 3 belong to embedded HP NIC, vmnic4, 5, 6, 7 disappeared in vSphere Client. I’m going to use vmnic4 for example. Identify network adapter model The additional NICs model shows as ServerEngine Corp. OneConnect 10Gb NIC on vSphere Client. It doesn’t give me more information. The two NICs show Unknown PCI device in BIOS, it indicates not a HP NIC. Search keyword vmnic4 in vmkernel log by command less /var/log/vmkernel | grep vmnic4 , you will see ESXi cannot load the driver. Run command

Generic Trust Failure when install SCVMM 2012 SP1

Today I got a special problem I want to share with you. I tried to install SCVMM 2012 SP1 console on my Windows 7 VM to do some troubleshooting, but I get error message "Generic Trust Failure" when I click Install button in SCVMM 2012 SP1 installer, it mentioned something related to Microsoft Visual C++ 2010 x86 Redistributable. I tried to run Microsoft Visual C++ 2010 x86 Redistributable installer from image folder directly, it show me exactly same error message. Nothing I found on google, but most posts pointed to signature. After deep dive into the problem, I figured out a solution: Go to  PrerequisitesVCRedisti386 folder of SCVMM 2012 SP1 image. Copy  vcredist_x86.exe to local disk. Extract the executable file to a folder. (You have to install WinZip or something else to do that) Enter the extracted folder, right click Setup.exe . Select Properties . Go to Digital Signatures tab. Highlight the certification and click Details . Click View Certification

HP Blade Firmware Upgrading Best Practices for ESXi Host

I discussed this topic with a group, some people think firmware upgrade is not required if ESXi host working fine, that's adapted to small business, but I think enterprise can do more better. My ESXi running on HP blades, I'll use that platform for example to share my thought and experience. Why you need a plan for HP blade firmware upgrading of ESXi host? First voice around my head is " We suggest you upgrade firmware to latest version". You may experience similar like me when you call HP for helping, that's look like HP official statement whenever we suspect a problem related to hardware. ;-) You know how hard to upgrade bulk of ESXi hosts to troubleshooting a network/storage problem, especially your hosts are running on older version, it may be extremely time consuming. So keep firmware up to date will save troubleshooting time, also make your life easy. :-) Even no issue on hardware, you may still need to upgrade software, it's rarely but some maybe confl

How to configure nested Hyper-V VM on VMware Workstation

First, I would like to recommend DELL M4800 for small home lab, I spent lot of time to looking for a solution for my lab, I need some hardware low noise, low weight, and it is better portable. I checked out HP mini server, Apple MAC mini, Mac book pro...etc. They are nice products to show best design of IT industry, but no one perfect. Finally I choose DELL M4800. The reason is RAM can be upgraded to 32GB. 3 SSD hard disks is supported, you can install one native SSD, one in CD-ROM slot, another msata SSD in WAP slot. SSD disk is must have for IT LAB, it can provide you more than 10K IOPS without significant performance degrade. Okay, back to topic...if you want to testing Windows Server 2012 R2 Hyper-V on lab, you probably prefer install it on a VM of VMware Workstation. You have to follow up proper steps to make sure the Hyper-V functionally. After you create Hyper-V VM: Keep VM power off status. Go to Settings of VM. Highlight Processors . Select Virtualize Intel VT-x/EPT or

Error 12711 VMM cannot complete the WMI operation on the server because of an error

Finally I implemented Hyper-V 2012 and SCVMM 2012 R2 on my lab, unfortunately FreeNAS does not supports SCSI-3 persistent reservation of Windows Server 2012 R2, you can refer bug #4003 . It lead to my iSCSI storage cannot be brought online in Failover Cluster. I have to find out alternative. I decided to use Windows Server File Server instead of iSCSI eventually. There are bunch of benefit to use that to leverage new SMB 3.0 technology. Key is it supports high available. Followed the guide I successful created first shares for Hyper-V cluster, I created a testing VM but cannot power it on. It show me: Error (12711) VMM cannot complete the WMI operation on the server (dcahyv02.contoso.com) because of an error: [MSCluster_Resource.Name=&quot;SCVMM test (1)&quot;] The cluster resource could not be brought online by the resource monitor. The cluster resource could not be brought online by the resource monitor (0x139A) Recommended Action Resolve the issue and then try the operation

Windows cannot be installed on drive 0 partition 1

I think Windows Server 2012 will be next popular server OS just like Windows Server 2008, it's also a nice hypervisor OS on virtual world. How do you think? Installation is first step to experience the wonderful OS, you may see some strange problem during that step just like me. Today's topic occurred long time ago, just want to share with people who may face similar issue like me. That's HP blade system with local disk attached, you may see similar problem on other vendor. When you select disk to install OS, installer may says Windows can't be installed on drive 0 partition 1 , or Windows cannot be installed on this disk. This computer's hardware may not support booting to this disk. Ensure that the disk's controllers is enabled in the computer's BIOS menu . That's because boot volume is not set on array controller. For example by HP servers, you have to reboot and press F8 after BIOS checks array controller to enter array controller management interfac

Google AdSense available on my blog

About one month ago, I requested Google AdSense for my blog, I almost forgot that request due to the busy life. My friend Saju told me his IT blog has Google AdSense, that's reminded me I have a pending AdSense. It was blank after I set it up in my blog, Today morning it's finally show ADs...that's not a relative of money, it's just part of IT blog. lol Still in memory, my first Google AdSense check was 10 years ago, I still remember it's $200, my friend and me was so exciting when we known the check arrived China, that's first time I made USD, probably first time saw how USD looks like. :-) Google AdSense...it brought back memories, it's tough time for me in my life, but I still want to thanks my family, my friends and everyone who supported me. 时过境迁,那时候的事情在我的心里不再是仇恨和痛苦,这是我一生中的一小段经历、经验和做为一个男人应有的挫折。希望未来会更好。

Nodes in the ESXi cluster may report corruption after reboot host or attach device

VCE just released a new KB vce2563 to description the issue. If your ESXi 5.x hosts is connected on VMAX running Enginuity 5876.159.102 and later, you may see this particular issue after reboot ESXi host or attach storage if you enabled block delete feature of VAAI. To check the option status you can run following command on PowerCLI:  Get-VMHost -Location cluster name | Get-VMHostAdvancedConfiguration -Name VMFS3.EnableBlockDelete

Error 2931 The connection to the VMM agent on the virtualization server was lost

Windows Server 2012, the biggest competitor of VMware vSphere. There are adequate reason to use Hyper-V 2012 instead of vSphere 5.x, but it's still very hard to for newbie, we spend more than 30 hours to try figure out how to create cluster on SCVMM 2012 SP1, the software is easy to install, but hard to configure. I saw "failed" everywhere, it's not a mature product in my view. We installed Windows Server 2012 data center edition on HP BL460, storage is NetApp FAS2240 (Maybe wrong, I'm not storage guy). We got following error message when we created Hyper-V Cluster on SCVMM2012 SP1. Error (2931) VMM is unable to complete the request. The connection to the VMM agent on the virtualization server (xxx) was lost. Unknown error (0x80338029) Recommended Action Ensure that the Windows Remote Management (WS-Management) service and the VMM agent are installed and running and that a firewall is not blocking HTTPS traffic. This can also happen due to DNS issues. Try and see

How to Add VMware PowerCLI to Standard PowerShell Enviroenment

1. create a file with name "Profile.ps1" under %windir%system32WindowsPowerShellv1.0profile.ps1 2. Add following content to the file. # Adds the base cmdlets Add-PSSnapin VMware.VimAutomation.Core # Add the following if you want to do things with Update Manager #Add-PSSnapin VMware.VumAutomation # This script adds some helper functions and sets the appearance. You can pick and choose parts of this file for a fully custom appearance. . "C:Program FilesVMwareInfrastructurevSphere PowerCLIScriptsInitialize-PowerCLIEnvironment.ps1" You need administrator permission to create file on the system32 location.

How to configure vSAN on nested ESXi hosts with SSD hard disk

There are lot of articles introduce vSAN feature and steps by steps guide. I referred William Lam's article & Duncan's article  to configure vSAN on my lab, I was true I exactly followed his steps to configure the vSAN, but I can not saw anything under disk field under Disk Management. Please note: Following steps does not work for ESXi 6.0 RC on VMware Workstation 10. You have to set scsix:y.virtualssd = 0 in vmx file to mark the disk as non-SSD. Please refer to William's article for detail. After looked into it deeper, I found something interesting: esxcli storage core device list I got that output: mpx.vmhba1:C0:T1:L0 Display Name: Local VMware, Disk (mpx.vmhba1:C0:T1:L0) Has Settable Display Name: false Size: 5120 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0 Vendor: VMware, Model: VMware Virtual S Revision: 1.0 SCSI Level: 2 Is Pseudo: false Status: on Is RDM Capable: false Is Local: true Is Removable: false I

How to setup NTP services by PowerCLI

NTP service is very important for troubleshooting, vmkernel log timestamp is incorrect if your NTP service is not running and ESXi system time is wrong. It can also impact to VM system time even you disable time synchronization on VMware Tools since VM still need to sync time with ESXi after awake from suspended status, finish vMotion, or revert from snapshot. I know it’s simple to configure NTP services on single how, what if you want to configure NTP service on massed hosts? Basically we have 3 steps to make sure NTP service working properly: Configure NTP server IP address. Bring up NTP service. Set services startup along with ESXi system. Let’s try PowerCLI: Get-VMHOST -Location Cluster Name | Add-VMHostNtpServer -NtpServer " NTP server address " Get-VMHOST -Location Cluster Name | Get-VMHostService| Where-Object {$_.key -eq "ntpd"} | Start-VMHostService Get-VMHOST -Location Cluster Name | Get-VMHostService| Where-Object {$_.key -eq "ntpd"} |

Travel to Chengdu again

It’s about 5 years since last time I visited Chengdu. A beautiful city, people say “you gonna love it, and wanna live there if you come to Chengdu”. People looks like live very relax in Chengdu, they drink tea in park, play Mahjong and enjoy professional people scrape their ears (most like ears massage). I was being Chengdu for 3 month, so I’m kind familiar with this city. All memory is 5 years ago. I was excited to get my Raspberry Pi on morning, I plan to play on it all the day. But my wife wants to discuss travel plan when we had lunch. She told me she visited Chengdu several times before, but no one is real travel, they just went to the city, got goods, then went back, she only know one place “He Hua Chi” – a clothes market. They bought clothes there and sales in their city. Finally, we had a 3 days trip in Chengdu! That’s a crazy plan for me since I never tried planning and going in same day! We flight to Chengdu on night, and checked in a great hotel. Since it’s close to Chinese

How to decode ESXi 5.x SCSI error code

Storage is critical component for virtualization, lot of VM performance issue is related to storage latency. You may see similar error message on vmkernel log for some case: 2014-02-11T07:18:20.541Z cpu8:425351)ScsiDeviceIO: 2331: Cmd(0x4124425bc700) 0x2a, CmdSN 0xd5 from world 602789 to dev "naa.514f0c5c11a00025" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x4 0x44 0x0 It much like language of another planet when I first time saw itJ. Let’s see how to “translate” it to human language. First, I split it to several sections: a) 2014-02-11T07:18:20.541Z cpu8:425351) b) ScsiDeviceIO: 2331: Cmd(0x4124425bc700) 0x2a, CmdSN 0xd5 c) from world 602789 d) to dev "naa.514f0c5c11a00025" e) failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x4 0x44 0x0 Section A shows the UTC time when the error occurred. Section B shows what command is sent. (Actually I don’t even know what the command means is, please let me know if you know it.) Section C shows which world the command related

Website comes back online!

I didn't know ICANN request email address verification, I thought freedom everywhere outside China, but looks like it's not. :-) My domain was suspended due to that ICANN policy, and my QQ mailbox unable to recieve verification email from ICANN, what a unfreedom country it is! Finally I have to change my domain register mailbox to Gmail to get the email. Shit GFW! ( Check out here to learn more about GFW )

How to Grant Multiple Domain Groups Permission to Multiple Folders on vCenter Server

If you have set of group VMs and particular group can access each set VMs, you should grant access on vSphere Client or vSphere Web Client. SSO is slowly sometimes, you could use following CLI to do it more efficient. New-VIPermission -Entity " Folder Name " -Principal " Domaingroup name " -Role " Role name " You could do it faster for regular folder name or group name by excel and notepad: New-VIPermission -Entity " Folder Name " -Principal " Domaingroup name " -Role " Role name " Guess how to do it.

vHBAs and other PCI devices may stop responding in ESXi 5.x when using Interrupt Remapping

Your vHBAs or other PCI devices may stop running in ESXi 5.x when using Interrupt Remapping feature. This issue only impact to UCS blade BIOS version 1.4(3c), it has been fixed on 1.4(3j). Please refer to http://kb.vmware.com/kb/1030265 to see how to disable Interrupt Remapping feature in ESXi 5.x Also refer to https://tools.cisco.com/bugsearch/bug/CSCty96722 .

How to Configure Serial Console for VM by Avocent ACS v6000 Virtual Advanced Console Server

Serials console is very helpful to troubleshooting Linux problem, you can see additional system message via serial console if your Linux server hung. It is essential component on physical server for troubleshooting. It’s challenge to manage serial consoles if your datacenter is very big. You may deploy console server for central management of serial consoles, you don’t have to connect your computer with serial console one by one, you just need connect console server IP follow with port name by telnet protocol. Time comes to today, virtualization world. How you connect serial console of Linux virtual machine? Can we do exactly same like physical server? Answer is YES! There is couple of way to connect serial console of VM, each way has different benefit. I’m going to introduce the best one! VMware has a KB article 1022303 introduces how to implement virtual console server, but it’s not very clearly, I went to wrong way by follow up the KB. Deploy Avocent ACS v6000 virtual advanced c

Bought a Cisco Linksys WRT54G2 v1 Router

My wifi router was purchased one years ago, for some reason it’s not stable now, sometimes lost package when I ping it. After chat with my friends Steven, he recommended Cisco Linksys WRT54G2 which he is using, a very stable router. You can install DD-WRT firmware and leverage more new free feature, such as NFS, firewall, VPN…etc. I’m newbie, I’ll try explore more on my spare time. That’s a used router on120RMB (around $20). I successfully installed it and turned on internet after 30 minutes, but I cannot log in my VPS by SSH on port 21, then I asked Steven’s VPS SSH to give a try, his port is 443, I cannot connect his also!! I suspected firewall on WRT54G2 maybe blocked the two ports since the router much like a Linux system, you can even run iptables command. Finally I figured out my network provider blocked port 21 and 443, how funny it is that I spend 3 hours to investigated firewall, routing table, wifi setting, NAT…etc. But forgot my sweet network provider!! 大意了,大意了!没想到21和443

Error: No NIC found with MAC address…

Your HP server may runs fine on ESXi 4.x or 5.0, but you may get error message No NIC found with MAC address xx:xx:xx:xx:xx:xx after upgrade to ESXi 5.1 or later. That’s caused by network adapter firmware, you have to upgrade server network adapter firmware by HP SPP 2013.02 or later. I would recommend you upgrade firmware of each component to this version, it’s pretty stable to run ESXi 5.1.

IPv6 link in NetApp SMVI backup log

NetApp Virtual Storage Console is my favorite to manage and backup data on NetApp attached ESXi host, there is lot of benefits to secure VM data more efficient. The installation is pretty simple, and very less resource it requires, you can even install it on a multi-role virtual machine. But the first headache maybe the backup log.… The default report URL is IPv6 in NetApp Virtual Storage Console. You have to add parameter in wrapper.conf file manually. Here is detail steps: This procedure has to be repeated after NetApp Virtual Storage Console is upgraded. 1) Shut down SMVI server (via Windows service). 2) Open the wrapper.conf in C:Program FilesNetAppVirtual Storage Consolesmviserveretc 3) Locate section   Java Additional Parameters wrapper.java.additional.1=-XX:MaxPermSize=128m wrapper.java.additional.2=-Dcom.sun.management.jmxremote wrapper.java.additional.3=-Dcommon.dir=. wrapper.java.additional.4=-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger 4) Add following

I need some change in my life

大约在10年前,我参加过一个CCNA的培训,认识了当时给我们上课的老师——杨佳,那时候他已经是CCIE了。说到CCIE、CCNA,就要先说说Cisco(思科)了。网络是通过路由器、交换机连接在一起的,这个地球上60%以上路由器、交换机是思科制造,可以这么说,思科创造并提供着网络世界。CCIE是思科公司产品专家的最高级别认证,每年只有很少的人可以通过这个考试,因为考试内容几乎全部是上机实战,很少一选择填空,而且是全英文的,一旦拿到CCIE意味着你掌握了非常丰富的网络知识,可以真的称得上网络专家了。我的老师杨佳就是其中一名。 Today, I’m in company shutdown, have few spare time. I read his blog http://www.yangjia.org/ , pretty interesting, look at his colorful life, come back to my life. That’s too much different! I admit single life is different with marriaged life, but that’s the life, the freedom I wanna to be! At least, I need some change in my life…

Hello world Can I start?!

It’s be a while. Provisioning, formatting, and re-provisioning. Compare each Linux distribution, finally I decide to use Debian, since my Raspberry Pi official image also base upon Debian. I also registered this brand new domain to re-start my blog life. 都不知道是第几次Hello world了,这次一定要开始了,先把之前在Wordpres的文章搬过来再说!