Re: [one-users] device onebrxxxx alreay exists can't create bridge with the same name
Hi. I don't use = 4.0. But I think the code has a little problem, that is, we should add a lock for get_interfaces not for create_bridge. At 2013-12-12 17:05:03,Jaime Melis jme...@c12g.com wrote: Hi, not sure I follow, but given that the rules are idempotent if the bridge doesn't exist it will be created, and if it does, it won't. Have you tried this with ONE = 4.0 and still fails? regards, Jaime On Thu, Dec 12, 2013 at 4:32 AM, cmcc.dylan dx10ye...@126.com wrote: Hi,Jainme. I think curruent codes don't have solved the bug complelely. The key problems the the following snippets are executed parallel. class OpenNebulaHM OpenNebulaNetwork XPATH_FILTER = TEMPLATE/NIC[VLAN='YES'] def initialize(vm, deploy_id = nil, hypervisor = nil) super(vm,XPATH_FILTER,deploy_id,hypervisor) @bridges = get_interfaces end so bridges variable maybe have the same name bridge. because bridge is a ruby instance variable,not a ruby class variable. At 2013-12-12 01:53:18,Jaime Melis jme...@c12g.com wrote: Hi, yes, this is a known bug which is already solved in OpenNebula = 4.0 by implementing locking mechanisms. http://dev.opennebula.org/issues/1722 cheers, Jaime On Wed, Dec 11, 2013 at 9:46 AM, cmcc.dylan dx10ye...@126.com wrote: Hi everyone! I find a problem when we create two or more instances on one host at the same time,we meet the error device onebr alreay exists can't create bridge with the same name. The reason is that instances all try to create their bridge,although they check whether or not their birdge is existed. because it's at the same time, they all get a result that their bridge is not existed, and then they create it. But when they really create, the same bridge has already been created by other instances. Has the problem been fixed now? I use opennebula-3.8.1. Look forward your answers! dylan. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis C12G Labs - Flexible Enterprise Cloud Made Simple http://www.c12g.com | jme...@c12g.com -- 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's thanks you for your cooperation. -- Jaime Melis C12G Labs - Flexible Enterprise Cloud Made Simple http://www.c12g.com | jme...@c12g.com -- 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's thanks you for your cooperation.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] device onebrxxxx alreay exists can't create bridge with the same name
Hi everyone! I find a problem when we create two or more instances on one host at the same time,we meet the error device onebr alreay exists can't create bridge with the same name. The reason is that instances all try to create their bridge,although they check whether or not their birdge is existed. because it's at the same time, they all get a result that their bridge is not existed, and then they create it. But when they really create, the same bridge has already been created by other instances. Has the problem been fixed now? I use opennebula-3.8.1. Look forward your answers! dylan.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] device onebrxxxx alreay exists can't create bridge with the same name
Hi,Jainme. I think curruent codes don't have solved the bug complelely. The key problems the the following snippets are executed parallel. class OpenNebulaHM OpenNebulaNetwork XPATH_FILTER = TEMPLATE/NIC[VLAN='YES'] def initialize(vm, deploy_id = nil, hypervisor = nil) super(vm,XPATH_FILTER,deploy_id,hypervisor) @bridges = get_interfaces end so bridges variable maybe have the same name bridge. because bridge is a ruby instance variable,not a ruby class variable. At 2013-12-12 01:53:18,Jaime Melis jme...@c12g.com wrote: Hi, yes, this is a known bug which is already solved in OpenNebula = 4.0 by implementing locking mechanisms. http://dev.opennebula.org/issues/1722 cheers, Jaime On Wed, Dec 11, 2013 at 9:46 AM, cmcc.dylan dx10ye...@126.com wrote: Hi everyone! I find a problem when we create two or more instances on one host at the same time,we meet the error device onebr alreay exists can't create bridge with the same name. The reason is that instances all try to create their bridge,although they check whether or not their birdge is existed. because it's at the same time, they all get a result that their bridge is not existed, and then they create it. But when they really create, the same bridge has already been created by other instances. Has the problem been fixed now? I use opennebula-3.8.1. Look forward your answers! dylan. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis C12G Labs - Flexible Enterprise Cloud Made Simple http://www.c12g.com | jme...@c12g.com -- 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's thanks you for your cooperation.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Does opennebula-4.2 support security groups?
Hi, everyone! Sunstone has ACLs function, which is only used to control operations of virtual machines, but it's entirely different with the security groups of EC2. I want to identfy whether or not opennebula has alreay supported security groups so far. Thx! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] LXC Drivers and Installation
You can download opennebula with lxc driver from https://github.com/cmri/one/tree/one-3.2. It's based one-3.2, if you want, you can transplant it to one-4.0. At 2013-07-31 06:24:28,surfboar...@aol.com wrote: Does anyone have any knowledge of the existance of LXC drivers for OpenNebula?The one OpenNebula blog post linking to some no longer works . I am also beginning to write my own. I am confused about the install process on OpenNebula. After you run the scons command the C++ libraries are compiled but I cant seem to figure out where they go after that. There is no mention of them anywhere in the install script. Any info would be helpful. Thanks, Ryan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] does opennebula update the deployment.0 when we operate the virtual machine?
Hello! whether or not deployment.0 will update when we exeute attach-disk for a virtual machine? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] shutdown action doesn't take effect
Thank you, Toraldo. At 2013-04-13 15:36:14,Giovanni Toraldo m...@gionn.net wrote: On Sat, Apr 13, 2013 at 5:35 AM, cmcc.dylan dx10ye...@126.com wrote: I meet a problem after i shutdown a selected vm, the sunstone show SHUTDOWN status, but it is running in fact and i can ping it and also login by ssh. I also execute the shutdown virsh command manually, howerver it doesn't take effect. what's going on? The VM needs acpid to handle the acpi shutdown message. http://wiki.libvirt.org/page/Tips#Debian.2FUbuntu_guests_under_KVM_don.27t_shut_down_properly -- Giovanni Toraldo http://gionn.net ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] shutdown action doesn't take effect
Hi, everyone ! I meet a problem after i shutdown a selected vm, the sunstone show SHUTDOWN status, but it is running in fact and i can ping it and also login by ssh. [root@compute-30-01 ~]# ping 192.168.122.15 PING 192.168.122.15 (192.168.122.15) 56(84) bytes of data. 64 bytes from 192.168.122.15: icmp_seq=1 ttl=64 time=1.32 ms 64 bytes from 192.168.122.15: icmp_seq=2 ttl=64 time=0.277 ms I also execute the shutdown virsh command manually, howerver it doesn't take effect. what's going on?inline: 截图1.png___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] onevm migrate error in opennebula-3.8.3;
Hi! I meet an error when i execute the command - onevm migrate, and the error log as follows. I know migration action is consisted of three sub-actions: virsh save -- scp disk.0 and checkpoint -- virsh restore. Howerver, I cann't see logs of scp disk.0 and checkpoint. what is that all about? Wether or not i ignore something or i don't understand the source code well. Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 ExitCode: 0 Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 Successfully execute network driver operation: pre. Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 Command execution fail: /var/tmp/one/vmm/kvm/restore /data0/0/44/checkpoint node1 44 node1 Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG E 44 restore: Command virsh --connect qemu:///system restore /data0/0/44/checkpoint failed: error: Failed to restore domain from /data0/0/44/checkpoint Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 error: Failed to create file '/data0/0/44/checkpoint': Operation not permitted Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG E 44 Could not restore from /data0/0/44/checkpoint Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 ExitCode: 1 Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: LOG I 44 Failed to execute virtualization driver operation: restore. Fri Mar 15 15:02:45 2013 [VMM][D]: Message received: RESTORE FAILURE 44 Could not restore from /data0/0/44/checkpoint ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] High CPU usage on remote host
Is the guest os suse? At 2013-03-14 18:41:10,fanttazio fantta...@gmail.com wrote: Hi everyone, When I deploy a VM on a host, the CPU usage goes to 100% after one or two minutes by KVM process. i.e the core that is being used by VM has 100% usage but the CPU ussage on the VM is normal and because of this, I lose connection with the VM. I suspect it is QEMU/KVM settings or a setting on VM's template. Any comment on this? Host spec: UBUNTU 10.04, QEMU/KVM ver 0.14.0 Many thanks, Mehdi___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] why doesn't opennebula judge the host capacity except for actions related to scheduler?
Thanks Ruben! I read the source code related to cold migration, but i don't find judgement places about CPU. That is to say, the test_capacity function isn't called in the cold migration. Is it right? If you please, can you poit out how opennebula does? Thank you very much! At 2013-03-14 17:13:17,Ruben S. Montero rsmont...@opennebula.org wrote: Hi About the first problem (-2). This should be fixed in OpenNebula 3.8.3, are you using that version? If so can you send the output of onehost show -x host_id before and after the migration. About the second problem (capacity checks). We have included the '--enforce' option to enforce that the host capacity is not exceeded for onevm migrate and livemigrate. (The new onevm resize command also accepts that options so you can enforce that the host capacity is not overcommitted when re-sizing the VM capacity). Cheers Ruben On Thu, Mar 14, 2013 at 6:07 AM, cmcc.dylan dx10ye...@126.com wrote: Hi everyone! I doubt about this problem for a long time and i also prove it using some test case. Firstly, let's describe the problem as follows: I manage two host machines using opennebula and they both have 4 cores in total. I deploy vm1 which has 2 cores in host1 and deploy vm2 which has 4 cores in host2. After that, I migrate vm1 to host2, to my surprise it success and the free cpu of host2 becomes -2. so i read the source code related to virtual machine's migration, and i find this is no judgement of host resources' capacity in the whole migration process. Source codes as follows: vm-get_requirements(cpu,mem,disk); hpool-add_capacity(vm-get_hid(),cpu,mem,disk); And i also seek what actions does opennebula to test host resources' capacity and find only two places and they also related to scheduler.For example: (1)void Scheduler::match() (2)int VirtualMachineXML::get_host() Only the two place call the funstion - test_capacity(cpu,mem,dsk) to judge the host resources. i'm sorry if i don't describe the problem clearly. Hope someone to help and communication with me. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] why doesn't opennebula judge the host capacity except for actions related to scheduler?
Hi everyone! I doubt about this problem for a long time and i also prove it using some test case. Firstly, let's describe the problem as follows: I manage two host machines using opennebula and they both have 4 cores in total. I deploy vm1 which has 2 cores in host1 and deploy vm2 which has 4 cores in host2. After that, I migrate vm1 to host2, to my surprise it success and the free cpu of host2 becomes -2. so i read the source code related to virtual machine's migration, and i find this is no judgement of host resources' capacity in the whole migration process. Source codes as follows: vm-get_requirements(cpu,mem,disk); hpool-add_capacity(vm-get_hid(),cpu,mem,disk); And i also seek what actions does opennebula to test host resources' capacity and find only two places and they also related to scheduler.For example: (1)void Scheduler::match() (2)int VirtualMachineXML::get_host() Only the two place call the funstion - test_capacity(cpu,mem,dsk) to judge the host resources. i'm sorry if i don't describe the problem clearly. Hope someone to help and communication with me.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] How to mount iscsi target in linux container?
Hi. you can download source code from cmri's github website:https://github.com/cmri/one. Node: please select the branch one-3.2. 在 2013-03-08 15:14:27,Valentin Bud valentin@gmail.com 写道: Hello Dylan, On Fri, Mar 8, 2013 at 4:09 AM, cmcc.dylan dx10ye...@126.com wrote: Hi! Do you use the one-3.2 branch? I test the basic functions before i commit to github. The LXC driver is written by myself, if you have questions you can tell me and we fix it together! I don't know from *where* to get the LXC driver. From the official OpenNebula repository or do you have your own repository from which I can check it out? If so, could you please give me a link. I would gladly test it and work side by side with you to improve it. Thanks. Cheers and Goodwill, Valentin Bud At 2013-03-07 14:29:51,Valentin Bud valentin@gmail.com wrote: Hello Dylan, I am trying to get OpenNebula 3.2.1 or 3.8.3 working with Linux Containers but I have ran into an issue. I can't find the OneLXC drivers provided by CMRI. Following the OpenNebula blog post [1] about OneLXC I have tried to download them from https://github.com/cmri/opennebula-3.2.1-lxc.git but that gives me a 404. Big Cloud says in the second comment that the repo has been moved to https://github.com/cmri/one.git. I have tried to find the IM_MAD and VMM_MAD in that repo but I wasn't able to. The blog post also mentions that there should be a `src/vmm/LibVirtDriverLXC.cc` source file in the repo. Couldn't find that either. Where did you get the LXC drivers or are you building LXC drivers from scratch? I would like to help on this matter, first by testing them and then to further improve them. I could use your thoughts on this matter. [1]: http://blog.opennebula.org/?p=3850 Thank you. Cheers and Goodwill, Valentin Bud On Tue, Mar 5, 2013 at 11:48 AM, Albert Avellana albertav...@gmail.com wrote: Hi Dylan, I'm Albert, a researcher from UPC university (Barcelona) working in a cloud community project. I've been testing your version of Open Nebula 3.2.1 adapted for LXC and it seems to work well. I'll be glad to help you with the 3.8 version if you are interested, developing some parts or just testing and giving you feedback / reporting bugs. We are really interested in the possibility of fully integrating LXC with Open Nebula so let me know if I we can work together :) best regards, albert On 4 March 2013 15:07, cmcc.dylan dx10ye...@126.com wrote: Hi! I use opennebula-3.2.1 now, but i'm going to use opennebula-3.8. yes, i use ubuntu and have implement the basic funstions,for example,create/delete/suspend/resume a linux container instance. The questions i talked about is that i plan to use shared storage for linux container, such as nfs and iscsi. I think it's very suitable for a private cloud and a development enviroment. At 2013-03-04 16:25:42,Valentin Bud valentin@gmail.com wrote: Hello Dylan, What version of OpenNebula are you using? As far as I understand you are using Ubuntu as your OS and trying to boot up LXC containers on top of that. Am I right? What basic functions are you talking about? Start/stop LXC containers? Could you elaborate a little bit about your setup. I am thinking of using LXC containers for a project also and I am curios about your setup. Thank you. Cheers and Goodwill, Valentin On Mon, Mar 4, 2013 at 9:07 AM, cmcc.dylan dx10ye...@126.com wrote: Hi, everyone. Recently, I'm doing some works about linux container. I choose lxc as the hypervisor in the cloud platform - OpenNebula. The basic funtions are done. I plan to use iscsi storage as shared storage. Beause i choose ubuntu as the container os, i execute command sudo apt-get install open-iscsi open-iscsi-utils. It's failed unfortunately. when i install, it show informations as follows: update-rc.d: warning: open-iscsi stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6) * Starting iSCSI initiator service iscsid [ OK ] * Setting up iSCSI targets [ OK ] when i execute iscsi discovery commad, it proves it is ok and shows informations as follows: ubuntu@lxc:~$ sudo iscsiadm -m discovery -t sendtargets -p 192.168.35.17 192.168.35.17:3260,1 iqn.2013-02.node2 However, when i execute iscsi login command, it's failed and show informations: $ sudo iscsiadm -m node --targetname iqn.2013-02.node2 -p 192.168.35.17 --login Logging in to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260] iscsiadm: got read error (0/0), daemon died? iscsiadm: Could not login to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260]: iscsiadm: initiator reported error (18 - could not communicate to iscsid Does lxc support iscsi ? ___ Users mailing list Users
Re: [one-users] paper about the AoE storage driver in OpenNebula
Hi, everyone. where do i download the paper Block Level Storage Support for Open Source IaaS Clouds from? Please give me a website! At 2013-03-08 22:07:37,Javier Fontan jfon...@opennebula.org wrote: Thanks! Do you think it is possible to link to the paper from http://wiki.opennebula.org? That way it will be easier to find. Maybe not a direct link to the PDF but some page where it can be downloaded/read. On Mon, Mar 4, 2013 at 4:53 PM, Sándor Ács acs.san...@sztaki.mta.hu wrote: Dear Community, let me share with you the Block Level Storage Support for Open Source IaaS Clouds paper (published at PDP2013), that describes the AoE storage driver (http://dev.opennebula.org/issues/1648) and its evaluation. Abstract: Cloud computing is the dominating paradigm in distributed computing. The most popular open source cloud solutions support different type of storage subsystems, because of the different needs of the deployed services (in terms of performance, flexibility, cost-effectiveness). In this paper, we investigate the supported standard and open source storage types and create a classification. We point out that the Internet Small Computer System Interface (iSCSI) based block level storage can be used for I/O intensive services currently. However, the ATA-over-Ethernet (AoE) protocol uses fewer layers and operates on lower level which makes it more lightweight and faster than iSCSI. Therefore, we proposed an architecture for AoE based storage support in OpenNebula cloud. The novel storage solution was implemented and the performance evaluation shows that the I/O throughput of the AoE based storage is better (32.5-61.5%) compared to the prior iSCSI based storage and the new storage solution needs less CPU time (41.37%) to provide the same services. Keywords-Cloud Computing; Storage Area Network; ATA-over-Ethernet; iSCSI; If you have any questions please do not hesitate to contact me! Best Regards, Sandor Acs ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula ___ 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] How to mount iscsi target in linux container?
Hi! do you use the oneimage create and do you use IMAGE_ID when you create a virtual machine? if you do, you will get a failed message when you create a vm. Because in my lxc driver, it firstly extract the image file after downloading it, and the judgment condition is that the suffix of the image file is tar.gz or not. OpenNebula's image manager will name the image file according to its rules,so my code doesn't distinguish it and it leads to a fail. At 2013-03-07 14:29:51,Valentin Bud valentin@gmail.com wrote: Hello Dylan, I am trying to get OpenNebula 3.2.1 or 3.8.3 working with Linux Containers but I have ran into an issue. I can't find the OneLXC drivers provided by CMRI. Following the OpenNebula blog post [1] about OneLXC I have tried to download them from https://github.com/cmri/opennebula-3.2.1-lxc.git but that gives me a 404. Big Cloud says in the second comment that the repo has been moved to https://github.com/cmri/one.git. I have tried to find the IM_MAD and VMM_MAD in that repo but I wasn't able to. The blog post also mentions that there should be a `src/vmm/LibVirtDriverLXC.cc` source file in the repo. Couldn't find that either. Where did you get the LXC drivers or are you building LXC drivers from scratch? I would like to help on this matter, first by testing them and then to further improve them. I could use your thoughts on this matter. [1]: http://blog.opennebula.org/?p=3850 Thank you. Cheers and Goodwill, Valentin Bud On Tue, Mar 5, 2013 at 11:48 AM, Albert Avellana albertav...@gmail.com wrote: Hi Dylan, I'm Albert, a researcher from UPC university (Barcelona) working in a cloud community project. I've been testing your version of Open Nebula 3.2.1 adapted for LXC and it seems to work well. I'll be glad to help you with the 3.8 version if you are interested, developing some parts or just testing and giving you feedback / reporting bugs. We are really interested in the possibility of fully integrating LXC with Open Nebula so let me know if I we can work together :) best regards, albert On 4 March 2013 15:07, cmcc.dylan dx10ye...@126.com wrote: Hi! I use opennebula-3.2.1 now, but i'm going to use opennebula-3.8. yes, i use ubuntu and have implement the basic funstions,for example,create/delete/suspend/resume a linux container instance. The questions i talked about is that i plan to use shared storage for linux container, such as nfs and iscsi. I think it's very suitable for a private cloud and a development enviroment. At 2013-03-04 16:25:42,Valentin Bud valentin@gmail.com wrote: Hello Dylan, What version of OpenNebula are you using? As far as I understand you are using Ubuntu as your OS and trying to boot up LXC containers on top of that. Am I right? What basic functions are you talking about? Start/stop LXC containers? Could you elaborate a little bit about your setup. I am thinking of using LXC containers for a project also and I am curios about your setup. Thank you. Cheers and Goodwill, Valentin On Mon, Mar 4, 2013 at 9:07 AM, cmcc.dylan dx10ye...@126.com wrote: Hi, everyone. Recently, I'm doing some works about linux container. I choose lxc as the hypervisor in the cloud platform - OpenNebula. The basic funtions are done. I plan to use iscsi storage as shared storage. Beause i choose ubuntu as the container os, i execute command sudo apt-get install open-iscsi open-iscsi-utils. It's failed unfortunately. when i install, it show informations as follows: update-rc.d: warning: open-iscsi stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6) * Starting iSCSI initiator service iscsid [ OK ] * Setting up iSCSI targets [ OK ] when i execute iscsi discovery commad, it proves it is ok and shows informations as follows: ubuntu@lxc:~$ sudo iscsiadm -m discovery -t sendtargets -p 192.168.35.17 192.168.35.17:3260,1 iqn.2013-02.node2 However, when i execute iscsi login command, it's failed and show informations: $ sudo iscsiadm -m node --targetname iqn.2013-02.node2 -p 192.168.35.17 --login Logging in to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260] iscsiadm: got read error (0/0), daemon died? iscsiadm: Could not login to [iface: default, target: iqn.2013-02.node2, portal: 192.168.35.17,3260]: iscsiadm: initiator reported error (18 - could not communicate to iscsid Does lxc support iscsi ? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- w: http://databus.ro/blog in: http://www.linkedin.com/pub/valentin-bud/9/881/830 t: https://twitter.com/valentinbud ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org
Re: [one-users] the problem of the CPU in the virtual machine's template (Users Digest, Vol 59, Issue 76)
Thank you. Do you mean that if the host isn't busy and VCPU=4, CPU=1 and CPU=2 have the equal effect. So CPU has effects only when the host os is overcommited. At 2013-01-24 14:28:32,Rolandas Naujikas rolandas.nauji...@mif.vu.lt wrote: On 2013-01-24 05:52, cmcc.dylan wrote: what's more, libvirt cann't see the CPU parameter! sou i think CPU is only used for overcommiting in opennebula level. In Xen/KVM it is passed to Xen credit scheduler or KVM cgroup configuration for minimal CPU share. So if you put CPU=0.25,VCPU=1, then 1 KVM thread will use 1 host CPU, until host becomes too busy, then it tries to schedule at least 0.25 of 1 host CPU (core) time. Regards, Rolandas Naujikas At 2013-01-24 11:42:31,cmcc.dylan dx10ye...@126.com wrote: if VCPU=4, i think the host will fork 4 process on behalf of this vm, because i see it is so implemented in the qemu code. I am very confused about this part of opennebula! At 2013-01-24 11:31:34,Steven C Timm t...@fnal.gov wrote: VCPU is the parameter that controls how many cores appear internally in the virtual machine. I. e. if you have VCPU=4 Your VM will have 4 cores, but there will still only be one kvm process as seen in the hypervisor that corresponds to it. In a typical KVM setup it is possible to allocate more VCPU per VM host than the VM host has real cores. I am not exactly sure what CPU does, but it does affect the FCPU and ACPU as seen in the onehost list output. Steve Timm From:users-boun...@lists.opennebula.org [mailto:users-boun...@lists.opennebula.org] On Behalf Of cmcc.dylan Sent: Wednesday, January 23, 2013 9:26 PM To:users@lists.opennebula.org Subject: [one-users] the problem of the CPU in the virtual machine's template Hi, everyone! I have a doubt what's the accurately means of CPU in the vm's template. For a example, if we define a vm which has CPU=1 and VCPU = 4. In this condition , what's result in the host os? Does the host os fork 4 process on behalf of this vm and does the 4 process get 4 cores if the host's scheduler allows that. I want to know the differences between CPU=4,VCPU=4 and CPU=1,VCPU=4. -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130124/ac145e09/attachment.htm ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] the problem of the CPU in the virtual machine's template
Hi, everyone! I have a doubt what's the accurately means of CPU in the vm's template. For a example, if we define a vm which has CPU=1 and VCPU = 4. In this condition , what's result in the host os? Does the host os fork 4 process on behalf of this vm and does the 4 process get 4 cores if the host's scheduler allows that. I want to know the differences between CPU=4,VCPU=4 and CPU=1,VCPU=4. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] the problem of the CPU in the virtual machine's template
if VCPU=4, i think the host will fork 4 process on behalf of this vm, because i see it is so implemented in the qemu code. I am very confused about this part of opennebula! At 2013-01-24 11:31:34,Steven C Timm t...@fnal.gov wrote: VCPU is the parameter that controls how many cores appear internally in the virtual machine. I. e. if you have VCPU=4 Your VM will have 4 cores, but there will still only be one kvm process as seen in the hypervisor that corresponds to it. In a typical KVM setup it is possible to allocate more VCPU per VM host than the VM host has real cores. I am not exactly sure what CPU does, but it does affect the FCPU and ACPU as seen in the onehost list output. Steve Timm From:users-boun...@lists.opennebula.org [mailto:users-boun...@lists.opennebula.org] On Behalf Of cmcc.dylan Sent: Wednesday, January 23, 2013 9:26 PM To:users@lists.opennebula.org Subject: [one-users] the problem of the CPU in the virtual machine's template Hi, everyone! I have a doubt what's the accurately means of CPU in the vm's template. For a example, if we define a vm which has CPU=1 and VCPU = 4. In this condition , what's result in the host os? Does the host os fork 4 process on behalf of this vm and does the 4 process get 4 cores if the host's scheduler allows that. I want to know the differences between CPU=4,VCPU=4 and CPU=1,VCPU=4. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] the problem of the CPU in the virtual machine's template
what's more, libvirt cann't see the CPU parameter! sou i think CPU is only used for overcommiting in opennebula level. At 2013-01-24 11:42:31,cmcc.dylan dx10ye...@126.com wrote: if VCPU=4, i think the host will fork 4 process on behalf of this vm, because i see it is so implemented in the qemu code. I am very confused about this part of opennebula! At 2013-01-24 11:31:34,Steven C Timm t...@fnal.gov wrote: VCPU is the parameter that controls how many cores appear internally in the virtual machine. I. e. if you have VCPU=4 Your VM will have 4 cores, but there will still only be one kvm process as seen in the hypervisor that corresponds to it. In a typical KVM setup it is possible to allocate more VCPU per VM host than the VM host has real cores. I am not exactly sure what CPU does, but it does affect the FCPU and ACPU as seen in the onehost list output. Steve Timm From:users-boun...@lists.opennebula.org [mailto:users-boun...@lists.opennebula.org] On Behalf Of cmcc.dylan Sent: Wednesday, January 23, 2013 9:26 PM To:users@lists.opennebula.org Subject: [one-users] the problem of the CPU in the virtual machine's template Hi, everyone! I have a doubt what's the accurately means of CPU in the vm's template. For a example, if we define a vm which has CPU=1 and VCPU = 4. In this condition , what's result in the host os? Does the host os fork 4 process on behalf of this vm and does the 4 process get 4 cores if the host's scheduler allows that. I want to know the differences between CPU=4,VCPU=4 and CPU=1,VCPU=4. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] lxc driver for OpenNebula
Hi, everyone! I update the download address. You can download lxc driver plugin from here. git://github.com/cmri/one.git I only submit it for opennebula-3.2, so please download the one-3.2 branch! At 2012-12-12 02:18:10,Javier Fontan jfon...@opennebula.org wrote: I just wanted to announce that China Mobile is working on lxc drivers for OpenNebula. You can get more information on them and pointers where to get a preliminary version in our blog: http://blog.opennebula.org/?p=3850 -- Javier Fontán Muiños Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula ___ 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] some questions about lxc surpporting?
I have submited a draft , so it has some bugs and it's function is very simpe. you can download it from here. https://github.com/cmri/opennebula-3.2.1-lxc.git At 2012-12-11 16:12:02,Albert Avellana albertav...@gmail.com wrote: Hi Dylan, Thank for your response. I am happy to hear that do already developed it. I will be grateful if you could send me these LXC drivers to do some tests in my installation with LXC hypervisors. Thank you, albert On 5 December 2012 15:29, cmcc.dylan dx10ye...@126.com wrote: I'm very pleasure to share my work. I have complete the lxc driver for opennebula-3.2.1 and it can supprort the basic operations, for example, deploy/cancel/poll/reboot/shutdown and so on. But it may be a little bugs. I will submit my patches to opennebula after tidying up my codes. At 2012-12-05 19:37:45,Albert Avellana albertav...@gmail.com wrote: Hello dylan, My name is Albert, an student of UPC (Barcelona) university collaborating with Confine Project. I'm also developing drivers to manage LXC hypervisor with OpenNebula. I think we could maybe work together and share our work. At the moment I'm trying to do deploy script. I don't know much Ruby either, maybe we could do the script with python? I've already edited oned.conf file to add lxc option and created remotes/lxc directory. Best regards, albert On 2 December 2012 04:26, cmcc.dylan dx10ye...@126.com wrote: Hi, every one! I want to add lxc backend for opennebula, but i meet some questions and hope someone to help me. 1. the key point is i need to add a lxc driver like kvm, for example, imitating the directory structure of kvm as follows: # ls var/remotes/vmm/kvm canceldeploykvmrc migratemigrate_local poll poll_ganglia reboot restore save shutdown But i don't knonw who call the these scripts, for example where call deploy script in opennebula soruce code or in config files. 2. I have already validate virsh commad is ok. and i can use command as follows to create and operate the lxc instance. a. Deploy: ssh node1 virsh -c lxc:/// create /path-to-xml/lxc.xml b. virsh -c lxc+ssh://node1 virsh-command lxc_instance_name But i know little ruby,someone can give me some advice to help me complete lxc driver for opennebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Albert Avellana -- Albert Avellana ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] some questions about lxc surpporting?
sorry! I will immediately make a patch! At 2012-12-11 18:34:02,Giovanni Toraldo m...@gionn.net wrote: Hi Dylan, without a proper diff patch, or a proper branched git repository, you are not inviting anyone to look at your work. My 2¢. On Tue, Dec 11, 2012 at 9:30 AM, cmcc.dylan dx10ye...@126.com wrote: I have submited a draft , so it has some bugs and it's function is very simpe. you can download it from here. https://github.com/cmri/opennebula-3.2.1-lxc.git At 2012-12-11 16:12:02,Albert Avellana albertav...@gmail.com wrote: Hi Dylan, Thank for your response. I am happy to hear that do already developed it. I will be grateful if you could send me these LXC drivers to do some tests in my installation with LXC hypervisors. Thank you, albert On 5 December 2012 15:29, cmcc.dylan dx10ye...@126.com wrote: I'm very pleasure to share my work. I have complete the lxc driver for opennebula-3.2.1 and it can supprort the basic operations, for example, deploy/cancel/poll/reboot/shutdown and so on. But it may be a little bugs. I will submit my patches to opennebula after tidying up my codes. At 2012-12-05 19:37:45,Albert Avellana albertav...@gmail.com wrote: Hello dylan, My name is Albert, an student of UPC (Barcelona) university collaborating with Confine Project. I'm also developing drivers to manage LXC hypervisor with OpenNebula. I think we could maybe work together and share our work. At the moment I'm trying to do deploy script. I don't know much Ruby either, maybe we could do the script with python? I've already edited oned.conf file to add lxc option and created remotes/lxc directory. Best regards, albert On 2 December 2012 04:26, cmcc.dylan dx10ye...@126.com wrote: Hi, every one! I want to add lxc backend for opennebula, but i meet some questions and hope someone to help me. 1. the key point is i need to add a lxc driver like kvm, for example, imitating the directory structure of kvm as follows: # ls var/remotes/vmm/kvm cancel deploy kvmrc migrate migrate_local poll poll_ganglia reboot restore save shutdown But i don't knonw who call the these scripts, for example where call deploy script in opennebula soruce code or in config files. 2. I have already validate virsh commad is ok. and i can use command as follows to create and operate the lxc instance. a. Deploy: ssh node1 virsh -c lxc:/// create /path-to-xml/lxc.xml b. virsh -c lxc+ssh://node1 virsh-command lxc_instance_name But i know little ruby,someone can give me some advice to help me complete lxc driver for opennebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Albert Avellana -- Albert Avellana ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Giovanni Toraldo http://gionn.net ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] lxc domain's config file doesn't work when I create a lxc domain using opennebula
Hi, everyone! I find a problem after i create lxc domain by opennebula and i hope someone can give some help. As we known, lxc domain's configuration file is config and it's used to configure the lxc domain, for example,as follows. when i log into the lxc domain, i find the network card's mac address is not 00:16:3e:cb:ea:70 and it also doesn't use lxc.network.link=kvmbr0. and the values of lxc.rootfs and lxc.mount are wrong. I think the lxc domain can not use this configuration file. if so, how do I configure the lxc domain. (1) configuration file -- config 1 lxc.network.type=veth 2 lxc.network.link=kvmbr0 3 lxc.network.flags=up 4 lxc.network.hwaddr = 00:16:3e:cb:ea:70 5 lxc.utsname = lxc 6 7 lxc.devttydir = lxc 8 lxc.tty = 4 9 lxc.pts = 1024 10 lxc.rootfs = /one_images/1/images/lxc/rootfs 11 lxc.mount = /one_images/1/images/lxc/fstab 12 lxc.arch = amd64 13 lxc.cap.drop = sys_module mac_admin 14 lxc.pivotdir = lxc_putold 15 16 # uncomment the next line to run the container unconfined: 17 #lxc.aa_profile = unconfined 18 19 lxc.cgroup.devices.deny = a 20 # Allow any mknod (but not using the node) 21 lxc.cgroup.devices.allow = c *:* m 22 lxc.cgroup.devices.allow = b *:* m 23 # /dev/null and zero 24 lxc.cgroup.devices.allow = c 1:3 rwm 25 lxc.cgroup.devices.allow = c 1:5 rwm 26 # consoles 27 lxc.cgroup.devices.allow = c 5:1 rwm 28 lxc.cgroup.devices.allow = c 5:0 rwm 29 #lxc.cgroup.devices.allow = c 4:0 rwm 30 #lxc.cgroup.devices.allow = c 4:1 rwm (2) the real phenomenon ubuntu@lxc:~$ ifconfig eth0 Link encap:Ethernet HWaddr 52:54:00:d4:ca:f7 inet addr:192.168.122.27 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fed4:caf7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9715 errors:0 dropped:0 overruns:0 frame:0 TX packets:931 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:504559 (504.5 KB) TX bytes:242719 (242.7 KB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] the synchronous problem between the cancel operation and tm_delete.sh for lxc driver
Hi, everyone! I'm develpment lxc driver for opennebula and i complete the basic functions now, but i meet a problem as follows. from the log, we can see opennbula execute cancel fistrly and then execute tm_delete.sh, But the result is cancel: Executed virsh --connect lxc:/// destroy lxc-5. after tm_delete.sh. so some files cann't be removed beacause they are using! I think kvm have the same problem in the sequence between cancel and tm_delete.sh, however it's allowed to remove a image file, for example raw type image file. 12527 Thu Dec 6 11:52:38 2012 [DiM][D]: Finalizing VM 5 12528 Thu Dec 6 11:52:38 2012 [VMM][D]: Message received: LOG I 5 Driver command for 5 cancelled 12532 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 tm_delete.sh: Deleting /one_images/5/images 12534 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG E 5 tm_delete.sh: Command ssh node1 sudo rm -rf /one_images/5/imagesfailed. 12536 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG E 5 tm_delete.sh: rm: cannot remove `/one_images/5/images/lxc/rootfs/ run': Device or resource busy 12538 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 rm: cannot remove `/one_images/5/images/lxc/rootfs/dev/pts': Device or resource busy 12540 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 rm: cannot remove `/one_images/5/images/lxc/rootfs/proc': Device or resource busy 12542 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 rm: cannot remove `/one_images/5/images/lxc/rootfs/sys': Device orresource busy 12544 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 rm: cannot remove `/one_images/5/images/lxc/rootfs/selinux': Device or resource busy 12546 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG E 5 Error deleting /one_images/5/images 12548 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: LOG I 5 ExitCode: 1 12550 Thu Dec 6 11:52:38 2012 [TM][D]: Message received: TRANSFER FAILURE 5 Error deleting /one_images/5/images 12552 Thu Dec 6 11:52:39 2012 [VMM][D]: Message received: LOG I 5cancel: Executed virsh --connect lxc:/// destroy lxc-5. 12554 Thu Dec 6 11:52:39 2012 [VMM][D]: Message received: LOG I 5 ExitCode: 0___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] poll problem of lxc driver for opennebula
Hi, everyone! I write a lxc driver for opennebula, but it does't monitoring the vm's infomation,the error output as follows. what's the exactly mean of in `select_hypervisor': uninitialized constant LXC (NameError), I have no way to find where the problem is. 204 Wed Dec 5 11:40:07 2012 [VMM][D]: Message received: LOG I 0 Command execution fail: 'if [ -x /var/tmp/one/vmm/lxc/poll ]; then /var/tmp/one/vmm/lxc/poll lxc-0 node3 0 node3; else exit 42; fi' 205 206 Wed Dec 5 11:40:07 2012 [VMM][D]: Message received: LOG I 0 /var/tmp/one/vmm/lxc/poll:278:in `select_hypervisor': uninitialized constant LXC (NameError) 207 208 Wed Dec 5 11:40:07 2012 [VMM][D]: Message received: LOG I 0 from /var/tmp/one/vmm/lxc/poll:353:in `main' 209 210 Wed Dec 5 11:40:07 2012 [VMM][D]: Message received: LOG I 0 ExitCode: 1 211 212 Wed Dec 5 11:40:07 2012 [VMM][D]: Message received: POLL FAILURE 0 -___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] poll problem of lxc driver for opennebula
Thank you! It works now. The reason of that problem is I have not define module LXC before! At 2012-12-05 11:56:32,Simon Boulet si...@nostalgeek.com wrote: Hi Dylan, Have you tried running your poll script manually (on the host): /var/tmp/one/vmm/lxc/poll lxc-0 node3 0 node3 It seems you have an error at line 278 of your script. Simon___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] some questions about lxc surpporting?
Hi, every one! I want to add lxc backend for opennebula, but i meet some questions and hope someone to help me. 1. the key point is i need to add a lxc driver like kvm, for example, imitating the directory structure of kvm as follows: # ls var/remotes/vmm/kvm canceldeploykvmrc migratemigrate_local poll poll_ganglia reboot restore save shutdown But i don't knonw who call the these scripts, for example where call deploy script in opennebula soruce code or in config files. 2. I have already validate virsh commad is ok. and i can use command as follows to create and operate the lxc instance. a. Deploy: ssh node1 virsh -c lxc:/// create /path-to-xml/lxc.xml b. virsh -c lxc+ssh://node1 virsh-command lxc_instance_name But i know little ruby,someone can give me some advice to help me complete lxc driver for opennebula___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] does opennebula has plans to support lxc in the future?
My company want to use lxc as hypervisor. does opennebula has plans to support lxc in the future?___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] why opennebula releases resources of vm after it is suspended?
Hello everyone: I am very confused opennebula will release the resources of the vm when it is suspended. It is clear that this design will lead to a problem when the vm will resume again but the host os has no enough resources to run it, for example, no enough memory. Currently,It looks likely scheduler only deal with deploy action and the scheduler is the only place to judge whether there aresufficient resources in the host. So when executing a migarate action, it doesn't to judge because scheduler doesn't deal with migarate action. The migarate action is successful although there aren't enough resources in the target host os according to theopennebularesourcesstatistical algorithms. I'm not sureI understand itright. Please someone can help me! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org