QLogic debuging

serial port:

screen /tty/usb.serial 57600

Or, to spell it out:

baud rate: 57600

8 bit

no parity

stop bits = 1

no flow control

Fedora 11 Kickstart and SATA drives

My Fedora 11 Kickstart installs fail if I have the drive line look like this:

part / –size 1 –grow –fstype ext3

I was able to make it work by giving it a real size:

part / –size 10240 –fstype ext3

That seemed to make it work.  I also noted that this bug has already been reported.

Using IBM Bootable Media Creator with xCAT

With a few hacks I was able to get somewhere with this… I wasn’t able to update everything nor restore the bios.

1.  I downloaded the tool from IBM site:  http://www-947.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-5079820&brandind=5000008

2.  I put this in the /tftpboot/bomc directory.

3.  Copied /tftpboot/bomc/[tcrootfs|tc.zip] into /tftpboot

4.  Edited /opt/xcat/lib/perl/xCAT_plugin/dhcpd.pm line 282 made the filename say “bomc/pxelinux.0″ instead of “pxelinux.0″

5.  Edited /tftpboot/bomc/pxelinux.cfg/default:

- added: console=tty0 console=ttyS1,19200

- changed tftp server: 172.20.0.1 instead of the 9.x.x.x

That got me booted up, but didn’t allow me to update the firmware… lame.

IPMI settings.

Some times configuring the BMC’s or IMM’s with xCAT is not possible. So you may want to do settings without xCAT.

Here are some tricks with our handy tool: ipmitool

See current IP settings:

ipmitool lan print 1

This is great for looking at IP addresses and stuff.

ipmitool -I lan -H 172.29.101.2 -P PASSW0RD -U USERID power status

KVM with RHEL5.4

Installing KVM with RHEL5.4 is pretty easy.  Here’s how I got my virtual machine up:

1. Install Packages

yum -y install kvm python-virtinst libvirt libvirt-python virt-manager virt-viewer

2. Start libvirt

chkconfig –level 345 libvirtd on

service libvirtd start

3. Configure Bridge Network

In my set up I want my virtual machines to be able to access the network.  I also want machines on the network to access my virtual machine.  In my setup, eth1 is on the internal network to my cluster.  What I will do is create a bridge with eth1.  I also need to make a few aliases to handle my different networks.

/etc/sysconfig/network-scripts/ifcfg-eth1:

# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth1
HWADDR=00:15:17:85:A8:CD
ONBOOT=yes
BRIDGE=br0

/etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
BOOTPROTO=static
ONBOOT=yes
TYPE=Bridge
IPADDR=172.20.0.1
NETMASK=255.255.0.0

/etc/sysconfig/network-scripts/ifcfg-br0:1

DEVICE=br0:1
IPADDR=172.29.0.1
NETMASK=255.255.0.0
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-br0:2

DEVICE=br0:2
IPADDR=172.30.0.1
NETMASK=255.255.0.0
ONBOOT=yes

4. Create Virtual Machine

virt-install –name xcatmgr –ram 1024 –connect qemu:///system –disk path=/install/libvirt/images/xcat.img,size=10 –vnc –cdrom=/install/isos/RHEL5.4-Server-20090819.0-x86_64-DVD.iso -b br0 –os-variant=rhel5

4.2 Copying Virtual Appliance

I created an xCAT appliance that I wanted to run:

modprobe kvm

modprobe kvm.intel

service libvirshd restart

Then import my machine:

define /install/xcatapp/xcatmgr.xml

(or just copy it to /etc/libvirtd/qemu and restart libvirshd)

From there it just booted up, launched virt-viewer and away it went.  I’m doing this on 1TB SATA disks, and the performance is just horrible.

Even though I did this all with RHEL4, this post was very helpful as well.

Now, I also want my nodes to bridge directly to the physical network.

service libvirtd stop

ip link set virbr0 down

brctl delbr virbr0

create br0 with /etc/sysconfig/network-scripts

bind it to eth1

then make new net:

brctl setfd vlan1 0

ip addr add dev vlan1 172.20.1.19/16

brctl addif vlan1 eth0

ip addr del dev eth0 172.20.1.19/16

ip link set vlan1 up

virt-viewer xcatmgr

Other good notes:

http://wiki.centos.org/HowTos/KVM#head-c02a0b33e7949b0bc3b151ac6e0bdfb91b6bbd1c