May
07
2008
0

HowTo - extend/expand a VM guest in VMware esx vi3

Use putty or ssh to connect one of the hosts that can access the files of the vm guest you’d like to work with.  Browse to the location of the vm guest on your SAN or disk.

Only 1, yes one command on the vmware side to extend or expand the disk.  Please power your VM guest down before attempting this…

vmkfstools -X 15G disk1.vmdk (where 15G is the final size you want the disk to expand too).

Now if this is the O/S drive for a guest VM you’ll need to use the VI3 client to attach the VMDK to another VM as a second hard drive.  This is only for a few minutes so that you can run diskpart from within windows.  Diskpart is not allowed to run on an O/S partition.

After you’ve added the drive as a second drive to another helper VM you can run the following commands.  If the drive is already a second drive you don’t have to add it to a helper VM.

Open a windows cmd prompt and enter the following…

1)diskpart.exe
2)list disk
3)list volume
4)select volume=#   (where # = the volume you need to expand)
5)extend

Don’t forget to detach the vmdk from your helper vm!

Written by Tom Tags: , , , ,
Apr
30
2008
0

HowTo - generate diagnostic logs for vmware esx from cli

While working with vmware support on the phone they required me to run a job from Virtual center to gather diagnostic log data from our VI3 cluster.  You can try this by opening your, “Virtual Infrastructure Client” and selecting the “Administration” menu and then “Export Diagnostic Data”.  When I run this command for as little or much information required I ALWAYS get the following error, “Failed to create diagnostic bundle.”

If you ssh to your host directly you can run the following command from each host and sftp the logs from the host afterwards.

vm-support

Written by Tom Tags: , , , , , , ,
Mar
21
2008
4

HowTo - VMWare VI3 Windows Guest and USB over IP

In the last year we had a physical server’s O/S have a severe blue screen error which required the server to be rebuilt.  This server was a critical server for our operation and the downtime was not easy.  In order to prevent that from happening in the future we decided that server would be a better fit in the virtual infrastructure because of the High Availability offered by Vmotion.  The only problem is this server requires a USB license dongle.  Everyone knows that you don’t have a USB port to plug into when running VI3, so what do you do?

Keyspan USB server (USB over IP)

This specific USB server allows you to choose which USB port(s) you want to dedicate to each server.  Some USB servers do not allow you to dedicate each port to a different server.

What a breeze to setup as well.  After you mount the device, give it power and ethernet…Just install the Keyspan software.  The software client will find the USB server automatically.  Than you need to edit the config to dedicate the USB device to that VM and you’re ready for action.

Now you can reboot and vmotion to your heart’s desire and not lose connectivity to your USB license dongle.  Great little trick if you’re as dedicated to virtualization as we are!

Written by Tom Tags: , , , , ,
Feb
13
2008
0

I love vmware - Upgrade procs & ram in HP 685 c class blades (c7000) - ESX 3.02

After a year of service the 3 685 c class blades that I work with have served us well.  They started as Dual Proc AMD 8216 (dual core 2.4ghz) with 16gb of ram.  In order to expand the virtualization in our environment we decided to double the resources in each of the blades by adding 2 more procs and 16gb of ram.  I added the ram last week, but because of limitations in the system bus you need to have all 4 procs installed before the other 8 dimm banks are activiated.

Steps involved to upgrade procs & memory:

  1. Add new licenses from vmware (esx is licensed by every 2 physical procs/sockets)
  2. Login to Virtual Center and put host in maintenance mode.
  3. This should vmotion all virtual machines from that host to other running hosts.
  4. Shutdown host
  5. Carefully install cpus and ram
  6. Start server (will reboot once after starting)
  7. Upgrade complete with ZERO downtime in the middle of the day.
  8. 685c blades are now 4 cpu, 8 core and 32gb ram and ready for some more action.
Written by Tom Tags: , , , , , ,
Sep
11
2007
1

San Francisco and VMworld 2007

I landed in San Francisco yesterday at around 1:3o pm. Another excellent experience with United; 6 hours and on time from Boston. I rented a car and found my way to the hotel pretty easily. Most of the roads feel pretty difficult to maneuver. The Marriot I’m staying at is around the corner from the Moscone center which is great.

Today I was able to register for the event which included a free laptop bag and t-shirt. I started my day with an 8am lab dealing with DR and multiple sites. The lab felt slightly unorganized but it was the first one of the day and also first of the conference. There were multiple typos in the lab manual. If someone had never used Virtual Center before I can see it useful. I followed this lab with one on Security and Hardening ESX. I actually took this lab last year as well and I’ve found that this lab might not have changed at all and if it did is was probably slightly. I’m not sure if that was good or bad. I thought the lab would have been slightly more updated.

Aug
26
2007
0

esx 3.01 to 3.02 upgrade and ha won’t enable

I thought the upgrade went completely smooth but not so much.  After the upgrade and reboot each esx’s host file needed to be edited to include it’s own name and ip address.  127.0.0.1 will not work.  I added my other hosts to each host’s /etc/hosts file for good measure.  Once that file was saved I enabled HA and all was happy.  I’ll add the error I saw in VC later…

Written by Tom Tags: , , ,
Aug
24
2007
0

vmware esx and virtual center upgrades

I’m happy to report that upgrading vmware esx from 3.01 to 3.02 was a breeze. I was able to utilize maintenance mode and for the first time in my career do mid day operating system upgrades with zero affected production systems! I was also successful in upgrading Virtual Center from 2.0 to 2.02.

I utilized the patch update program I previously mentioned for the esx upgrades… flawless.

Written by Tom Tags: , , , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes