SDRS VM settings always set to fullyautomated with New-VM cmdlet

Posted on Leave a commentPosted in Script

New-VM cmdlet Came across an issue when doing deployment of VMs using the PowerCli cmdlet New-VM. If not specified and deployed into a datastore cluster, SDRS behavior will always be set to automated. Even if the datastore clusters default setting is set to something else. It seems weird to bypass the datastore clusters default settings and per default just set it to automated, but that is just how it is at the moment. Consider this to be a request to change default behaviour of the cmdlet, to always set the SDRS setting of the VM to default unless otherwise specified. […]

Delete claimrules via PowerCLI

Posted on Leave a commentPosted in ESXi, Script

Had to mask storage in an older environment. As soon as that was done and storage were removed, then the clean up starts. I could have done all this by hand, but where is the fun in that. Instead I created this little script below which removes all claimrules with a rule number greater than 101 and lower than 65535. Of course this should go without saying. You need to know what you are doing and that there is no claimrules between 101-65535 that is crucial to your environment. Deleting claimrules like this shouldn’t be taking lightly. Well, I had […]

Deploy appliances via PowerCLI

Posted on Leave a commentPosted in Script

Needed to deploy some appliances. I could have done that via a client, but it some what cumbersome and requires you to sit a wait for every step. Why not deploy appliances via Powercli? It’s easy, fast and requires only a few lines of commands. The PowerCli cmdlet is called “Import-VApp”. The cmdlet lets you specify fields like Source, Name and OvfConfiguration. The tricky part here is to know which OvfConfiguration parameters are needed. An OVA file is just a zip file with the vmdk and configuration files in it. It can simply be opened with a tool which supports […]

esx.problem.net.vmknic.ip.duplicate – Hunting for MAC

Posted on Leave a commentPosted in Log Insight, Script

Log Insight is a very powerful tool to monitor your environments health status. One of my favorite dashboards to is the “General – Problems” dashboard, which is part of the  “VMware – vSphere” content pack. It comes with Log Insight per default. Because there you can get a great overview of any problems that might be in your vSphere environment. One of the problems you might see is the “esx.problem.net.vmknic.ip.duplicate” or as it can be seen in the pie chart “net.vmknic.ip.duplicate”. This problem basically tells you there’s an misconfiguration in your environment. Two VMK nics have the same IP address […]

Auto create Nano server for ESXi with Powershell

Posted on 1 CommentPosted in Windows

I have recently played a little with Microsoft’s up coming Windows 2016 OS. One of the things I find very intriguing about Windows 2016 is Nano Server. It is the possibility to create a small and fast booting version of Windows. Nano server is JeOS (Just Enough OS), meaning that it all you need for the task ahead. Not more deploying 50GB+ servers with lots of features if you only need one. This equals faster boot times, smaller footprint on resources and smaller attack surface. All good things that IT has come to love from the Linux world. The only […]

No Syslog Server is Configured

Posted on Leave a commentPosted in Log Insight, NSX, Script, vRops

If you are running vRops and NSX, one of the mangement packs that is a must to install is the NSX management pack – On a side note remember to link Log Insight to vRops, that way when you install the NSX management pack in vRops, it will also install the NSX content pack in Log Insight and setup the alerts in the NSX content pack and forward them to vRops. The NSX management pack delivers both NSX network information as well as traditional network information from switches via SNMP and CDP/LLDP. It helps to provide better to understand of […]

How to change VMDK geometry

Posted on Leave a commentPosted in Ravello, Script, vRops

I recently ran into an issue were I needed to change the geometry of some VMDK files – I will do a seperate blog post on where and why later. For now I will just focus on how to change VMDK geometry. A VMDK is just a file with some descriptional data and the actually binary data of the VMDK. Think of it as a virtual harddisk. It adheres to the same physical characteristics and there for the physical characteristics are also part of a VMDK file. Normally you won’t need to change the geometry of a VMDK – I this case […]

OVFtool wrapper for vCloud Air

Posted on 4 CommentsPosted in Script, vCloud Air

Lately I’ve started using vCloud Air. That’s is a new experience for me, being used to using the fat client for a vSphere environment – The vCloud Air is a different experience, not bad, just other ways to get the normal day-to-day operations to work. One of the things I have played with is OVFtool, which is a command-line tool to upload ISOs and VMs to vCloud Air. Working with long command-line strings can be a bit annoying, as small typos quickly breaks things and it can be hard to spot the single digit error somewhere in the long text […]

Creating Excel spreadsheet with PowerShell

Posted on Leave a commentPosted in Script

If you have followed this blog from the beginning, you would have seen that I have done things with PowerShell and Excel in the past. Like in Enclosure Overview, where I draw blade enclosures, with blades in them, name them and color code them according to the cluster they are in. This was done to give a clear understanding of how clusters where spread out through the data center. This is a great way to visualize fault domains(in this case sites/enclosures) and how they are utilized. Another example is my blog post about pxe boot, called Yet another ESXi pxe […]

vCenter IDM overview

Posted on Leave a commentPosted in Script, VMware

Dealing with user rights in vCenter isn’t an easy task. Data is not readily available from the given users perspective, instead one have to look through the different rolls, to see what rights the user will end up with, a task that can be hard to complete or do compliance check on. vCenter IDM has always been hard. This has made me turn to the trusted tools of PowerCli, where the answer can quickly be found or data be exported to csv, for later use with your favorite spreadsheet. This post is about the powercli script that I use to […]