Author Archives: admin

Soyoustart – How to upgrade VMware ESXi 5.0 to ESXi 5.5? (Serie SYS)

Note: I’ve tested this procedure with just one server from serie SYS: SYS-E32-1

1) SSH to ESXi

2) List all profiles available from VMware depot site

~ # esxcli software sources profile list -d | grep 5.5
ESXi-5.5.0-20131201001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.5.0-1331820-no-tools       VMware, Inc.  PartnerSupported
ESXi-5.5.0-20131204001-standard   VMware, Inc.  PartnerSupported
ESXi-5.5.0-1331820-standard       VMware, Inc.  PartnerSupported
ESXi-5.5.0-20131201001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20131204001-no-tools   VMware, Inc.  PartnerSupported

3) Install latest ESXi version from VMware depot site, ESXi-5.5.0-1331820-standard

esxcli software profile install -d -p ESXi-5.5.0-1331820-standard --ok-to-remove

4) Set your acceptance level to CommunitySupported

~ # esxcli software acceptance set --level=CommunitySupported

5) Install custom vib driver for our Intel NIC 82579V

esxcli software vib install -v

6) Reboot and cross your fingers

~ # reboot

6) If everything worked ok your new build should be 1331820

~ # uname -a
VMkernel xxxx 5.5.0 #1 SMP Release build-1331820 Sep 18 2013 23:08:31 x86_64 GNU/Linux

RHEL 6.3 is out!

RHEL 6.3 is finally out, here you can check the:

If you want to try it out just download it from:

A few interesting things that you would like to check out:

  • Full USB 3.0 support
  • QFQ queuing discipline (Technology Preview)
  • KVM scalability enhancements
    • max 160 vCPU
    • max 2 TB RAM
  • KVM support for new Intel and AMD processors
    • Intel Core i3, i5, i7
    • AMD family 15h processors
  • Matahari packages deprecated and not installed by default
  • And much more!!!

Turn on a VMware VM with vim-cmd

Currently there isn’t a native application for VMware vSphere client for OSX or even Linux, vCenter Web Management HTML client is  an option but what happens if you don’t have a vCenter license or you don’t want to use your VMA so….

In order to power up a VM we only just need to SSH in our ESXi server and:

vim-cmd vmsvc/getallvms
vim-cmd  vmsvc/power.on

And we’ll have our VM up and running in a few seconds!

How to upgrade our RHEV-H hypervisors with RHEVM?

Once we’ve installed RHEVM and our RHEV-H’s how should I upgrade the hypervisors?

In order to do so, on the RHEVM machine, we need to install the isos images of RHEV-H:

yum install rhev-hypervisor6.noarch

NOTICE: If you’re unable to install this package add the following channel:

rhn-channel --add -c rhel-x86_64-server-6-rhevh

And we’ll notice that /usr/share/rhev-hypervisor/ contains the iso images of RHEV-H:

ls /usr/share/rhev-hypervisor/

Once it’s installed, we can put our RHEV-H into maintenance mode, and will see this option:

  • Host is in maintenance mode, you can Activate it by pressing the Activate button. If you wish to upgrade or reinstall it click here.
And just click “here” and select which RHEV-H iso image are you going to use:
  • rhevh-latest-6.iso

And that would be it, let RHEVM install the upgrade and the node would be automatically rebooted with the newer version of RHEV-H.


How to install RHEV Manager (RHEVM) Report?

Did you know that with RHEVM we can generate and create awesome reports?

If not, please, give it a try and install and configure RHEVM reports:

yum install -y rhevm-reports.noarch

Once it’s configured you’ll need to access to this URL:

  • https://<FQDN>:8443/rhevm-reports/

Remember that the default administrator user it’s called: rhevm-admin

How to install RHEV Manager (RHEV) Web Admin? (Technology Preview!)

In RHEV 3.0 we’re very near to ditch out our windows clients for administrating RHEVM plataform once and forever.

In order to do so we need to install the new HTML5 webadmin portal (normally it’s installed by default):

yum install -y rhevm-webadmin-portal.x86_64
service jbossas restart

And then you’ll need to access to this URL:

  • https://<FQDN>:8443/webadmin/webadmin/WebAdmin.html

Finally, take into account that:

  • Under Chrome works quite well but remember that there’s no SPICE plugin for Chrome web browser. So if you need to see the console of your guest, Firefox is the way to go.
  • Be aware that is not yet 100% functional as the other Administration Portal because it’s just in technology preview!

How to install RHEV Manager 3.0 (RHEVM)?

In order to install RHEVM we’ll need 2 things:

  • RHEL 6.2 x64
  • RHN account

