How to test virtual machine performance in ubuntu 14.04? - operating-system

I am using xml-rpc to integrate opennebula into my own cloud dashboard. I need to test the vm performance. Suggest me any tools to test the vm. How to do that in ubuntu14.04?

Use UnixBench (the best free benchmarking tool available) as follows:
$apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make gcc
$wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
$tar xvf UnixBench5.1.3.tgz
$cd UnixBench
$./Run
For details about every test executed, visit:
https://github.com/kdlucas/byte-unixbench

Related

Install ora2pg [DBD::Oracle] manually on windows machine behind firewall no direct access to internet

I am trying o install ora2pg and followed ora2pg-on-windows
I am stuck at
perl -MCPAN -e "install DBD::Oracle"
as my windows machine is behind a firewall and networking is not allowing this to open to it up to the internet. Is there a way to manually download and install DBD::Oracle. Any help is appreciated.
Thanks
Download the module,
move it to the machine, unpack the archive and follow the instructions in the INSTALL file:
As a last resort, you can manually install it. Download the tarball, untar it,
install configure prerequisites (see below), then build it:
% perl Makefile.PL
% make && make test
Then install it:
% make install
On Windows platforms, you should use dmake or nmake, instead of make.
Of course you'd need the nmake or dmake commands installed, a C compiler etc. It may be simpler to build it on a Windows machine with access to the internet and transfer the files to be installed to the target machine.

A procedure to install minishift on Fedora?

This nice article describe very well how to install minishift on Windows, MacOS and RHEL:
Hello World!
Unfortunately, there is no procedure for Fedora, can you provide some guidelines?
It is possible to download the CDK (minishift) binary directly from download page. You just need to be registered.
Next, you should configure your system environment (ie. set up hypervisor driver), take a look here.
Make the downloaded CDK binary executable:
chmod +x cdk-x.y.z-minishift-linux-amd64
Finally, you can continue with setting up the cdk binary as described in section 2 in Hello World page. Mainly, this is about preparing minishift configuration for proper hypervisor (as user can use more than one):
./cdk-x.y.z-minishift-linux-amd64 setup-cdk
or
./cdk-x.y.z-minishift-linux-amd64 setup-cdk --default-vm-driver xxx
in case that you are using different than default hypervisor (kvm on linux, could be virtualbox).

How to install python libxml2 in solaris?

I'm good at installing package in Linux environment but newbie to Solaris OS. I need to install Python - libxml2 package to my project. Does the below command also work in Solaris server for installation??
sudo apt-get install libxml2 libxml2-dev
I have tried googling, unfortunately not able to get.
What you proposed is specific to Debian-based Linux distributions.
IMHO, the fastest way would be to download the libxml2 source code in order to compile and install it yourself.
If you're running Solaris 11, then pkg install libxml2 with sufficient privilege would be the right invocation. Determining the right package name is as simple as pkg search with a reasonable query (assuming that you're still connected to the repository from which you installed the system).
If you're running Solaris 10 or older, then you'll need the original install media, plus whatever patches have been issued that intersect SUNWlxml. But frankly, installing from source is probably easier at that point.

modify the echo service of Suse enterprise Linux

I need to make a small change of the echo service in Suse enterprise server 10 sp1. I has some questions:
Where can I download the source code?
Is there a brief guide to build it?
thanks.
If I recall correctly, the echo service is implemented in the xinetd tool directly. Look for an xinetd*src.rpm on your install media and either use cpan2rpm to unpack the RPM or rpm -i to unpack the rpm into your configured RPMBUILD directory. There are some details on using source rpm packages here: http://linuxmafia.com/pub/linux/suse-linux-internals/chapter34.html

How I can connect to Oracle from Perl?

We have Oracle Server " Oracle Version: 10.2.0.4.0 - 64bit". I like to connect to this server with Perl from my RHEL machine. I am able to connect via sqlplus successfully. I can use 32-bit or 64-bit Perl. I have few questions.
Which files I should download from Oracle.com and where should I install them?
What are the environment settings or path that I should set?
What are the configuration changes or Makefile arguments changes I should make to install DBD::Oracle module properly?
Thanks.
Please ignore the previous answer as it is woefully out of date.
All you need to download is the oracle "instant client" for Linux:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
This gives you what you need to build the Perl module.
A quick google brought up the following for an install guide:
http://duberga.net/dbd_oracle_instantclient_linux/
(I'm sure there are others)