Latest Entries »

A post with Blogilo on KDE 4.4 SC

It has been a while since I wrote my last post. About a half year ago I started with a new education where I put a lot of time and effort in.

For a while I followed the progress of the Blogging blogclient since the release of version 1.0. I tried it out but my blogstyle (wordpress) in the post preview was terrible. Now with version 1.0.1 my blogstyle is perfectly loaded, and this is the first post a made with Blogilo. I hope to found more time to blog regularly again in the near future.

For about three weeks ago I was asked by my colleague Eric Scholten for helping him out with his VMware View project for our company. I thought this is my change to explorer the in en –outs of VMware View. The infrastructure under VMware View was already build by Eric on four Dell servers and a Dell Equalogic SAN. After one week figuring out the architecture and everything up and on it, Eric told me he had to leave for a project right away. A lot of trust in my hands with a dead line in sight over a couple days.


Let me some things up that Eric couldn’t finished;

  • Windows Vista client customization failed.
  • Windows XP client poor performance.

I started with the Windows Vista customization problem, but first let met tell you something about the client.  Vista was deployed with Windows BDD 2007 in a virtual machine and customized using the build-in Sysprep by my colleagues of the IT team for the customer. After my colleagues had installed all the software it was time to convert the vm into a template waiting to be deployed. But unfortunately it is not that easy as just reading the administrator guide and do what there stands. I tackled this problem with troubleshooting on this way.


Troubleshooting the Customization problems;

  • Be sure you have set the right Guest OS type of the virtual machine for the Guest OS you want to install. For example; If you have a virtual machine created with the Guest OS type set to Windows XP and you install Windows Vista, you probably won’t notice any problems with your vm. But if you make it a template and deploy the template as a vm you will get errors about your hardware (scsi adapter) and second your customization will fail. Something about the scsi adapters, there are two variants namely the Buslogic and the LSI logic. Both adapters are working for Windows Vista but VMware recommends to make use of the LSI logic adapter. As you didn’t already know, YES the vm was created with the Guest OS type set on XP and installed with Vista. Standard if you create a vm with the Guest OS set on Windows Vista the vm will be automatically created with the LSI logic adapter. If Vista cannot find the hard drive installing from scratch you also have the Buslogic scsi adapter configured because the LSI logic driver is already in the setup of Vista and the Buslogic not. (Check you Guest OS type)
  • There have been some changes about the unattended installation of a Vista client. Sysprep is these days build-in the OS, this means that you don’t have to copy any sysprep files into the sysprep directory of Virtual Center. Just create a customization specification with the wizard in VC, have a good template for deploying and your good to go. (Vista uses a answer file in XML format meaning that INF files are not working)
  • Remove all old *.xml files from a previous unattended installation otherwise they could get in the way. delete the following directory “%windir%Panther”.
  • Check for software like virus scanners that can block installing the VMware Boot-Run service for customizing the vm. The VMware Boot-Run service is copying the answer files to the client and configuring it with settings you specified in your customization specification.
  • When joining the vm automatically to a Windows Domain, be sure you specified the right account and password. Switch the firewalls off in the template or configure it correctly.
  • When joining a client to the domain be also aware of other Group Policies that will can be applied on your client after restart. Think of firewall etc.
  • Logfiles to get some usefull information about Windows Vista with VMware customization can be found in these directories.

“%windir%\System32\Sysprep”

“%windir%\PantherUnattend\GCsetupact.log”   – Contains the sysprep information, like the domain join.

“%windir%\PantherUnattend\GCsetuperr.log”    – Contains the error information generated by sysprep.

“%windir%\Temp\vmware-imc\guestcust.log”    – Information of the customize scripts of VMware.

“%windir%\Temp\vmware-imc\toolsDeployPkg.log” – Scripts that are copied by the VMware Bootrun Service.

and information about the customization process.


Vista_Cust_log Vista_Cust_log2


Two of our customers has Windows XP as there client machines. After making the clients available for running as a virtual machine, one customer experienced very poor performance. If the connection to the vm was established it seems everything was running fine, but once we started Internet Explorer the screen refresh was slow as a RDP connection over a 56k modem. We tried connecting to the virtual machine without using the View Client and we experienced no performance / refresh trouble. Very strange, the next day the technical staff of the customer noticed that if they started the View Client as an local administrator they had no poor performance and the speed was just as fast as connecting with the RDP client. From this stage I thought maybe it is a security problem but wait, if so why do I not have this problem with my laptop logged on as a standard user? Lets find out on my way in troubleshooting this nice problem while the deadline is almost in sight.


