This blog will help VMware professionals with latest updates, installations and ongoing issues of Virtualization technology.
Showing posts with label ESX Configuration. Show all posts
Showing posts with label ESX Configuration. Show all posts
Monday, May 23, 2011
Wednesday, May 18, 2011
Restarting the Management agents on an ESX or ESXi Server
Symptoms
- Cannot connect ESX to VirtualCenter/vCenter Server
- Cannot connect directly to ESX Server from the VMware Infrastructure Client/vSphere Client
- You cannot stop or start a virtual machine
- A virtual machine is shown as running in vCenter Server when it is not
- vCenter Server shows the error:
Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host
Purpose
For troubleshooting purposes, it may be necessary to restart the management agents on your ESX host. This article provides you with the steps to restart the management agents (mgmt-vmware and vmware-vpxa) directly on ESX or ESXi.
This article applies ESX/ESXi 3.x and ESX/ESXi 4.x.
Caution: Restarting the management agents may impact any tasks that may be running on the ESX or ESXi host at the time of the restart. For more information about identifying tasks running on an ESX or ESXi host, see Collecting information about tasks in VMware ESX and ESXi (1013003).
Resolution
Restarting the Management agents on ESX
To restart the management agents on ESX host:
- Log in to your ESX host as root from either an SSH session or directly from the console.
- Type service mgmt-vmware restart.
Caution: Ensure Automatic Startup/Shutdown of virtual machines is disabled before running this command or you risk rebooting the virtual machines. For more information, see Restarting hostd (mgmt-vmware) on ESX Server Hosts Restarts Hosted Virtual Machines Where Virtual Machine Startup/Shutdown is Enabled (1003312) and Determining whether virtual machines are configured to autostart (1000163). - Press Enter.
- Type service vmware-vpxa restart.
- Press Enter.
- Type logout and press Enter to disconnect from the ESX host.
If this process is successful, it appears as:
[root@server]# service mgmt-vmware restart
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]
[root@server]# service vmware-vpxa restart
Stopping vmware-vpxa: [ OK ]
Starting vmware-vpxa: [ OK ]
[root@server]#
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]
[root@server]# service vmware-vpxa restart
Stopping vmware-vpxa: [ OK ]
Starting vmware-vpxa: [ OK ]
[root@server]#
Note: If there are failures listed:
- The most common reason for a stopping task to fail is that the service is not started.
- If a starting task fails for the mgmt-vmware service, see Troubleshooting vmware-hostd service if it fails or stops responding (1002849).
- If a starting task fails for the vmware-vpxa service, see Troubleshooting the vCenter Server Agent service when it does not start (1006128).
Restarting the Management agents on ESXi
To restart the management agents on ESXi:
- Connect to the console of your ESXi host.
- Press F2 to customize the system.
- Login as root.
- Using the Up/Down arrows navigate to Restart Management Agents.
Note: This option is available under Troubleshooting Options in ESXi 4.1. - Press Enter.
- Press F11 to restart the services.
- When the service has been restarted, press Enter.
- Press Esc to logout of the system.
Currently connected network interface uses network, which is configured for different offload or security policies
Symptoms
- When performing a VMotion migration the following compatibility error displays:
Unable to migrate from
Resolution
Overview
This unable to migrate error indicates that the source and destination servers have different security or offload settings configured on the virtual switch or portgroup that the virtual machine is connected to.
The security and offload settings between virtual switches need to be the same to ensure that the functionality of the virtual machines is not affected upon migration.
Workaround
To workaround this issue, perform one of the following actions:
- Check the properties of the virtual switch and/or portgroups between the source and destination servers. Ensure there are no differences between the settings on the Security tab, and the Traffic Shaping tab between the hosts.
Power down the virtual machine and perform a cold migration of the virtual machine.
Installation of ESX 4.0 has different default VMNIC0 compare to other ESX in environment.
I have an environement with each ESX server has 4 VMNIC installed. 2 card built in and 2 card is PCI.While, Installing ESX server 4.0 on exisitng server, VMNIC2 has taken as a VMNIC0 and configure as default installation. This added to the existing cluster but giving error while configuring HA
While checking the network settings, found that VMNIC settings as compare to old server is different and swaped as "VMNIC0 becomes VMNIC2" and "VMNIC2 become VMNIC0".
Remaing servers has this configuration and this server before has ..... see the snap
With the wrong configruation we get the following below one. These need to be change to comply the following network standards.
OBJECTIVE:
We need to resolve this issue by changing a VMNIC name mapping from VMNIC2 to VMNIC0 and vice versa.
RESOLUTION:
We could use a method to renumber the vmnic in order to get the same numbers as you want where to change the vmnic2 to vmnic0 in order to have correct administration for the HA.
All commands are run as the root user on the ESX host with root user's environment. If you login to the ESX Service Console command line using a non-root user account, be sure to use "su -" to reach the root user account and include the environment.
1. Backup the /etc/vmware/esx.conf file
# cd /etc/vmware
# cp esx.conf /root/esx.conf.backup
2. Edit the esx.conf file with a command line editor such as vi You will find lines such as these within the esx.conf file (not together in one area):
/device/004:00.0/vmkname = "vmnic0"
/device/006:00.0/vmkname = "vmnic2"
/net/pnic/child[0000]/name = "vmnic0"
/net/pnic/child[0001]/name = "vmnic2"
/net/vswitch/child[0000]/teamPolicy/uplinks[0000]/pnic = "vmnic0"
/net/vswitch/child[0000]/teamPolicy/uplinks[0001]/pnic = "vmnic2"
/net/vswitch/child[0000]/uplinks/child[0000]/pnic = "vmnic0"
/net/vswitch/child[0000]/uplinks/child[0001]/pnic = "vmnic2"
Switch vmnic0 with vmnic2 and vice versa.
3. Push this change into the initrd file using:
# esxcfg-boot -p
4. Once the file has been updated, reboot the ESX host # shutdown -r now
Result:
After re-booting a server, you will get the following configuration.
After restart a server, configure the proper network settings in configuration Hardwar and do the proper changes as similar to your standards in vSWITCH0 for service console and VMKernel.
Add the server to existing cluster again and enjoy all services for HA and DRS.
Regards,
Kabeer Siddiqui
Tuesday, March 29, 2011
Saturday, March 26, 2011
Wednesday, December 29, 2010
Virtualization for Dummies.
Reasons for Moving to Virtualization
If you’re trying to decide if virtualization is right for your organization, whether from an economic or technological standpoint, consider these reasons for taking the virtualization plunge:- It saves money: Virtualization reduces the number of servers you have to run, which means savings on hardware costs and also on the total amount of energy needed to run hardware and provide cooling.
- It’s good for the environment: Virtualization is a green technology through and through. Energy savings brought on by widespread adoption of virtualization technologies would negate the need to build so many power plants and would thus conserve our earth’s energy resources.
- It reduces system administration work: With virtualization in place, system administrators would not have to support so many machines and could then move from firefighting to more strategic administration tasks.
- It gets better use from hardware: Virtualization enables higher utilization rates of hardware because each server supports enough virtual machines to increase its utilization from the typical 15% to as much as 80%.
- It makes software installation easier: With software vendors tending more and more towards delivering their products preinstalled in virtual machines (also known as virtual appliances), much of the traditional installation and configuration work associated with software will disappear.
Types of Virtualization
Currently, most of the activity in the virtualization world focuses on server virtualization —– the data centers or server farms. The three main types of server virtualization are:- Operating system virtualization (aka containers): Creates self-contained representations of underlying operating system in order to provide applications in isolated execution environments. Each self-contained environment (container) reflects the underlying operating system version and patch level.
- Hardware emulation: Represents a computer hardware environment in software so that multiple operating systems can be installed on a single computer.
- Paravirtualization: A thin software layer that coordinates access from multiple operating systems to underlying hardware.
Major Players and Products in Virtualization
Once you’ve decided on switching to a virtualized environment, where do you go for solutions, support and products? This list represents the major players in virtualization:- VMware: The big daddy of the field. Provides hardware emulation virtualization products called VMware Server and ESX Server.
- Xen: A new open source contender. Provides a paravirtualization solution. Xen comes bundled with most Linux distributions.
- XenSource: The commercial sponsor of Xen. Provides products that are commercial extensions of Xen focused on Windows virtualization. XenSource was recently acquired by Citrix.
- OpenVZ: An open source product providing operating system virtualization. Available for both Windows and Linux
- SWsoft: The commercial sponsor of OpenVZ. Provides commercial version of OpenVZ called Virtuozzo.
- OpenSolaris: The open source version of Sun’s Solaris operating system provides operating system virtualization and will also provide Xen support in an upcoming release.
Virtualization Project Steps
After you’ve evaluated virtualization and want to move forward with it, it’s time to implement a virtualization plan. Don’t jump right in, the first steps are to create a virtualization project using these five steps:- Evaluate your current server workloads.Determine whether virtualization can help you and figure out what your potential virtualization use cases might be.
- Define your system architecture.What form of virtualization will you use, and what kind of use case do you need to support?
- Select your virtualization software and hosting hardware.Carefully evaluate the virtualization software’s capabilities to ensure that it supports your use cases. Be sure to look at the new virtualization-enabled hardware systems.
- Migrate your existing servers to the new virtualization environment.Decide whether some of the new migration products can help you move your systems or if you need to move them manually — in either case, create a project plan to ensure everything is covered
- Administer your virtualized environment.Decide whether the virtualization product management tools are sufficient for your needs or whether you should look to more general system management tools to monitor your environment.
Virtualization Mini-Glossary
To help you get a better understanding and expand your knowledge of virtualization, get to know these useful terms and how they apply to virtualization and its process:Bare metal: Virtualized servers in which the virtualization software is installed directly on the machine rather than on an operating system. Because it installs on the machine, it is said to reside on “bare metal.”
Client virtualization: Using virtualization to enable a client device (like a laptop) to support isolated operating environments. Client virtualization is often used to move workloads into isolated environments to reduce system administration requirements.
P2V: Shorthand for “physical to virtual.” P2V stands for the process of migrating systems from the physical hardware they originally ran on to virtual operating environments running in a virtualized environment.
Server virtualization: Running virtualization software on server machines in order to host multiple operating system environments on a single piece of hardware.
Storage virtualization: Using shared storage located on individual servers so that multiple servers can share a single storage device. Storage virtualization is often implemented after initial server virtualization efforts in order to centralize resources and reduce storage administration work.
Read more: http://www.dummies.com/how-to/content/virtualization-for-dummies-cheat-sheet.html#ixzz19WPlEnE0
Thanks....
Subscribe to:
Posts (Atom)