XENtroubleshooting

From CoolSolutionsWiki

-My other wikis

Use at least SLES 10 SP1

Contents

Terms

  1. Host/VM Server = the physical box
  2. VM, the virtual machine that is being ran inside the XEN VM Server.
  3. Types of VMs
    1. Paravirtualized = An OS that knows it is virtualized, and thus has performance enhancements (performs better than non-paravirtualized OSs).
    2. Full Virtualization = OS does NOT know it is virtualized, and thus can have poor performance.

Commands

  1. xm --help shows the xm list of commands
  2. xm list lists the VMs
  3. chkconfig | grep xen This shows if they services will auto start when the VM Server boots
  4. xm info shows cpu/memory info
  5. xm unpause nameofXMhost
  6. xm top
  7. xm dmesg
  8. rcxend status start stop (this is the daemon that controls xen, xen mgmt tools too).
  9. rcxendomains status starts or stops the VMs when the VM server starts or stops.

Logs

  1. /var/log/xend.log
  2. /var/log/xen-hotplug.log
  3. /var/log/xend-debug.log
  4. /var/log/messages
  5. /var/log/qemu-dm*.log

Tips/Tricks

  1. Getting the VM to auto start when the VM Server boots
    1. Inside the /etc/xen/vm is your VM's file, copy it to (not the xml file) /etc/xen/auto Then when the VM Server boots it will autostart your VM guest.
    2. Actually, it's better to make a symbolic link in /etc/xen/auto to the file in /etc/xen/vm/. Done this way, future updates to the vm don't require copying the config in /etc/xen/vm to /etc/xen/auto another time.
  2. Mount a SAN disk within the VM
  3. Xenclone
  4. domU clone


scratch pad

  1. mount -t ocfs2 /dev/sdb1 /gw
  2. mkfs.ocfs2 -L xen_images /dev/emcpowera1
  3. powermt display dev=all
  4. https://bugzilla.novell.com/show_bug.cgi?id=265033 265033 - Wrong /dev/disk/by-label link
  5. gedit /etc/sysconfig/o2cb
    1. O2CB_HEARTBEAT_THRESHOLD=61
    2. O2CB_IDLE_TIMEOUT_MS=30000
  6. ncpmount -S x.x.x.208 -U admin.services.ou /mnt/ncp1/ -A fs3
  7. multi mount ocfs2 - one host, two VMs
    1. inside the vm and vm file has something like:
      1. disk=[ 'file:/var/lib/xen/images/hqgw7/disk0,xvda,w','phy:/dev/disk/by-label/gw_data,sdb1,w!' ]
        1. After modifying the vm file, you must delete/new the vm list by
          1. xm delete domu1NAME
          2. xm new domu1NAME
    2. over rides safety feature that is is already mounted - ok for ocfs2
  8. http://www.sandervanvugt.com/xenha.pdf Configuring HA
  9. stonith plugin? http://hg.linux-ha.org/dev/rev/adafc56fec02
  10. bladecenter commandline power off and power back on via telnet/ssh
    1. power -cycle -T blade[9]
  11. /usr/sbin/openhpid -c /etc/openhpi/openhpi.conf -n >/tmp/openhpid.log 2>&1