Re: [one-users] iscsi target as a guest disk
Hi, It appears that you are using the tm_ssh transfer drivers. Use tm_lvm transfer manager drivers instead. Prakhar On Thu, Dec 15, 2011 at 2:01 PM, Tengvall, Ilkka (NSN - FI Espoo) ilkka.tengv...@nsn.com wrote: Hi, I'm writing related to issue: http://dev.opennebula.org/issues/1025 Ruben, thanks for answer, you commented there that iscsi could be used as a disk: you should be able to use iSCSI block devices with DISK=[TYPE=block,SOURCE=path_to_dev]. I tried to follow you instruction, I don't see it working. What am I missing, since the oned tries to cp the iscsi image, instead as pass it to guest as disk: $ cat iscsi-vm.txt NAME=f16-min-iscsi USER=oneadmin GROUP=oneadmin PUBLIC=No DISK=[ BUS=virtio, TYPE=block, SOURCE=/dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 ] GRAPHICS=[ KEYMAP=fi, TYPE=vnc ] INPUT=[ BUS=usb, TYPE=mouse ] MEMORY=512 NIC=[ NETWORK_ID=1, WHITE_PORTS_TCP=22 ] OS=[ ARCH=x86_64, BOOT=hd ] RAW=[ TYPE=kvm ] VCPU=1 Creating the machine using the disk: $ onevm create iscsi-vm.txt ID: 10 and after it fails I see from the logs that it tried to copy the image (cp), instead of passing it to libvirt as a virtio device: Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is ACTIVE. Thu Dec 15 10:26:09 2011 [LCM][I]: New VM state is PROLOG. Thu Dec 15 10:26:09 2011 [VM][I]: Virtual Machine has no context Thu Dec 15 10:26:09 2011 [TM][I]: Command execution fail: /usr/lib/one/tm_commands/shared/tm_clone.sh /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh: /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh: DST: /var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Creating directory /var/lib/one//10/images Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed mkdir -p /var/lib/one//10/images. Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed chmod a+w /var/lib/one//10/images. Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Cloning 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: Command cp -r 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 /var/lib/one//10/images/disk.0 failed. Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: cp: cannot stat `3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0': No such file or directory Thu Dec 15 10:26:09 2011 [TM][E]: Error copying /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 to onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][I]: ExitCode: 1 Thu Dec 15 10:26:09 2011 [TM][E]: Error excuting image transfer script: Error copying /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 to onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is FAILED Thanks for the answer so far. On 2011-12-12 15:33, ext Tengvall, Ilkka (NSN - FI Espoo) wrote: Hi, I'm new to Open Nebula, and have some questions. First one would be about iscsi support. I can't find any reference from oned documents itself about iscsi. Is it possible to configure guests using iscsi lun from remote server as a os block device? I have done it using libvirt, so it works, but how to map this to oned configs? another way which would also work would be booting kernel directly or via ipxe and give it iscsi as a root device. Both of those work too. Is there a way to do this in oned? I found an old related posting here, but I don't know if it ever led to anything: http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-July/000599.html -- Ilkka Tengvall Senior Specialist, Linux Virtualization Architecture ___ 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] 回复: Re: application integration (service publishing) in OpenNebula?
Hi,Biro You raised many questions. Some are openNebula specific and others seems general to all cloud computing environments. As I understand so far, OpenNebula has two types of users: the administrator, who basically has control over everything, and the users, who can authenticate securely, instantiate some VM's, and do the work necessary for them. My question: can OpenNebula have another layer of users, some kind of end-users? What I mean is: suppose I, as a user of OpenNebula, using my created VM's, create a Web Service, which I publish on the Internet. Can anyone access this (someone who has no idea about the private cloud, someone who is simply accessing the URL), and by this way uses my Web Service (created on the VM's by the means of OpenNebula), so, basically, uses OpenNebula remotely (without knowing it)? Or this just doesn't make sense, since the whole idea of a private cloud is not to provide/publish information and services to the outside world, and this is not even possible since the virtual context? To my understanding, this is a general question for all clouds. A cloud must have users to manage and maintain the cloud itself(cloud infrastructure), such users ard administrators. A cloud should also have cloud customers to which the cloud provide services(e.g. VMs, storages). Such users are cloud users who can login into the cloud and use cloud provided resources. The last kind of users are application users who are the customers of your applications. OpenNebula cann't know such users in advance, so it doesn't provide any mechanism to support this kinds of users. (These are just my personal understanding!) Are the most important reasons for installing OpenNebula the performance needs? Is there any other reason because of which I may want to install it, besides the fact that I might need multiple VM's (that I can manage) to perform a task (and to achieve platform interoperability)? I mean this has be the main point of it, right? The main reason for using cloud is have many characters: on-demond self service, improving physical server utilization and so on. you can refer to this cloud definition to have a deeper understanding: http://csrc.nist.gov/groups/SNS/cloud-computing/index.html When the load reaches its maximum (on a task which a user tries to perform on OpenNebula VM's), are new VM's created automatically (it the physical resources allow this) to support the performace needs? Or the only way of creating VM's is the manual one? untial now, OpenNebula can't do such job automatically, but you may implement such function based on it. (in fact Amazon EC2 have implemented such functions). Can OpenNebula be installed on any type of physical network, or does it have some special needs? Suppose I have an intranet in a company environment, with more interconnected physical machine that I'm actually going to use, does this change anything? Do I have to set up a separate physical network for the physical machines that I'm planning to include in the private cloud? OpenNebula can installed smothly to ethernet physical networks (I am not sure exactly about other types of network). Sha 2011-12-15 shamaya 发件人: biro lehel lehel.b...@yahoo.com 发送时间: 2011-12-15 16:54 主 题: Re: [one-users] application integration (service publishing) in OpenNebula? 收件人: users@lists.opennebula.org Hello Fabian. Thanks again for your reply. I really appreciate you for taking the time. I read what you wrote a couple of times, and (I think) it helped me to clarify some things. But still, I have a few questions and issues for which I am looking for a clear answer. I put them in bullets: As I understand so far, OpenNebula has two types of users: the administrator, who basically has control over everything, and the users, who can authenticate securely, instantiate some VM's, and do the work necessary for them. My question: can OpenNebula have another layer of users, some kind of end-users? What I mean is: suppose I, as a user of OpenNebula, using my created VM's, create a Web Service, which I publish on the Internet. Can anyone access this (someone who has no idea about the private cloud, someone who is simply accessing the URL), and by this way uses my Web Service (created on the VM's by the means of OpenNebula), so, basically, uses OpenNebula remotely (without knowing it)? Or this just doesn't make sense, since the whole idea of a private cloud is not to provide/publish information and services to the outside world, and this is not even possible since the virtual context? Are the most important reasons for installing OpenNebula the performance needs? Is there any other reason because of which I may want to install it, besides the fact that I might need multiple VM's (that I can manage) to perform a task (and to achieve platform interoperability)? I mean this has be the main point of it, right? When the load reaches its maximum (on a task which a user
Re: [one-users] application integration (service publishing) in OpenNebula?
Answers inline. What I mean is: suppose I, as a user of OpenNebula, using my created VM's, create a Web Service, which I publish on the Internet. Can anyone access this (someone who has no idea about the private cloud, someone who is simply accessing the URL), and by this way uses my Web Service (created on the VM's by the means of OpenNebula), so, basically, uses OpenNebula remotely (without knowing it)? Or this just doesn't make sense, since the whole idea of a private cloud is not to provide/publish information and services to the outside world, and this is not even possible since the virtual context? As Fabian said, consider each VM as a normal machine. Anything you expose on it through a network will be visible, just as with a normal machine. The idea of a private cloud is to hide the physical location of the virtual machines (on what computer does each reside) and hide the fact that the VM is not a physical machine. Are the most important reasons for installing OpenNebula the performance needs? Is there any other reason because of which I may want to install it, besides the fact that I might need multiple VM's (that I can manage) to perform a task (and to achieve platform interoperability)? OpenNebula is a hypervisor for hypervisors. The reason you want to install it is to provide a means of managing a cluster of servers which provide virtualization. OpenNebula most importantly allows migration of VMs between physical machines and resource usage monitoring. When the load reaches its maximum (on a task which a user tries to perform on OpenNebula VM's), are new VM's created automatically (it the physical resources allow this) to support the performace needs? I think you miss the point of what a cloud manager or a virtualization middleware does. See OpenNebula as a middleware over simple virtualization mechanisms such as KVN, Xen, HyperV, etc. OpenNebula only provides a means of managing heterogeneous virtualized environments. Automatic scaling of virtual machines is out of the scope of this middleware. The basic idea is that a VM is created, deployed, and the life cycle of the VM is monitored using OpenNebula. The VM can be started/stopped/migrated but automatic scaling is not possible, due to different factors, among which the unavailability of such a mechanism on the underlying hypervisors (only XEN allows changing the VM allocated memory without recreating the machine). Any scaling mechanism should be built on top of OpenNebula. Suppose I have an intranet in a company environment, with more interconnected physical machine that I'm actually going to use, does this change anything? Do I have to set up a separate physical network for the physical machines that I'm planning to include in the private cloud? If you read the OpenNebula documentation, the only requirements are that a bridge exists on each OpenNebula node to connect the virtual machines. To what that bridge connects, it is up to the infrastructure provider, but no special requirements are needed in terms of network for the VMs. The live migration mechanism requires a storage NAS and that can influence the network, but mainly any network will do fine with OpenNebula. În Joi, Decembrie 15, 2011 10:54 am, biro lehel a scris: Hello Fabian. Thanks again for your reply. I really appreciate you for taking the time. I read what you wrote a couple of times, and (I think) it helped me to clarify some things. But still, I have a few questions and issues for which I am looking for a clear answer. I put them in bullets: As I understand so far, OpenNebula has two types of users: the administrator, who basically has control over everything, and the users, who can authenticate securely, instantiate some VM's, and do the work necessary for them. My question: can OpenNebula have another layer of users, some kind of end-users? What I mean is: suppose I, as a user of OpenNebula, using my created VM's, create a Web Service, which I publish on the Internet. Can anyone access this (someone who has no idea about the private cloud, someone who is simply accessing the URL), and by this way uses my Web Service (created on the VM's by the means of OpenNebula), so, basically, uses OpenNebula remotely (without knowing it)? Or this just doesn't make sense, since the whole idea of a private cloud is not to provide/publish information and services to the outside world, and this is not even possible since the virtual context?Are the most important reasons for installing OpenNebula the performance needs? Is there any other reason because of which I may want to install it, besides the fact that I might need multiple VM's (that I can manage) to perform a task (and to achieve platform interoperability)? I mean this has be the main point of it, right?When the load reaches its maximum (on a task which a user tries to perform on OpenNebula VM's), are new VM's created automatically (it the physical resources
Re: [one-users] iscsi target as a guest disk
Hi, you should use tm_shared instead of tm_ssh (tm_lvm won't work either for your setup). Regarding your first issue: managing iscsi targets with OpenNebula, there is no native way to handle iscsi block devices with OpenNebula. What you can do out-of-the-box is to use any block device available in the target host (just like you're trying to do in the above logs), whether it's iscsi or not. However I reckon that's too limited for your scenario, since it requires an administrator to discover the iscsi targets on the target host. We've opened a ticket to provide native support for iscsi targets (planned for OpenNebula 3.4): http://dev.opennebula.org/issues/1032 We've been thinking about the possible implementation, and for the moment we believe the best approach will be the following: 1) Define a iscsi handler, such as: iscsi://hostname/target, which will be used in image templates under the SOURCE attribute: DISK = [ TYPE = block, SOURCE=iscsi://my-san/my-lun, TARGET = hda, CLONE=NO] 2) Modify the TM drivers to handle in a specific way sources starting with iscsi:// (just like we did in tm_lvm for /dev/* devices [1]) The driver will run a re-scan of the iscsi targets, and create a symlink for disk.0 to point to the new /dev/ device. [1] https://github.com/OpenNebula/one/blob/master/src/tm_mad/lvm/tm_clone.sh#L70 Regards, Jaime On Thu, Dec 15, 2011 at 9:52 AM, Prakhar Srivastava prakhar@gmail.comwrote: Hi, It appears that you are using the tm_ssh transfer drivers. Use tm_lvm transfer manager drivers instead. Prakhar On Thu, Dec 15, 2011 at 2:01 PM, Tengvall, Ilkka (NSN - FI Espoo) ilkka.tengv...@nsn.com wrote: Hi, I'm writing related to issue: http://dev.opennebula.org/issues/1025 Ruben, thanks for answer, you commented there that iscsi could be used as a disk: you should be able to use iSCSI block devices with DISK=[TYPE=block,SOURCE=path_to_dev]. I tried to follow you instruction, I don't see it working. What am I missing, since the oned tries to cp the iscsi image, instead as pass it to guest as disk: $ cat iscsi-vm.txt NAME=f16-min-iscsi USER=oneadmin GROUP=oneadmin PUBLIC=No DISK=[ BUS=virtio, TYPE=block, SOURCE=/dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 ] GRAPHICS=[ KEYMAP=fi, TYPE=vnc ] INPUT=[ BUS=usb, TYPE=mouse ] MEMORY=512 NIC=[ NETWORK_ID=1, WHITE_PORTS_TCP=22 ] OS=[ ARCH=x86_64, BOOT=hd ] RAW=[ TYPE=kvm ] VCPU=1 Creating the machine using the disk: $ onevm create iscsi-vm.txt ID: 10 and after it fails I see from the logs that it tried to copy the image (cp), instead of passing it to libvirt as a virtio device: Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is ACTIVE. Thu Dec 15 10:26:09 2011 [LCM][I]: New VM state is PROLOG. Thu Dec 15 10:26:09 2011 [VM][I]: Virtual Machine has no context Thu Dec 15 10:26:09 2011 [TM][I]: Command execution fail: /usr/lib/one/tm_commands/shared/tm_clone.sh /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh: /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][D]: tm_clone.sh: DST: /var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Creating directory /var/lib/one//10/images Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed mkdir -p /var/lib/one//10/images. Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Executed chmod a+w /var/lib/one//10/images. Thu Dec 15 10:26:09 2011 [TM][I]: tm_clone.sh: Cloning 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: Command cp -r 3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 /var/lib/one//10/images/disk.0 failed. Thu Dec 15 10:26:09 2011 [TM][E]: tm_clone.sh: cp: cannot stat `3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0': No such file or directory Thu Dec 15 10:26:09 2011 [TM][E]: Error copying /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 to onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [TM][I]: ExitCode: 1 Thu Dec 15 10:26:09 2011 [TM][E]: Error excuting image transfer script: Error copying /dev/disk/by-path/ip-192.168.117.1:3260-iscsi-iqn.2009-02.net.nsn-net:whipper.f16-min-lun-0 to onebula:/var/lib/one//10/images/disk.0 Thu Dec 15 10:26:09 2011 [DiM][I]: New VM state is FAILED Thanks for the answer so far. On 2011-12-12 15:33, ext Tengvall, Ilkka (NSN - FI Espoo) wrote: Hi, I'm new to Open Nebula, and have some questions. First one
[one-users] Fwd: error status on disk image
HI, Thanks for response I have move back to opennebula 3.0 and still get this error: Thu Dec 15 14:26:38 2011 [ImM][I]: Copying /var/lib/one/images/linux-generic.img to repository for image 3 Thu Dec 15 14:26:38 2011 [ReM][D]: ImageInfo method invoked Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 Command execution fail: /var/lib/one/remotes/image/fs/cp /var/lib/one/images/linux-generic.img 3 Thu Dec 15 14:26:38 2011 [ImM][I]: Command execution fail: /var/lib/one/remotes/image/fs/cp /var/lib/one/images/linux-generic.img 3 Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 cp: Copying local image /var/lib/one/images/linux-generic.img to the image repository Thu Dec 15 14:26:38 2011 [ImM][I]: cp: Copying local image /var/lib/one/images/linux-generic.img to the image repository Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 cp: Command cp -f /var/lib/one/images/linux-generic.img /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 failed. Thu Dec 15 14:26:38 2011 [ImM][E]: cp: Command cp -f /var/lib/one/images/linux-generic.img /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 failed. Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 cp: cp: cannot stat `/var/lib/one/images/linux-generic.img': No such file or directory Thu Dec 15 14:26:38 2011 [ImM][E]: cp: cp: cannot stat `/var/lib/one/images/linux-generic.img': No such file or directory Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 Thu Dec 15 14:26:38 2011 [ImM][E]: Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 ExitCode: 1 Thu Dec 15 14:26:38 2011 [ImM][I]: ExitCode: 1 Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: CP FAILURE 3 Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 Thu Dec 15 14:26:38 2011 [ImM][E]: Error copying image in the repository: Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74 pwd /var/lib/one oneadmin@nebula5:~$ ls -la total 52 drwxr-xr-x 9 oneadmin oneadmin 4201 2011-12-15 14:25 . drwxr-xr-x 37 root root 4096 2011-12-13 11:46 .. -rw-r--r-- 1 oneadmin oneadmin17 2011-12-15 14:09 auth -rw--- 1 oneadmin oneadmin 367 2011-12-15 14:09 .bash_history drwx-- 2 oneadmin oneadmin39 2011-12-15 14:07 .cache -rw-r--r-- 1 oneadmin oneadmin 705 2011-12-15 14:10 config drwxr-xr-x 3 oneadmin oneadmin34 2011-12-15 14:11 .gem drwxrws--T 2 oneadmin oneadmin 114 2011-12-15 14:25 images drwxr-xr-x 2 oneadmin oneadmin27 2011-12-15 14:09 .one -rw-r--r-- 1 oneadmin oneadmin 16384 2011-12-15 14:11 oneacct.db drwxr-xr-x 7 oneadmin oneadmin 4180 2011-12-15 14:04 remotes drwxr-xr-x 2 oneadmin oneadmin95 2011-12-15 14:07 .ssh -rw--- 1 oneadmin oneadmin 818 2011-12-15 14:09 .viminfo cat /var/lib/one/remotes/image/fs/fsrc ... #-- # Configuration File for File-System based Image Repositories #-- if [ -z ${ONE_LOCATION} ]; then export IMAGE_REPOSITORY_PATH=/var/lib/one/images else export IMAGE_REPOSITORY_PATH=$ONE_LOCATION/var/images fi ... I can create a new image as datablock type it registers fine. I can create image from copy of this image but when I try to create OS type or register a different (created with kvm-img RAW) on I get an error. thanks Wojciech Hi, I assume you are using the 3.1 development version. This is a new security feature to prevent users from registering any file readable by oneadmin. /var/lib/one is by default a restricted directory, you can configure the behaviour in /var/lib/one/remotes/image/fs/fsrc, check the Image Repository documentation for more info [1]. You can also check the new features and main changes in the compatibility guide [2] Regards. [1]http://www.opennebula.org/documentation:rel3.2:image_repo#configuration [2]http://www.opennebula.org/documentation:rel3.2:compatibility -- Carlos Martín, MSc Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org |cmartin at opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmartin at 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] does oned check which is the proper host for new VM?
Hi Yes OpenNebula check the capacity of the host and the VM. Maybe there is a misconfiguration in your host or monitoring system. Could you send the output of onevm show and onehost show of the relevant VMs and host? Also, OpenNebula can use several heuristics for VM placement. Take a look at the following page to find out how to configure it: http://www.opennebula.org/documentation:rel3.0:schg Cheers Ruben On Thu, Dec 15, 2011 at 3:11 PM, davood ghatreh davood.gh2...@gmail.com wrote: Hi, I have 4 host servers, and opennebula installed and configured. whenever I create a VM it choose host2, regardless of how much this server remained resources are. for example, I created 10 vms (not simultaneously) and they were all created on host2! If I create other vms, they will be also created on host2! other servers have no load and no vms and they are all enabled in opennebula. how can I make oned to properly decide which host has enough resources to create new vm on it. Another issue is, oned doesn't check VM required resources and compare it to host resources to chose proper host. host2 has 2G of RAM and host4 has 4G RAM. I tried to create a vm with 4G RAM. opennebula choose host2, as always. Then after PROLOG states, it was unable to start the VM because there were not enough resources for this VM on host2. I disabled other hosts in opennebula and just left host4 enabled and resubmit the vm. it successfully created on host4! so, what does really opennebula do about choosing proper host for new VM? have I missed something or it is really a problem with opennebula? Thanks all ___ 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 Toolkit 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] x509 Auth Failing after 24 hours
Hi, I am trying to setup OpenNebula with x509 authentication. I am using sqlite as the DB back end for now. I am following the documentation here: http://opennebula.org/documentation:rel3.0:x509_auth I've configured everything correctly as far as I can tell. I can successfully use x509 to login, but after 24 hours (no matter what I set the expire time to with the --time argument) I get error messages saying that the user couldn't be authenticated. I've tried re-running the oneuser login ... command to no avail. The only thing that works is if I delete one.db and restart OpenNebula. Then I can log in just fine, but all the configuration that I have done is lost. What do I have to do to fix this? Thanks, -- Anthony Tiradani tirad...@fnal.gov +1 630 840 4479 smime.p7s Description: S/MIME Cryptographic Signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Virtual Machine Lock Manager
Use persistent image 2011/12/12 Upendra Moturi upendr...@hexagrid.com Hi, Is there any locking mechanism to lock vms ,so that there are no two vms using same hard disk -- Thanks and Regards, Upendra.M ___ 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] application integration (service publishing) in OpenNebula?
Hi, On 2011-12-15, at 5:05 AM, daniel.moldo...@cs.utcluj.ro wrote: The idea of a private cloud is to hide the physical location of the virtual machines (on what computer does each reside) and hide the fact that the VM is not a physical machine. Not at all, please allow me to rectify what is a private cloud. A private cloud is a set of infrastructure (machines) that are dedicated to a single entity/ company/ client. The host machines, storage, etc. are not shared. For example you may need a private cloud for privacy or reasons, to meet security standards, or for storing sensitive information. If you're building a cloud internally that will serve exclusively for your company needs, you're building a private cloud (wether it's publicly accessible/ connected to the Internet or not). If you're a service provider and want to offer Private clouds to your clients, you can use OpenNebula VDC to isolate resources and build private clouds (although in that scenario, OpenNebula itself would be shared, and a security breach in OpenNebula could potentially expose your private clouds) : http://opennebula.org/documentation:rel3.0:vdcmngt The NIST has published an interesting document that tries to highlight and demystify what cloud computing is: http://csrc.nist.gov/publications/nistpubs/800-145/SP800-145.pdf Simon ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] x509 Auth Failing after 24 hours
Hi, Could you send the messages in oned.log file? You should see there messages from the driver describing the error... Cheers Ruben On Thu, Dec 15, 2011 at 5:31 PM, Anthony Tiradani tirad...@fnal.gov wrote: Hi, I am trying to setup OpenNebula with x509 authentication. I am using sqlite as the DB back end for now. I am following the documentation here: http://opennebula.org/documentation:rel3.0:x509_auth I've configured everything correctly as far as I can tell. I can successfully use x509 to login, but after 24 hours (no matter what I set the expire time to with the --time argument) I get error messages saying that the user couldn't be authenticated. I've tried re-running the oneuser login ... command to no avail. The only thing that works is if I delete one.db and restart OpenNebula. Then I can log in just fine, but all the configuration that I have done is lost. What do I have to do to fix this? Thanks, -- Anthony Tiradani tirad...@fnal.gov +1 630 840 4479 ___ 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 Toolkit 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
Re: [one-users] x509 Auth Failing after 24 hours
This is the only message I get in oned.log: Thu Dec 15 17:05:47 2011 [ReM][E]: [HostPoolInfo] User couldn't be authenticated, aborting call. I am running onehost list when I see that error. Anthony Tiradani tirad...@fnal.gov +1 630 840 4479 On 12/15/2011 03:40 PM, Ruben S. Montero wrote: Hi, Could you send the messages in oned.log file? You should see there messages from the driver describing the error... Cheers Ruben On Thu, Dec 15, 2011 at 5:31 PM, Anthony Tiradani tirad...@fnal.gov wrote: Hi, I am trying to setup OpenNebula with x509 authentication. I am using sqlite as the DB back end for now. I am following the documentation here: http://opennebula.org/documentation:rel3.0:x509_auth I've configured everything correctly as far as I can tell. I can successfully use x509 to login, but after 24 hours (no matter what I set the expire time to with the --time argument) I get error messages saying that the user couldn't be authenticated. I've tried re-running the oneuser login ... command to no avail. The only thing that works is if I delete one.db and restart OpenNebula. Then I can log in just fine, but all the configuration that I have done is lost. What do I have to do to fix this? Thanks, -- Anthony Tiradani tirad...@fnal.gov +1 630 840 4479 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org smime.p7s Description: S/MIME Cryptographic Signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Removing old VMs
Hi! It looks like OpenNebula keeps all used VM Ids. Using onevm ID I can see all old VMs in state DONE. And in /var/lib/one/ exists for each old VM a directory. How can I get rid of this? Especially the directories in /var/lib/one/ are nasty. -- Thanks, //richard ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Sunstone and x509 Authentication
We are still having problems getting sunstone to work with x509 authentication. Could someone please advise? Here is what we have sunstone-server.conf # Server Configuration :host: 127.0.0.1 :port: 9869 # Authentication driver for incomming requests # sunstone, for OpenNebula's user-password scheme # x509, for x509 certificates based authentication #:auth: sunstone :auth: x509 # Authentication driver to communicate with OpenNebula core # cipher, for symmetric cipher encryption of tokens # x509, for x509 certificate encryption of tokens #:core_auth: server_cipher :core_auth: x509 # Life-time in seconds for token renewal (that used to handle OpenNebula auths) :token_expiration_delta: 1800 server_x509_auth.conf # User to be used for x509 server authentication :srv_user: serveradmin # Path to the certificate used by the OpenNebula Services # Certificates must be in PEM format :one_cert: /etc/grid-security/hostcert.pem :one_key: /etc/grid-security/hostkey.pem serveradmin information -bash-3.2$ oneuser show 1 USER 1 INFORMATION ID : 1 NAME : serveradmin GROUP : 0 PASSWORD : DN with no spaces AUTH_DRIVER: x509 ENABLED: Yes USER TEMPLATE Logs oned.log Thu Dec 15 17:04:28 2011 [AuM][E]: Auth Error: undefined method `public_key' for nil:NilClass sunstone.log 131.225.168.168 - - [15/Dec/2011 17:03:26] GET / HTTP/1.1 200 1384 0.0037 131.225.168.168 - - [15/Dec/2011 17:04:28] POST /login HTTP/1.1 500 61 0.0802 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Removing old VMs
Dear Richard, This is not necessarily an answer to your question, but if you'll consider taking a look at Feature #1026 that I created on the dev site. I can understand that all reference material associated with a VM would remain even when the VM is in the DONE state since technically that is an acceptable state for the VM to exist. There could exist a scenario where the user would like access to deployment files, logs, etc. However, it would be nice if there was a method to clear-out all data related to VMs. That's where Feature #1026 comes in. Currently, even deleting a VM leaves all its files laying around. -- Hutson Betts Computer Science and Engineering Texas AM University On Fri, 2011-12-16 at 00:12 +0100, richard -rw- weinberger wrote: Hi! It looks like OpenNebula keeps all used VM Ids. Using onevm ID I can see all old VMs in state DONE. And in /var/lib/one/ exists for each old VM a directory. How can I get rid of this? Especially the directories in /var/lib/one/ are nasty. signature.asc Description: This is a digitally signed message part ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Little help with first building cloud
Guys, which is default url for sunstone-server? I don't found it. thanks. On Wed, Dec 7, 2011 at 11:48 AM, matheus tor4 matheusi...@gmail.com wrote: Fabian, it's exactly what I want to hear. Make the changes with root user, and start oned with oneadmin user! Great! Thanks a lot! On Wed, Dec 7, 2011 at 7:34 AM, Fabian Wenk fab...@wenks.ch wrote: Hello Matheus On 07.12.2011 01:44, matheus tor4 wrote: Make the changes on files like oned.conf using my standart user will brings for me troubles in future, or not? Configuration files in /etc/ usually are changed with the root user, normal users should not be able to write or depending on the content even be able to read it. What you recommend? - Put the rights on the oneadmin user, or - Use root user to make changes (painlessly) What kind of changes? On my system the /etc/one/oned.conf belongs to root (rw) with only read permissions for the cloud group. The startup script /etc/init.d/opennebula takes care to start the OpenNebula daemons with the user oneadmin (eg. dropping privileges). But this is something which could depend on the used Linux distribution if you used a distribution provided package. bye Fabian __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Matheus Torquato Undergraduate in Computer Science Federal University of Alagoas -- Matheus Torquato Undergraduate in Computer Science Federal University of Alagoas ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Removing old VMs
On Fri, 16 Dec 2011, richard -rw- weinberger wrote: Hi! It looks like OpenNebula keeps all used VM Ids. Using onevm ID I can see all old VMs in state DONE. And in /var/lib/one/ exists for each old VM a directory. How can I get rid of this? Especially the directories in /var/lib/one/ are nasty. Two ways-- Either don't use the SAVE option in your template or use VM's from the image repository and then opennebula will save them back to the image repository instead of the /var/lib/one/directory. Steve -- -- Steven C. Timm, Ph.D (630) 840-8525 t...@fnal.gov http://home.fnal.gov/~timm/ Fermilab Computing Division, Scientific Computing Facilities, Grid Facilities Department, FermiGrid Services Group, Group Leader. Lead of FermiCloud project. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org