Seph, i don't know if that will help but looking at your template it seems the source of your VM is a qcow file in your /home.
Instead you should have your source image in a LVM volume defined as something like: /dev/your_vg/your_image_lv . If your source does not use a /dev then I believe the tm_clone script reverts to regular file cloning. The virtual group is defined in $ONE_LOCATION/etc/tm_lvm/tm_lvmrc I believe. So you need to edit that file to specify your particular setup. Once that's done, one will create lvm snapshots of that source volume. -sebastien On Fri, Jul 2, 2010 at 6:29 PM, seph <[email protected]> wrote: > I'm sorry, I can't really makes heads or tails of this. I'm not sure > when I'll get back to playing with opennebula. I gave up pending shared > disk space, the lvm route felt like it didn't really work. > > seph > > Tino Vazquez <[email protected]> writes: > >> Hi Seph, >> >> OpenNebula chooses the TM based on which hosts needs to stage the >> image into. This is defined at the time of adding the host to >> OpenNebula. Your host seems to be correctly defined to use the lvm tm >> driver, so the chosing of tm_clone.sh boils down to what is defined in >> $ONE_LOCATION/tm_lvm/tm_lvm.conf. >> >> Hope it helps, please come back if you need further clarifications, >> >> -Tino >> >> -- >> Constantino Vázquez Blanco | dsa-research.org/tinova >> Virtualization Technology Engineer / Researcher >> OpenNebula Toolkit | opennebula.org >> >> >> >> On Thu, May 27, 2010 at 7:39 PM, seph <[email protected]> wrote: >>> Hi all, I'm playing around with opennebula and LVM and having some >>> trouble fitting the pieces together. I have a handful of test nodes, >>> and I'd like each of them to use their local lvm pools. (I realize >>> this makes migration hard). >>> >>> I'm not really sure where to begin debugging it. I created a kvm image >>> using vmbuilder, and a trivial template, and then I created the >>> VM. But, opennebula is using tm_commands/ssh/tm_clone.sh and not >>> tm_commands/lvm/tm_clone.sh thus I'm winding up with the wrong thing. >>> >>> My oned.conf: >>> >>> HOST_MONITORING_INTERVAL = 60 >>> VM_POLLING_INTERVAL = 60 >>> PORT=2633 >>> DEBUG_LEVEL=3 >>> NETWORK_SIZE = 254 >>> MAC_PREFIX = "00:03" >>> IM_MAD = [ name = "im_kvm", executable = "one_im_ssh", arguments = >>> "im_kvm/im_kvm.conf" ] >>> VM_MAD = [ name = "vmm_kvm", executable = "one_vmm_kvm", default = >>> "vmm_kvm/vmm_kvm.conf", type = "kvm" ] >>> TM_MAD = [ name = "tm_lvm", executable = "one_tm", arguments = >>> "tm_lvm/tm_lvm.conf" ] >>> HM_MAD = [ executable = "one_hm" ] >>> >>> My VM template: >>> >>> NAME = "TEST" >>> CPU = "1" >>> MEMORY = "256" >>> VCPU = "1" >>> DISK = [ >>> type = "block", >>> source = "/home/seph/testvm/tmpp0wEVF.qcow2", >>> clone = "no", >>> size = "4096", >>> target = "sda", >>> bus = "virtio" ] >>> >>> Some onehost info: >>> >>> HOST 0 INFORMATION >>> ID : 0 >>> NAME : macbook-test2 >>> STATE : MONITORED >>> IM_MAD : im_kvm >>> VM_MAD : vmm_kvm >>> TM_MAD : tm_lvm >>> >>> And some of the oned log from the creation: >>> (note the "via ssh" in the second line. That's my instrumentation) >>> >>> tm_ln.sh: Link (non shared dir, will clone) >>> tm_clone.sh: macbook-test2:/home/seph/testvm/tmpp0wEVF.qcow2 >>> macbook-test2:/var/lib/one//14/images/disk.0 (via ssh) >>> tm_clone.sh: DST: /var/lib/one//14/images/disk.0 >>> tm_clone.sh: Creating directory /var/lib/one//14/images >>> tm_clone.sh: Executed "ssh macbook-test2 mkdir -p /var/lib/one//14/images". >>> tm_clone.sh: Cloning macbook-test2:/home/seph/testvm/tmpp0wEVF.qcow2 >>> tm_clone.sh: Executed "scp macbook-test2:/home/seph/testvm/tmpp0wEVF.qcow2 >>> macbook-test2:/var/lib/one//14/images/disk.0". >>> tm_clone.sh: Executed "ssh macbook-test2 chmod a+w >>> /var/lib/one//14/images/disk.0". >>> >>> I'm not really sure how opennebula chooses which TM tools to use, so I'm >>> not really sure how to debug this. Pointers? Help? >>> >>> seph >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>> > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- --- Sebastien Goasguen, Associate Professor School of Computing Clemson University 864-553-4734. Google Voice: (864)-869-8683 http://sites.google.com/site/runseb/ _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