Troubleshooting the Performance problems;

  • Update the VMware View clients with the last RDP updates see this article.
  • Check also the if the View client if its the latest version. While writing this post the latest version is 3.1.0.1097.
  • Check the Internet Proxy settings, the View client is taking this settings over. If your proxy is not right configured you will get very poor performance in the RDP connection. When I asked the technical staff if they using a proxy server, they told me; there is a defined proxy server in a Site Policy (Active Directory) but they disabled it couple days ago. Still I couldn’t get it what was wrong, then I stepped to one of our testers. The tester had configured manually the proxy server they used before when the site policy was intact. So I disabled the proxy server and the performance problem disappeared.
  • I had not the idea that the View client had any problems with reading or writing into certain directories causing the performance problem . But still I was curious about the directories it  uses. I started Filemon and filtered the directories the View Client accessed. These are the directories the View Client uses.

“C:Program Files\Common Files\Microsoft Shared\Modi\11.0”        -   Read / Write Access

“C:Windows\System32\configSoftware.log”                                   -   Read Access

“C:All Users\Application Data\VMwareVDMLogs”                          -   Read / Write Access


Some other troubleshooting information;

  • If you can connect to the View server with your View client and the screen with desktops available for you is presented. Then you know that that you can reach the View server. If not check your network settings.
  • Also check the (default) firewall settings of your client vm, even if you switched the (default) firewall off in your template. Remember that if your client vm is a domain member, settings can be over ridden by domain policies or worse site policies.

VW_Firewall

  • If you can’t get a connection with to the available desktop presented in the View client, first explorer the View server broker log files. Troubleshooting this is mostly pretty straight forwarded. If you find a entry in the log like “connection timed out 192.168.1.1:3389” then try to connect the Virtual Machine on the same available network with a RDP Client. If connection with the RDP client is working then you have to look on the View Client side. Always check the firewall(s) settings for closed ports.

Finally all problems were solved and VMware View is up and running perfectly. It was nice to be busy again with some great products of VMware like this one. So Eric as you can read I saved you from a lot of trouble ;-) but I will be honest, It was a pleasure.

Powershell – Simple Ping Script

Sometimes you need simple scripts like a ping script. My script reads a text file that contains all the devices you need to ping, the output is displayed on the screen and saved into a simple log file.   You can adjust the following variables;

  • $StoreFolder   – This is the folder that contains by design the script / log files
  • $ServerFile     – This is the text file that contains my devices by Name or IP.
  • $LogFile         – The name says enough ;-)
#  Ping Script
#
# Author   : A.R.Winters
# Script   : Ping Hosts
# Date     : 10/04/2009
# Version  : v0.1
# Comments : none
# Final Version :

# Application Variables
$Date = date
$StoreFolder = “c:Computers”
$ServerFile = “$StoreFolderComputers.txt”
$LogFile = “$StoreFolderOutput.log”
$computers = Get-Content $ServerFile

# Function Ping-Host
function Ping-Host
{
$results = gwmi -query “SELECT * FROM Win32_PingStatus WHERE Address = ‘$computer’”
if ($results.StatusCode -eq 0)
{
Write-Host “$computer is reachable  ——- $Date” -BackgroundColor darkgreen
Write-Output “$computer is reachable ——- $Date”
}
else
{
Write-Host “$computer is not reachable ——- $Date” -ForegroundColor yellow -BackgroundColor red
Write-Output “$computer is not reachable ——- $Date”
}
}

# Read text file ping the machines…
Foreach ($computer in $computers)
{
$myCol = @()
$myCol = Ping-Host
write-output $myCol | Out-File $LogFile -Append
}

(K)Ubuntu Jaunty 9.04 Beta – Howto install Amarok 1.4

