Re: [one-users] Run bash script in vm on spin-up
Hello Kerry, Do you have a registered image of type CONTEXT with the name of `test.sh` in the files datastore? The file you specify in FILES_DS can be found in the contextualization CDROM on the VM (/dev/disk/by-label/CONTEXT). The following would run a `test.sh` script when the VM is spun up at the end of the contextualization routine [1]. CONTEXT = [ FILES_DS=$FILE[IMAGE=\test.sh\], INIT_SCRIPTS=test.sh, ... ] [1]: https://github.com/OpenNebula/addon-context-linux/blob/master/base/etc/one-context.d/99-execute-scripts Best, Valentin On Mon, Sep 8, 2014 at 11:09 PM, kerryhall . kerryh...@gmail.com wrote: Thanks! I'm still having issues here unfortunately. I tried putting: FILES_DS=$FILE[IMAGE=\test.sh\] into my template context section, but I get: User 0 does not own an image with name: test.sh I'm not trying to include an image, I just want test.sh (a file in my file datastore) to get copied to anywhere on my vm's filesystem. (And eventually, I want test.sh to get run on vm creation, or failing that, every time the vm starts) Thanks!! On Fri, Jul 25, 2014 at 11:18 PM, Valentin Bud valentin@gmail.com wrote: Hello Kerry, Under Defining Context [1] there is an example how to use FILES_DS. FILES_DS=$FILE[IMAGE=\test.sh\] [1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html Best, Valentin On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . kerryh...@gmail.com wrote: Hi folks, I am trying to run a bash script on a vm as it gets spun up. I've read: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html but there isn't too much to go on there. I have created test.sh and put it into the files datastore on the head node. The issue I am having is that the syntax in the Defining Context section of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is ambiguous, specifically the files_ds section. I have tried: FILES_DS=$FILE[\test.sh\] and FILES_DS=/var/lib/one/datastores/2/test.sh As a first step, I'm just trying to get this file included in my vm at all. Thanks! Kerry ___ 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
Re: [one-users] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone
Hello Kerry, I am unsure how to use a DHCP client to suggest an IP to the DHCP server, or if DHCP supports this. The DHCP client can be configured to request a specific IP address from the DHCP server [1]. [1]: http://superuser.com/questions/487607/how-to-request-a-specific-ip-address-from-dhcp-server Best, Valentin Thanks!! Kerry On Mon, Sep 8, 2014 at 1:42 AM, Javier Fontan jfon...@opennebula.org wrote: The context packages are meant to be used with static networking. To add that parameters to network configuration you can do one of these things: * Create the network configuration in the base images manually and do not set network contextualization in OpenNebula so they are not overwritten. * Modify the context packages to add those parameters [1] For the third thing there is no way to do it. OpenNebula gets an IP from the network pool and assigns it to the NIC. There is no way to change it after it is selected and there is no external method of selecting the IP. What you can do is configure DHCP so it picks the same IP as OpenNebula had selected for the VM. The MAC addresses are generated from the MAC prefix and the IP, you can configure DHCP with those mac/ip pairs. MAC = PREFIX + IP in hex 02:00:0a:00:00:01 = 02:00 + 10.0.0.1 (in hex is 0a:00:00:01) [1] https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L103-L114 On Sat, Sep 6, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com wrote: Hi folks, I have a small ONE cluster that I am currently setting up on 4.8. I have a ethernet network model, and I have added the following line to my template: SET_HOSTNAME=$NAME.mydomain.int So far so good, but I need to be able to do the following three things: 1. set BOOTPROTO=dhcp in /etc/sysconfig/network-scripts/ifcfg-eth0 on new vms 2. set DHCP_HOSTNAME=$NAME.mydomain.int on new vms 3. set the IP field in sunstone to vm's IP address provided by DHCP How do I accomplish these items? I was thinking run a bash script on vm startup for items 1 and 2, unless there is a builtin ONE way to do this, but what about item 3? Is there just a straight up DHCP networking model I can use to make this easier? Does anyone currently use ONE with DHCP? Thanks!! Kerry ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ 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] unknown ethernet controller on windows imported image
Hello I tried importing a preexisting Vmware Windows2008r2 image into Opennebula, however I have no network connectivity. In device manager I see an unknown ethernet controller with a yellow exclamation mark. The hardware ID is pci/ven_1022dev_2000subsys_20001022rev_10 which looks like an AMD PCNET card. Inside the Esxi host I see the network card is configured as Flexible. In the original image I tried to use both a flexible and Vmxnet3 network card, but as soon as I import it into Opennebula I always get this old/incompatible network card. I also tried reinstalling the latest Vmware tools in the original image to no effect. Thank you for your help -- Dott. Luca Uburti lubu...@ricca-it.com _ Ricca S.r.l. ww http://www.riccasrl.comw.ricca-it.com https://webmail.ricca-it.it/www.riccasrl.com Zona Industriale II Fase 97100 - Ragusa T.+39 0932 66 80 82 callto:+39%200932%2066%2080%2082 F.+39 0932 66 70 72 callto:+39%200932%2066%2070%2072 AVVISO DI RISERVATEZZA Questa e-mail è ad uso esclusivo di colui al quale è indirizzata, e potrebbe contenere informazioni riservate. Se aveste ricevuto questa e-mail per errore, o comunque non ne siete il destinatario, ci scusiamo per l'accaduto e Vi invitiamo cortesemente a darcene notizia e a distruggere il messaggio ricevuto. Vi ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei dati ricevuti per errore costituiscono violazioni alle disposizioni del Decreto legislativo n. 196/2003 denominato Codice in materia di protezione dei dati personali. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problems to delete image completely
Hello, I wrote: I created an opennebula disk image (ID 292) and used it in a VM, the VM did not work, so I deleted first the VM and then the image. But somehow, opennebula still knows that image. That is, 'oneimage list' still lists, among others, disk image 292, but any further action on it, like delete or show, says [ImageInfo] Error getting image [292]. How can I completely remove that image from the opennebula database? Now, I have another problem with another image: I made an image persistent, created a VM with it, deleted the VM but opennebula said that the image was still in use. Then, I changed the image mode to non-persistent, 'oneimage list' now shows state READY, but when I try to create a new VM with that disk image opennebula still says that the disk is already in use. How can I reuse that image? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] unknown ethernet controller on windows imported image
Hi Luca, Have you tried with E1000 model? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. 2014-09-09 9:13 GMT+02:00 Luca Uburti lubu...@ricca-it.com: Hello I tried importing a preexisting Vmware Windows2008r2 image into Opennebula, however I have no network connectivity. In device manager I see an unknown ethernet controller with a yellow exclamation mark. The hardware ID is pci/ven_1022dev_2000subsys_20001022rev_10 which looks like an AMD PCNET card. Inside the Esxi host I see the network card is configured as Flexible. In the original image I tried to use both a flexible and Vmxnet3 network card, but as soon as I import it into Opennebula I always get this old/incompatible network card. I also tried reinstalling the latest Vmware tools in the original image to no effect. Thank you for your help -- Dott. Luca Uburti lubu...@ricca-it.com _ Ricca S.r.l. ww http://www.riccasrl.comw.ricca-it.com https://webmail.ricca-it.it/www.riccasrl.com Zona Industriale II Fase 97100 - Ragusa T. +39 0932 66 80 82 callto:+39%200932%2066%2080%2082 F. +39 0932 66 70 72 callto:+39%200932%2066%2070%2072 AVVISO DI RISERVATEZZA Questa e-mail è ad uso esclusivo di colui al quale è indirizzata, e potrebbe contenere informazioni riservate. Se aveste ricevuto questa e-mail per errore, o comunque non ne siete il destinatario, ci scusiamo per l’accaduto e Vi invitiamo cortesemente a darcene notizia e a distruggere il messaggio ricevuto. Vi ricordiamo che la diffusione, l’utilizzo e/o la conservazione dei dati ricevuti per errore costituiscono violazioni alle disposizioni del Decreto legislativo n. 196/2003 denominato “Codice in materia di protezione dei dati personali”. ___ 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
Re: [one-users] Opennebula 4.8.2 Sunstone accounting - some miscalculations
Hi Robert, Can you please send the output of oneacct -x? Off-list if you prefer. Also, what version are you using, 4.6.2? 4.8.2 is not available, we don't even have 4.8.1 out yet :) Regards. -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org On Fri, Aug 29, 2014 at 11:47 AM, Robert Tanase robert.tan...@appnor.com wrote: Hello, I am testing Opennebula 4.8.2 build. Working with accounting stats I found a wrong calculation in Sunstone results: VID HOSTNAMEACTION REAS START_TIME END_TIME MEMORY CPU NET_RX NET_TX 5 bu-mf39014.appn poweroff user *08/25 13:57:16* 08/28 16:55:24 1024M 0.1 285M 15.9M Life time Is about 10 hours on 25-08 for VM 5. [image: Inline image 1] -- *Best regards, Robert Tanase* ___ 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
Re: [one-users] Problems to delete image completely
Hi Christoph, It may be a bug in the core, but probably what is happening is that some DB writes are failing. Do you have any related error messages in oned.log? When checking these kind of problems, you should be aware that one* list gets the information directly from the DB, and one* show gets the information from the oned daemon cache. If there is any inconsistency, things went wrong. On Tue, Sep 9, 2014 at 9:14 AM, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: I created an opennebula disk image (ID 292) and used it in a VM, the VM did not work, so I deleted first the VM and then the image. But somehow, opennebula still knows that image. That is, 'oneimage list' still lists, among others, disk image 292, but any further action on it, like delete or show, says [ImageInfo] Error getting image [292]. How can I completely remove that image from the opennebula database? You can stop opennebula, and then remove the row with oid 292 from the image_pool table. Now, I have another problem with another image: I made an image persistent, created a VM with it, deleted the VM but opennebula said that the image was still in use. Then, I changed the image mode to non-persistent, 'oneimage list' now shows state READY, but when I try to create a new VM with that disk image opennebula still says that the disk is already in use. How can I reuse that image? The fsck tool [1] should fix that. Stop opennebula, run fsck, and it will fix the Image state. Regards. [1] http://docs.opennebula.org/4.8/administration/references/onedb.html -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Run bash script in vm on spin-up (Users Digest, Vol 79, Issue 20)
You are right. There are some CONTEXT variables that are not in the template documentation. Thanks for the tip. On Tue, Sep 9, 2014 at 7:44 AM, Rolandas Naujikas rolandas.nauji...@mif.vu.lt wrote: Please look http://docs.opennebula.org/4.8/user/references/template.html#context-section and http://docs.opennebula.org/4.8/user/virtual_machine_setup/cong.html FILES_DS and INIT_SCRIPTS. INIT_SCRIPTS is missing in context reference documentation. Regards, Rolandas Naujikas On 2014.09.08 23:09, kerryhall . wrote: Thanks! I'm still having issues here unfortunately. I tried putting: FILES_DS=$FILE[IMAGE=\test.sh\] into my template context section, but I get: User 0 does not own an image with name: test.sh I'm not trying to include an image, I just want test.sh (a file in my file datastore) to get copied to anywhere on my vm's filesystem. (And eventually, I want test.sh to get run on vm creation, or failing that, every time the vm starts) Thanks!! On Fri, Jul 25, 2014 at 11:18 PM, Valentin Bud valentin@gmail.com wrote: Hello Kerry, Under Defining Context [1] there is an example how to use FILES_DS. FILES_DS=$FILE[IMAGE=\test.sh\] [1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html Best, Valentin On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . kerryh...@gmail.com wrote: Hi folks, I am trying to run a bash script on a vm as it gets spun up. I've read: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html but there isn't too much to go on there. I have created test.sh and put it into the files datastore on the head node. The issue I am having is that the syntax in the Defining Context section of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is ambiguous, specifically the files_ds section. I have tried: FILES_DS=$FILE[\test.sh\] and FILES_DS=/var/lib/one/datastores/2/test.sh As a first step, I'm just trying to get this file included in my vm at all. Thanks! Kerry ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140908/73439fbb/attachment-0001.htm ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] unknown ethernet controller on windows imported image
Hi Luca, Ok, let's see if we can get to the bottom of this issue. Could you provide the deployment file of the VM? It is placed in the front-end, under /var/lib/one/datastores/ds_id/deployment.0, where ds_id is the id of the system datastore (0, by default). Moreover, the .vmx file created in the ESX host can be of use. This would be placed in the ESX host, under /vmfs/volumes/image_ds_id/vid/disk.0/one-vid.vmx, where image_ds_id is the id of the image datastore, and vid is the id of the virtual machine as seen by OpenNebula. Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:14, Luca Uburti lubu...@ricca-it.com wrote: Yes, even with an E1000 Nic card type set on the original image, once I import it into Opennebula it becomes a Flexible / AMD PCNET. I haven't tried installing this driver beforehand on the original image, even though I thought the vmware tools would take care of it. Thanks Luca Il 09/09/2014 11:01, Tino Vazquez ha scritto: Hi Luca, Have you tried with E1000 model? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. 2014-09-09 9:13 GMT+02:00 Luca Uburti lubu...@ricca-it.com: Hello I tried importing a preexisting Vmware Windows2008r2 image into Opennebula, however I have no network connectivity. In device manager I see an unknown ethernet controller with a yellow exclamation mark. The hardware ID is pci/ven_1022dev_2000subsys_20001022rev_10 which looks like an AMD PCNET card. Inside the Esxi host I see the network card is configured as Flexible. In the original image I tried to use both a flexible and Vmxnet3 network card, but as soon as I import it into Opennebula I always get this old/incompatible network card. I also tried reinstalling the latest Vmware tools in the original image to no effect. Thank you for your help -- Dott. Luca Uburti lubu...@ricca-it.com _ Ricca S.r.l. ww http://www.riccasrl.comw.ricca-it.com https://webmail.ricca-it.it/www.riccasrl.com Zona Industriale II Fase 97100 - Ragusa T. +39 0932 66 80 82 callto:+39%200932%2066%2080%2082 F. +39 0932 66 70 72 callto:+39%200932%2066%2070%2072 AVVISO DI RISERVATEZZA Questa e-mail è ad uso esclusivo di colui al quale è indirizzata, e potrebbe contenere informazioni riservate. Se aveste ricevuto questa e-mail per errore, o comunque non ne siete il destinatario, ci scusiamo per l’accaduto e Vi invitiamo cortesemente a darcene notizia e a distruggere il messaggio ricevuto. Vi ricordiamo che la diffusione, l’utilizzo e/o la conservazione dei dati ricevuti per errore costituiscono violazioni alle disposizioni del Decreto legislativo n. 196/2003 denominato “Codice in materia di protezione dei dati personali”. ___ 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
Re: [one-users] ONE 4.8 + Gluster-3.4.5 on Centos 6.5 -- VMs stuck in BOOT
That's right. Even if it is using GlusterFS the way of accessing the files is using the fuse filesystem. This makes the IO performance suffer. Do you get any errors in the log files related to gluster when you try to boot a machine with DISK_TYPE=GLUSTER is activated? It could be a firewall or a permission problem. Make sure that the hypervisor host can access clu100 port 24007. Also make sure that the server has the rpc-auth-allow-insecure option configured and was restarted after the change. On Sat, Aug 30, 2014 at 11:44 AM, Marco Aroldi marco.aro...@gmail.com wrote: Hi all, this is my first post to the list My goal is to get ONE 4.8 up and running using Gluster as datastore, everything on CentOS 6.5 The problem: the VM remains stuck in BOOT status I've found a way to boot the machines (see below), but I think is not the correct way to manage this setup. First, let me describe what I've done until now: I've followed the docs at http://docs.opennebula.org/4.8/administration/storage/gluster_ds.html and the post on the blog by Javier Fontan http://opennebula.org/native-glusterfs-image-access-for-kvm-drivers/ This is my Gluster volume: Volume Name: sys-one Type: Replicate Volume ID: f1bf1bcc-0280-46db-aab8-69fd34672263 Status: Started Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: clu001:/one Brick2: clu100:/one Options Reconfigured: cluster.server-quorum-type: server cluster.quorum-type: auto network.remote-dio: enable cluster.eager-lock: enable performance.stat-prefetch: on performance.io-cache: off performance.read-ahead: off performance.quick-read: off storage.owner-gid: 9869 storage.owner-uid: 9869 server.allow-insecure: on And the datastores: ID NAMESIZE AVAIL CLUSTER IMAGES TYPE DS TM 1 default 230.7G 86% - 6 img fs shared 2 files 230.7G 86% - 0 fil fs ssh 108 GLUSTER 24G 52% cluss 2 img fs shared 110 new system 24G 52% cluss 0 sys -shared DATASTORE 108 INFORMATION ID : 108 NAME : GLUSTER USER : oneadmin GROUP : oneadmin CLUSTER: cluss TYPE : IMAGE DS_MAD : fs TM_MAD : shared BASE PATH : /var/lib/one//datastores/108 DISK_TYPE : DATASTORE CAPACITY TOTAL: : 24G FREE: : 12.5G USED: : 6.3G LIMIT: : 12.7G PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BASE_PATH=/var/lib/one//datastores/ CLONE_TARGET=SYSTEM DISK_TYPE=GLUSTER DS_MAD=fs GLUSTER_HOST=clu100:24007 GLUSTER_VOLUME=sys-one LIMIT_MB=13000 LN_TARGET=NONE TM_MAD=shared TYPE=IMAGE_DS DATASTORE 110 INFORMATION ID : 110 NAME : new system USER : oneadmin GROUP : oneadmin CLUSTER: cluss TYPE : SYSTEM DS_MAD : - TM_MAD : shared BASE PATH : /var/lib/one//datastores/110 DISK_TYPE : FILE DATASTORE CAPACITY TOTAL: : 24G FREE: : 12.5G USED: : 6.3G LIMIT: : - PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BASE_PATH=/var/lib/one//datastores/ SHARED=YES TM_MAD=shared TYPE=SYSTEM_DS Here is the mounted glusterfs: clu100:/sys-one on /gluster type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072) And the symbolic links in the datastores directory: lrwxrwxrwx 1 oneadmin oneadmin8 Aug 30 10:18 108 - /gluster lrwxrwxrwx 1 oneadmin oneadmin8 Aug 30 10:18 110 - /gluster I've found the culprit in the system datastore: Created a new system datastore ON THE LOCAL FILESYSTEM: 111 system230.7G 86% - 0 sys -shared DATASTORE 111 INFORMATION ID : 111 NAME : system USER : oneadmin GROUP : oneadmin CLUSTER: - TYPE : SYSTEM DS_MAD : - TM_MAD : shared BASE PATH : /var/lib/one//datastores/111 DISK_TYPE : FILE DATASTORE CAPACITY TOTAL: : 230.7G FREE: : 199.2G USED: : 1M LIMIT: : - PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BASE_PATH=/var/lib/one//datastores/ SHARED=YES TM_MAD=shared TYPE=SYSTEM_DS Deploying now puts the VM in RUNNING status but, correct me if I'm wrong, this setup is not compliant, right? Thanks for the help Marco ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan
Re: [one-users] unknown ethernet controller on windows imported image
Hello, I have attached those two files thank you Il 09/09/2014 12:22, Tino Vazquez ha scritto: Hi Luca, Ok, let's see if we can get to the bottom of this issue. Could you provide the deployment file of the VM? It is placed in the front-end, under /var/lib/one/datastores/ds_id/deployment.0, where ds_id is the id of the system datastore (0, by default). Moreover, the .vmx file created in the ESX host can be of use. This would be placed in the ESX host, under /vmfs/volumes/image_ds_id/vid/disk.0/one-vid.vmx, where image_ds_id is the id of the image datastore, and vid is the id of the virtual machine as seen by OpenNebula. Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com http://www.c12g.com | @C12G | es.linkedin.com/in/tinova http://es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com mailto:ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:14, Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com wrote: Yes, even with an E1000 Nic card type set on the original image, once I import it into Opennebula it becomes a Flexible / AMD PCNET. I haven't tried installing this driver beforehand on the original image, even though I thought the vmware tools would take care of it. Thanks Luca Il 09/09/2014 11:01, Tino Vazquez ha scritto: Hi Luca, Have you tried with E1000 model? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com http://www.c12g.com | @C12G | es.linkedin.com/in/tinova http://es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com mailto:ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. 2014-09-09 9:13 GMT+02:00 Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com: Hello I tried importing a preexisting Vmware Windows2008r2 image into Opennebula, however I have no network connectivity. In device manager I see an unknown ethernet controller with a yellow exclamation mark. The hardware ID is pci/ven_1022dev_2000subsys_20001022rev_10 which looks like an AMD PCNET card. Inside the Esxi host I see the network card is configured as Flexible. In the original image I tried to use both a flexible and Vmxnet3 network card, but as soon as I import it into Opennebula I always get this old/incompatible network card. I also tried reinstalling the latest Vmware tools in the original image to no effect. Thank you for your help -- Dott. Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com _ Ricca S.r.l. ww http://www.riccasrl.comw.ricca-it.com https://webmail.ricca-it.it/www.riccasrl.com Zona Industriale II Fase 97100 - Ragusa T.+39 0932 66 80 82 callto:+39%200932%2066%2080%2082 F.+39 0932 66 70 72 callto:+39%200932%2066%2070%2072 AVVISO DI RISERVATEZZA Questa e-mail è ad uso esclusivo di colui al quale è indirizzata, e potrebbe contenere informazioni riservate. Se aveste ricevuto questa e-mail per errore, o comunque non ne siete il destinatario, ci scusiamo per l’accaduto e Vi invitiamo cortesemente a darcene notizia e a distruggere il messaggio ricevuto. Vi
Re: [one-users] unknown ethernet controller on windows imported image
Hi Luca, I fail to see the model type in the deployment file, it should have something like the following: interface type='bridge' model type='e1000'/ /interface can you share the VM template (onevm show -x vid) as well? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:52, Luca Uburti lubu...@ricca-it.com wrote: Hello, I have attached those two files thank you Il 09/09/2014 12:22, Tino Vazquez ha scritto: Hi Luca, Ok, let's see if we can get to the bottom of this issue. Could you provide the deployment file of the VM? It is placed in the front-end, under /var/lib/one/datastores/ds_id/deployment.0, where ds_id is the id of the system datastore (0, by default). Moreover, the .vmx file created in the ESX host can be of use. This would be placed in the ESX host, under /vmfs/volumes/image_ds_id/vid/disk.0/one-vid.vmx, where image_ds_id is the id of the image datastore, and vid is the id of the virtual machine as seen by OpenNebula. Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:14, Luca Uburti lubu...@ricca-it.com wrote: Yes, even with an E1000 Nic card type set on the original image, once I import it into Opennebula it becomes a Flexible / AMD PCNET. I haven't tried installing this driver beforehand on the original image, even though I thought the vmware tools would take care of it. Thanks Luca Il 09/09/2014 11:01, Tino Vazquez ha scritto: Hi Luca, Have you tried with E1000 model? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. 2014-09-09 9:13 GMT+02:00 Luca Uburti lubu...@ricca-it.com: Hello I tried importing a preexisting Vmware Windows2008r2 image into Opennebula, however I have no network connectivity. In device manager I see an unknown ethernet controller with a yellow exclamation mark. The hardware ID is pci/ven_1022dev_2000subsys_20001022rev_10 which looks like an AMD PCNET card. Inside the Esxi host I see the network card is configured as Flexible. In the original image I tried to use both a flexible and Vmxnet3 network card, but as soon as I import it into Opennebula I always get this old/incompatible network card. I also tried reinstalling the latest Vmware tools in the original image to no effect. Thank you for your help -- Dott. Luca Uburti lubu...@ricca-it.com _ Ricca S.r.l. ww
Re: [one-users] unknown ethernet controller on windows imported image
of course, here it is VM ID32/ID UID0/UID GID0/GID UNAMEoneadmin/UNAME GNAMEoneadmin/GNAME NAME123/NAME PERMISSIONS OWNER_U1/OWNER_U OWNER_M1/OWNER_M OWNER_A0/OWNER_A GROUP_U0/GROUP_U GROUP_M0/GROUP_M GROUP_A0/GROUP_A OTHER_U0/OTHER_U OTHER_M0/OTHER_M OTHER_A0/OTHER_A /PERMISSIONS LAST_POLL1410266708/LAST_POLL STATE3/STATE LCM_STATE3/LCM_STATE RESCHED0/RESCHED STIME1410189882/STIME ETIME0/ETIME DEPLOY_IDone-32/DEPLOY_ID MEMORY742400/MEMORY CPU3/CPU NET_TX0/NET_TX NET_RX0/NET_RX TEMPLATE AUTOMATIC_REQUIREMENTS![CDATA[!(PUBLIC_CLOUD = YES)]]/AUTOMATIC_REQUIREMENTS CONTEXT DISK_ID![CDATA[1]]/DISK_ID ETH0_DNS![CDATA[8.8.8.8]]/ETH0_DNS ETH0_GATEWAY![CDATA[10.222.1.254]]/ETH0_GATEWAY ETH0_IP![CDATA[10.222.1.1]]/ETH0_IP ETH0_MAC![CDATA[02:00:0a:de:01:01]]/ETH0_MAC ETH0_MASK![CDATA[255.255.255.0]]/ETH0_MASK ETH0_NETWORK![CDATA[10.222.1.0]]/ETH0_NETWORK NETWORK![CDATA[YES]]/NETWORK TARGET![CDATA[hdb]]/TARGET /CONTEXT CPU![CDATA[0.5]]/CPU DISK CLONE![CDATA[YES]]/CLONE CLONE_TARGET![CDATA[SYSTEM]]/CLONE_TARGET DATASTORE![CDATA[default]]/DATASTORE DATASTORE_ID![CDATA[1]]/DATASTORE_ID DEV_PREFIX![CDATA[hd]]/DEV_PREFIX DISK_ID![CDATA[0]]/DISK_ID IMAGE![CDATA[w2k8r2]]/IMAGE IMAGE_ID![CDATA[13]]/IMAGE_ID IMAGE_UNAME![CDATA[oneadmin]]/IMAGE_UNAME LN_TARGET![CDATA[NONE]]/LN_TARGET READONLY![CDATA[NO]]/READONLY SAVE![CDATA[NO]]/SAVE SIZE![CDATA[20585]]/SIZE SOURCE![CDATA[/vmfs/volumes/1/a84b8296fb47ece716d79137f273e014]]/SOURCE TARGET![CDATA[hda]]/TARGET TM_MAD![CDATA[vmfs]]/TM_MAD TYPE![CDATA[FILE]]/TYPE /DISK GRAPHICS LISTEN![CDATA[0.0.0.0]]/LISTEN PORT![CDATA[5932]]/PORT TYPE![CDATA[VNC]]/TYPE /GRAPHICS MEMORY![CDATA[1024]]/MEMORY NIC AR_ID![CDATA[0]]/AR_ID BRIDGE![CDATA[vSwitch0]]/BRIDGE IP![CDATA[10.222.1.1]]/IP MAC![CDATA[02:00:0a:de:01:01]]/MAC NETWORK![CDATA[dynamic_vmware_net]]/NETWORK NETWORK_ID![CDATA[2]]/NETWORK_ID NETWORK_UNAME![CDATA[oneadmin]]/NETWORK_UNAME NIC_ID![CDATA[0]]/NIC_ID VLAN![CDATA[YES]]/VLAN VLAN_ID![CDATA[340]]/VLAN_ID /NIC TEMPLATE_ID![CDATA[3]]/TEMPLATE_ID VCPU![CDATA[2]]/VCPU VMID![CDATA[32]]/VMID /TEMPLATE USER_TEMPLATE/ HISTORY_RECORDS HISTORY OID32/OID SEQ0/SEQ HOSTNAME10.10.10.236/HOSTNAME HID4/HID CID-1/CID STIME1410189893/STIME ETIME0/ETIME VMMMADvmware/VMMMAD VNMMADvmware/VNMMAD TMMADvmfs/TMMAD DS_LOCATION/vmfs/volumes/DS_LOCATION DS_ID0/DS_ID PSTIME1410189893/PSTIME PETIME1410190981/PETIME RSTIME1410190981/RSTIME RETIME0/RETIME ESTIME0/ESTIME EETIME0/EETIME REASON0/REASON ACTION0/ACTION /HISTORY /HISTORY_RECORDS /VM Il 09/09/2014 14:40, Tino Vazquez ha scritto: Hi Luca, I fail to see the model type in the deployment file, it should have something like the following: interface type='bridge' model type='e1000'/ /interface can you share the VM template (onevm show -x vid) as well? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com http://www.c12g.com | @C12G | es.linkedin.com/in/tinova http://es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com mailto:ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:52, Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com wrote: Hello, I have attached those two files thank you Il 09/09/2014 12:22, Tino Vazquez ha scritto: Hi Luca, Ok, let's see if we can get to the bottom of this issue. Could you provide the deployment file of the VM? It is placed in the front-end, under /var/lib/one/datastores/ds_id/deployment.0, where ds_id is the id of the system datastore (0, by default). Moreover, the .vmx file created in the ESX host can be of use. This would be placed in the ESX host, under /vmfs/volumes/image_ds_id/vid/disk.0/one-vid.vmx, where image_ds_id is the id of the image datastore, and vid is the id of the virtual machine as seen by OpenNebula.
Re: [one-users] unknown ethernet controller on windows imported image
Hello Luca, I think you must add MODEL=E1000 to the NIC section of the template. You can read about it in the documentation [1]. [1]: http://docs.opennebula.org/4.8/user/references/template.html#network-section Best, Valentin On Tue, Sep 9, 2014 at 3:46 PM, Luca Uburti lubu...@ricca-it.com wrote: of course, here it is VM ID32/ID UID0/UID GID0/GID UNAMEoneadmin/UNAME GNAMEoneadmin/GNAME NAME123/NAME PERMISSIONS OWNER_U1/OWNER_U OWNER_M1/OWNER_M OWNER_A0/OWNER_A GROUP_U0/GROUP_U GROUP_M0/GROUP_M GROUP_A0/GROUP_A OTHER_U0/OTHER_U OTHER_M0/OTHER_M OTHER_A0/OTHER_A /PERMISSIONS LAST_POLL1410266708/LAST_POLL STATE3/STATE LCM_STATE3/LCM_STATE RESCHED0/RESCHED STIME1410189882/STIME ETIME0/ETIME DEPLOY_IDone-32/DEPLOY_ID MEMORY742400/MEMORY CPU3/CPU NET_TX0/NET_TX NET_RX0/NET_RX TEMPLATE AUTOMATIC_REQUIREMENTS![CDATA[!(PUBLIC_CLOUD = YES)]]/AUTOMATIC_REQUIREMENTS CONTEXT DISK_ID![CDATA[1]]/DISK_ID ETH0_DNS![CDATA[8.8.8.8]]/ETH0_DNS ETH0_GATEWAY![CDATA[10.222.1.254]]/ETH0_GATEWAY ETH0_IP![CDATA[10.222.1.1]]/ETH0_IP ETH0_MAC![CDATA[02:00:0a:de:01:01]]/ETH0_MAC ETH0_MASK![CDATA[255.255.255.0]]/ETH0_MASK ETH0_NETWORK![CDATA[10.222.1.0]]/ETH0_NETWORK NETWORK![CDATA[YES]]/NETWORK TARGET![CDATA[hdb]]/TARGET /CONTEXT CPU![CDATA[0.5]]/CPU DISK CLONE![CDATA[YES]]/CLONE CLONE_TARGET![CDATA[SYSTEM]]/CLONE_TARGET DATASTORE![CDATA[default]]/DATASTORE DATASTORE_ID![CDATA[1]]/DATASTORE_ID DEV_PREFIX![CDATA[hd]]/DEV_PREFIX DISK_ID![CDATA[0]]/DISK_ID IMAGE![CDATA[w2k8r2]]/IMAGE IMAGE_ID![CDATA[13]]/IMAGE_ID IMAGE_UNAME![CDATA[oneadmin]]/IMAGE_UNAME LN_TARGET![CDATA[NONE]]/LN_TARGET READONLY![CDATA[NO]]/READONLY SAVE![CDATA[NO]]/SAVE SIZE![CDATA[20585]]/SIZE SOURCE![CDATA[/vmfs/volumes/1/a84b8296fb47ece716d79137f273e014]]/SOURCE TARGET![CDATA[hda]]/TARGET TM_MAD![CDATA[vmfs]]/TM_MAD TYPE![CDATA[FILE]]/TYPE /DISK GRAPHICS LISTEN![CDATA[0.0.0.0]]/LISTEN PORT![CDATA[5932]]/PORT TYPE![CDATA[VNC]]/TYPE /GRAPHICS MEMORY![CDATA[1024]]/MEMORY NIC AR_ID![CDATA[0]]/AR_ID BRIDGE![CDATA[vSwitch0]]/BRIDGE IP![CDATA[10.222.1.1]]/IP MAC![CDATA[02:00:0a:de:01:01]]/MAC NETWORK![CDATA[dynamic_vmware_net]]/NETWORK NETWORK_ID![CDATA[2]]/NETWORK_ID NETWORK_UNAME![CDATA[oneadmin]]/NETWORK_UNAME NIC_ID![CDATA[0]]/NIC_ID VLAN![CDATA[YES]]/VLAN VLAN_ID![CDATA[340]]/VLAN_ID /NIC TEMPLATE_ID![CDATA[3]]/TEMPLATE_ID VCPU![CDATA[2]]/VCPU VMID![CDATA[32]]/VMID /TEMPLATE USER_TEMPLATE/ HISTORY_RECORDS HISTORY OID32/OID SEQ0/SEQ HOSTNAME10.10.10.236/HOSTNAME HID4/HID CID-1/CID STIME1410189893/STIME ETIME0/ETIME VMMMADvmware/VMMMAD VNMMADvmware/VNMMAD TMMADvmfs/TMMAD DS_LOCATION/vmfs/volumes/DS_LOCATION DS_ID0/DS_ID PSTIME1410189893/PSTIME PETIME1410190981/PETIME RSTIME1410190981/RSTIME RETIME0/RETIME ESTIME0/ESTIME EETIME0/EETIME REASON0/REASON ACTION0/ACTION /HISTORY /HISTORY_RECORDS /VM Il 09/09/2014 14:40, Tino Vazquez ha scritto: Hi Luca, I fail to see the model type in the deployment file, it should have something like the following: interface type='bridge' model type='e1000'/ /interface can you share the VM template (onevm show -x vid) as well? Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 9 September 2014 12:52, Luca Uburti lubu...@ricca-it.com wrote: Hello, I have attached those two files thank you Il 09/09/2014 12:22, Tino Vazquez ha scritto: Hi Luca, Ok, let's see if we can get to the bottom of this issue. Could you provide the deployment file of the VM? It is placed in the front-end, under /var/lib/one/datastores/ds_id/deployment.0, where
Re: [one-users] OCCI Vagrant
Hello Daniel, Wow, indeed ! Thanks for the tip, I'll check that, and keep you posted ! Kind regards Cyrille At Monday, 08/09/2014 on 11:16 Daniel Molina wrote: Hi Cyrille, From the docs of the Vagrant plugin, you have to use the rOCCI server and not the old occi server that was included in opennebula: https://github.com/gwdg/rOCCI-server/ Cheers On 5 September 2014 16:40, Duverne, Cyrille wrote: Hello guys, I was paying around with this module : https://github.com/eucher/opennebula-provider Therefore I configured OCCI on my opennebula cluster. Here below my occi-server.conf : ## Server configuration # # Directory to store temp files when uploading images :tmpdir: /var/tmp # OpenNebula server contact information :one_xmlrpc: http://localhost:2633/RPC2 # Host and port where OCCI server will run :host: 127.0.0.1 :port: 4567 # # Auth # # Authentication driver for incomming requests # occi, for OpenNebula's user-password scheme # x509, for x509 certificates based authentication # opennebula, use the driver defined for the user in OpenNebula :auth: occi # Authentication driver to communicate with OpenNebula core # cipher, for symmetric cipher encryption of tokens # x509, for x509 certificate encryption of tokens :core_auth: cipher I tried to put http://IP-OCCIServer:2633/RPC2 as endpoint and my ONE username and password for auth info. I get a strange 404 error, even when http://IP-OCCIServer:2633/RPC2 in a browser gives 405 error page. In a general matter, is there a way to test that OCCI interface is working correctly ? To be sure it's on the tool I'm using and not on my setup. Thanks in advance. Cyrille ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula..org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org [1] | dmol...@opennebula.org | @OpenNebula Links: -- [1] http://www.OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] MySQL deadlock when trying to register a new vm image
Greetings! I've recently upgraded from v4.4 to 4.6. As part of the upgrade, we decided to create a new db using MySQL. The configurations ran smooth, all nodes and datastores are being monitored without issues but when I tried to upload a ttylinux image for testing, sunstone didn't show the image uploaded on the list. As if it wasn' t even there. I ran the #oneimage list command, and there's no image there either. So I tried uploading again, while I checked the oned.log. I then tried to upload other images. I have OpenNebula front end installed on a host, several other nodes that are speciffic for running the VMs and a NAS with 20TB that holds the datastores. While I was uploading an ubuntu image (20GB), I checked the transmition rate on the network and I was supprised to see that the traffic between my desktop (where I was uploading from) and the frontend was very heavy, but the datastore was not recieving the image I was uploading. Interestingly, the log showed this error: Tue Sep 9 16:20:04 2014 [ONE][E]: SQL command was: REPLACE INTO datastore_pool (oid, name, body, uid, gid, owner_u, group_u, other_u, cid) VALUES (0,'system','DATASTOREID0/IDUID0/UIDGID0/GIDUNAMEoneadmin/UNAMEGNAMEoneadmin/GNAMENAMEsystem/NAMEPERMISSIONSOWNER_U1/OWNER_UOWNER_M1/OWNER_MOWNER_A0/OWNER_AGROUP_U1/GROUP_UGROUP_M0/GROUP_MGROUP_A0/GROUP_AOTHER_U0/OTHER_UOTHER_M0/OTHER_MOTHER_A0/OTHER_A/PERMISSIONSDS_MAD![CDATA[-]]/DS_MADTM_MAD![CDATA[shared]]/TM_MADBASE_PATH![CDATA[/var/lib/one//datastores/0]]/BASE_PATHTYPE1/TYPEDISK_TYPE0/DISK_TYPECLUSTER_ID-1/CLUSTER_IDCLUSTER/CLUSTERTOTAL_MB9461612/TOTAL_MBFREE_MB8956832/FREE_MBUSED_MB1/USED_MBIMAGES/IMAGESTEMPLATEBASE_PATH![CDATA[/var/lib/one//datastores/]]/BASE_PATHSHARED![CDATA[YES]]/SHAREDTM_MAD![CDATA[shared]]/TM_MADTYPE![CDATA[SYSTEM_DS]]/TYPE/TEMPLATE/DATASTORE',0,0,1,1,0,-1), error 1213 : Deadlock found when trying to get lock; try restarting transaction /***/ I leave down here a copy of my oned.conf /***/ LOG = [ system = file, debug_level = 3 ] MONITORING_INTERVAL = 60 MONITORING_THREADS = 50 SCRIPTS_REMOTE_DIR=/var/tmp/one PORT = 2633 DB = [ backend = mysql, server = localhost, port= 0, user= oneadmin, passwd = __, db_name = opennebula ] VNC_BASE_PORT = 5900 FEDERATION = [ MODE = STANDALONE, ZONE_ID = 0, MASTER_ONED = ] NETWORK_SIZE = 254 MAC_PREFIX = 02:00 DATASTORE_CAPACITY_CHECK = yes DEFAULT_IMAGE_TYPE= OS DEFAULT_DEVICE_PREFIX = hd DEFAULT_CDROM_DEVICE_PREFIX = vd IM_MAD = [ name = collectd, executable = collectd, arguments = -p 4124 -f 5 -t 50 -i 20 ] IM_MAD = [ name = kvm, executable = one_im_ssh, arguments = -r 3 -t 15 kvm ] VM_MAD = [ name = kvm, executable = one_vmm_exec, arguments = -t 15 -r 0 kvm, default= vmm_exec/vmm_exec_kvm.conf, type = kvm ] TM_MAD = [ executable = one_tm, arguments = -t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph ] DATASTORE_MAD = [ executable = one_datastore, arguments = -t 15 -d dummy,fs,vmfs,lvm,ceph ] HM_MAD = [ executable = one_hm ] AUTH_MAD = [ executable = one_auth_mad, authn = ssh,x509,ldap,server_cipher,server_x509 ] SESSION_EXPIRATION_TIME = 900 DEFAULT_UMASK = 177 VM_RESTRICTED_ATTR = CONTEXT/FILES VM_RESTRICTED_ATTR = NIC/MAC VM_RESTRICTED_ATTR = NIC/VLAN_ID VM_RESTRICTED_ATTR = NIC/BRIDGE IMAGE_RESTRICTED_ATTR = SOURCE INHERIT_DATASTORE_ATTR = CEPH_HOST INHERIT_DATASTORE_ATTR = CEPH_SECRET INHERIT_DATASTORE_ATTR = CEPH_USER INHERIT_DATASTORE_ATTR = RBD_FORMAT INHERIT_DATASTORE_ATTR = GLUSTER_HOST INHERIT_DATASTORE_ATTR = GLUSTER_VOLUME INHERIT_VNET_ATTR = VLAN_TAGGED_ID TM_MAD_CONF = [ name = dummy, ln_target = NONE, clone_target = SYSTEM, shared = yes ] TM_MAD_CONF = [ name = lvm, ln_target = NONE, clone_target = SELF, shared = yes ] TM_MAD_CONF = [ name = shared, ln_target = NONE, clone_target = SYSTEM, shared = yes ] TM_MAD_CONF = [ name = fs_lvm, ln_target = SYSTEM, clone_target = SYSTEM, shared=yes ] TM_MAD_CONF = [ name = qcow2, ln_target = NONE, clone_target = SYSTEM, shared = yes ] TM_MAD_CONF = [ name = ssh, ln_target = SYSTEM, clone_target = SYSTEM, shared = no ] TM_MAD_CONF = [ name = vmfs, ln_target = NONE, clone_target= SYSTEM, shared = yes ] TM_MAD_CONF = [ name = ceph, ln_target = NONE, clone_target = SELF, shared = yes ] /**/ best regards galimba -- ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org