Vsphere archives - The Real (and Virtual) Adventures of Nathan the IT Guy

The Real (and Virtual) Adventures of Nathan the IT Guy:

vsphere

Oct 30 2009   4:44AM GMT

vSwitch and vSwif Problems



Posted by: Nathan Simon
vmware, ESX 3.5, vsphere, cannot connect to service console, vmnic not bound to service console, cannot bind a vmnic to a vswif, esx networking, vnetworking, service console issues

What happens when you cannot connect to the service console anymore, and even if you had a backup service console and it wasn’t working either, well i happened to me. When I attempted to attach a vmnic to a vSwitch, I got an error message, no matter what I tried I could not get it reconnected. Last ditch effort is to recreate the vswif interface. Below are the steps I took. I had to do the first 4 steps twice, as i had to vSwitches.

Note: On your system the vswif, vmnic, vSwitch numbers and network settings are different.

1.Run the following command to list the name of the vswif adapter:

esxcfg-vswif -l

2.Run the following command to delete the vswif adapter:

esxcfg-vswif –del vswif0

3.Run the following command to list the name of the vSwitch:

esxcfg-vswitch -l

4.Run the following command to delete the vSwitch:

esxcfg-vswitch -d vSwitch0

5.Run the following command to create the vSwitch:

esxcfg-vswitch -a vSwitch0

6.Run the following commands to create default port groups for vSwitch:

esxcfg-vswitch -A “VM Network” vSwitch0
esxcfg-vswitch -A “Service Console” vSwitch0

7.Run the following command to create the vswif adapter:

esxcfg-vswif –add –portgroup “Service Console” –ip=nnn.nnn.nnn.nnn –netmask=255.255.255.0 vswif0

8.Run the following command to verify that the settings in the network file are correct:

cat /etc/sysconfig/network

NETWORKING=yes
GATEWAYDEV=vswif0
HOSTNAME=host.domain.com
GATEWAY=nnn.nnn.nnn.nnn

9.Run the following commands to list all of the network adapters and associate a vmnic which has a link status of up:

esxcfg-nics -l
esxcfg-vswitch -L vmnic1 vSwitch0

10.Run the following command to verify that the vmnic is associated with the vSwitch:

esxcfg-vswitch -l

11.Ping an IP address to check for network connectivity. If the ping fails remove the previous vmnic from the vSwitch and try another adapter that has a link status of up.

12.Once you have verified connectivity, you can then connect to Virtual Infrastructure client of the affected ESX Server, you may or may not have a bit a work ahead of you at this point, depending on iSCSI, etc…

Good Luck

-NS

Oct 27 2009   3:42PM GMT

How to Properly kill a VM



Posted by: Nathan Simon
vmware, vsphere, how to find the PID of a vm, PID, vmx, vmware-cmd, vmware-cmd stop, vmware-cmd stop hard, vm won't respond, kill -9 PID, ps -ef |grep, ps auxfww | grep, ESX Server 3.5

We all know that you can use the command “ps -ef |grep (vmconfig filename.vmx)” to find the PID for a VM, but I get confused as to which number that comes up is actually the PID… I found a new command that works much better. See below.

The Definitive way to Kill a PID process

The steps below are based on the fact that you already tried to use “vmware-cmd vmname.vmx stop; stop hard”

1.)    A final solution is to kill the PID (process ID). Issue the following command: “ps auxfww | grep <vmname>” to locate the correct PID (BTW: this cannot be done via *ESXTOP*). The first number to appear in the output is your PID. The PID can be used to terminate the process by issuing kill -9 PID.

2.)    Run vmware-cmd <vmname>.vmx getstate to see if it is now “off”, as it should be.

3.)    You can now go back into Virtual Infrastructure Client and start the machine.

-NS


Oct 21 2009   3:45AM GMT

vSphere and Datastore Monitoring



Posted by: Nathan Simon
vsphere, thin provisioning, datastore management, Veeam Monitor, ESX 3.5, vmware, vsphere alarms, traps, storage monitoring

I just wanted to point out an article that I found while searching about vSphere and Datastore management and monitoring.

What would be better than being warned that your datastore is reaching a critical point, wouldn’t it be nice to intercept before the VMs crash?! Of course it would. Check out this pdf “Storage with VMware vSphere“, I have included an insert below.

