On Thu, 22 Oct 2009 11:13:01 -0400 Lon Hohberger <lhh@xxxxxxxxxx> wrote: > Put your domains in /etc/xen and remove the path attribute. 'virsh' > does not have a way to specify alternative search paths, consequently, > using 'path' requires use of 'xm'. Here is line from cluster.conf: <vm name="myvm1" hypervisor="xen" use_virsh="1" autostart="0" domain="domain132" migrate="live" recovery="disable" migration_mapping="lego01:lego01-bond1,lego02:lego02-bond1,lego03:lego03-bond1"/> And here is my /etc/xen/myvm1.xml: import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen/boot/hvmloader" builder='hvm' memory = 512 shadow_memory = 8 name = "myvm1" uuid = "06ef0bfe-1162-4fc4-15d8-11b92ee4a000" vif = [ 'type=ioemu, bridge=xenbr0' ] disk = [ 'phy:/dev/VolGroup0/myvm1,ioemu:hda,w', 'phy:/dev/VolGroup0/myvm1_data,ioemu:hdb,w', 'file:/xen/local/iso-images/winxp-sp2.iso,ioemu:hdc:cdrom,r' ] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' device_model = '/usr/lib64/xen/bin/qemu-dm' boot="dc" sdl=0 vnc=1 vnclisten="0.0.0.0" vncdisplay=13 vncunused=0 vncconsole=1 vncpasswd='' stdvga=0 serial='pty' usbdevice='tablet' And here's the part from /var/log/messages, when I try to enable machine through cluster management: Oct 24 20:45:49 lego01 clurgmgrd[5873]: <notice> Starting stopped service vm:myvm1 Oct 24 20:45:49 lego01 libvirtd: 20:45:49.910: error : /etc/xen/myvm1.xml:1: expecting an assignment Oct 24 20:45:49 lego01 libvirtd: 20:45:49.910: error : /etc/xen/xenscreenrc:1: expecting an assignment Oct 24 20:45:49 lego01 libvirtd: 20:45:49.950: error : /etc/xen/myvm1.xml:1: expecting an assignment Oct 24 20:45:49 lego01 libvirtd: 20:45:49.950: error : /etc/xen/xenscreenrc:1: expecting an assignment Oct 24 20:45:49 lego01 clurgmgrd[5873]: <notice> start on vm "myvm1" returned 1 (generic error) Oct 24 20:45:49 lego01 clurgmgrd[5873]: <warning> #68: Failed to start vm:myvm1; return value: 1 Oct 24 20:45:49 lego01 clurgmgrd[5873]: <notice> Stopping service vm:myvm1 Oct 24 20:45:50 lego01 libvirtd: 20:45:50.258: error : /etc/xen/myvm1.xml:1: expecting an assignment Oct 24 20:45:50 lego01 libvirtd: 20:45:50.258: error : /etc/xen/xenscreenrc:1: expecting an assignment Oct 24 20:45:50 lego01 libvirtd: 20:45:50.482: error : /etc/xen/myvm1.xml:1: expecting an assignment Oct 24 20:45:50 lego01 libvirtd: 20:45:50.482: error : /etc/xen/xenscreenrc:1: expecting an assignment Oct 24 20:45:50 lego01 clurgmgrd[5873]: <notice> Service vm:myvm1 is recovering Oct 24 20:45:50 lego01 clurgmgrd[5873]: <warning> #71: Relocating failed service vm:myvm1 Oct 24 20:45:53 lego01 clurgmgrd[5873]: <notice> Service vm:xp-mgmt is stopped Where could be the problem? > Federico's 'xmlfile' patch allows vm.sh to take a name + a full path > to a libvirt .xml file for using virsh, but it's not in RHEL. And where can I find that patch? In case I don't succeed in getting Virsh to run like it should :-/ -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================= | start fighting cancer -> http://www.worldcommunitygrid.org/ | -- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster