search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Server | No Comment | 6,882 views | 29/11/2011 23:11

If you have a Hyper-V cluster in a HP Server farm then you may face with low live migration performance. We realized that HP 300 series G6 and G7 servers shipping with energy saving mode. Let’s check that from HP website.

In the ProLiant 300-series G6 and G7 RBSU, the HP Power Profile defines three possible configurations of some of the power features identified earlier in this section. The HP Power Profile provides a simple mechanism for users to configure the power management options of their system based on their tolerance to power versus performance without having to individually configure each option.

There are three possible settings for the HP Power Profile: Maximum Performance; Balanced Power and Performance; and Minimum Power Usage. An additional Custom setting is simply any combination of user settings that do not match the pre-sets for the three categories listed below.

If you want to increase performance of live migration process, you need to disable c-states from BIOS. C-States has a huge impact on live migration. Since HP comes with Balanced Power and Performance mode, it also activates C6 state on BIOS. That’s reason of the issue. So changing HP Power Profile to “Maximum Performance“, you disable C-States from BIOS and get maximum performance from Live migration. As you see our servers can utilize 99% of bandwidth.

So it’s not a good thing to use “Balanced Power and Performance” on Virtualization. Get away from it :)


Posted in Virtual Machine Manager, Windows Powershell | No Comment | 7,672 views | 29/11/2011 22:54

You may get this error when you try to start maintenance mode on a Hyper-V host.

Error (10434)
No suitable host is available for migrating the existing highly available virtual machines.

Recommended Action
Either improve the host ratings for the other hosts within the same cluster, and then try the operation again, or do not migrate the virtual machines.

SCVMM can not live migrate virtual machines if a shared ISO file is attached. So that can pause maintenance mode if you choose live migration mode.
You can execute following Powershell codes to find VMs which have shared ISO files.

Get-VM | Get-VirtualDVDDrive | where {$_.ISO -ne $null} | ft Name

If you’re looking for a specific Hyper-V host called Host01:

Get-VMHost Host01 | Get-VM | Get-VirtualDVDDrive | where {$_.ISO -ne $null} | ft Name

Deattach shared ISO files from VMs and start maintenance mode again.


Posted in Virtual Machine Manager, Windows Powershell | 4 Comments | 11,033 views | 14/11/2011 11:18

You may get this error when you try to refresh virtual machine.

Error (12711)
VMM cannot complete the WMI operation on server node01.yusufozturk.info because of error: [MSCluster_Resource.Name=”69598e3a-3567-4b40-b7d9-dd08ed1169df”] The cluster resource could not be found.

(The cluster resource could not be found (0x138F))

Recommended Action
Resolve the issue and then try the operation again.

You should refresh cluster configuration to fix this issue. Go to one of the Cluster nodes.
Execute the commands on Powershell:

1
2
Import-Module FailoverClusters
Get-ClusterResource -c CLUSTERNAME | where {$_.resourcetype.name -eq 'virtual machine configuration'} | Update-ClusterVirtualMachineConfiguration

After that, you can refresh Cluster and VM from SCVMM console. That should fix the issue.


Posted in Linux Server, Virtual Machine Manager | 12 Comments | 35,751 views | 08/10/2011 12:23

Before installing FFmpeg-PHP, you need to install FFmpeg, MPlayer and MEncoder for video processing.
I posted an installation guide for them. You can reach it from this post:

Because I have CPanel on my CentOS, I won’t install Apache, MySQL or PHP. I’m just going with FFmpeg-PHP installation.
If you need Ruby on Rails, you can also install it via CPanel scripts.

So I assume you did previous installations. Now let’s go with FFmpeg-PHP installation.

1. Download ffmpeg-php in to /usr/src directory.

1
2
cd /usr/src
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2?r=&ts=1365651935&use_mirror=garr



Posted in Linux Server, Virtual Machine Manager | 8 Comments | 21,619 views | 03/10/2011 13:52

You need FFmpeg, MPlayer and MEncoder for video processing. I’ll show you how to install and configure it on Hyper-V.
I’ve already posted couple of articles about CentOS 6 installation on Hyper-V, so I won’t mention about that again.

You can see CentOS 6 installation on Hyper-V at the following posts:

So I assume you have a CentOS 6 with Hyper-V LIS v3.1. So lets continue with our installation.
First, we need to install RPMforge repository on CentOS 6.

1. Install the DAG GPG key.

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt



Posted in Linux Server, Virtual Machine Manager | 23 Comments | 29,531 views | 15/08/2011 01:23

First part, we installed required components for Cacti. In this part, we’ll install and configure Cacti.

After MySQL installation, first we should set MySQL root password.

1
2
mysqladmin --user=root password p@ssw0rd!
mysqladmin --user=root --password reload

Let’s download latest Cacti release.

1
2
cd /home
wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz

Untar tar ball.

1
2
tar -zxvf cacti-0.8.7g.tar.gz
cd cacti-0.8.7g

Create the MySQL database for Cacti. You have to type your root password to create database.

mysqladmin --user=root create cacti --password

Import the default Cacti database.

mysql -u root -p cacti < cacti.sql

Create a MySQL username and password for Cacti for security reasons.

1
2
3
4
mysql -u root -p mysql
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipass!';
flush privileges;
exit

Edit “include/config.php” and specify the database type, name, host, user and password for your Cacti configuration.

nano include/config.php
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “cactipass!”;

Move Cacti files into /var/www/html for web access.

1
2
cd /home
mv /home/cacti-0.8.7g /var/www/html/cacti

Go into Cacti directory and set the appropriate permissions for graph/log generation.

1
2
cd /var/www/html
chown -R apache:apache cacti

Add a line to your ”/etc/crontab” file.

nano /etc/crontab
*/5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1

Disable SeLinux to web restrictions.

nano /etc/sysconfig/selinux
SELINUX=disabled

Reboot your server to apply changes. After reboot, go to php.ini configuration and change timezone.

nano /etc/php.ini
date.timezone = “Europe/Istanbul”

We finished Cacti installation. Now go to your web browser and connect to http://yourserverip/cacti.

Choose “New Install” and click next.

Correct RRDTool default path.

RRDTool Binary Path: /usr/local/rrdtool/bin/rrdtool

Now Cacti is online!

You can login to Cacti with default username and password. After your first login, you should change password.

username: admin
password: admin

Now you can start adding your graphs :)


Posted in Linux Server, Virtual Machine Manager | 14 Comments | 30,652 views | 14/08/2011 16:22

Cacti is one of the best snmp based monitoring software. I’ll show you how to install and configure it on Hyper-V.
I’ve already posted couple of articles about CentOS 6 installation on Hyper-V, so I won’t mention about that again.

You can see CentOS 6 installation on Hyper-V at the following posts:

So I assume you have a CentOS 6 with Hyper-V LIS v3.1. So lets continue with Cacti installation.
Cacti requires that the following software is installed on your system.

1. Apache
2. PHP 5.x
3. MySQL 5.x
4. RRDTool 1.2.x

It’s time to install Apache on CentOS 6.

yum install httpd

Type “y” and press Enter to accept installation.

Now, start the Apache/httpd.

1
2
chkconfig httpd on
service httpd start

Now let’s install PHP.

yum install php php-mysql php-snmp php-xml

Type “y” and press Enter to accept installation.

Now we will install MySQL.

yum install mysql mysql-server

Type “y” and press Enter to accept installation.

Now, start the MySQL/mysqld.

1
2
chkconfig mysqld on
service mysqld start

It’s time to install last component, RRDTools. First, we need to install required dependencies.

yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

Type “y” and press Enter to accept installation.

Install gcc to compile RRDTool.

yum install gcc

Type “y” and press Enter to accept installation.

Download latest RRDTool.

1
2
cd /opt/
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz

Untar tar ball.

1
2
tar -zxvf rrdtool-1.4.5.tar.gz
cd rrdtool-1.4.5

You need to set PKG_CONFIG_PATH.

PKG_CONFIG_PATH=/usr/lib/pkgconfig/

Now let’s configure and install RRDTool.

1
2
3
./configure
make
make install

After installation is completed, let’s test RRDTool.

1
2
3
4
cd /usr/local/rrdtool/share/rrdtool/examples/
./stripes.pl
ls -l
cp stripes.png /var/www/html/

Lets see our test graph:

We finished installation of required components for Cacti. Next part, we will see how to install and configure Cacti.

You can continue with Part 2: