I always have to go back and do the searches again to find these when I need them.
For pre-View 5.0.1, doing the cert with keytool... These are the resources you need:
Familiarize yourself with both of them before proceeding. The TcpDump one is particularly good, buit it omits making a 2048-bit request.
TcpDump
VMware KB 1008705
Thursday, November 29, 2012
Friday, October 12, 2012
FIX - VMware Windows 7 VM with no Audio [ESXi]
I have a template we make some persistent VMs from and they haven't been getting audio. For some reason it took me a little bit to track this one down.
Device Manager, add Legacy Hardware, Have Disk
C:\Program Files\Common Files\VMware\Drivers\vmwvaudio\vmwvaudio.inf
No reboot needed.
[If you don't have this directory you'll need to copy it from a system with working audio.]
Device Manager, add Legacy Hardware, Have Disk
C:\Program Files\Common Files\VMware\Drivers\vmwvaudio\vmwvaudio.inf
No reboot needed.
[If you don't have this directory you'll need to copy it from a system with working audio.]
Tuesday, August 28, 2012
TIP: vMotion VLAN or Else
The impact of not following the 'best practice' of putting my vMotion and Management traffic on a dedicated VLAN seems to have finally showed itself.
I've been on a persistent VM for 3+ years now. It's been great, except for occasionally I'd get 'Session Lost!' on my zero client. It didn't happen often enough to concern me ... until it did. It was around this time that we started noticing several of us were being kicked off simultaneously. Those of us on 100Mb had issues, but not those of us on 1000Mb.
Thanks to having Riverbed Cascade we could see that the smaller ports were being flooded and overwhelmed by broadcasts from a vMotion port. Two days after establishing the VLAN and I have seen zero sessions lost.
http://communities.vmware.com/message/1736018
I've been on a persistent VM for 3+ years now. It's been great, except for occasionally I'd get 'Session Lost!' on my zero client. It didn't happen often enough to concern me ... until it did. It was around this time that we started noticing several of us were being kicked off simultaneously. Those of us on 100Mb had issues, but not those of us on 1000Mb.
Thanks to having Riverbed Cascade we could see that the smaller ports were being flooded and overwhelmed by broadcasts from a vMotion port. Two days after establishing the VLAN and I have seen zero sessions lost.
http://communities.vmware.com/message/1736018
Monday, August 13, 2012
FIX - Windows update cannot currently check for updates because the service is not running
I've run into this message a couple of times and since I've had to search on it both times, so I'm documenting it here.
Windows update cannot currently check for updates because the service is not running.
The fix, each time, has been to go into Updates, Change Settings, Choose to 'Never check for updates' and OK, then back to wherever you want it and OK again.. You should now be able to search for updates.
Windows update cannot currently check for updates because the service is not running.
The fix, each time, has been to go into Updates, Change Settings, Choose to 'Never check for updates' and OK, then back to wherever you want it and OK again.. You should now be able to search for updates.
Friday, August 10, 2012
Tip - Moving Windows ODBC Connections
On the system with the connections you want, export HKLM\SOFTWARE\ODBC\ODBC.INI
On the receiving system, rename ODBC.INI to ODBC.INI.BAK before adding.
Thursday, August 9, 2012
Drivers and Patches via CLI
Host ESX/ESXi
Patches via CLI:
I've had to re-look this up a few times and there's a rather good (and similar) write-up here but these are my notes.
...
First things first, you need to be sure of know what you
have now.
Patches:
For Build Numbers, if 'vmware -v' doesn't do it, try 'rpm -qa |grep -i vmware-esx-vmx', otherwise check KB 1012514.
Search for the version of vSphere you want to update and
download the zip to your HD.
Drivers and Driver Updates:
If you're getting drivers and they're in an ISO you'll need to extract the .zip from the offline-bundle folder.
You'll also want to check what version you're running before install and after final reboot.
In the case of QLogic drivers: cat /proc/scsi/qla*/* |more
Then go and the get drivers you need.
Install:
These examples use the location c:\vmwareupdates
vicfg-hostops.pl -o enter -url https:// <hostname or
IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> entered into maintenance mode
successfully.
vihostupdate.pl -i -bundle c:\vmwareupdates\<name of
package.zip> -url https:// <host name or IP>/sdk/webservice
Enter username: root
Enter password:
Please wait patch installation is in progress ...
The update completed successfully, but the system needs to
be rebooted for the changes to be effective.
vicfg-hostops.pl -o reboot -url https:// <hostname or
IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> rebooted successfully.
vicfg-hostops.pl -o exit -url https:// <hostname or
IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> exited from maintenance mode
successfully.
Tuesday, August 7, 2012
Simple & Easy VMware Thin Client
How about a 38.4MB linux distro with View open client that is simple to set up and works great?
http://repurpose.vmwaredotg.com/tcbuilder/
Go to the build page and put in your criteria and it compiles an ISO for you.
You can burn that to CD, or put it on a thumb drive. [I used UNetbootin in Ubuntu to put it on a thumb drive.]
One gotcha is that, by default, the View client uses the time setting of the client. Since the client, in this case, is the tinycore linux distro that has minimal configuration, you get the timezone of your VM changed to UTC.
You can follow VMware KB 1006773, or edit /boot/isolinux/isolinux.cfg in the ISO or on the thumb drive to add your timezone, i.e.: append initrd=/boot/core.gz quiet cde kmap=de-latin1 cde tz=EST
It gets trickier if want to include DST, but it is doable.
If someone figures out how to get this running on a Raspberry Pi, please let me know.
http://repurpose.vmwaredotg.com/tcbuilder/
Go to the build page and put in your criteria and it compiles an ISO for you.
You can burn that to CD, or put it on a thumb drive. [I used UNetbootin in Ubuntu to put it on a thumb drive.]
One gotcha is that, by default, the View client uses the time setting of the client. Since the client, in this case, is the tinycore linux distro that has minimal configuration, you get the timezone of your VM changed to UTC.
You can follow VMware KB 1006773, or edit /boot/isolinux/isolinux.cfg in the ISO or on the thumb drive to add your timezone, i.e.: append initrd=/boot/core.gz quiet cde kmap=de-latin1 cde tz=EST
It gets trickier if want to include DST, but it is doable.
If someone figures out how to get this running on a Raspberry Pi, please let me know.
Labels:
linux,
raspberrypi,
thinclient,
ubuntu,
view,
vmware
Thursday, August 2, 2012
Current Reading List
So, two of the things it is difficult to do these days is to stay current, and to have the time to develop deep knowledge about something, especially if it's something that is a weak area for you.
For me, one of those areas is networking, so one of the sessions I was looking forward to at las week's Indy VMUG was by Kendrick Coleman, entitled "Physical NIC Designs and vSwitch Layouts". It was a lot of info and his presentation was fast paced to fit the timeslot, but I knew he'd be at least posting the slide deck.
I should have known better. I should have known it would be a rabbit hole.
Added to that, I now have:
Michael Webster - "Etherchannel and IP Hash or Load Based Teaming?"
Frank Denneman - "IP-HASH VERSIS LBT"
Ken Cline - "The Great vSwich Debate" Parts 1-8, but I'll probably just get the PDF
Chris @ Walh Network - "A Look at NFS on VMware"
Chris @ Walh Network - "NFS on vSphere - A Few Misconceptions"
Chris @ Walh Network - "NFS on vSphere - Technical Deep Dive on Same Subnet Storage Traffic"
Chris @ Walh Network - "NFS on vSphere - Technical Deep Dive on Multiple Subnet Storage Traffic"
Then there's the video - Advanced Security & Networking Demo for View using F5 BIG-IP
And all of this is on top of the two books I have staring at me:
Scott Lowe - Mastering VMware vSphere 5
Guthrie/Lowe/Saidel-Keesing - VMware vSphere design
I'm registered for a couple classes this semester and I'm out early on Tuesdays. Maybe I can try to make Tuesdays reading/education days.
For me, one of those areas is networking, so one of the sessions I was looking forward to at las week's Indy VMUG was by Kendrick Coleman, entitled "Physical NIC Designs and vSwitch Layouts". It was a lot of info and his presentation was fast paced to fit the timeslot, but I knew he'd be at least posting the slide deck.
I should have known better. I should have known it would be a rabbit hole.
Added to that, I now have:
Michael Webster - "Etherchannel and IP Hash or Load Based Teaming?"
Frank Denneman - "IP-HASH VERSIS LBT"
Ken Cline - "The Great vSwich Debate" Parts 1-8, but I'll probably just get the PDF
Chris @ Walh Network - "A Look at NFS on VMware"
Chris @ Walh Network - "NFS on vSphere - A Few Misconceptions"
Chris @ Walh Network - "NFS on vSphere - Technical Deep Dive on Same Subnet Storage Traffic"
Chris @ Walh Network - "NFS on vSphere - Technical Deep Dive on Multiple Subnet Storage Traffic"
Then there's the video - Advanced Security & Networking Demo for View using F5 BIG-IP
And all of this is on top of the two books I have staring at me:
Scott Lowe - Mastering VMware vSphere 5
Guthrie/Lowe/Saidel-Keesing - VMware vSphere design
I'm registered for a couple classes this semester and I'm out early on Tuesdays. Maybe I can try to make Tuesdays reading/education days.
Wednesday, August 1, 2012
CYA
No matter how many Single Points of Failure (SPFs), no matter how small your "Failure Domain", no matter what you do to decrease the probability, one thing that is always still a possibility in the IT world is catastrophic failure.
Like getting an "all our VMs are down" call where you eventually find that every.single.vmx.file has been corrupted and is full of nulls. It's not what you want on your first day back from vacation. Or worse yet, during vacation.
These are the days you are glad you started learning PowerCLI by tweaking scripts you found in other blog posts like:
http://andrewmorgan.ie/2011/05/16/vmware-powercli-one-liners-simple-functions/
and http://damiankarlson.com/2010/09/06/vsphere-licensing-via-powercli/
So that you can collect detailed information on your how hosts and VMs are configured, what snapshots are out there, what licenses are in use where, etc.
I built several PowerCLI scripts that, at the very least, saved a lot of frustration but efforts like RVTools are massively wonderful. [Also note that it can be called from the command line, so you can make your data collection a scheduled task.]
At some point soon I plan to write a script that will generate a document for each VM, to make the rebuilding easier if/when needed again.
It's everything you need to put Humpty Dumpty (like the VMs that were P->Vd and have silly things like BusLogic Parallel SCSI controllers) back together again.
Having copies of the actual .vmx files isn't a bad idea either - http://communities.vmware.com/message/1674574
When you have your boss'-boss'-boss asking 'How long?', it's nice to be able to give an answer. It's even nicer when you can say that the first server will be up in 10 minutes.
Like getting an "all our VMs are down" call where you eventually find that every.single.vmx.file has been corrupted and is full of nulls. It's not what you want on your first day back from vacation. Or worse yet, during vacation.
These are the days you are glad you started learning PowerCLI by tweaking scripts you found in other blog posts like:
http://andrewmorgan.ie/2011/05/16/vmware-powercli-one-liners-simple-functions/
and http://damiankarlson.com/2010/09/06/vsphere-licensing-via-powercli/
So that you can collect detailed information on your how hosts and VMs are configured, what snapshots are out there, what licenses are in use where, etc.
I built several PowerCLI scripts that, at the very least, saved a lot of frustration but efforts like RVTools are massively wonderful. [Also note that it can be called from the command line, so you can make your data collection a scheduled task.]
At some point soon I plan to write a script that will generate a document for each VM, to make the rebuilding easier if/when needed again.
It's everything you need to put Humpty Dumpty (like the VMs that were P->Vd and have silly things like BusLogic Parallel SCSI controllers) back together again.
Having copies of the actual .vmx files isn't a bad idea either - http://communities.vmware.com/message/1674574
When you have your boss'-boss'-boss asking 'How long?', it's nice to be able to give an answer. It's even nicer when you can say that the first server will be up in 10 minutes.
Tuesday, July 31, 2012
Scripting VM creation from a template with PowerCLI
This is a quick and ugly to get some VMs built in VMware.
It only does the clone from template, so at some point in the future I'll flesh it out a bit.
---
$vh = 'esxhostname'
$nm = 'vmname'
$rp = 'resource pool name'
$lo = 'folder name'
$loc = 'cluster name everything is in'
$tm = 'name of template'
$ds = 'datastore on which to put the vms'
for ($i = 1; $i -le 9; $i++){$nm = 'THISISTHENAMEOFTHEVM-0' + $i;New-vm -vmhost $vh -Name $nm -ResourcePool (get-resourcepool $rp -location (get-cluster $loc)) -Location (get-folder $lo) -Template (get-template $tm) -Datastore (get-datastore $ds)};
for ($i = 10; $i -le 20; $i++){$nm = 'THISISTHENAMEOFTHEVM-' + $i;New-vm -vmhost $vh -Name $nm -ResourcePool (get-resourcepool $rp -location (get-cluster $loc)) -Location (get-folder $lo) -Template (get-template $tm) -Datastore (get-datastore $ds)};
---
Breaking it down:
The VMs I want to create all have the same name, with the exception of a two digit trailing number.
I was lazy and made two one-liners instead of including the zero padding.
for ($i = 1; $i -le 9; $i++){$nm = 'THISISTHENAMEOFTHEVM-0'
vs
for ($i = 10; $i -le 20; $i++){$nm = 'THISISTHENAMEOFTHEVM-'
New-vm
-vmhost $vh
-Name $nm
-ResourcePool (get-resourcepool $rp -location (get-cluster $loc))
-Location (get-folder $lo)
-Template (get-template $tm)
-Datastore (get-datastore $ds)};
I struggled with this for a while until I remembered that I needed to use objects. The next hurdle was that I had a few datacenters with resource pools of the same name, so I had to add the -location on that one.
It only does the clone from template, so at some point in the future I'll flesh it out a bit.
---
$vh = 'esxhostname'
$nm = 'vmname'
$rp = 'resource pool name'
$lo = 'folder name'
$loc = 'cluster name everything is in'
$tm = 'name of template'
$ds = 'datastore on which to put the vms'
for ($i = 1; $i -le 9; $i++){$nm = 'THISISTHENAMEOFTHEVM-0' + $i;New-vm -vmhost $vh -Name $nm -ResourcePool (get-resourcepool $rp -location (get-cluster $loc)) -Location (get-folder $lo) -Template (get-template $tm) -Datastore (get-datastore $ds)};
for ($i = 10; $i -le 20; $i++){$nm = 'THISISTHENAMEOFTHEVM-' + $i;New-vm -vmhost $vh -Name $nm -ResourcePool (get-resourcepool $rp -location (get-cluster $loc)) -Location (get-folder $lo) -Template (get-template $tm) -Datastore (get-datastore $ds)};
---
Breaking it down:
The VMs I want to create all have the same name, with the exception of a two digit trailing number.
I was lazy and made two one-liners instead of including the zero padding.
for ($i = 1; $i -le 9; $i++){$nm = 'THISISTHENAMEOFTHEVM-0'
vs
for ($i = 10; $i -le 20; $i++){$nm = 'THISISTHENAMEOFTHEVM-'
New-vm
-vmhost $vh
-Name $nm
-ResourcePool (get-resourcepool $rp -location (get-cluster $loc))
-Location (get-folder $lo)
-Template (get-template $tm)
-Datastore (get-datastore $ds)};
I struggled with this for a while until I remembered that I needed to use objects. The next hurdle was that I had a few datacenters with resource pools of the same name, so I had to add the -location on that one.
My Turn
For many years now I have gone to the web for solutions to problems, snippets of code, etc. It's my turn to contribute.
Subscribe to:
Posts (Atom)