Archive

Archive for the ‘vmware’ Category

VMWare Player with full-featured virtual networking

March 28, 2013 Leave a comment

Eager to configure your virtual network in detail, but neither wanna bother with VMWare Workstation trials, nor have money for a license? Let’s use a Player, then. Read more…

Categories: vmware

More is not always better – CPU ready in VMware vSphere

January 16, 2013 Leave a comment

You might have a situation, when your 2 vCPU webserver is having a high load (although CPU usage in MHz is normal).

In this situation most administrators would add extra vCPUs to the server, and expect to have an enhanced performance.

Unfortunately the additional vCPU can actually degrade performance. Let me explain why.

Read more…

Categories: cloud, vmware

Configuring vSwitch ports

December 15, 2012 Leave a comment

When people use standard vSwitches in vSphere it is always a problem, at least for me how

to configure switch security policies like promiscuous mode, or mac address changes just

for a few ports where these required. Using the standard vSwitch I always created a new

portgroup just for the few VMs which require special policies, but this is not the best

way, and really not a perfect solution.

If people change to use distributed vSwitches, and yes, if people has money for such

license this prblem could be solved much easier.

By default with a distributed vSwitch the same settings are defined at the portgroup

level, and the settings are inherited by all the ports. But this can be overridden if

required. To do so at first the override of the security settings at port level must be

enabled in the portgroup advanced settings tab.

2

After this, the inherited port settings can be changed.

3

Now, we have a port with custom port security policy. :-)

Categories: vmware

The Fairy Tale of the vSphere Update Manager and the DRS Policies

December 15, 2012 Leave a comment

I’ve recently created a two node vSphere5 cluster in my test environment just for

testing, and playing around, with properly configured HA, and also DRS. I’ve created

various DRS policies, and tested a lot the cluster features throug a lot of scenario.

After that I started playing with VMware Update Manager. After configuration I ran into a

problem at the very beginning of the process when the Update Manager tried to place the

first ESX host into maintanance mode. The process were in stuck, and no error message at

all…

After a while (I am usually patient when trying something new :-) ) I started

investigating, what the problem could be. I found quiet quickly that I hadn’t turned off

all the DRS policies, and one was active which forced 2 of my VMs running on different

hosts. This caused Update Manager not to be able to take the host into maintanace mode.

Turning off the DRS policy solved my problem, and Update Manager did the update

successfully.

Categories: vmware

How to get the type of the HDD in PowerCLI

December 14, 2012 Leave a comment

I would like to determine each VM HDD type. Is it thin or thick? I realized that this question is not a trivial.

Here are the commands, which gather the type of the disc.


$vm = Get-VM -name testsrv

$thin = (((($vm |get-view).config).Hardware).Device | where {$_.GetType().Name -eq "VirtualDisk"}).Backing.ThinProvisioned
if ( $thin )
{
Write-Host "    Disk provisioning type: Thin"
}
Else
{
Write-Host "    Disk provisioning type: Thick"
}

That’s all!

Mystery of ODBCAD32.exe

December 14, 2012 Leave a comment

I would like to install the vSphere Update Manager on a Windows Server 2008 R2 machine. The R2 is 64bit OS, but the Update manager needs a 32 bit version of ODBCAD. The vCenter Server located on the same machine, and I have already configured both ODBC DSN.

ODBC_01

Read more…

vCenter Server automated Inventory with PowerCLI

December 13, 2012 Leave a comment

As you can see in my previous articles I created and filled in the Custom Attributes fields. The aim of the whole customization to store all data in the vCenter Server, easily do an automated inventory. The script not needs an SAP connection to gather the required information, because all data available in one information store.

Read more…

PowerCLI version Differences

December 13, 2012 1 comment

I would like to write a PowerCLI script, which gather VMs memory information from vCenter Server. I realized that if I put one of the VM into a variable, it have different property on different PowerCLI versions. I develop the script on PowerCLI 5.1 Release 1, and I run it on PowerCLI 5.0.1, and the result was not fine.

Read more…

Mass Custom Attribute Writes with PowerCLI

December 6, 2012 Leave a comment

In my previous article I mentioned that how can you handle Custom Attributes. I would like to provide you an example script, witch read attributes from a CSV file, and insert it to vCenter Server line by line.

Read more…

Write and read custom attributes

December 6, 2012 2 comments

In my previous article I described that how you can create Custom Attributes. If it created, and ready to use, you should read and write all virtual machine’ Custom Attributes via vSphere Client or PowerCLI.

Read more…

Follow

Get every new post delivered to your Inbox.

Join 47 other followers

%d bloggers like this: