Premium ESX VMware Soluciones de hospedaje para SMB 760.705.4022
Español(Spanish Formal International)English (United Kingdom)



Registered members may comment on blog posts. Use the form below to become a register member OR login.




After registration, you will receive an email with your confirmation code. Please follow directions to complete the registration process. Then Login to leave comments.

2009.11.20 07:22:52
There are no translations available.

I ran into a troublesome error the other day that I thought was worthwhile writing about. When updating an ESX vmware server with YUM (package manager), I encountered a transaction failure message. The message indicates that there was a conflict in the order of the updates. In this case a subversion package that is 64bit is conflicting with a similar 32bit package:

 

Transaction Check Error:
file /usr/share/emacs/site-lisp/psvn.el from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/de/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/es/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/fr/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/it/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/ja/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/ko/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/nb/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/pl/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/pt_BR/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/sv/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/zh_CN/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/locale/zh_TW/LC_MESSAGES/subversion.mo from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/man/man1/svn.1.gz from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/man/man1/svnadmin.1.gz from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/man/man1/svnlook.1.gz from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/man/man5/svnserve.conf.5.gz from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/man/man8/svnserve.8.gz from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386
file /usr/share/xemacs/site-packages/lisp/psvn.el from install of subversion-1.6.6-0.1.el5.rf.x86_64 conflicts with file from package subversion-1.4.2-4.el5_3.1.i386

The solution is straightforward. Install a yum plugin that allows the prioritization of which repositories are checked for updates and updated first. In this particular case, I only modified the main base repo. The new lines that were added assign each repo a priority from 1 to 99:

 

  • priority =1
  • priority = 2


vi /etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
priority=2

Next, install yum priorities
yum install yum-priorities
And finally run yum update again. This time there were no transaction failures!



2009.09.22 00:24:26
There are no translations available.

For security reasons it is good practice to assign the ESX (vSphere) servers a private IP instead of a public IP. The private IP increases the security of the server since it is not accessible directly over the Internet. However, the ESX server on a private address (IP) cannot sync with the public time server. The same applies to the virtual center (vCenter) if it is also assigned a private IP (and no public IP).

It is important to the proper functioning of the ESX servers and vCenter for their timeclocks to be in sync, but using a private address precludes utilizing a publicly available NTP server. The solution to this problem is to use an NTP server that has both a private and public IP. The private IP of the NTP server must be on the same subnet as the ESX or vCenter server for this to work. Once you have an NTP server that is dual homed, then the next task is to update the vCenter server and the ESX servers. The following assumes that the NTP server is on private IP 192.168.0.9.

In order to update the ESX servers, you can update them directly via the console or you can use Virtual Center (vCenter), by simply clicking on "Configuration >> Time Configuration >> Properties":


Now click on the "Options" button and then select NTP Settings. There you will be able to add the NTP server's IP address. You should also remove any other NTP servers that you don't need such as 127.127.0.0.1.

 

 

Make sure the "NTP Client Enabled" checkbox is selected because otherwise, the firewall port 123 will remain closed and NTP will fail. To see the failure condition more clearly, I logged onto one of the ESX servers to see the error message produced when attempting to start up the NTP daemon:

ntpd restart

Shutting down ntpd:                                        [FAILED]
ntpd: Synchronizing with time server:                      [FAILED]
Starting ntpd:                                             [  OK  ]

 

In order to update vCenter so that it too is reliant on an  NTP server on a private IP, you'll need to use regedit (registry editor). There are many other documents on the Internet that talk about how to do this, so I will recap here:

For more details google "NTP server registry update" or view this article:

http://www.windowsnetworking.com/articles_tutorials/Configuring-Windows-Time-Service.html

Change this registry entry to "NTP":

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type

Change this registry to "5":

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags

Change this registry to the IP of the NTP server (i.e., 192.168.0.9)

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer

Finally, restart the network time services:

net stop w32time

net start w32time

 

Give it a few minutes and the clock will then show the synchronization with the NTP server on the private IP:

 

 

Now the servers are more secure on a private IP address AND they are in sync by using a dual-homed NTP server.

 


Tags: ESX | NTP



2009.04.17 00:18:46
There are no translations available.

 

Virtualization has solved an array of IT problems for companies around the globe, and it promises to expand its reach in the future to cover an even wider range of scenarios.

However, virtualization isn't a silver bullet that can solve all of IT's woes -- nor is it suited for all companies. There are circumstances when ESX virtualization may not be ideal for you.

 

ESX Virtual Hosting is Not Ideal if:

 
  1. You require Mac OS, because it isn't supported by ESX. Instead, you should pick an OS that is either Microsoft Windows or one of the various flavors of Linux, including Ubuntu, OpenBSD, & CentOS.
  2. You don't know how to secure your server from malicious users, and you don't have the budget to hire a professional to do it for you. If you don't secure your guest OS, it can become compromised like any dedicated server -- virtual or not. You will need a minimum a firewall (software or hardware), a web application filter (such as mod_security), and an intrusion detection system (IDS) for your guest OS to be considered secure.
  3. You don't have a clear game plan, because adding a load of virtual servers will only add to the administrative work. You should know ahead of time how these new virtual machines will be administered. You need a  proper consolidation strategy to ensure that the virtual machines fit within your organizations server policies and compliance standards. After the game plan is in place, utilizing VMware's templates will be an excellent way to create many virtual machines in minutes instead of days, and it can help in keeping deployment headaches to a minimum.
  4. You haven't measure the workload of each server you will be moving to an ESX hosted platform. You need to estimate the number of virtual resources you will need before deploying the virtual machines.
  5. You believe that the hosting company can use ESXi -- which is free -- and you want a super low price for your hosting package. In actuality, VMware requires that a hosting company become a VMware Service Partner and pay VMware a monthly fee for the rights to host other companies. Therefore, hosting companies, VM Racks included, must charge a reasonable fee that includes the monthly payments to VMware and can still achieve a reasonable profit.

 

By considering each of these scenarios, hopefully you can start to see if virtualization is right for you, and what steps you might need to take before virtualizing your servers.


Tags: