vCloud Director REST API

I want to show you how we can test vmware vCloud Directory Rest API

RESTClient Firefox Plugin Login Example
Step 1 – Launch the RESTClient under Tools->Rest Client:

Step 2 – Next we need to add a HTTP Accept header to specify the version of vCloud Director we are connecting to. The name should be “Accept” and value should be “application/*+xml;version=1.5”:

Step 3 – Now we need to add our login information. The login name will be in the format of username@vcd-organiziation and the password will be the password for that account. When you click ok, the credentials will automatically be encoded and added to the request header:

Step 4 – Now we need to specify the HTTP request method which for a login will be a POST operation. You will also need to specify the URL to your vCloud Director server which is in the format of https://vcd-ip/api/sessions. Finally you can connect by clicking on the send button. If you successfully connected, you should see a an HTTP return code of 200 and a yellow bar highlighting a successful login:

usefull example method;

to get organization name and id


To get the organization informations (you can see org id in above command’s output)


to list all vdc in the organization


Also you can find all operations and elements in below link.



Gather All Information of Linux system

You can download this file to gather information all system for Linux Systems. This is Linux version of the Solaris Explorer (SUNWexplo) script.

After download, Please change file extention from txt to sh

Usage :
# ./ [option]
-d Target directory for explorer files
-t [hardware] [software] [configs] [cluster] [disks] [network] [all]
-v Verbose output
-s Verify Package Installation
-h This help message
-V Version Number of LINUXEXPLO

linux – Redhat/Centos changing fstab in “Repair filesystem” prompt

If you forgot to remove missing mount point in /etc/fstab, Linux gives you a “Repair Filesystem” prompt in this situation and you can enter that by providing the root password. The problem is that on “Repair Filesystem” prompt, linux file system and rest of the file systems are generally not mounted and if mounted then it is “Read-Only” so you can not change files.

Use following command to mount the filesystem with writable permission:

Repair filesystem # mount -w -o remount /

After this you can go and change /etc/fstab file. Restart your computer and that’s it.

Renaming emx to ethx on Red Hat Enterprise Linux 6

when I tried to change interface name from emX to ethX, 70-persistent-net.rules not found in redhat 6 OS. So I found this site. It’s helping to resolve the issue.

The problem usually occurs Dell Servers

conclusion : 
1. Make a backup /etc/grub.conf file,
2. Add biosdevname=0 to the kernel boot arguments in /etc/grub.conf (grub.conf sample given by Fedora)

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_belle-lv_root
#          initrd /initrd-[generic-]version.img
title Fedora (
	root (hd0,0)
	kernel /vmlinuz- ro root=/dev/mapper/vg_belle-lv_root rd_LVM_LV=vg_belle/lv_root rd_LVM_LV=vg_belle/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet biosdevname=0
	initrd /initramfs-

3. Rename interface files name,

# mv /etc/sysconfig/network-scripts/ifcfg-em1 /etc/sysconfig/network-scripts/ifcfg-eth0

And changing the line,




4. If exists /etc/udev/rules.d/70-persistent-net.rules, delete it
5. Reboot OS

DNS network unreachable resolving

if you take below error messages in dns log file

Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘’: 2001:500:3::42#53

it means that the name is tried to resolve IPv6.


- in the named flie


you have to add below line end of named file


How to install Centos 6.x bigger than 2 TB one disk


I tried to install Centos 6.2 on raid 5 (4 x 4 TB) HP Proliant DL 160 Gen 8. First of all Centos don’t detect raid driver on installation. You have to find b120i raid driver for Centos 6.x OS. You can find my preview Post.

During boot of the Centos 6.x DVD, you need to choose Rescue Mode option with TAB button. add below string end of the line,

… linux dd blacklist=ahci

Please show the raid driver on related window in Centos boots.

After that you will see shell command screen. On this screen command will be used like…

$ parted /dev/sdb

Create a GPT partiton label
(parted) mklabel gpt

you should create partitions what you need with mkpart…

for boot partition (512MB-0MB = 512MB)
(parted) mkpart boot 0.00MB 512.00MB

for swap area (10GB-512MB = 9.5 GB)
(parted) mkpart swap 512.00MB 10.00GB

for root partition (50GB-10GB = 40 GB)
(parted) mkpart root 10.00GB 50.00GB

for backup, remaining empty space (remaining space-50MB = ??)
(parted) mkpart backup 50.00GB -0

to review partition table
(parted) print

GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print

Model: HP B120i (scsi)
Disk /dev/sda: 16 TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 512MB 512MB boot
2 512.0MB 10.0GB 9728MB swap
3 10.0GB 50.0GB 40GB root
4 50.0GB 16.0TB 15.5TB backup

to quit
(parted) q

After created partitions, You must format the backup partition. Centos can not format this partition because it is big size.

$ mkfs.ext4 /dev/sdb4

reboot system

$ reboot

After reboot you need to boot Centos 6.x installation DVD with raid driver options. (linux dd blacklist=ahci)

Please keep going on normal installation steps until partitions setting.

Please select customer partition options and don’t touch sdb4 partition area. After finish installation, you can use the sdb4 partition like below,

# mkdir /backup
# mount /dev/sdb4 /backup

Don’t forget to adding fstab to don’t mount after restart :)

HP DL 160 Prolaint Gen8 (Smart Array B120i/B320i storage controller) sunucusunda Centos 6.x RAID driver sorunu


Not: Bu döküman HP DL 160 G8 için Centos 6.x işletim sistemine RAID sürücüsünün nasıl yüklendiğini anlatmakta olup, Smart Array B120i/B320i storage controller içinde uygulanabilmektedir.

HP DL 160 Prolaint G8 sunucusunda Centos 6.x işletim sistemi kurmak istediğinizde işletim sistemi kurulum sırasında oluşturduğunuz RAID konfigürasyonunu görmez. Bunun için RAID kontrol kartının driver ının yüklenmesi gerekmektedir.

1- Hangi Centos versiyonunu kuruyorsanız ilgili raid kart driver ını aşağıdaki linkden indirin, –> Centos6.1 –> Centos6.2 –> Centos6.3

2- İlgili dosyayı extract edip FAT32 formatlanmış USB diske aktarın,
3- Sunucuyu Centos 6.x cd / dvd ile boot ettiğinizde ana menüdeki OS kurulum menüsünü tuşu ile düzenleneyin,
4- İlgili satırın sonuna şağıdaki satırı ekleyip ENTER tuşu ile devam edin,

….. linux dd blacklist=ahci
for B120i: blacklist=ahci
for B320i: none

5- Önünüze gelecek menüde /dev/sdb1 ile USB diskine erişip ilgili disk driver ını gösterin,
6- Kuruluma devam edebilirsiniz :)