Posts under Tag: Scripting
VM Template best practices (Linux)

I was just reading up on my Google Reader. A lot of information been dropped over the last couple of days and more and more people are getting active on the VMware blogoshere. One of the articles that really caught my attention was the “VM Template best practices (Linux)” by Leo Raikhman. Leo did a great job in explaining how [...]

By with 2 comments
Scripted installs and nic teaming

As of ESX 3.5 it was impossible to add an additional NIC to a team as active without resorting to editing the esx.conf file: # Active and standby setup and maxActive from 1 to 2 mv /etc/vmware/esx.conf /tmp/esx.conf.bak /bin/sed -e ’s/net\/vswitch\/child\[0001\]\/teamPolicy\/maxActive = \”1\”/net\/vswitch\/child\[0001\]\/teamPolicy\/maxActive = \”2\”/g’ /tmp/esx.conf.bak >> /etc/vmware/esx.conf So as you can see, a “sed” command changed the maxActive from [...]

By with 2 comments
Enable VMware tools timesync

Today I visited a customer that wanted to enable the VMware tools timesync during an automated install of a Windows VM. The customer didn’t want to use powershell / perl or anyother SDK enabled tool. So what’s left? “C:\Program Files\VMware\VMware Tools\VMwareService.exe” –cmd “vmx.set_option synctime 0 1″ So this command ticks the checkbox for timesync via VMware Tools, which can come [...]

By with 3 comments
Adding users + roles with powershell

So you can easily add users with useradd command we talked about. But there’s still a problem, you can’t add user-roles to the user you’re creating. You still need the VirtualCenter client to do that. My colleague Horst Mundt read my post and was so kind to email me a powershell script he created that can add roles to specific users [...]

By with 3 comments
Additional user account in a scripted install

When doing a scripted install it might be useful to create additional user accounts. You can easily do this with the following command: /usr/sbin/useradd -m -p ‘\$1$ZRo.R0\$1Lk8iA0AaqVFlojm.BTmr/’ -c administrator -g users -G users -d /home/administrator -s /bin/bash administrator The “-p” value is the encrypted password. You can create them by using the tool “grub-md5-crypt” on a linux box. Just type ”grub-md5-crypt” and [...]

By with 2 comments
VCB and independent disks

Most of you probably knew that it is impossible to snapshot an independent/persistent disk. And if you didn’t, in short: a disk that is in “independent/persistent” mode can’t be snapshot because it needs to write it’s changes immediately to the virtual harddisk. When using a snapshot(nonpersistent) writes go to a delta file. So as I said in this article, using this [...]

By with 1 comment
Which VM is connected to an RDM?

A friend of mine asked me if there was a way to find out which VM’s were connected to a certain RDM disk. I’ve been looking all over but couldn’t find a simple command to do this. So I ended up on the forums and found a powershell script which creates a list with all the necessary info one would [...]

By with 2 comments
Page 10 of 13« First...89101112...Last »