分类目录归档:虚拟化

虚拟化

How to enable SNMP monitoring for VMWare ESXi 6.0/6.5

You can do a lot of configuration of ESXi through the GUI, but one thing I’ve found that you cannot do is configure SNMP.

I can see in  the GUI that SNMP service is stopped, and that’s about it:

 

  • Even if you can manage to get the service started from the GUI, you’ll still have to set your community string somehow. I couldn’t exactly find a place to set that, so it’s off to the CLI we go.

So here’s how to enable SNMP and configure the community string/firewall on ESXi 6.0 or 6.5:
继续阅读

OMSA在ESXi服务器上安装部署

前言

本页详述了在一台VMware ESXi(ESXi 5.5)服务器上部署安装OMSA的通用做法,包括OMSA软件的获取方法和安装步骤。

演示环境:

PowerEdge R620, VMware ESXi 5.5

相关软件的下载和准备

1. VMware vSphere CLI 5.5。

我们需要在管理员的操作机(笔记本)上,通过CLI进行远程ESXi服务器的组件安装和配置。请先到VMware的官网下载下面的CLI。(用户可以免费注册,再下载该安装包),并提前安装好。

https://my.vmware.com/cn/web/vmware/details?downloadGroup=VCLI550&productId=353

2. VMware vSphere Client 5.5

本例使用VMware vSphere Client 5.5管理ESXi服务器:包括关闭ESXi服务器上虚机,以及将ESXi服务器进入或退出维护模式。当然,也可以使用其他用户习惯的工具。

本例VMware vSphere Client 5.5的下载地址如下:

http://vsphereclient.vmware.com/vsphereclient/1/2/8/1/6/5/0/VMware-viclient-all-5.5.0-1281650.exe

请先提前下载安装在管理员的Windows操作机上。 继续阅读

Nagios Plugin: check_esxi_hardware.py

This script is a Nagios plugin to monitor the hardware of ESX and ESXi servers. It can also be used as standalone script to check the hardware – Nagios isn’t necessary to run it. The plugin is written in python, so you need to have python installed. See Requirements for more information. 继续阅读

vCenter Server 5.5 setup stuck installing Directory Services

If you ever land up in a situation where your vCenter Server setup is stuck at the directory services stage and in the “VMINST.LOG” found under %temp% u see it trying to perform the following..

  1. VMware VirtualCenter-build-1235232: 02/20/14 09:48:55 Attempting to launch [“C:\Windows\system32\cmd.exe” /c start /w C:\Windows\system32\ocsetup.exe DirectoryServices-ADAM /passive /norestart]

ds_cn 继续阅读

Esxi 5.5 添加存储设备的问题

将一台服务器用过的磁盘加入到ESXi主机中,通过vSphere Client添加存储一直提示 esxi在x.x.x.x上调用对象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions”

用ssh连上esxi服务器,fdisk -l查看磁盘信息如下:

/dev/disks # fdisk -l

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***
Disk /dev/disks/naa.5000c500213f8657: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks  Id System
/dev/disks/naa.5000c500213f8657p1   *           1          13      102400   7 HPFS/NTFS
Partition 1 does not end on cylinder boundary
/dev/disks/naa.5000c500213f8657p2              13        6528    52326400   7 HPFS/NTFS
/dev/disks/naa.5000c500213f8657p3            6528       55311   391849984   7 HPFS/NTFS
/dev/disks/naa.5000c500213f8657p4           55311      121602   532481024   f Win95 Ext’d (LBA)
/dev/disks/naa.5000c500213f8657p5           55311      104094   391849984   7 HPFS/NTFS
/dev/disks/naa.5000c500213f8657p6          104094      121602   140628992   7 HPFS/NTFS
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/naa.50014ee00284452b: 976773168 sectors,  931M
Logical sector size: 512
Disk identifier (GUID): d82122c8-22ec-463d-801c-7f7d82cfbae7
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134