“vSphere enables many new features for the management of virtualization storage resources. These capabilities provide vSphere administrators with new ways to increase efficiency for disk utilization and CPU cycles. With automated proactive alerts and alarms, vCenter provides more visibility and control of storage resource allocations, deployment, and monitoring. Also, new levels of reporting, topology maps, and datastore status and details screens provide an easy way to manage access and limit storage sprawl in VMware deployments. Storage VMotion has been enhanced to enable more choices for migrating VM homes from one type of storage to another. And finally, new choices exist for optimizing I/O traffic for I/O intensive Virtual Machines.”

This next link gives you a quick insight into what vSphere Offers in terms of Data Management overall, including “Responsible Thin Provisioning”.

Of course if you just cant get your hands on vSphere 4, then you can purchase Veeam Monitoring, which can monitor datastores and alert you when the datastores are almost full… see insert and check out the Veeam Monitor Homepage

“Veeam Monitor 4.0 provides full storage monitoring capabilities, including disk space, disk issues and datastore monitoring. The latter allows for viewing datastore load information aggregated from disk utilization statistics of all VMs and hosts using the specific datastore. This allows you to see the actual cumulative load on a particular datastore, and set up an alarm that fires off when the datastore load is above a specified threshold. Datastore I/O monitoring is a unique Veeam Monitor feature not available from other VMware monitoring applications.”
-NS


Sep 17 2009   12:05AM GMT

Openfiler, Free and Opensource



Posted by: Nathan Simon
iSCSI, HP MSA, HP All-In-One, vcp-310, openfiler, open source iscsi appliance, VMWare workstation, Petri, ESX Server, ESX 3.5, ESX 4, vsphere, iSCSI target

I am back in the books after being un-prepared for VCP-310 and was needing some iSCSI practice, well i dont have an MSA or HP All-In-One laying around so i improvised. My buddy Raj ( he has a blog on here also) pointed me to a program called Openfiler. I was able to create a VM on VMware Workstation, install Openfiler, and then create an iSCSI target for my ESX Box. Worked like a charm. Since I had never used this product before, I used this Petri Article, “Use OpenFiler as your Free VMware ESX SAN Server”. Read through it all, its a 2 part post.

Just wanted to share my awesome experience of configuring an iSCSI target out of a laptop and virtualization components!

NS


Aug 28 2009   4:11PM GMT

Veeam Backup and Replication 4.0



Posted by: Nathan Simon
Veeam 4.0, Veeam Backup and Replication, Veeam Backup and, seeding, replication, vsphere, ESX 3.5, VCB, vStorage API, ESX4

The soon to be release #1 Backup solution for ESX 3.5 and vSphere is better than ever! Read below for all the new features. If you would like to be notified when Veeam Backup 4 gets released go here.

• Native support for thin-provisioned disks for faster full VM backups and restores, to reduce the amount of storage required to host your production VMs.

• Ability to leverage ESX4 changed block tracking for lightning-fast incremental backup. For instance, if a VM only had 5 percent change since the last backup, the incremental backup time will be 20 times faster.

• Support for the new vStorage API – a VMware Consolidated Backup (VCB) replacement. With VCB being discontinued, the vStorage API is the recommended API for VMware vSphere backup going forward. For example, the backup of vSphere

Fault Tolerant VMs will only be possible using the vStorage API. While Veeam is still committed to supporting VCB as long as our customers will require, native support for the vStorage API makes Veeam Backup & Replication the most future-proof solution currently available on the market.

• Support for virtual applications (vApp) for more flexibility with your job setup.

Near-real-time replication at a fraction of the cost In our continuing effort to provide the best VMware replication capabilities on the market, Veeam Backup & Replication 4.0 now leverages the new vSphere ESX(i) 4 functionality to provide much faster replication cycles. You can now schedule replication jobs to run as often as every few minutes, allowing you to achieve very low recovery point objectives in case of disaster, thus providing near-CDP (continuous data protection) protection at a fraction of the cost.

Unlike competitive solutions that require replicated VMs to run with open snapshots (which prevent Live Migration and DRS)

Veeam Backup & Replication does not have this requirement and instead uses new vSphere ESX(i) 4 APIs to achieve fast replication cycles. Veeam Backup & Replication also provides the ability to fail over to both current and earlier points in time in case of software corruption – functionality not available from other vendors.

Other Enhancements

Numerous additional enhancements requested by our customers are also included to make Veeam Backup & Replication even easier and more convenient to use:

General

