Re: [one-users] how to use lvm datastore for virtual machine disks
Two more questions: 1. Can I predefine the size of the vm disk in template, so that if ttylinux is 40MB big virtual machine disk would be 10G not 40MB ? 2. I have a bunch of already running virtual machines libvirt/kvm, how can I migrate them to opennebula ? Thanks a lot for you help! On Tue, May 28, 2013 at 6:02 PM, Denis J. Cirulis wrote: > Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 sudo lvcreate > -L40M prod-vm -n lv-one-8" failed: sudo: sorry, you must have a tty to run > sudo > > Tue May 28 18:02:03 2013 [ImM][I]: sudo lvcreate -L40M prod-vm -n > lv-one-8" failed: sudo: sorry, you must have a tty to run sudo > Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG E 8 Error > registering compute01:/dev/prod-vm/lv-one-8 > > Tue May 28 18:02:03 2013 [ImM][E]: Error registering > compute01:/dev/prod-vm/lv-one-8 > Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 ExitCode: 1 > > Tue May 28 18:02:03 2013 [ImM][I]: ExitCode: 1 > Tue May 28 18:02:03 2013 [ImG][D]: Message received: CP FAILURE 8 Error > registering compute01:/dev/prod-vm/lv-one-8 > > > I think I've got the solution :) > > > On Tue, May 28, 2013 at 5:33 PM, Marlok Tamás wrote: > >> Hi Denis, >> >> Can you give us the relevant output from the oned.log? >> (with log level=3) >> >> >> Cheers, >> tmarlok >> >> >> On Tue, May 28, 2013 at 4:21 PM, Denis J. Cirulis < >> denis.ciru...@gmail.com> wrote: >> >>> Hi Marlok, >>> maybe I'm giving too few details of the problem: >>> >>> lvm datastore: >>> [oneadmin@master ~]$ onedatastore show 104 >>> DATASTORE 104 INFORMATION >>> >>> ID : 104 >>> NAME : production-ds >>> USER : oneadmin >>> GROUP : oneadmin >>> CLUSTER: production >>> TYPE : IMAGE >>> DS_MAD : lvm >>> TM_MAD : lvm >>> BASE PATH : /var/lib/one/datastores/104 >>> DISK_TYPE : BLOCK >>> >>> PERMISSIONS >>> >>> OWNER : um- >>> GROUP : u-- >>> OTHER : --- >>> >>> DATASTORE TEMPLATE >>> >>> CLUSTER="production" >>> DS_MAD="lvm" >>> HOST="compute01" >>> TM_MAD="lvm" >>> VG_NAME="prod-vm" >>> >>> IMAGES >>> [oneadmin@master ~]$ >>> >>> compute01 is a kvm node where lvm operations will be held, cause backing >>> storage for that is fibre channel lun, which then will be accessible on all >>> compute nodes. >>> >>> Then, I imported ttylinux image to production-ds datastore and all I got >>> in Images section of the Sunstone UI is : >>>Tue May 28 17:19:53 2013 : Error copying image in the datastore: >>> Error registering compute01:/dev/prod-vm/lv-one-7 >>> User oneadmin is in sudoers and is able to launch any lv* command >>> through sudo. >>> >>> >>> >>> >>> >>> On Tue, May 28, 2013 at 5:08 PM, Marlok Tamás wrote: >>> >>>> Hi Denis, >>>> >>>> You should first create, the lvm datasore in opennebula. After that, >>>> when you import the image from marketplace, you can select this lvm >>>> datastore (instead of default ds). >>>> >>>> Hope this helps. >>>> >>>> Cheers, >>>> tmarlok >>>> >>>> >>>> On Tue, May 28, 2013 at 3:24 PM, Denis J. Cirulis < >>>> denis.ciru...@gmail.com> wrote: >>>> >>>>> Hello list, >>>>> I imported predefined lvm vg to opennebula using lvm driver and lvm >>>>> transfer driver. Adjusted HOST variable with hostname of compute node >>>>> where >>>>> all lvm operations will be held. oneadmin can login via ssh without >>>>> password and is in sudoers group to execure all lvm related commands. >>>>> I downloaded CentOS KVM ready-made image from marketplace, imported >>>>> with default settings (default datastore). >>>>> >>>>> When I'm trying to create template for this image I can not see where >>>>> should I mention datastore (in my case lvm ds) where virtual machine >>>>> images >>>>> will be created. >>>>> What I'm doing wrong ? I see no lv-one-ID volumes in vg. >>>>> >>>>> ___ >>>>> Users mailing list >>>>> us...@lists..opennebula.org >>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>>> >>>>> >>>> >>> >> > ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to use lvm datastore for virtual machine disks
Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 sudo lvcreate -L40M prod-vm -n lv-one-8" failed: sudo: sorry, you must have a tty to run sudo Tue May 28 18:02:03 2013 [ImM][I]: sudo lvcreate -L40M prod-vm -n lv-one-8" failed: sudo: sorry, you must have a tty to run sudo Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG E 8 Error registering compute01:/dev/prod-vm/lv-one-8 Tue May 28 18:02:03 2013 [ImM][E]: Error registering compute01:/dev/prod-vm/lv-one-8 Tue May 28 18:02:03 2013 [ImG][D]: Message received: LOG I 8 ExitCode: 1 Tue May 28 18:02:03 2013 [ImM][I]: ExitCode: 1 Tue May 28 18:02:03 2013 [ImG][D]: Message received: CP FAILURE 8 Error registering compute01:/dev/prod-vm/lv-one-8 I think I've got the solution :) On Tue, May 28, 2013 at 5:33 PM, Marlok Tamás wrote: > Hi Denis, > > Can you give us the relevant output from the oned.log? > (with log level=3) > > > Cheers, > tmarlok > > > On Tue, May 28, 2013 at 4:21 PM, Denis J. Cirulis > wrote: > >> Hi Marlok, >> maybe I'm giving too few details of the problem: >> >> lvm datastore: >> [oneadmin@master ~]$ onedatastore show 104 >> DATASTORE 104 INFORMATION >> >> ID : 104 >> NAME : production-ds >> USER : oneadmin >> GROUP : oneadmin >> CLUSTER: production >> TYPE : IMAGE >> DS_MAD : lvm >> TM_MAD : lvm >> BASE PATH : /var/lib/one/datastores/104 >> DISK_TYPE : BLOCK >> >> PERMISSIONS >> >> OWNER : um- >> GROUP : u-- >> OTHER : --- >> >> DATASTORE TEMPLATE >> >> CLUSTER="production" >> DS_MAD="lvm" >> HOST="compute01" >> TM_MAD="lvm" >> VG_NAME="prod-vm" >> >> IMAGES >> [oneadmin@master ~]$ >> >> compute01 is a kvm node where lvm operations will be held, cause backing >> storage for that is fibre channel lun, which then will be accessible on all >> compute nodes. >> >> Then, I imported ttylinux image to production-ds datastore and all I got >> in Images section of the Sunstone UI is : >>Tue May 28 17:19:53 2013 : Error copying image in the datastore: Error >> registering compute01:/dev/prod-vm/lv-one-7 >> User oneadmin is in sudoers and is able to launch any lv* command through >> sudo. >> >> >> >> >> >> On Tue, May 28, 2013 at 5:08 PM, Marlok Tamás wrote: >> >>> Hi Denis, >>> >>> You should first create, the lvm datasore in opennebula. After that, >>> when you import the image from marketplace, you can select this lvm >>> datastore (instead of default ds). >>> >>> Hope this helps. >>> >>> Cheers, >>> tmarlok >>> >>> >>> On Tue, May 28, 2013 at 3:24 PM, Denis J. Cirulis < >>> denis.ciru...@gmail.com> wrote: >>> >>>> Hello list, >>>> I imported predefined lvm vg to opennebula using lvm driver and lvm >>>> transfer driver. Adjusted HOST variable with hostname of compute node where >>>> all lvm operations will be held. oneadmin can login via ssh without >>>> password and is in sudoers group to execure all lvm related commands. >>>> I downloaded CentOS KVM ready-made image from marketplace, imported >>>> with default settings (default datastore). >>>> >>>> When I'm trying to create template for this image I can not see where >>>> should I mention datastore (in my case lvm ds) where virtual machine images >>>> will be created. >>>> What I'm doing wrong ? I see no lv-one-ID volumes in vg. >>>> >>>> ___ >>>> Users mailing list >>>> us...@lists..opennebula.org >>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>> >>>> >>> >> > ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to use lvm datastore for virtual machine disks
Hi Marlok, maybe I'm giving too few details of the problem: lvm datastore: [oneadmin@master ~]$ onedatastore show 104 DATASTORE 104 INFORMATION ID : 104 NAME : production-ds USER : oneadmin GROUP : oneadmin CLUSTER: production TYPE : IMAGE DS_MAD : lvm TM_MAD : lvm BASE PATH : /var/lib/one/datastores/104 DISK_TYPE : BLOCK PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE CLUSTER="production" DS_MAD="lvm" HOST="compute01" TM_MAD="lvm" VG_NAME="prod-vm" IMAGES [oneadmin@master ~]$ compute01 is a kvm node where lvm operations will be held, cause backing storage for that is fibre channel lun, which then will be accessible on all compute nodes. Then, I imported ttylinux image to production-ds datastore and all I got in Images section of the Sunstone UI is : Tue May 28 17:19:53 2013 : Error copying image in the datastore: Error registering compute01:/dev/prod-vm/lv-one-7 User oneadmin is in sudoers and is able to launch any lv* command through sudo. On Tue, May 28, 2013 at 5:08 PM, Marlok Tamás wrote: > Hi Denis, > > You should first create, the lvm datasore in opennebula. After that, when > you import the image from marketplace, you can select this lvm datastore > (instead of default ds). > > Hope this helps. > > Cheers, > tmarlok > > > On Tue, May 28, 2013 at 3:24 PM, Denis J. Cirulis > wrote: > >> Hello list, >> I imported predefined lvm vg to opennebula using lvm driver and lvm >> transfer driver. Adjusted HOST variable with hostname of compute node where >> all lvm operations will be held. oneadmin can login via ssh without >> password and is in sudoers group to execure all lvm related commands. >> I downloaded CentOS KVM ready-made image from marketplace, imported with >> default settings (default datastore). >> >> When I'm trying to create template for this image I can not see where >> should I mention datastore (in my case lvm ds) where virtual machine images >> will be created. >> What I'm doing wrong ? I see no lv-one-ID volumes in vg. >> >> ___ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> > ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] how to use lvm datastore for virtual machine disks
Hello list, I imported predefined lvm vg to opennebula using lvm driver and lvm transfer driver. Adjusted HOST variable with hostname of compute node where all lvm operations will be held. oneadmin can login via ssh without password and is in sudoers group to execure all lvm related commands. I downloaded CentOS KVM ready-made image from marketplace, imported with default settings (default datastore). When I'm trying to create template for this image I can not see where should I mention datastore (in my case lvm ds) where virtual machine images will be created. What I'm doing wrong ? I see no lv-one-ID volumes in vg. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] vm creation
Hello list, I can not really understand from the documentation the process of creating new virtual machines. I have defined a cluster with hosts and lvm datastores. I downloaded some ready-made kvm images from marketplace, created templates. When I click on create virtual machine I see that something happens, but no machine disks are shown in LVM volume group. Maybe there are some good documentation on how to create virtual machines backed by lvm volumes instead of qcow/nfs ? Thanks in advance! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] fibre channel datastore
Hello Jaime, thanks for your tips on configuring the LVM datastore. I gone through all the steps and I have configured datastore. Next problem is that I can not understand why my virtual machines are not being provisioned to this new datastore. Thanks. On Tue, May 21, 2013 at 6:43 PM, Jaime Melis wrote: > Hello Denis, > > 1. Do I have to connect the FC datastore to opennebula server ? >> > No. You don't need to (you could, but there's really no point). > >> 2. Which driver should I use on compute nodes ? >> > The LVM drivers. > >> 3. Will my virtual machines be persistent during infrastructure reboots ? > > Yes. > > The similar setup you have described is exactly what you want to replicate > with OpenNebula. You need the LVM drivers for this. I have just added a > diagram to the LVM guide [1] to show you exactly the setup you need. The > idea is to export the same LUN to all the OpenNebula nodes and create a > cLVM* on top of it. OpenNebula will speak to just one of the nodes of that > cluster ($HOST parameter in the Datastore template). If the FC > configuration is persistent, and the cLVM configuration is also persistent, > then your VMs will persist during reboots. > > Note that the underlying storage doesn't affect OpenNebula at all, you > could do this with FC, iSCSI, or even a NAS, as long as you export the same > block device to all the hosts (are configure it to persist after reboots). > > By the way, I strongly recommend reading this article, written by the > people at MTA SZTAKI, explaining many things about LVM deployment. You will > find a lot of hints, best practices and troubleshooting tips in there. > > * Maybe you don't need cLVM, after reading the article [2] you will be > able to understand the pros and cons of using it. > > [1] http://opennebula.org/documentation:rel4.0:lvm_ds > [2] http://wiki.opennebula.org/shared_lvm > > Cheers, > Jaime > > On Tue, May 21, 2013 at 9:35 AM, Denis J. Cirulis > wrote: > >> Hello, >> >> I have to setup proof of concept cloud using opennebula and zfs san. >> I can not understand the correct scenario of running virtual machines >> from FC: >> >> 1. Do I have to connect the FC datastore to opennebula server ? >> 2. Which driver should I use on compute nodes ? >> 3. Will my virtual machines be persistent during infrastructure reboots ? >> >> I already had similar setup but with plain libvirt and kvm, the concept >> was to use one lun per datastore from fc storage using fc hba and switch, >> which was advertised to compute nodes as lvm vg, then each virtual machine >> had 1+n logical volumes from this vg as its hard drive. Backup was >> performed via lvm snapshot and dd/rsync. There was a possibility to migrate >> storage from one node to another without vm downtime using virsh block-copy >> --live. >> >> What are the correct steps to achieve the same functionality on >> opennebula 4.0 ? >> I'm running CentOS 6.4 both on opennebula server and compute nodes. >> >> Thanks in advance! >> >> ___ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> > -- > Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26 > September, 2013 > -- > Jaime Melis > Project Engineer > OpenNebula - The Open Source Toolkit for Cloud Computing > www.OpenNebula.org | jme...@opennebula.org > ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] fibre channel datastore
Hello, I have to setup proof of concept cloud using opennebula and zfs san. I can not understand the correct scenario of running virtual machines from FC: 1. Do I have to connect the FC datastore to opennebula server ? 2. Which driver should I use on compute nodes ? 3. Will my virtual machines be persistent during infrastructure reboots ? I already had similar setup but with plain libvirt and kvm, the concept was to use one lun per datastore from fc storage using fc hba and switch, which was advertised to compute nodes as lvm vg, then each virtual machine had 1+n logical volumes from this vg as its hard drive. Backup was performed via lvm snapshot and dd/rsync. There was a possibility to migrate storage from one node to another without vm downtime using virsh block-copy --live. What are the correct steps to achieve the same functionality on opennebula 4.0 ? I'm running CentOS 6.4 both on opennebula server and compute nodes. Thanks in advance! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org