Afterwards we’ll need to install RHEL 6.2 x64 with @base channel and update it to the minor release available once it is fully installed:

yum upgrade -y

And then we’ll proceed installing the necessary channels for RHEVM:

rhn-channel --add -c rhel-x86_64-server-6-rhevm-3
rhn-channel --add -c jbappplatform-5-x86_64-server-6-rpm
rhn-channel --add -c rhel-x86_64-server-supplementary-6
rhn-channel --add -c rhel-x86_64-server-6-rhevh

And as a last step we’ll only need to install RHEVM and configure it:

yum install -y rhevm

Afterwards you’re good to go to the RHEVM Administration Portal:

  • http://<FQDN>:8080/
  • https://<FQDN:8443/RHEVManager

REMEMBER that RHEV Manager only works with clients that can satisfy this requirements:

  • Microsoft Windows (7, XP, 2003 or 2008) with Internet Explorer 7 and above
  • Microsoft .NET Framework 4
If you want to use a Linux client check my future posts 😉

Full list of applications/cartridges supported on OpenShift Express

In my last post we created a sample PHP application with no content, no files, no nothing!

Just in case you want to create another kind of applications, here’s the full list of what is supported right now:

  • python-2.6
  • jenkins-1.4
  • ruby-1.8, raw-0.1
  • php-5.3
  • jbossas-7.0
  • perl-5.1

Remember how to create an application:

rhc-create-app -a <appname>  -t <apptype>

And here’s the list of all the cartridges supported in those applications:

  • mongodb-2.0
  • cron-1.4
  • mysql-5.1
  • postgresql-8.4
  • 10gen-mms-agent-0.1
  • phpmyadmin-3.4
  • metrics-0.1
  • rockmongo-1.1
  • jenkins-client-1.4

And a quick remember of how to add a cartridge:

rhc-ctl-app  -a <appname> -e add-<cartridge>

How to setup OpenShift Express with RHEL

If you don’t know what’s OpenShift you should check it out at Red Hat site, and for further reference also take a look to their documentation, blogs and knowledge base:

Things to take into account:
  • We have 512 MB of disk space
  • We have 300 MB of RAM and 100 MB of swap
After this briefly introduction, in order to setup OpenShift in our machine we have to install a new channel as usual and set up EPEL/Openshift repositories(this demo is based in RHEL 6.2):
rhn-channel -a -c rhel-x86_64-server-optional-6
rpm -ivh
wget -O /etc/yum.repos.d/openshift.repo
yum install rhc -y
Now we just have to create our domain and our PHP application:
 rhc-create-domain -n  -l 
 rhc-create-app -a  -t php5.3

For example, my domainname is prova and my appname is mw, so my service URL is:

Next step is set up our embedded database. Take note of your mysql admin password and connection URL:
rhc-ctl-app  -a mw -e add-mysql-5.1
 Mysql 5.1 database added. Please make note of these credentials:
 Root User: admin
 Root Password: xxxxxxx
 Database Name: mw
 Connection URL: mysql://127.6.x.y:3306/

Finally we’ll need to configure a demo wikipedia/wordpress in our OpenShift Express application with MySQL support, stay tuned for my next post 😉


Single Sign On in RHEV3 using GDM and Active Directory

As per my previous post we should have Active Directory up and running in our RHEV-M.

So how about setting up SSO on our RHEL guests? In order to do that we should follow this simple procedure.

First of all we need to install our rhev agent that is found in a special channel and winbind client:

rhn-channel --add --channel=rhel-x86_64-rhev-agent-6-server
yum install rhev-agent rhev-agent-gdm-plugin-rhevcred samba-winbind-clients

Next of all we need to activate AD authentification on our guest, for example (RHEVM is our test Domain):

  User Account => Winbind
  Winbind Domain => RHEVM
  Security Model => ads
  Winbind ADS Realm => RHEVM
  Winbind Domain Controller => ad.rhevm.test
  Template Shell => /bin/bash
  Join Domain  => Joined domain RHEVM.

If is not working double check your configuration files and DNS resolution:


And finally, just in case, check that winbind is properly working, we could check some users/groups for example:

wbinfo -t
wbinfo -u
wbinfo -g
getent passwd "RHEVM\testuser"

As a last step, check that we can login/sudo with an AD user on this guest:

su - 'RHEVM\testuser'
ssh 'RHEVM\testuser'@localhost

Finally restart GDM daemon and rhev-agent service:

service rhev-agentd restart
pkill -f gdm-binary

And try to Single Sign On through GDM! It should work!

If it doesn’t work put in debug mode rhev-agent and try to figure out why is not working:

vi /etc/rhev-agent.conf
service rhev-agentd restart
tail -f /var/log/rhev-agent/rhev-agent.log