Monday, January 12, 2015

How to upload file (such as ISO image file) to datastore

1. Login to the VMware vSphere web client.

2. Go to the datastore cluster.

3. Select the datastore where you want to upload the file.

4. Click on Manage and click on file tab.

5. Just click on the icon to upload the file/image to the datastore.

How to build new server on OpsCenter


Login to ops center

Go to server pool


 

Click on the right server pool where you are creating the server.


 

Look at the right hand side, where you will see create logical Domains

 


 

You will see something like this

 


 

On create Logival domain windows, verify the target asset and select the one from deployment plan.

I will be building db2 host.


 

Click on apply plan

 


 

 

Specify your hostname here


 

Click next

 

On storage allocation window,

 


 

 

Verify the type is static bloc and library must be os lun for OS. Use data luns for data.

 

Click on LUN tab and select the lun. OS LUNs are 50Gb in size.

 


 

Click next and verify the network info. Click next.

 

Verify and click next


 

Click next to finish


 

Review everything and apply

 


 

You will see a job running. Click on job and you will be able to see the status.

 


 

Wait till blue turn green.

 



 

The green shows that the task is completed successfully

 



 

 

Note the host and see the hostname, you will see arrow down which mean server is not up

 


 

Now, click on the host and look at the right side.

 


 

 

 


 

Click on install server. You will see the install server window.

 

 


 

Select the plan and click apply

 


 

Click next


 

Click next


 

Fill hostname and ip address. Verify other info

 


 

Verify the information on summary window


 

Click next


 

Next


 

Just click next, do not make any changes


 

Review the summary


 

Click next


 

Click apply to complete the task.

 

Click on the new job on the right side bottom corner.

 


 

See job status


 

Double click on the host

 


 

Wait until it turn green.

 

Check the error message if you get any error

 

 

For storage


 


 


 

 

Click on the pool you want to check the storage and on the property window on the middle

On lun listings, click on allocated to, and see if you have any free luns. We don’t have it any there.

 


 

Click on add LUN


 

 

When adding new LUNs, verify from control domain that the luns are infact not used by any

Check the LUN if its already been used. Check on all control domain that are part of OpsCenter.

# ldm list -l | grep -i 60060160ccd026007419a97231cde211


 

 

Click on search with the lst 4 digit of hostname


 

 


 

Click on add LUNs

 

Open a job and running successfully

 


 

Click on allocated to and you will see the newly added luns

 


 

Adding new LUN to control domain is completed.

 

Now, go back to server pool and create new LDOMs.

 

 

Friday, January 9, 2015

VMware: Physical to Virtual migration

VMware: Physical to Virtual migration

1. Enable root ssh to the physical host.

[root@sama ~]# vi /etc/ssh/sshd_config
....
#PermitRootLogin no
PermitRootLogin yes

2. Reload the ssh changes.
[root@sama ~]# service sshd reload
Reloading sshd:                                            [  OK  ]

3. Download and install VMware vCenter converter to convert physical machne to VMware.
vCenter Converter is free product for non-prod use.

4. Once installed, start the tool.
Specify the source machine and follow the prompt. Specify the target host info.

On the conversion menu, you can change the mem/cpu and disk allocation to the target machine.


5. Once you start the conversion, depending on the size of the disk, it may take 20 minutes to couple of hours.



6. Finally completed.

7. Go to the vSphere Client and start the host.



8. After logged into the target host, looks like it shuts down the physical one.







Thursday, January 8, 2015

IP Version 4 Numbers, Address Classes and Formats

IP Version 4 Numbers, Address Classes and Formats

===============================================

Three Key IP addresses define a network , the network address, the broadcast address, and the sub-net mask. The network address is always the first IP address in range, The broadcast is always the last address in the same range . The sub-net mask helps your computer define the difference between the two addresses. You can assign IP addresses between the network and broadcast addresses to any computer on the network .
 
 
A sub-net mask is also known as a network mask or net-mask. An example of an IPv4 net-mask is 255.255.255.0, which is class c net-mask it can also be defined by the numbers of associated bits ,24.
     192.168.122.0 / 24.
 
 
Related to networking and net-masks is the concept of the gateway. It's an IP address that defines the junction between the local network and an external network. While that gateway IP address is a part of the local network such as the public Internet. The gateway IP address is normally configured in the routing table for the local system, as defined by the route or netstat -r command.
 



================================================

TCP/IP is a series of protocols organized in Layers, known as a protocol suite. It was developed for Unix and eventually as the standards for communication on the internet. With the IP Address you can organize a Network .
 
 
Every computer that communicates on a network needs its own IP Address . Some address are assigned permanently to a particular computer, these are known as static addresses.Others are leased from a DHCP server for a limited amount of time,these are also known as dynamic IP addresses.
 
 
IPv4 are organised into five different classes :
 
 
CLASSES              RANGE                                              NOTE

 A                        1.1.1.1 - 126.255.255.254                  Network allowed up-to 16 million computers

 B                        128.0.0.1 - 192.255.255.254              Network allowed up-to 65000 computers

 C                        192.0.0.1 - 223.255.255.254              Network allowed up-to 254 computers

 D                       224.0.0.1 - 239.255.255.254              Reserved for multicast

 E                        240.0.0.1 - 255.255.255.254              Reserved for experimental use
 
 

 
Private Range of Classes 
 
 
A              10.0.0.0 - 10.255.255.255
 
 
B              172.16.0.0 - 172.31.255.255
 
 
C              192.168.0.0 - 192.168.255.255

 
 
Address Formats :
 
 
Unicast : 
 
 
A Uni-cast address is associated with a single network adapter. Route-able uni-cast address include a 48-bit network prefix, 16-bit sub-net identifier, and a 64 bit interface identifier associated with a network adapter hardware address.
 
 
Multicast :
 
 
A Multicast address is used to send a message to multiple network adapters simultaneously. The organisation of a multicast address varies .
 
 
Anycast :
 
 
 An Any-cast address is used to send a message to one of several optional network adapters. It's useful for systems with multiple backups, such as a group of web servers. Any-cast have the same basic organisation as a uni-cast address .

Set up ILO on HP 380

Set  up ILO on HP 380

shutdown esxi server

shutdown esxi server

How to create datastore

How to create datastore

Step by step guide to install VMware ESXi on HP proLiant DL380 G5


Download the image from VMware site.
1. GO to BIOS and enable your processor for virtulization
2. Change boot order to boot from cdrom.
3. save your change and system will reboot.
4. You will see VMware ESXI loaded. Press Enter to continue.
5. You accept the license agreement [ Press F11 to continue ].
6. Select the disk and continue (press enter)
7. Select your keyboard layout [ US default ] enter to continue
8. It will prompt you to enter the password for root user. enter to continue.
9. Press F11 to continue.
10. Once done, system will reboot and prompt you for password.
F2 to continue.
make network setting change such as ip/netmask/gateway/nameserver.
You can also enable ssh to directly login to your ESXI host.
enjoy !!!

How to enable ssh and command line on vmware

How to enable ssh and command line on vmware

Playing with vmware exsi


~ # vifp --help
-sh: vifp: not found
~ # vi
vi vim-cmd
~ # vi --help
BusyBox v1.20.2 (2012-12-11 11:54:28 PST) multi-call binary.

Usage: vi [OPTIONS] [FILE]...

Edit FILE

-c Initial command to run ($EXINIT also available)
-R Read-only
-H Short help regarding available features

~ # vim-cmd --help
Invalid option specified '--help'. Only single options are supported.
Usage: vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
Options:
-h Display this help message and exit
-v Display version information and exit
-H <host> Host name to connect
-O <port> Port number to connect
-t <thumbprint> Expected thumbprint of the specified host
-U <user> User name to use for login
-P <pass> Password to use for login
-d <level> Show verbose debug output. (info, verbose, trivia)

Use the help command to get information on the commands available.

vim-cmd help [command]
~ # vim-cmd -help
Invalid option specified '-help'. Only single options are supported.
Usage: vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
Options:
-h Display this help message and exit
-v Display version information and exit
-H <host> Host name to connect
-O <port> Port number to connect
-t <thumbprint> Expected thumbprint of the specified host
-U <user> User name to use for login
-P <pass> Password to use for login
-d <level> Show verbose debug output. (info, verbose, trivia)

Use the help command to get information on the commands available.

vim-cmd help [command]
~ # vi -h
BusyBox v1.20.2 (2012-12-11 11:54:28 PST) multi-call binary.

Usage: vi [OPTIONS] [FILE]...

Edit FILE

-c Initial command to run ($EXINIT also available)
-R Read-only
-H Short help regarding available features

~ # esxcli
Usage: esxcli [options] {namespace}+ {cmd} [cmd options]

Options:
--formatter=FORMATTER
Override the formatter to use for a given command. Available formatter: xml, csv, keyvalue
--debug Enable debug or internal use options
--version Display version information for the script
-?, --help Display usage information for the script

