Header Shadow Image


Configuring a Fiber Channel Brocade 5000B Switch

Default Brocade 5000 Password:

USER: admin

PASS: password

 

sw0 console login: admin
Password:

—————————————————————–

sw0:admin>
sw0:admin>

On to configuring it further:

sw0:admin>
sw0:admin>
sw0:admin>
sw0:admin> history
   25  cfgshow
   26  cfgshow|head
   27  cfgshow|more
   28  clear
   29  cls
   30  clear
   31  aliCreate IBMAIXP01 10:00:00:00:c9:62:1b:82
   32  aliCreate IBMAIXP01, 10:00:00:00:c9:62:1b:82
   33  aliCreate IBMAIXP02, 10:00:00:00:c9:62:1b:83
   34  zoneCreate "IBM-AIX-VIO", "IBMAIXP01", "HTPCP03"
   35  zoneCreate "IBM-AIX-VIO", "IBMAIXP01; IBMAIXP02; HTPCP03"
   36  cfgshow|more
   37  cfgshow
   38  zoneCreate "IBM-AIX-VIO", "IBMAIXP01; IBMAIXP02; HTPCP03"
   39  zoneCreate "IBM_AIX_VIO", "IBMAIXP01; IBMAIXP02; HTPCP03"
   40  zoneShow "IBM_AIX_VIO"
   41  aliasShow
   42  cfgcreate SAN_CFG, "IBM_AIX_VIO"
   43  cfgenable SAN_CFG
   44  history
sw0:admin>

Changing the IP address:

sw0:admin>
sw0:admin> ipaddrshow

SWITCH
Ethernet IP Address: 172.22.200.122
Ethernet Subnetmask: 255.255.255.0
Gateway IP Address: 172.22.200.1
DHCP: Off
sw0:admin>
sw0:admin>
sw0:admin>
sw0:admin> ping
usage: ping [-LRdfnqrv] [-c count] [-i wait] [-l preload]
        [-p pattern] [-s packetsize] [-t ttl] [-I interface address] host
sw0:admin> ipaddrset
Ethernet IP Address [172.22.200.122]:192.168.0.5
Ethernet Subnetmask [255.255.255.0]:
bad IP mask
Ethernet Subnetmask [255.255.255.0]:255.255.255.0
Gateway IP Address [172.22.200.1]:192.168.0.1
DHCP [Off]:off
IP address is being changed…Done.
sw0:admin> 2016/05/13-03:45:59, [IPAD-1000], 1360, CHASSIS, INFO, Brocade5000, SW/0 Ether/0 IPv4 manual 192.168.0.5/24 DHCP Off
2016/05/13-03:45:59, [IPAD-1001], 1361, CHASSIS, INFO, Brocade5000, CP/0 IPv4 manual 192.168.0.1 DHCP Off

sw0:admin> ipaddrshow

SWITCH
Ethernet IP Address: 192.168.0.5
Ethernet Subnetmask: 255.255.255.0
Gateway IP Address: 192.168.0.1
DHCP: Off
sw0:admin>

Cheers,
TK

Wrap lines in journalctl output

journalctl -b –no-pager | less

Easy peasy!

Cheers, TK

Creating a Minecraft PE Server

Basically it boils down to this running on Ubuntu:

minecraft@minecraftpe01:~$ wget -q -O – https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/installer.sh | bash -s -

If the above doesn't work, try this:

wget -q -O compile.sh https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/compile.sh

then install any dependencies it complains about.  Source documentation.  Further sources available here and here.

Cheers,
TK

Failed to execute operation: Access denied

When running you get this message:

# systemctl enable nfs-server.service
Failed to execute operation: Access denied

Solution is to disable selinux or to allow for proper SELinux rules to allow for the above action:

# vi /etc/sysconfig/selinux

SELINUX=disabled

# setenforce 0
# getenforce
Permissive

Alternately see the following post for details on how to tailor SELinux rules for similar cases.

Cheers,
TK

Error: A specified parameter was not correct vim.host.diskpartitioninfo.spec

SSH to esxi (enable ssh via console if not enabled) then:

esxcfg-scsidevs -l

then 

partedUtil delete <DISK> <PARTITION>

example:

partedUtil delete (Gave invalid partition number) :

partedUtil delete /vmfs/devices/disks/naa.600508b1001c7ef7f736cd3dbeb5915d vml.0200010000600508b1001c7ef7f736cd3dbeb5915d4c4f47494341

Cheers,
TK

OpenNebula VM Password Prompt

When instantiating VM's through OpenNebula, when logging into those VM's, the VM's may ask you for a password.  The solution here is to edit the template in the GUI and add a context to it including the public SSH key.  Click on the template then Update from the top right hand side buttom row then enter the key in:

 

SSH Password Prompt - Missing SSH Contextualization

If the above field is empty, ensure it has the proper passless SSH key.  Further reading on contextualization.

The other reason for this issue is that you are trying to get into your machine as opennebula.  Try as root instead:

[oneadmin@opennebula01 .ssh]$ ssh 192.168.0.100
oneadmin@192.168.0.100's password:

[oneadmin@opennebula01 .ssh]$ ssh root@192.168.0.100
[root@localhost ~]#

Cheers,
TK

 

How to tail two files simultaneously

[oneadmin@opennebula01 one]$ tail -f oned.log sched.log

==> sched.log <==

Tue Apr 12 21:09:36 2016 [Z0][SCHED][I]: Getting scheduled actions information. Total time: 0.00560014s

==> oned.log <==
Tue Apr 12 21:09:36 2016 [Z0][ReM][D]: Req:8160 UID:0 VirtualMachinePoolInfo invoked , -2, -1, -1, -1
Tue Apr 12 21:09:36 2016 [Z0][ReM][D]: Req:8160 UID:0 VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>40<…"

==> sched.log <==
Tue Apr 12 21:09:36 2016 [Z0][SCHED][I]: Getting VM and Host information. Total time: 0.00360117s

==> oned.log <==
Tue Apr 12 21:09:52 2016 [Z0][InM][D]: Host mdskvm-p01 (2) successfully monitored.
Tue Apr 12 21:09:52 2016 [Z0][VMM][D]: VM 40 successfully monitored: STATE=a USEDCPU=0.0 USEDMEMORY=524288 NETRX=344326 NETTX=1360

 

Cheers,
TK

VNC Failed to connect to server (code: 1006)

When receiving the following on OpenStack or OpenNebula:

VNC Failed to connect to server (code: 1006)

try the below steps to resolve the issue on either hypervisor manager:

Read the rest of this entry »

[TemplateInstantiate] Error allocating a new virtual machine. DISK 0: Cannot acquire image 3, it is in state: LOCKED

Give it some time for the image to download and create first.  When ready, instantiate again:

[oneadmin@opennebula01 1]$ ls -altri
total 647896
 68474907 drwxrwxr-x 5 oneadmin oneadmin        30 Mar 30 18:58 ..
101870759 -rw-r–r– 1 oneadmin oneadmin 395074048 Mar 31 02:41 2a3d337ded54dcbcc35865daf54e3c9a
101870807 drwxrwxr-x 2 oneadmin oneadmin        84 Mar 31 02:41 .
101870760 -rw-r–r– 1 oneadmin oneadmin 174383104 Mar 31 02:42 bf2a2c5916e78efcd0223b9c98971278
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$ onevm list
    ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME

[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$ onetemplate instantiate "CentOS-7"
[TemplateInstantiate] Error allocating a new virtual machine. DISK 0: Cannot acquire image 3, it is in state: LOCKED
[oneadmin@opennebula01 1]$ ls -altri
total 771632
 68474907 drwxrwxr-x 5 oneadmin oneadmin        30 Mar 30 18:58 ..
101870759 -rw-r–r– 1 oneadmin oneadmin 395074048 Mar 31 02:41 2a3d337ded54dcbcc35865daf54e3c9a
101870807 drwxrwxr-x 2 oneadmin oneadmin        84 Mar 31 02:41 .
101870760 -rw-r–r– 1 oneadmin oneadmin 395074048 Mar 31 02:43 bf2a2c5916e78efcd0223b9c98971278
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$
[oneadmin@opennebula01 1]$ onetemplate instantiate "CentOS-7"
VM ID: 24
[oneadmin@opennebula01 1]$ onevm list
    ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME
    24 oneadmin oneadmin CentOS-7-24     pend    0      0K              0d 00h00
[oneadmin@opennebula01 1]$

Command execution fail: /var/lib/one/remotes/tm/shared/clone

When receiving these errors in the log files:

[oneadmin@opennebula01 one]$ cat 19.log
Wed Mar 30 23:59:30 2016 [Z0][DiM][I]: New VM state is ACTIVE.
Wed Mar 30 23:59:30 2016 [Z0][LCM][I]: New VM state is PROLOG.
Wed Mar 30 23:59:30 2016 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula01:/var/lib/one//datastores/1/370d6f8205e2d85d328e922d1f356ab7 mdskvm-p01:/var/lib/one//datastores/0/19/disk.0 19 1
Wed Mar 30 23:59:30 2016 [Z0][TM][I]: clone: Cloning /var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7 in mdskvm-p01:/var/lib/one//datastores/0/19/disk.0
Wed Mar 30 23:59:30 2016 [Z0][TM][E]: clone: Command "cd /var/lib/one/datastores/0/19; cp /var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7 /var/lib/one/datastores/0/19/disk.0" failed: Warning: Permanently added 'mdskvm-p01,192.168.0.60' (ECDSA) to the list of known hosts.
Wed Mar 30 23:59:30 2016 [Z0][TM][I]: cp: cannot stat '/var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7': No such file or directory
Wed Mar 30 23:59:30 2016 [Z0][TM][E]: Error copying opennebula01:/var/lib/one//datastores/1/370d6f8205e2d85d328e922d1f356ab7 to mdskvm-p01:/var/lib/one//datastores/0/19/disk.0
Wed Mar 30 23:59:30 2016 [Z0][TM][I]: ExitCode: 1
Wed Mar 30 23:59:30 2016 [Z0][TM][E]: Error executing image transfer script: Error copying opennebula01:/var/lib/one//datastores/1/370d6f8205e2d85d328e922d1f356ab7 to mdskvm-p01:/var/lib/one//datastores/0/19/disk.0
Wed Mar 30 23:59:30 2016 [Z0][DiM][I]: New VM state is FAILED
[oneadmin@opennebula01 one]$ 

 

[oneadmin@opennebula01 ~]$ /var/lib/one/remotes/tm/shared/clone opennebula01:/var/lib/one//datastores/1/370d6f8205e2d85d328e922d1f356ab7 mdskvm-p01:/var/lib/one//datastores/0/19/disk.0 19 1
INFO: clone: Cloning /var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7 in mdskvm-p01:/var/lib/one//datastores/0/19/disk.0
ERROR: clone: Command "cd /var/lib/one/datastores/0/19; cp /var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7 /var/lib/one/datastores/0/19/disk.0" failed: Warning: Permanently added 'mdskvm-p01,192.168.0.60' (ECDSA) to the list of known hosts.
cp: cannot stat '/var/lib/one/datastores/1/370d6f8205e2d85d328e922d1f356ab7': No such file or directory
ERROR MESSAGE –8<——
Error copying opennebula01:/var/lib/one//datastores/1/370d6f8205e2d85d328e922d1f356ab7 to mdskvm-p01:/var/lib/one//datastores/0/19/disk.0
ERROR MESSAGE ——>8–
[oneadmin@opennebula01 ~]$

We will follow these few steps to resolve it. First we will check the ~/.ssh/config file that is created:

Read the rest of this entry »


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License