Deploying VMware in a Linux Shop #PO2575
This session was my last VMworld 2008 session on Tuesday 9.17. I must have missed it in my notebook Tuesday night, so I am posting my notes now. The session was hosted by Mike DePetrillo, Principal Systems Engineer at VMware. Mike did the entire session on one leg. If you saw one of Mike’s sessions or you know Mike you’ll understand that comment.
This session was designed for companies that are primarily Linux shops and have numerous virtual machines (VMs) on VMware virtual infrastructure. Mike provided general information about Linux as a guest OS as well as some best practices and performance tips for both the VMs and the ESX hosts. The rest of this post is my notes from the session.
Mike started out by talking about general recommendations for building Linux VMs.
-
When building VMs for Red Hat Enterprise Linux (RHEL) VMs use a minimum of 512 MB of RAM for best VM performance. For RHEL 3 and RHEL 4 use a minimum of 256 MB RAM.
-
Over allocating memory for VMs can cause performance issues
-
-
Always use the LSI Logic SCSI adapter with Linux VMs as many Linux distros will have issues with the Buslogic adapter
-
Always install VMware Tools for best performance. Mike gave us a breakdown on what services and drivers are installed
-
vmware-guestd – the VMware tools service
-
vmware-user – cut and paste feature
-
vmblock – mounts the file system for the drag and drop feature
-
vmhgfs – shared folders service
-
vmmemctl – the memory ballooning driver that assists ESX memory management
-
vmxnet – the network driver
-
vmsync- the service that freezes and then thraws the file system for snapshots
-
VMware Tools are now available as open source, and many Linux distros will be including them as standard packages included as part of the base install in the future. I learned in an earlier session that one of VMware’s objectives for the future was to work with the various distros to provide Tools updates via the package managers as well. Being able to use yum, apt-get, or even Synaptic would be a huge help in my opinion and I look forward to when this heppens.
Mike then introduced a scripted method of automating the process of updating VMware Tools for the mean time. At a high level, the script is scheduled via chron to check for the presence of an updated kernel, and if the condition is found a second script invokes the installation routine to recompile the tools correctly with the new kernel. Mike said he would provide the script on his blog for download. Go to http://www.mikedipetrillo.com for more information. I posted about a similar scripted process not too long ago as well.
Mike then discussed the time keeping issues of Linux VMs. My memory is a little fuzzy on Mike’s explanations of both slow and fast time sync issues with Linux VMs, but Mike pointed to 2 VMware knowledge base articles for some known fixes today
To provide additional performance tweaks for Linux VMs Mike explained removing certain useless services and disabling some features were recommended.
-
Smartd
-
cpuspeed
-
disable screensavers
-
get rid of hardware management agents from P2V conversions
-
get rid of NIC teaming agents and software
Mike said that there was a whitepaper for optimizing Linux VMs that would soon be published.
Mike then began talking about automating deployment and administration of Linux VMs. He discussed a PXE boot method of deployment as well as some general ideas about guest customization. Once again the scripts and the documentation for these processes are available on his mikedipetrillo.com blog. Mike used a recorded PXE installation as a demo.
Finally, Mike provided some best practices and recommendations for optimizing ESX performance in a Linux shop.
-
Use SMP sparingly. There us usually little need to create VMs with multiple virtual processors. Even adding 2 CPUs to multiple VMs could create scheduling problems and cause a condition where VMs are ready to execute CPU commands but have to wait for availability to the ESX hosts physical hardware.
-
Do not pin CPUs to VMs.
-
Do not exceed 768 MB of RAM for Linux guests. I personally know of several customers that do this, and I am not clear as to what Mike’s recommendation prevents. Bottom line is that using less ram in any VM will increase the number of VMs that can coexist together on a ESX host and also keep the ESX server as efficient as possible
-
Reduce Linux VM swapping however possible
Related Posts
-
http://vmetc.com rbrambley
-
http://kurrin.blogspot.com J
-
http://kurrin.blogspot.com J
-
http://www.mikedipetrillo.com Mike DiPetrillo
-
http://www.mikedipetrillo.com Mike DiPetrillo
-
http://vmetc.com rbrambley
-
http://vmetc.com Rich
-
http://www.mikedipetrillo.com Mike DiPetrillo
-
http://www.mikedipetrillo.com Mike DiPetrillo
-
http://kurrin.blogspot.com J
-
http://kurrin.blogspot.com J
-
http://www.mikedipetrillo.com Mike DiPetrillo
-
http://www.mikedipetrillo.com Mike DiPetrillo









