Wednesday, December 2, 2015

sles 11 enterprise to a vm hillarity

 damn you old suse 10 enterprise system that i just virtualized.  
   
 1. first i get scsi ioc errors.  
 2. i fix that and get gdm can't start.  
 3. oh, and then i try to log the eff in and i get module not found or some crap.  
 4. and then i try to use yast and you barf.  
 5. and then i try to fix your ethernet card to the vmware one and no dice.  
   
 i want to call it a day, but i can't. you will not win. oh. you have reiserfs*.
 r e i s e r f s.  for serious?  
   
 1. After conversion, change the VMWare SCSI controller from LSI Logic Parallel to LSI Logic SAS.  
   
 2. Easy. Use your favorite LiveCD, boot up and edit /etc/inittab . 
    Change from 5 to 3. Servers should not have GUIs.  
   
 3. Someone installed an Oracle DB. I check /var/log/messages and see:  
    login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]  
   
 This is a x64 bit system. I head to /etc/pam.d/login and see this line:  
 session required    /lib/security/pam_limits.so  
   
 No no. The PAM stack is controlled via /lib64/security . Remove that preceeding PATH.  
   
 4. The VM is on a SAN. Apparently YAST likes to do things too quickly.  
   
 # find /sys/class/scsi_generic/*/device/timeout -exec grep -H . '{}' \;  
   
 okay  
   
 # echo 180 > /sys/block/sd{a|b}/device/timeout  
   
 That's temporary.  
   
 Make it permanent:  
   
 # touch /etc/udev/rules.d/99-vmware-scsi-udev.rules  
   
 put this in the file:  
 ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware, " , ATTRS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"  
   
 5. VMWare isn't very smart when dealing with those NICs, huh?  
   
 edit:  
   
 /etc/udev/rules.d/30-net_persistent_names.rules  
   
 VMWare commented out stuff hoping YAST would do stuff. Yast didn't. Put this in:  
   
 SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:50:56:98:66:5a", IMPORT="/lib/udev/rename_netiface %k eth0"  
   
 The {address} can be found on your VMWare VM properties.  
   
 # cd /etc/sysconfig/network/  
 # cp ifcfg-eth-id-whateveritisnow ifcfg-eth-id-00\:50\:56\:98\:66\:5a  
   
 edit ifcfg-eth-id-00\:50\:56\:98\:66\:5a  
   
 NAME='VMWare 82545EM Gigabit Ethernet Controller (Copper)'  
 
 *reiserfs murders your wife.  

No comments: