Custom Search

Friday, September 27, 2013

Howto Install Putty in Ubuntu and Connect to Remote Server

1)
Install Putty
#sudo apt-get install putty



2)
Run Putty
#putty

Thursday, September 26, 2013

Howto Fix TeamViewer Daemon is not running Please start teamviewerd and then restart TeamViewer

1)
saju@saju-Inspiron-N5010:~$ locate teamviewerd
/etc/init/teamviewerd.conf
/opt/teamviewer8/logfiles/install_teamviewerd.log
/opt/teamviewer8/tv_bin/teamviewerd
/opt/teamviewer8/tv_bin/script/teamviewerd.conf
/opt/teamviewer8/tv_bin/script/teamviewerd.service
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf
saju@saju-Inspiron-N5010:~$



2)
#sudo /opt/teamviewer8/tv_bin/teamviewerd start

3)
#teamviewer

Wednesday, September 11, 2013

Mysql How to disable dirty reads

Mysql How to enable transaction-isolation READ-COMMITTED

1)
Goto mysql prompt and check transaction-isolation setting
mysql> SELECT @@global.tx_isolation, @@session.tx_isolation, @@tx_isolation;
+-----------------------+------------------------+-----------------+
| @@global.tx_isolation | @@session.tx_isolation | @@tx_isolation  |
+-----------------------+------------------------+-----------------+
| REPEATABLE-READ       | REPEATABLE-READ        | REPEATABLE-READ |
+-----------------------+------------------------+-----------------+
1 row in set (0.00 sec)

2)
Goto 
#vim /etc/mysql/my.cnf



3)
Add following line under [mysqld] section
transaction-isolation = READ-COMMITTED

Example
=====
[mysqld]
transaction-isolation = READ-COMMITTED

4)
Restart mysql
#sudo /etc/init.d/mysql restart

5)
Goto mysql prompt and check transaction-isolation setting
mysql> SELECT @@global.tx_isolation, @@session.tx_isolation, @@tx_isolation;
+-----------------------+------------------------+----------------+
| @@global.tx_isolation | @@session.tx_isolation | @@tx_isolation |
+-----------------------+------------------------+----------------+
| READ-COMMITTED        | READ-COMMITTED         | READ-COMMITTED |
+-----------------------+------------------------+----------------+
1 row in set (0.00 sec)

Monday, September 9, 2013

How to Share a NFS Datastore Across vCenter ESXi Hosts

How to Share a NFS Datastore Across vCenter ESXi Hosts
1)
Select your First node (192.168.1.144) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore



2)
Select your Secon node (192.168.1.26) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore

3)
Verify the Storage configuration
Select "cluster" --> Storage Views --> Update Views

How to Migrate a VMware vCenter Virtual Machine with NFS Datastore

How to Migrate a VMware vCenter Virtual Machine with NFS Datastore
1)
Select your First node (192.168.1.144) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore



2)
Select your Secon node (192.168.1.26) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore

3)
Verify the Storage configuration
Select "cluster" --> Storage Views --> Update Views

4)
Select one node (192.168.1.26) and create VM with the datastore "myshaed-datastore".

5)
Right click on the VM and select "Migrate" 

Tuesday, September 3, 2013

How to add NFS Datastore for ESXi Server VMware vSphere

How to add NFS Datastore for ESXi Server VMware vSphere


 

How to add NFS Datastore for vCenter Server VMware vSphere

How to add NFS Datastore for vCenter Server VMware vSphere


Sunday, September 1, 2013

How to use boto Python API with OpenStack

import boto
import boto.ec2

region = boto.ec2.regioninfo.RegionInfo(name="nova", endpoint="192.168.12.222")

conn = boto.connect_ec2(aws_access_key_id="xxxxxxxxxxxxxxx",
                                aws_secret_access_key="xxxxxxxxxxxxxxxx",
                                is_secure=False,
                                region=region,
                                port=8773,
                                path="/services/Cloud")


print "-----conn-------", conn

print "-----get_all_regions-------", conn.get_all_regions()