XENtroubleshooting
From CoolSolutionsWiki
-My other wikis
Use at least SLES 10 SP1
Contents |
[edit]
Terms
- Host/VM Server = the physical box
- VM, the virtual machine that is being ran inside the XEN VM Server.
- Types of VMs
- Paravirtualized = An OS that knows it is virtualized, and thus has performance enhancements (performs better than non-paravirtualized OSs).
- Full Virtualization = OS does NOT know it is virtualized, and thus can have poor performance.
[edit]
Commands
- xm --help shows the xm list of commands
- xm list lists the VMs
- chkconfig | grep xen This shows if they services will auto start when the VM Server boots
- xm info shows cpu/memory info
- xm unpause nameofXMhost
- xm top
- xm dmesg
- rcxend status start stop (this is the daemon that controls xen, xen mgmt tools too).
- rcxendomains status starts or stops the VMs when the VM server starts or stops.
[edit]
Logs
- /var/log/xend.log
- /var/log/xen-hotplug.log
- /var/log/xend-debug.log
- /var/log/messages
- /var/log/qemu-dm*.log
[edit]
Tips/Tricks
- Getting the VM to auto start when the VM Server boots
- 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.
- 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.
- Mount a SAN disk within the VM
- Xenclone
- domU clone
[edit]
scratch pad
- mount -t ocfs2 /dev/sdb1 /gw
- mkfs.ocfs2 -L xen_images /dev/emcpowera1
- powermt display dev=all
- https://bugzilla.novell.com/show_bug.cgi?id=265033 265033 - Wrong /dev/disk/by-label link
- gedit /etc/sysconfig/o2cb
- O2CB_HEARTBEAT_THRESHOLD=61
- O2CB_IDLE_TIMEOUT_MS=30000
- ncpmount -S x.x.x.208 -U admin.services.ou /mnt/ncp1/ -A fs3
- multi mount ocfs2 - one host, two VMs
- inside the vm and vm file has something like:
- disk=[ 'file:/var/lib/xen/images/hqgw7/disk0,xvda,w','phy:/dev/disk/by-label/gw_data,sdb1,w!' ]
- After modifying the vm file, you must delete/new the vm list by
- xm delete domu1NAME
- xm new domu1NAME
- After modifying the vm file, you must delete/new the vm list by
- disk=[ 'file:/var/lib/xen/images/hqgw7/disk0,xvda,w','phy:/dev/disk/by-label/gw_data,sdb1,w!' ]
- over rides safety feature that is is already mounted - ok for ocfs2
- inside the vm and vm file has something like:
- http://www.sandervanvugt.com/xenha.pdf Configuring HA
- stonith plugin? http://hg.linux-ha.org/dev/rev/adafc56fec02
- bladecenter commandline power off and power back on via telnet/ssh
- power -cycle -T blade[9]
- /usr/sbin/openhpid -c /etc/openhpi/openhpi.conf -n >/tmp/openhpid.log 2>&1