• Hot VM copy. Veeam Backup & Replication 4.0 now features a new job type supporting scheduled full-image copies of running VMs to allow hot mirroring of your production environment to test lab storage, for datacenter migrations, or for ad-hoc backups.

• Safe snapshot removal. Veeam Backup & Replication now implements a safe snapshot removal technique to prevent production applications from timing out during helper snapshot commit. This makes Veeam Backup & Replication the only truly production-ready application able to perform hot image-level backups and replicas of large VMs with high disk I/O loads without affecting production applications.

• PowerShell access. You can now control all aspects of Veeam Backup & Replication via PowerShell scripts. This allows you to automate all Veeam Backup & Replication activities, such as job creation and control, changing settings and so on.

• New transactional backup storage, providing for better reliability, performance and improved compatibility with thirdparty hardware storage devices.

• Backup and replication jobs can now automatically fail over to network mode if direct storage access (SAN) mode is not available due to the storage infrastructure issues.

• VM log files are now automatically excluded from backup and replication to increase backup speed and decrease the Backup

• Backup storage disk space monitoring. The backup file location is now continuously monitored, with warnings logged whenever backup storage goes low on free disk space, providing advanced backup storage capacity planning.

• Full backup every N cycle. You can now configure jobs to optionally create full backups at defined intervals, instead of performing forever-incremental backup with synthetic building of the full restore file. A full backup can also be initiated manually from the user interface.

Replication

• Replica seeding. You can now optionally perform initial replication over removable storage, instead of having full replication traffic go over WAN.

• Disk exclusion for replication jobs. Similarly to backup job disk exclusion capabilities, you can now exclude specific disks from replication jobs as well.

User interface

• VM exclusion. Veeam Backup & Replication now provides the ability to exclude specific VMs or virtual infrastructure objects from your container-based backup and replication jobs for added flexibility.

• Multiple job creation wizard enhancements. Creating jobs is even easier than before with the new ability to search for objects based on a few letters from the name, seeing the size of your selected scope of objects, and the ability to estimate the required disk space for backups given your retention policy.

• Ability to change backup and replica destinations on existing jobs so you can move the destination without requiring a full backup from scratch.

• Ability to disable jobs. You can now temporarily disable a backup from running on schedule with a single click, without having to open job properties or clear the schedule.

• Ability to customize VM attribute used to store backup results (backup date and time, backup console name, and path to the backup file containing the specific VM) upon successful backup.

• Ability to perform Windows file-level restore directly to running Windows guest with a new built-in file-level restore.

• And many more minor enhancements requested by our valued customers.


Apr 22 2009   1:59AM GMT

“vSphere” is Officially Launched



Posted by: Nathan Simon
vsphere, vmware, ESX 4, ThinApp, vmware.com, VMware vSphere Upgrade Center, VMware vSphere Editions Comparison Chart, Comparison Chart, editions, Paul Maritz

Well it wasn’t release as in go install it, 30 days from now, you should see a download available. But you can check out the official VMware website for more information.

You can also check out the official Simulcast featuring VMware CEO Paul Maritz here.

A must read is the VMware vSphere Upgrade Center if your looking to upgrade asap. Check it out here.

If you would like to get a quick comparison of the different licensed features with each edition check out the VMware vSphere Editions Comparison Chart here.

ThinApp was also featured today and it looks pretty cool. The packaging process and deployment of applications were made to look a breeze. Check it out here. Or download and test it for yourself, go here.

Lots of things to look forward to with the release of vSphere(ESX 4.0)

NS


Apr 16 2009   4:07AM GMT

ESX 4 and ESX 4i



Posted by: Nathan Simon
ESX 4, ESX 4i, powershell, hot add memory, VI Toolkit 1.5, vmware, Techday, vsphere

Rumors abound, ESX 4 and 4i are soon to be released. A couple notable items are that VMWare is going to allow more then 4vCPU per VM. Also Administrators will be able to hot upgrade memory using the VI Toolkit 1.5. Hot adding memory can only be done in a Server 2008 VM. With the ability to build PowerShell cmdlets, the new VI Toolkit will allow administrators to automate many tasks.

VMWare will be stopping by EPIC Information Solutions to talk about vSphere(ESX 4) April 21st is apparently the launch date for the new version of ESX. Guess what else is on April 21st? Epic Tech Day! So expect some posts from me revolving around Tech Day and VMWare.

NS