Number  Start (sector)    End (sector)  Size       Code  Name
1              64            8191        8128   0700
2         7086080        15472639       8190K   0700
3        15472640       976773134        916M   0700
5            8224          520191        499K   0700
6          520224         1032191        499K   0700
7         1032224         1257471        219K   0700
8         1257504         1843199        571K   0700
9         1843200         7086079       5120K   0700

把该硬盘(Disk /dev/disks/naa.5000c500213f8657)模式改为msdos即可以vSphere Client上加载硬盘。

使用以下命令:

partedUtil -h获得帮助。

Create New Label (all existing data will be lost): mklabel <diskName> <label>

使用这个创建新卷标选项,所有数据会丢失。

/dev/disks # partedUtil mklabel /dev/disks/naa.5000c500213f8657 msdos
/dev/disks # fdisk -l

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***
Disk /dev/disks/naa.5000c500213f8657: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks  Id System
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/naa.50014ee00284452b: 976773168 sectors,  931M
Logical sector size: 512
Disk identifier (GUID): d82122c8-22ec-463d-801c-7f7d82cfbae7
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134

Number  Start (sector)    End (sector)  Size       Code  Name
1              64            8191        8128   0700
2         7086080        15472639       8190K   0700
3        15472640       976773134        916M   0700
5            8224          520191        499K   0700
6          520224         1032191        499K   0700
7         1032224         1257471        219K   0700
8         1257504         1843199        571K   0700
9         1843200         7086079       5120K   0700

再次通过vsphere client添加存储时没有出错。

Proxmox VE 3.3 2-node cluster with GlusterFS

This article covers setup of simple and cost-effective 2-node Proxmox VE cluster featuring locally installed GlusterFS as shared filesystem for cluster VMs. Through this solution is not intended for mission critical or enterprise needs, its ease and ability to run on bargain priced hardware makes it interesting for non-profit organisations, labs or clustering enthusiasts.

gluster

 


This HOWTO implies you have 2 freshly installed Proxmox VE 3.3 nodes:
pve-node-01 (IPv4 10.10.0.1) and pve-node-02 (IPv4 10.10.0.2) connected to the 10.10.0.0/16 private network. Keep in mind that your actual setup may differ and you may need to change some of commands in this HOWTO to suit your needs. 继续阅读

Resizing the disk space on Ubuntu Server VMs running on VMware ESXi 5

Resizing the disk space on Ubuntu Server VMs running on VMware ESXi 5

We generally do both dedicated and VPS hosting for our websites, apps and some premium projects we run for others.When we choose to have VPS servers (aka virtual machines or VMs for short) instead of dedicated servers, we usually opt for VMware‘s free ESXi 5 and install Ubuntu Server as the OS for the VPSs we create on top of ESXi 5. It may not be as friendly as some VPS providers like Amazon, Rackspace etc. but you got more control and it’s on YOUR hardware (pretty important actually!)…

Now, when you build a VPS on VMware, you start with say 40GBs of hard disk space. You install the OS, setup the server, move the sites on this new server and you’re on. But what happens when there’s no more room on the server for your site or sites and you need to add more disk space?

继续阅读

Virtual machine IP Address and DNS Name not available on virtual machine Summary tab (1013371)

Symptoms

  • Cannot view the virtual machine IP Address or Domain Name Server (DNS) Name.
  • The virtual machine IP Address and DNS Name are not available on the virtual machine Summary tab.

Cause

This issue occurs if the virtual machine Configuration Parameter isolation.tools.setinfo.disable is set to True. When configured this way, the guest operating system does not pass IP Address and DNS Name information to the ESXi/ESX host for display in vCenter Server. Newly created virtual machines without this virtual machine Configuration Parameter set to True do not exhibit this problem.
Note: It is not required for the vCenter Server to be apart of the domain for the fully qualified domain name of a managed virtual machine to be displayed; however, if the virtual machine is not member of domain, then DNS name on virtual machine’s Summary tab will display the hostname only. 继续阅读