Available Namespaces:
device Device manager commands
esxcli Commands that operate on the esxcli system itself allowing users to get additional
information.
fcoe VMware FCOE commands.
graphics VMware graphics commands.
hardware VMKernel hardware properties and commands for configuring hardware.
iscsi VMware iSCSI commands.
network Operations that pertain to the maintenance of networking on an ESX host. This includes a
wide variety of commands to manipulate virtual networking components (vswitch, portgroup,
etc) as well as local host IP, DNS and general host networking settings.
sched VMKernel system properties and commands for configuring scheduling related functionality.
software Manage the ESXi software image and packages
storage VMware storage commands.
system VMKernel system properties and commands for configuring properties of the kernel core
system.
vm A small number of operations that allow a user to Control Virtual Machine operations.
vsan VMware VSAN commands.

~ # esxcli network nic list
Name PCI Device Driver Link Speed Duplex MAC Address MTU Description
------ ------------- ------ ---- ----- ------ ----------------- ---- ---------------------------------------------------------------------------
vmnic0 0000:003:00.0 bnx2 Up 100 Full 00:1c:c4:aa:33:48 1500 Broadcom Corporation NC373i Integrated Multifunction Gigabit Server Adapter
vmnic1 0000:014:01.0 e1000 Down 0 Full 00:04:23:b3:c8:74 1500 Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)
vmnic2 0000:014:01.1 e1000 Down 0 Full 00:04:23:b3:c8:75 1500 Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)
~ # esxcli hardware cpu list
CPU:0
Id: 0
Package Id: 0
Family: 6
Model: 15
Type: 0
Stepping: 11
Brand: GenuineIntel
Core Speed: 2000070797
Bus Speed: 333345078
APIC ID: 0x0
Node: 0
L2 Cache Size: 4194304
L2 Cache Associativity: 16
L2 Cache Line Size: 64
L2 Cache CPU Count: 2
L3 Cache Size: -1
L3 Cache Associativity: -1
L3 Cache Line Size: -1
L3 Cache CPU Count: 2

CPU:1
Id: 1
Package Id: 0
Family: 6
Model: 15
Type: 0
Stepping: 11
Brand: GenuineIntel
Core Speed: 2000070797
Bus Speed: 333345078
APIC ID: 0x1
Node: 0
L2 Cache Size: 4194304
L2 Cache Associativity: 16
L2 Cache Line Size: 64
L2 Cache CPU Count: 2
L3 Cache Size: -1
L3 Cache Associativity: -1
L3 Cache Line Size: -1
L3 Cache CPU Count: 2

CPU:2
Id: 2
Package Id: 0
Family: 6
Model: 15
Type: 0
Stepping: 11
Brand: GenuineIntel
Core Speed: 2000070797
Bus Speed: 333345078
APIC ID: 0x2
Node: 0
L2 Cache Size: 4194304
L2 Cache Associativity: 16
L2 Cache Line Size: 64
L2 Cache CPU Count: 2
L3 Cache Size: -1
L3 Cache Associativity: -1
L3 Cache Line Size: -1
L3 Cache CPU Count: 2

CPU:3
Id: 3
Package Id: 0
Family: 6
Model: 15
Type: 0
Stepping: 11
Brand: GenuineIntel
Core Speed: 2000070797
Bus Speed: 333345078
APIC ID: 0x3
Node: 0
L2 Cache Size: 4194304
L2 Cache Associativity: 16
L2 Cache Line Size: 64
L2 Cache CPU Count: 2
L3 Cache Size: -1
L3 Cache Associativity: -1
L3 Cache Line Size: -1
L3 Cache CPU Count: 2
~ # esxcli hardware memory get
Physical Memory: 17177657344 Bytes
Reliable Memory: 0 Bytes
NUMA Node Count: 1
~ # esxcli hardware platform get
Platform Information
UUID: 0x34 0x37 0x30 0x30 0x36 0x34 0x4d 0x58 0x51 0x37 0x34 0x32 0x30 0x30 0x55 0x38
Product Name: ProLiant ML350 G5
Vendor Name: HP
Serial Number: MXQ74200U8
IPMI Supported: true
~ # esxcli hardware clock get
2008-01-13T19:52:17Z
~ # esxcli system version get
Product: VMware ESXi
Version: 5.5.0
Build: Releasebuild-1623387
Update: 1
~ # esxcli system boot device get
Boot Filesystem UUID: e86ae075-6b0df33b-00f3-8b9966c0bf2e
Boot NIC:
Stateless Boot NIC:
~ # esxcli vm process list
~ #