After the release of Amarok 2 I tried it out and I didn’t liked it, there are to many features missing that I used in Amarok 1.4. For example I used the equalizer in Amarok 1.4 to make my sound of my Logitech speakers hear better but the Amarok 2 version doesn’t have a equalizer and you don`t want to know how it sounds right now. I read in a few blogs of the Amarok developers that the equalizer will be returned, but when????  I decided not to wait on the features to be developed if Amarok 1.4 is still available. So this is what I did on my newly fresh Kubuntu Jaunty 9.04 Beta installation:

 

  • Open a terminal session
  • Edit with your favorite text editor the file “/etc/apt/sources.list”
  • Add the following lines;        

    Be sure that is pointing to intrepid, the jaunty pkg is still not available. 
    Update: Jaunty packages are available now!

    ###KDE3 & Amarok 1.4
    deb http://ppa.launchpad.net/bogdanb/ppa/ubuntu jaunty main
    deb-src http://ppa.launchpad.net/bogdanb/ppa/ubuntu jaunty main

 

  • Now were going to add manually the GPG Signing Key:
  wget http://apt.pearsoncomputing.net/public.gpg
  sudo apt-key add public.gpg
  • Run the following command

  sudo apt-get update

  • Amarok 1.4 can now be installed with the following command:

     sudo apt-get install amarok-kde3

 

 

shot6

 

 

 Updated 10 April 2009

About two weeks ago I ran into some strange problems in the VMware ESX 3.5 environment from one of our customers, I was very busy with the restore of a few databases in our testing cluster.  After I was almost finished I had to add an extra vmdk to the test SQL server,  so I logged into vCenter  and  I see that  one of the ESX hosts in the test cluster was disconnected. I tried to connect the disconnected ESX server with the vi-client directly but unfortunately all that I get was a connection error. So I tryed to login with putty but also no response…. hmmm strange; server is responding on ping. I asked my self the question “What the heck is wrong here?” to bad I did not had the administrator password from the iLO console so I couldn’t look at the console to see what was wrong.

After a few minutes I saw that the SQL server I was working on was also in the disconnected state, but my console session with the server was still active. I did some ping testing from the command line of the SQL server to other servers in the testing cluster, I was amazed! all the VM’s that had the disconnected status in vCenter were still running.

View Full Article »

Linux Bash scripting – Get content from text file

Sometimes you need a simple script to read the contents of a text file. Today I wrote the script below. The script reads the content of the text file and displays the text on your screen. For example you need to add some users to your system then replace the “echo” command with the “useradd” command. Username’s in the textfile will be added to your system.

#!/bin/sh

# Variables
TXT=FileName.txt
LOG=LogFileName-`date +%F`.log

# Read TXT file and define variables..
while read inputline
do
CONTENT=”$(echo $inputline | awk {‘print $1′})”

# Run the command
echo $CONTENT
done < $TXT
exit 0

wobbly-oxygen-shadow

VMware VI3 Plug-in GuessMyOS

The last two years I’m very driven into scripting / programming with the VMware API and SDK. My colleague Erik Scholten who`s also the owner of VMGuru.nl has send me some nice information about the GuessMyOS plug-in. The plug-in replaces the standard VMware virtual machine icons with guest OS-specific icons for Windows and Linux guests.

Here is a picture of how it looks in vCenter.

If you like to have more information about this plugin than you need this link:

http://community.hyper9.com/blogs/

For more information about creating your own vCenter plugins look at this site:

http://www.vmware.com/support/developer/vc-sdk/vcplugin-exp/

Note: Support for VC Plug-ins is Experimental, and is subject to change in future releases.

New KB Article posted: you can find it here

Hypervisors under a microscope

A Few minutes ago I read an interesting article of three different virtualization hypervisors. The three hypervisors (VMware / Citrix and Microsoft) were tested against each other for best performing hypervisor. All tests were executed with the same workload to give a fair accounting of their performance. VMware is these days still the leader for server virtualization, of course Citrix and Microsoft virtualization products will not leave behind. What I noticed was that VMware’s hypervisor didn`t have the best result! Did I made you curious? then read the article at the following site:

Hypervisors Performance Tests

A little update: My colleague told me that there have been a lot of discussion with the hypervisor tests, many specialists have there opinion about the tests. I have some links were you can read the reply`s on this tests.

Article 1
Article 2
Article 3

A interactive map of the Linux Kernel

Last year I was asked by my company how I felt to give a workshop to my colleagues about Linux, of course I was flattered. Unfortunately I did not have the time to dive deeper into the Linux kernel for further explaining  in my presentation,  so with this information my presentation will be a much nicer.  Well here you go, a nice interactive map of the Linux kernel which will guide you true the hole kernel.

Interactive map of the Linux kernel

Powered by WordPress. Theme: Motion by 85ideas.

Switch to our mobile site