Re: [one-users] ssh/authorized_keys permission denied
Adri Anisa wrote on 12/01/15 11:56: Hi, I use ssh-copy-id node to ssh without password from frontend to node, but I found this error: bash: line 2: ./ssh/authorized_keys: Permission denied. I also have tried to chmod 600 ~/.ssh/authorized_keys but it seems still error. check also the owner of ~/.ssh/ dir and ~/.ssh/authorized_keys file. Hope it helps, Nikolay. Any idea how to fix it? Please help me. I am undergraduate program of computer science and on my progress with my thesis. Thank you. Regards, Adri ___ 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] Is there a way to expand output of onevm list?
Hi Steve, I copied /var/lib/one/tmp/onevm.yaml file into ~/.one/cli/ folder located in user's home dir and set the value of size parameter of HOST attribute to desired value (in my case it is 15): {{{ :HOST: :desc: Host where the VM is running :size: 15 :left: true }}} Hope it helps! Best regards, Nikolay. Steven Timm wrote on 31.12.2014 17:06: I am currently running opennebula 4.8. The default output of onevm list only allows 10 characters under hostname. my hostnames are cloudworker which means that all identifying information is truncated to cloudworke Is there any way to change the format of onevm list to show the whole node name, if so, how? I have a lot of scripts that parse that output. Steve Timm -- Steven C. Timm, Ph.D (630) 840-8525 t...@fnal.gov http://home.fnal.gov/~timm/ Office: Wilson Hall room 804 Fermilab Scientific Computing Division, Scientific Computing Facilities Quadrant., Experimental Computing Facilities Dept., Project Lead for Virtual Facility Project. ___ 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] 4.4 Installation instructions are incorrect
Hello Kerry! What makes you think that 4.6 is development version? As far as I know it is a stable one (there is even 4.6.1 with bug fixes). Have a loot at Release cycle [1] Best regards, Nikolay. [1] http://opennebula.org/software/release/ kerryhall . wrote on 10/06/14 02:45: Hi folks, I followed the instructions here: http://docs.opennebula.org/4.4/design_and_installation/quick_starts/qs_centos_kvm.html#qs-centos-kvm But I end up with version 4.6, not version 4.4. 4.6 is nice, but I would like to use the stable version for my use, not the development version. I managed to work around this by manually telling yum to install version 4.4.1-1, but whenever I try to do yum update, it updates these packages to 4.6. Of course, I could exclude these packages from yum updates which seems to work. It might be nice to do whatever is necessary to allow one package to not replace the other, perhaps in the same way that mysql 5.6 and mysql 5.5 can coexist on a system. I would also like to see the documentation to be updated and correct. I would be happy to collaborate on this with whoever has permissions to edit the documentation. 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] 4.4 Installation instructions are incorrect
I assume the logic behind is the following: user starts from OpenNebula home page (opennebula.org), then click on Documentation (http://opennebula.org/documentation/) which contains the documentation on the latest stable release. Currently it is written the following: OpenNebula 4.6 Guides (Latest Stable). kerryhall . wrote on 10/06/14 11:23: http://docs.opennebula.org/4.4/ It says 4.4 (Stable) and 4.6 (Devel) On Tue, Jun 10, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com mailto:kerryh...@gmail.com wrote: On this page here: On Tue, Jun 10, 2014 at 12:19 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Hello Kerry! What makes you think that 4.6 is development version? As far as I know it is a stable one (there is even 4.6.1 with bug fixes). Have a loot at Release cycle [1] Best regards, Nikolay. [1] http://opennebula.org/__software/release/ http://opennebula.org/software/release/ kerryhall . wrote on 10/06/14 02:45: Hi folks, I followed the instructions here: http://docs.opennebula.org/4.__4/design_and_installation/__quick_starts/qs_centos_kvm.__html#qs-centos-kvm http://docs.opennebula.org/4.4/design_and_installation/quick_starts/qs_centos_kvm.html#qs-centos-kvm But I end up with version 4.6, not version 4.4. 4.6 is nice, but I would like to use the stable version for my use, not the development version. I managed to work around this by manually telling yum to install version 4.4.1-1, but whenever I try to do yum update, it updates these packages to 4.6. Of course, I could exclude these packages from yum updates which seems to work. It might be nice to do whatever is necessary to allow one package to not replace the other, perhaps in the same way that mysql 5.6 and mysql 5.5 can coexist on a system. I would also like to see the documentation to be updated and correct. I would be happy to collaborate on this with whoever has permissions to edit the documentation. Thanks, Kerry _ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org _ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/__listinfo.cgi/users-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] set user quotas be valid for a given period of time
Hi Carlos, Thanks a lot for proposal! We will try to estimate it as well as other possible solutions to take a decision. Regards, Nikolay. Carlos Martín Sánchez wrote on 14/04/14 13:39: Hi, On Thu, Apr 10, 2014 at 8:29 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Dear all, as far as I understand from [1] in the current stable OpenNebula release (v.4.4) it's not possible to set user quotas be valid for a given period of time. We would like to implement the following scenario. Split all cloud users into two categories: 1) permanent and 2) temporal. Users from the second category can use cloud resources only during certain period of time. And e.g. one week/month before quotas are expired the user will get notification via email. He can ignore it if he is not going to use cloud resources any longer or ask for prolongation. Best regards, Nikolay. [1] http://docs.opennebula.org/4.__4/administration/users_and___groups/quota_auth.html http://docs.opennebula.org/4.4/administration/users_and_groups/quota_auth.html No, that particular use case is not supported out of the box. You can however implement it using the following tools: * The quotas can be updated through the cli [1], ruby [2] or java [3] api. * You can be notified when new users are created using hooks [4]. * You can define ACL rules to modify what a user can/cannot do. * You shouldn't need it for your requirements, but you can also create custom authentication and authorization drivers [5] Regards [1] http://docs.opennebula.org/doc/4.4/cli/oneuser.1.html [2] http://docs.opennebula.org/4.4/integration/system_interfaces/ruby.html [3] http://docs.opennebula.org/4.4/integration/system_interfaces/java.html [4] http://docs.opennebula.org/4.4/integration/infrastructure_integration/hooks.html [5] http://docs.opennebula.org/4.4/integration/infrastructure_integration/devel-auth.html -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebulamailto:cmar...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] set user quotas be valid for a given period of time
Dear all, as far as I understand from [1] in the current stable OpenNebula release (v.4.4) it's not possible to set user quotas be valid for a given period of time. We would like to implement the following scenario. Split all cloud users into two categories: 1) permanent and 2) temporal. Users from the second category can use cloud resources only during certain period of time. And e.g. one week/month before quotas are expired the user will get notification via email. He can ignore it if he is not going to use cloud resources any longer or ask for prolongation. Best regards, Nikolay. [1] http://docs.opennebula.org/4.4/administration/users_and_groups/quota_auth.html ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM Opennebula with OpenVZ
Hi Caty, please, provide OpenNebula version you are using as well as VM log file (part of it where errors appear). The openvz driver code available at [1] is updated for OpenNebula 4.4(although docs are not updated yet). [1] https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home Regards, Nikolay. Catalina Quinde wrote on 04/02/14 00:05: hello friends, I'm using opennebula with openvz, the state the vm is running in opennebula, but when I make a stop the machine status is failed, why is this happening? and how I can fix? Thanks very much. Regards, Caty. ___ 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] Users Digest, Vol 70, Issue 90 (VM Openvz in Opennebula)
VMopenvzamd64 not found, using defaults from /etc/vz/dists/default Mon Dec 16 00:05:26 2013 [VMM][E]: Unable to start init, probably incorrect template Mon Dec 16 00:05:26 2013 [VMM][E]: Container start failed Mon Dec 16 00:05:26 2013 [VMM][E]: Mon Dec 16 00:05:26 2013 [VMM][I]: ExitCode: 47 Mon Dec 16 00:05:26 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy. Mon Dec 16 00:05:26 2013 [VMM][E]: Error deploying virtual machine: Warning: configuration file for distribution VMopenvzamd64 not found, using defaults from /etc/vz/dists/default Mon Dec 16 00:05:26 2013 [DiM][I]: New VM state is FAILED Regards, Nikolay. THANKS VERY MUCH NIKOLAY BEAUTIFUL DAY FOR YOU. Caty. Message: 3 Date: Sun, 15 Dec 2013 12:50:59 +0400 From: knawnd kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com To: users@lists.opennebula.org mailto:users@lists.opennebula.org mailto:users@lists.opennebula.org mailto:users@lists.opennebula.org Subject: Re: [one-users] Create VM in Opennebula for OpenVZ failed Message-ID: 52ad6d73.5040...@gmail.com mailto:52ad6d73.5040...@gmail.com mailto:52ad6d73.5040...@gmail.com mailto:52ad6d73.5040...@gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed Hi Caty, I've just checked and ploop openvz VM could be run on cluster node with mounted nfsv3 shared system DS. So please check very carefully your directories permissons and in case of NFS share also exporting and mount options. Regards, Nikolay. On 12/14/2013 09:21 PM, knawnd wrote: Moreover, I could successfully run simfs VM on NFS shared system DS. My settings was the following: 1) on NFS server /etc/exports has the line /var/lib/one/datastores network/mask(rw,no_subtree_check,no_root_squash) 2) NFS directory on the cluster node was mounted as mount -t nfs -o vers=3 nfs-server IP address:/var/lib/one/datastores /vz/one/datastores/ mount |grep datastores nfs-server IP:/var/lib/one/datastores on /vz/one/datastores type nfs (rw,vers=3,addr=nfs-server IP address) Directories permissions on cluster node are as below: $ ll /vz|grep one drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one $ ll /vz/one total 8 drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts $ ll /vz/one/datastores/ total 16 drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0 drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1 drwxrwxr-x 2 oneadmin oneadmin 4096 Aug 5 17:21 2 drwxr-xr-x 2 root root 4096 Dec 14 11:59 vztmp $ ll /vz/one/datastores/0/ total 8 drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1 drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2 Hope it helps. Regards, Nikolay. -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131215/428c5316/attachment-0001.htm -- ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org mailto:Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org End of Users Digest, Vol 70, Issue 90 * ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Users Digest, Vol 70, Issue 90
virtualization driver operation: deploy. Mon Dec 16 00:05:26 2013 [VMM][E]: Error deploying virtual machine: Warning: configuration file for distribution VMopenvzamd64 not found, using defaults from /etc/vz/dists/default Mon Dec 16 00:05:26 2013 [DiM][I]: New VM state is FAILED Regards, Nikolay. THANKS VERY MUCH NIKOLAY BEAUTIFUL DAY FOR YOU. Caty. Message: 3 Date: Sun, 15 Dec 2013 12:50:59 +0400 From: knawnd kna...@gmail.com mailto:kna...@gmail.com To: users@lists.opennebula.org mailto:users@lists.opennebula.org Subject: Re: [one-users] Create VM in Opennebula for OpenVZ failed Message-ID: 52ad6d73.5040...@gmail.com mailto:52ad6d73.5040...@gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed Hi Caty, I've just checked and ploop openvz VM could be run on cluster node with mounted nfsv3 shared system DS. So please check very carefully your directories permissons and in case of NFS share also exporting and mount options. Regards, Nikolay. On 12/14/2013 09:21 PM, knawnd wrote: Moreover, I could successfully run simfs VM on NFS shared system DS. My settings was the following: 1) on NFS server /etc/exports has the line /var/lib/one/datastores network/mask(rw,no_subtree_check,no_root_squash) 2) NFS directory on the cluster node was mounted as mount -t nfs -o vers=3 nfs-server IP address:/var/lib/one/datastores /vz/one/datastores/ mount |grep datastores nfs-server IP:/var/lib/one/datastores on /vz/one/datastores type nfs (rw,vers=3,addr=nfs-server IP address) Directories permissions on cluster node are as below: $ ll /vz|grep one drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one $ ll /vz/one total 8 drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts $ ll /vz/one/datastores/ total 16 drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0 drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1 drwxrwxr-x 2 oneadmin oneadmin 4096 Aug 5 17:21 2 drwxr-xr-x 2 root root 4096 Dec 14 11:59 vztmp $ ll /vz/one/datastores/0/ total 8 drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1 drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2 Hope it helps. Regards, Nikolay. -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131215/428c5316/attachment-0001.htm -- ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org End of Users Digest, Vol 70, Issue 90 * ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Create VM in Opennebula for OpenVZ failed
Hi Caty, I've just checked and ploop openvz VM could be run on cluster node with mounted nfsv3 shared system DS. So please check very carefully your directories permissons and in case of NFS share also exporting and mount options. Regards, Nikolay. On 12/14/2013 09:21 PM, knawnd wrote: Moreover, I could successfully run simfs VM on NFS shared system DS. My settings was the following: 1) on NFS server /etc/exports has the line /var/lib/one/datastores network/mask(rw,no_subtree_check,no_root_squash) 2) NFS directory on the cluster node was mounted as mount -t nfs -o vers=3 nfs-server IP address:/var/lib/one/datastores /vz/one/datastores/ mount |grep datastores nfs-server IP:/var/lib/one/datastores on /vz/one/datastores type nfs (rw,vers=3,addr=nfs-server IP address) Directories permissions on cluster node are as below: $ ll /vz|grep one drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one $ ll /vz/one total 8 drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts $ ll /vz/one/datastores/ total 16 drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0 drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1 drwxrwxr-x 2 oneadmin oneadmin 4096 Aug 5 17:21 2 drwxr-xr-x 2 root root 4096 Dec 14 11:59 vztmp $ ll /vz/one/datastores/0/ total 8 drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1 drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2 Hope it helps. Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Create VM in Opennebula for OpenVZ failed
Hi Caty, Sorry for the long delay in reply (a lot of urgent things to do before the end of the year). So according to info you provided now your system DS is ssh-based and not shared (NFS) anymore, right? oneadmin@ubuntuOpNeb:~$ onedatastore list ID NAMESIZE AVAIL CLUSTER IMAGES TYPE DS TM 0 system - - - 0 sys -ssh We have the following directory permissions on cluster nodes: $ ll /vz/ |grep one drwx-- 5 oneadmin oneadmin 4096 Nov 21 12:01 one $ll /vz/one/ drwxrwxr-x 3 oneadmin oneadmin 4096 Nov 25 13:02 datastores drwxr-x--- 9 oneadmin oneadmin 4096 Nov 21 12:01 scripts $ll /vz/one/datastores/ total 4 drwxrwxr-x 5 oneadmin oneadmin 4096 Dec 4 20:51 0 $ ll /vz/one/datastores/0/ drwxrwxr-x 4 oneadmin oneadmin 4096 Nov 29 12:53 24 drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 2 13:10 35 drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 4 20:53 46 Hope it helps. Nikolay. On 12/13/2013 10:52 AM, Catalina Quinde wrote: Hi friends, 1.I created a VM in Opennebula for OpenVZ but this is failed, this is your log: oneadmin@ubuntuOpNeb:~$ cat /var/log/one/1.log Fri Dec 13 01:45:56 2013 [DiM][I]: New VM state is ACTIVE. Fri Dec 13 01:45:56 2013 [LCM][I]: New VM state is PROLOG. Fri Dec 13 01:46:15 2013 [LCM][I]: New VM state is BOOT Fri Dec 13 01:46:15 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.0 Fri Dec 13 01:46:16 2013 [VMM][I]: ExitCode: 0 Fri Dec 13 01:46:16 2013 [VMM][I]: Successfully execute network driver operation: pre. Fri Dec 13 01:46:21 2013 [VMM][I]: Command execution fail: cat EOT | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/1/deployment.0' 'ubuntu' 1 ubuntu Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv /var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz /var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1386917185 2 /dev/null; true. Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln -sf /vz/one/datastores/0/1/disk.0 /var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz. Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Command /usr/bin/sudo /usr/sbin/vzctl create 1001 --layout ploop --ostemplate debian-7.0-x86_64 --private /vz/one/datastores/0/1/private --root /vz/one/datastores/0/1/root failed. Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][I]: Unable to create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][I]: Creation of container private area failed Fri Dec 13 01:46:21 2013 [VMM][E]: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][E]: Unable to create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][E]: Creation of container private area failed Fri Dec 13 01:46:21 2013 [VMM][E]: Fri Dec 13 01:46:21 2013 [VMM][I]: ExitCode: 48 Fri Dec 13 01:46:21 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Dec 13 01:46:21 2013 [VMM][E]: Error deploying virtual machine: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [DiM][I]: New VM state is FAILED 2. My template file contains: NIC=[NETWORK_ID=0] OSTEMPLATE=debian-7.0-x86_64 DISK=[IMAGE_ID=0] DISK=[SIZE=512,TYPE=swap] CPU=0.01 VE_LAYOUT=ploop RCLOCAL=rc.local OS=[ARCH=x86_64] CLUSTER_100=100 VCPU=1 REQUIREMENTS=CLUSTER_ID=\100\ MEMORY=512 CONTEXT=[SSH_PUBLIC_KEY=$USER[SSH_PUBLIC_KEY],NETWORK=YES] 3. My datastores list contains: oneadmin@ubuntuOpNeb:~$ onedatastore list ID NAMESIZE AVAIL CLUSTER IMAGES TYPE DS TM 0 system - - - 0 sys -ssh 1 default15.6G 62% ovz_x64 1 img fs ssh 2 files 15.6G 62% - 0 fil fs ssh Please help me solve this, is very important Thanks, Caty. ___ 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] VM in Opennebula for OpenVZ failed
Hi Caty, 3. When I deploy VM with VE_LAYOUT =ploop display the same error ...bad file descriptor... please, make sure that your system datastore (normally with ID 0) is configured to use ssh transfer manager instead of shared. 4. When I deploy VM with VE_LAYOUT =simfs display the error ...tar...cannot change ownership to uid0, gid0: Operation not permitted, a little extract of log file: it looks like oneadmin user doesn't have enough privileges. Please, check /etc/sudoers file on cluster node: # Defaults requiretty %oneadmin ALL=(ALL)NOPASSWD: ALL Defaults:%oneadmin secure_path=/bin:/sbin:/usr/bin:/usr/sbin Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM in Opennebula for OpenVZ failed
Hi Caty, On 11/30/2013 06:28 PM, Catalina Quinde wrote: Hi Nikita, excuse me by previous mail, it´s was incorrectly, well, I revised https://bugzilla.openvz.org/show_bug.cgi?id=2730, but, don´t understand where I have to change, The ploop version with command: aptitude show ploop, present Version: 1.9-10 and vzctl --version displays 4.6 What is your datastore (DS) configuration? Do you use nfs-shared DS? What is the output of the 'onedatastore list' command? If you are running nfs shared datastore there are several ways you can follow: 1) configure your nfs server to NFSv3 and not NFSv4 since according to [1] and [2] NFSv4 is not supported yet for ploop VMs; 2) switch from ploop-based containers to simfs ones. In that case you have to specify in VM config (or VM template config) VE_LAYOUT=simfs 3) reconfigure datastore to use ssh transfer driver instead of shared one (see info [3]). Regards, Nikolay. [1] https://bugzilla.openvz.org/show_bug.cgi?id=2730 [2] https://bugzilla.openvz.org/show_bug.cgi?id=2734 [3] http://opennebula.org/documentation:rel4.2:system_ds#using_the_ssh_transfer_driver Thanks Nikita, please guide me. Regards, Caty. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] two authentication methods in Sunstone
Hello! I wonder if it is possible to enable two authentication methods in Sunstone? As far as I understand from [1] currently only single auth method is supported. I would like to implement the following: first try to use x509 auth method and if it fails then try the next one listed in /etc/one/sunstone-server.conf e.g. like :auth: x509,sunstone i.e. if user doesn't have a proper x509 certs imported in his browser then he still can be authenticated with username/password. Regards, Nikolay. [1] http://opennebula.org/documentation:rel4.2:suns_auth ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Users Digest, Vol 69, Issue 141
Hi Caty, if your datastore is nfs-based then it seems like you faced with issue mentioned in that bug report [1]. Is there any particular reason which makes you not to use latest stable openvz kernel (currently it is 83.2)? Make also sure that the latest stable ploop and vzctl versions are installed. Hope that helps, Nikolay. [1] https://bugzilla.openvz.org/show_bug.cgi?id=2730 On 11/30/2013 07:38 AM, Catalina Quinde wrote: Hi Nikita, I installed new kernel 2.6.32-042stab076.8 and deployed VM indicated by you, but this errors displays in log file: oneadmin@ubuntuOpNeb:~$ cat /var/log/one/62.log Fri Nov 29 21:08:42 2013 [DiM][I]: New VM state is ACTIVE. Fri Nov 29 21:08:42 2013 [LCM][I]: New VM state is PROLOG. Fri Nov 29 21:08:42 2013 [VM][I]: Virtual Machine has no context Fri Nov 29 21:08:57 2013 [LCM][I]: New VM state is BOOT Fri Nov 29 21:08:57 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/62/deployment.0 Fri Nov 29 21:08:58 2013 [VMM][I]: ExitCode: 0 Fri Nov 29 21:08:58 2013 [VMM][I]: Successfully execute network driver operation: pre. Fri Nov 29 21:09:02 2013 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/62/deployment.0' 'ubuntu' 62 ubuntu Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv /var/lib/vz/template/cache/debian-7.0-x64.tar.gz /var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385777341 2 /dev/null; true. Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln -sf /var/lib/one/datastores/104/62/disk.0 /var/lib/vz/template/cache/debian-7.0-x64.tar.gz. Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Command /usr/bin/sudo /usr/sbin/vzctl create 1062 --layout ploop --ostemplate debian-7.0-x64 --private /var/lib/one/datastores/104/62/private --root /var/lib/one/datastores/104/62/root failed. Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23] Fri Nov 29 21:09:02 2013 [VMM][I]: Creation of container private area failed Fri Nov 29 21:09:02 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor Fri Nov 29 21:09:02 2013 [VMM][E]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23] Fri Nov 29 21:09:02 2013 [VMM][E]: Creation of container private area failed Fri Nov 29 21:09:02 2013 [VMM][E]: Fri Nov 29 21:09:02 2013 [VMM][I]: ExitCode: 151 Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Nov 29 21:09:02 2013 [VMM][E]: Error deploying virtual machine: Error in do_lock (lock.c:136): Error in flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor Fri Nov 29 21:09:02 2013 [DiM][I]: New VM state is FAILED Thanks for you help Nikita. Regards, Caty Message: 2 Date: Wed, 27 Nov 2013 17:23:09 +0400 From: kna...@gmail.com mailto:kna...@gmail.com To: us...@lists.open, mailto:users@lists.opennebula.org nebula.org mailto:users@lists.opennebula.org Subject: Re: [one-users] VM in Opennebula for OpenVZ failed Message-ID: 5295f23d.8040...@gmail.com mailto:5295f23d.8040...@gmail.com Content-Type: text/plain; charset=UTF-8; format=flowed Hi Catalina, please see my comments inline Catalina Quinde wrote on 27/11/13 14:17: 2. Maybe you got incorrect template, try deploying it by vzctl create to see if it works In the process of creating the template I copy debian.conf as VMdebianm64.conf it was not necessary to do that. It should be enough just to specify a proper value in OSTEMPLATE opennebula VM template, e.g. OSTEMPLATE=debian-7.0-x64 In that case OpenVZ hypervisor should take into account /etc/vz/dists/debian.conf on the cloud node. 3. What procedure did you perform to get an image archive for OpenNebula out of the created VM? When I created the VM in OpenVZ node I used this: sudo wget http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz, this archive is in /var/lib/vz/template/cache. then with command: sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I created VM, I was in /var/lib/vz/template/cache directory. But in /etc/vz/dist/ directory is not present debian-7.0-amd64-minimal are present this: alpine.confgentoo.conf slackware-9.1.conf altlinux-2.4.confmandrake.conf
Re: [one-users] VM description/comment
Hi Daniel, Daniel Molina wrote on 28/11/13 14:13: Hi Nikolay, On 27 November 2013 15:02, kna...@gmail.com mailto:kna...@gmail.com wrote: Daniel Molina wrote on 24/10/12 13:58: On 24 October 2012 11:08, kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com wrote: Daniel Molina wrote on 23/10/12 20:23: On 23 October 2012 14:31, kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com wrote: Dear Ruben, first of all, sorry for delay with reply! Please, see my comments inline. Ruben S. Montero wrote on 19/10/12 00:34: Hi Ricardo + Nikolay You are right, one thing we have in our short roadmap is to add a generic metada section for VMs. This metadata could be updated using the *update* functionality currently present for other commands. sounds encouraging! Is any information when such feature is planned to be implemented? Just to give you the rationale behind not having this yet. As you probably know the VM template is extended once the VM created with control data (e.g. DISK_ID's, specifric LEASES, SOURCE for DISK...) for obvious reasons we do not want a user to modify this. seems reasonable So we will split this in two, one for the control data and other to be used/modified by the user. For now, as Nikolay suggests this limit somehow part of the out-of-the-box functionality (e.g. adding DESCRIPTION in a bulk submission), this functionality will need a custom program using OCA. About parsing the out put of onevm show, note that you can always get the full pool information with onevm list -x (TEMPLATE included) the onevm list command just parse and pick some of this info and present it in a tabular form... Thanks a lot for detailed reply and explanations! JFYI You can easily add new columns to the onevm list command. The following patch adds a new DESCRIPTION column to the onevm list output: https://gist.github.com/8f8499704cbee0e5db84 The onevm.yaml can be defined per user in $HOME/.one/onevm.yaml or globally in /etc/one/cli/onevm.yaml Dear OpenNebula developers, It have been very convenient for me to have DESCRIPTION column in vm list but it seems that patch is absent in 4.2 release. I wonder if it is planned to include such feature in mainstream code in future releases or it will be needed to apply that patch for every new release? OpenNebula 4.4 is almost ready, but we can consider including it for one-4.6. Could you please open a feature request in our dev page so we can schedule it for the next release? http://dev.opennebula.org/ http://dev.opennebula.org/issues/2509 Thanks! Nikolay. Cheers Best regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org mailto: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 http://www.OpenNebula.org | dmol...@opennebula.org mailto:dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM in Opennebula for OpenVZ failed
Hi Catalina, please see my comments inline Catalina Quinde wrote on 27/11/13 14:17: 2. Maybe you got incorrect template, try deploying it by vzctl create to see if it works In the process of creating the template I copy debian.conf as VMdebianm64.conf it was not necessary to do that. It should be enough just to specify a proper value in OSTEMPLATE opennebula VM template, e.g. OSTEMPLATE=debian-7.0-x64 In that case OpenVZ hypervisor should take into account /etc/vz/dists/debian.conf on the cloud node. 3. What procedure did you perform to get an image archive for OpenNebula out of the created VM? When I created the VM in OpenVZ node I used this: sudo wget http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz, this archive is in /var/lib/vz/template/cache. then with command: sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I created VM, I was in /var/lib/vz/template/cache directory. But in /etc/vz/dist/ directory is not present debian-7.0-amd64-minimal are present this: alpine.confgentoo.conf slackware-9.1.conf altlinux-2.4.confmandrake.conf slackware.conf altlinux.confopensuse.confsles.conf arch.confowl.confsuse-7.3.conf centos.confredhat-7.0.conf suse-8.0.conf debian-3.0.confredhat-7.1.conf suse-8.1.conf debian-3.1.confredhat-7.2.conf suse-8.2.conf debian.confredhat-7.3.confsuse.conf defaultredhat.conf ubuntu-6.06.conf distribution.conf-template rhel.conf ubuntu.conf fedora.confscientific.conf VMdebianm64.conf fedora-core.confscripts funtoo.confslackware-9.0.conf Please perform the following steps as oneadmin user on front-end node: 1) $ wget http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz -P /tmp/ 2) $ oneimage create --name debian-7.0-amd64-minimal --path /tmp/debian-7.0-amd64-minimal.tar.gz --prefix sd --description Debian 7.0 x64 minimal 3) Create VM template similar to one below: CPU=0.01 DISK=[ IMAGE_ID=6, SIZE=20480 ] DISK=[ SIZE=2048, TYPE=swap ] LOOKUP_HOSTNAME=true MEMORY=2048 NIC=[ NETWORK_ID=2 ] OS=[ ARCH=x86_64, BOOT=sd ] OSTEMPLATE=debian-7.0-x64 RCLOCAL=rc.local VCPU=1 VE_LAYOUT=ploop 4) $ onetemplate instantiate template id Please, report back on the result. Regards, Nikolay. Regards, Nikita ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM description/comment
Daniel Molina wrote on 24/10/12 13:58: On 24 October 2012 11:08, kna...@gmail.com mailto:kna...@gmail.com wrote: Daniel Molina wrote on 23/10/12 20:23: On 23 October 2012 14:31, kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com wrote: Dear Ruben, first of all, sorry for delay with reply! Please, see my comments inline. Ruben S. Montero wrote on 19/10/12 00:34: Hi Ricardo + Nikolay You are right, one thing we have in our short roadmap is to add a generic metada section for VMs. This metadata could be updated using the *update* functionality currently present for other commands. sounds encouraging! Is any information when such feature is planned to be implemented? Just to give you the rationale behind not having this yet. As you probably know the VM template is extended once the VM created with control data (e.g. DISK_ID's, specifric LEASES, SOURCE for DISK...) for obvious reasons we do not want a user to modify this. seems reasonable So we will split this in two, one for the control data and other to be used/modified by the user. For now, as Nikolay suggests this limit somehow part of the out-of-the-box functionality (e.g. adding DESCRIPTION in a bulk submission), this functionality will need a custom program using OCA. About parsing the out put of onevm show, note that you can always get the full pool information with onevm list -x (TEMPLATE included) the onevm list command just parse and pick some of this info and present it in a tabular form... Thanks a lot for detailed reply and explanations! JFYI You can easily add new columns to the onevm list command. The following patch adds a new DESCRIPTION column to the onevm list output: https://gist.github.com/8f8499704cbee0e5db84 The onevm.yaml can be defined per user in $HOME/.one/onevm.yaml or globally in /etc/one/cli/onevm.yaml Dear OpenNebula developers, It have been very convenient for me to have DESCRIPTION column in vm list but it seems that patch is absent in 4.2 release. I wonder if it is planned to include such feature in mainstream code in future releases or it will be needed to apply that patch for every new release? Best regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] different authentication methods for different interfaces
Carlos Martín Sánchez wrote on 26/11/13 13:54: Hi, That is not supported, only one auth driver can be set for each user. We could consider adding support for more than one drivers, but that would require a bit of development and I can't think of any immediate workaround. By the way, I know this is not what you asked, but x509 is also supported for the cli [1]. Carlos, thanks a lot for reply! Then I will probably consider the use of x509 authentication method for both cli and sunstone. Best regards, Nikolay. Regards [1] http://opennebula.org/documentation:rel4.2:x509_auth -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org http://www.OpenNebula.org | cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula On Mon, Nov 25, 2013 at 12:13 PM, kna...@gmail.com mailto:kna...@gmail.com wrote: Dear community, I wonder if it is possible for a single user to usetwo different authentication methods for different interfaces: e.g. ssh authentication method for cli and x509 one for sunstone? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org mailto: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] different authentication methods for different interfaces
Dear community, I wonder if it is possible for a single user to usetwo different authentication methods for different interfaces: e.g. ssh authentication method for cli and x509 one for sunstone? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error creating image in opennebula for OpenVZ
Hi Catanlia, The problem could be because of datastore by default unpack image whereas it is not acceptable in case of OpenVZ. To workaround that one can add NO_DECOMPRESS=yes in datastore config. For more info see [1]. Hope it helps. Regards, Nikolay. [1] http://opennebula.org/**documentation:rel4.2:fs_ds%3Chttp://opennebula.org/documentation:rel4.2:fs_ds Catalina Quinde wrote on 12/11/13 00:34: Hi friends, Other problem: I made a VM on OpenVZ node, then this VM I have backed up to a file tar.gz, create an image file in order to register the image in Opennebula but to make image the status is err, this steps I followed: - The file is /var/lib/images/VMopenvzamd64.tar.gz - The template for image contains: oneadmin@ubuntuOpNeb:~$ cat /var/lib/images/VMopenvzamd64.one NAME = VMopenvzamd64 PATH = /var/lib/images/VMopenvzamd64.tar.gz TYPE = OS DESCRIPTION = Pruebas VM OpenVZ - This command to register image oneadmin@ubuntuOpNeb:~$ oneimage create /var/lib/images/VMopenvzamd64.one -d default ID: 14 - This displays comand oneimage show 14 oneadmin@ubuntuOpNeb:~$ oneimage show 14 IMAGE 14 INFORMATION ID : 14 NAME : VMopenvzamd64 USER : oneadmin GROUP : oneadmin DATASTORE : default TYPE : OS REGISTER TIME : 11/11 14:47:30 PERSISTENT : No SOURCE : PATH : /var/lib/images/VMopenvzamd64.tar.gz SIZE : 189M STATE : err RUNNING_VMS: 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- IMAGE TEMPLATE DESCRIPTION=Pruebas VM OpenVZ DEV_PREFIX=hd ERROR=Mon Nov 11 14:48:39 2013 : Error copying image in the datastore: Error copying /var/lib/images/VMopenvzamd64.tar.gz to /var/lib/one/datastores/1/c1d6f4ca8d3b8d2c7aee8705b43019d1 VIRTUAL MACHINES Please help me is very important. ___ 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 detect a host of free disk??????
Hi Carlos, Thanks a lot for taking into account users' feature requests! That's one (among others) of the good distinctive featureof OpenNebula team. I would just propose to implementmetrics for the disk space similar to the host memory resources: allocated disk space and the real used one. Something like HOST SHARES TOTAL MEM : 2.9G USED MEM (REAL) : 441.7M USED MEM (ALLOCATED) : 4G USED DISK SPACE (REAL):200G USED DISK SPACE (ALLOCATED):520G Regards, Nikolay. Carlos Martín Sánchez wrote on 04/12/12 14:42: Hi, This is something we should definitely implement sooner or later [1], thanks for your feedback. Cheers [1] http://dev.opennebula.org/issues/1678 -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org http://www.OpenNebula.org | cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula On Fri, Nov 30, 2012 at 8:22 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Valentin Bud wrote on 30/11/12 11:19: Hello World, On Fri, Nov 30, 2012 at 10:58:54AM +0800, ?? wrote: Hi??all?? Can opennebula have the ability to detect the size of the host node idle disk?? I always encounter this problem?? The new virtual machine is scheduled to a node and then the vm is failed.Because the node has no space left. So, I think the free size of the disk space should be take into account. I think this would be a usefull feature to have. +1 I also would vote for adding disk resources as one more type of ones to be tracked and taking into account by OpenNebula. Regards, Nikolay. Cheers and Goodwill, v ?? tel: 13718913184 mail: zhan...@neusoft.com mailto:zhan...@neusoft.com http://www.neusoft.com --- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org mailto: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] save changes in persistent VM disk without shutdown
Hello all! I wonder if there is any way to save changes made in persistent VM disk without shutting down that VM? The 'onevm stop' command saves persistent VM disk in /var/lib/one/datastore/0/VMID on the front-end but not in /var/lib/one/datastores/1/ where all registered in datastore VM images are kept. 'onevm saveas' command is not allowed for persistent VM disk. So in order to save changes made in persistent VM disk (what can be treated as making backup) these VM has to be shut down and another VM has to be created e.g. by executing 'onetemplate instantiate' command what resets accounting and history and not preserving assigned resourced. Best regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] persistent size of persistent images?
Hi! I am using OpenNebula 3.8.1 with OpenVZ hypervisor support enabled. I noticed that the value of the corresponding persistent image parameter is not changed even if actual size of the file has changed. $ oneimage list|grep persistent ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 4 oneadmin oneadmin test persistent default 172M OS Yes used1 $ oneimage show 4|egrep SOURCE|PATH|SIZE SOURCE : /var/lib/one/datastores/1/6900190977e9afc6d9290b8aef16f768 PATH : /var/lib/one/datastores/1/2b0ad99f99eaa99458769eb53951b685 SIZE : 172M The image with ID 4 was created as clone of the image with ID 1 by 'oneimage clone' command. The image with ID 1 has a size 172MB: $ oneimage show 1|egrep SOURCE|PATH|SIZE SOURCE : /var/lib/one/datastores/1/2b0ad99f99eaa99458769eb53951b685 PATH : /tmp/sl-6-x86_64.tar.gz SIZE : 172M and that corresponds to its real size on the file system: $ ll -h /var/lib/one/datastores/1/2b0ad99f99eaa99458769eb53951b685 -rw-rw 1 oneadmin oneadmin 172M Oct 3 17:51 /var/lib/one/datastores/1/2b0ad99f99eaa99458769eb53951b685 The real size of modified and saved persistent image with ID 4 has changed on FS: $ ll -h /var/lib/one/datastores/1/6900190977e9afc6d9290b8aef16f768 -rw-rw 1 oneadmin oneadmin 181M Nov 16 15:41 /var/lib/one/datastores/1/6900190977e9afc6d9290b8aef16f768 but 'oneimage list' and 'oneimage show' still show the same size equals to the size of initial image with ID 1: $ oneimage list|egrep ^ 1|4 1 oneadmin oneadmin SL 6.3 x86_64 default 172M OS No rdy 0 4 oneadmin oneadmin test persistent default 172M OS Yes used1 So I wonder if someone observes the same behavior and someone does then if it is bug? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM description/comment
Daniel Molina wrote on 23/10/12 20:23: On 23 October 2012 14:31, kna...@gmail.com mailto:kna...@gmail.com wrote: Dear Ruben, first of all, sorry for delay with reply! Please, see my comments inline. Ruben S. Montero wrote on 19/10/12 00:34: Hi Ricardo + Nikolay You are right, one thing we have in our short roadmap is to add a generic metada section for VMs. This metadata could be updated using the *update* functionality currently present for other commands. sounds encouraging! Is any information when such feature is planned to be implemented? Just to give you the rationale behind not having this yet. As you probably know the VM template is extended once the VM created with control data (e.g. DISK_ID's, specifric LEASES, SOURCE for DISK...) for obvious reasons we do not want a user to modify this. seems reasonable So we will split this in two, one for the control data and other to be used/modified by the user. For now, as Nikolay suggests this limit somehow part of the out-of-the-box functionality (e.g. adding DESCRIPTION in a bulk submission), this functionality will need a custom program using OCA. About parsing the out put of onevm show, note that you can always get the full pool information with onevm list -x (TEMPLATE included) the onevm list command just parse and pick some of this info and present it in a tabular form... Thanks a lot for detailed reply and explanations! JFYI You can easily add new columns to the onevm list command. The following patch adds a new DESCRIPTION column to the onevm list output: https://gist.github.com/8f8499704cbee0e5db84 The onevm.yaml can be defined per user in $HOME/.one/onevm.yaml or globally in /etc/one/cli/onevm.yaml Hi Daniel, Thanks for your patch and efforts! But I wasn't able to archive desired behavior. I did the following changes: $ diff /usr/lib/one/ruby/cli/one_helper/onevm_helper.rb{,.orig} 138,141d137 column :DESCRIPTION, DESCRIPTION, :size=12 do |d| d[TEMPLATE][DESCRIPTION] end 143c139 :TIME, :DESCRIPTION --- :TIME $ cp /etc/one/cli/onevm.yaml ~/.one/ $ diff ~/.one/onevm.yaml /etc/one/cli/onevm.yaml 42,46d41 :DESCRIPTION: :desc: DESCRIPTION :size: 20 57d51 - :DESCRIPTION With help of 'onetemplate update' command I added DESCRIPTION parameter $ onetemplate show 5|grep -i description DESCRIPTION=description and instantiate a VM based on that template. Although 'onevm show VMID' shows the presence of DESCRIPTION parameter 'onevm list' doesn't show DESCRIPTION column (neither column name nor content). 'one stop' and 'one start' didn't help. If you have any guess why it is so then please share it. Regards, Nikolay. Cheers Regards, Nikolay. THANKS FOR YOUR FEEDBACK! On Thu, Oct 18, 2012 at 10:21 AM, kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com wrote: Hi Ruben, Ruben S. Montero wrote on 17/10/12 14:42: Hi Why not using the name of the VM for this?. The name of the VM I would like to use to put hostname in it and perhaps use $NAME in contextualization as e.g. CONTEXT=[ HOSTNAME=$NAME.domain.org http://NAME.domain.org http://NAME.domain.org ] But that would make a sense in case when one could be possible to specify IP address in 'onetemplate instantiate' command. Also if you want to append any arbitrary data to the VM (at creation) you can simply added to the VM template as: DESCRIPTION=this is a web server, use 1234 as root password This will be stored in the template ans can be queried with the onevm show command or in the Template tab in Sunstone As far as I understand that will work for a creation of a single VM but won't if I need to create a bunch of VMs with help of 'onetemplate instantiate' command. Is there any way to modify certain deployed VM's config to add arbitrary data like e.g. DESCRIPTION field (something like 'onevm update')? Moreover, in my opinion it's not convenient to parse the output of 'onevm show' command when I need to get a list of all VMs e.g. what have a word web in its description. It would be more convenient to have a separate column for that as I wrote before. But probably to do that there is a need to modify DB schema which is not desirable I guess. Regards, Nikolay. Cheers Ruben On Tue, Oct 16, 2012 at 4:02 PM, kna...@gmail.com
Re: [one-users] VM description/comment
Dear Ruben, first of all, sorry for delay with reply! Please, see my comments inline. Ruben S. Montero wrote on 19/10/12 00:34: Hi Ricardo + Nikolay You are right, one thing we have in our short roadmap is to add a generic metada section for VMs. This metadata could be updated using the *update* functionality currently present for other commands. sounds encouraging! Is any information when such feature is planned to be implemented? Just to give you the rationale behind not having this yet. As you probably know the VM template is extended once the VM created with control data (e.g. DISK_ID's, specifric LEASES, SOURCE for DISK...) for obvious reasons we do not want a user to modify this. seems reasonable So we will split this in two, one for the control data and other to be used/modified by the user. For now, as Nikolay suggests this limit somehow part of the out-of-the-box functionality (e.g. adding DESCRIPTION in a bulk submission), this functionality will need a custom program using OCA. About parsing the out put of onevm show, note that you can always get the full pool information with onevm list -x (TEMPLATE included) the onevm list command just parse and pick some of this info and present it in a tabular form... Thanks a lot for detailed reply and explanations! Regards, Nikolay. THANKS FOR YOUR FEEDBACK! On Thu, Oct 18, 2012 at 10:21 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Hi Ruben, Ruben S. Montero wrote on 17/10/12 14:42: Hi Why not using the name of the VM for this?. The name of the VM I would like to use to put hostname in it and perhaps use $NAME in contextualization as e.g. CONTEXT=[ HOSTNAME=$NAME.domain.org http://NAME.domain.org ] But that would make a sense in case when one could be possible to specify IP address in 'onetemplate instantiate' command. Also if you want to append any arbitrary data to the VM (at creation) you can simply added to the VM template as: DESCRIPTION=this is a web server, use 1234 as root password This will be stored in the template ans can be queried with the onevm show command or in the Template tab in Sunstone As far as I understand that will work for a creation of a single VM but won't if I need to create a bunch of VMs with help of 'onetemplate instantiate' command. Is there any way to modify certain deployed VM's config to add arbitrary data like e.g. DESCRIPTION field (something like 'onevm update')? Moreover, in my opinion it's not convenient to parse the output of 'onevm show' command when I need to get a list of all VMs e.g. what have a word web in its description. It would be more convenient to have a separate column for that as I wrote before. But probably to do that there is a need to modify DB schema which is not desirable I guess. Regards, Nikolay. Cheers Ruben On Tue, Oct 16, 2012 at 4:02 PM, kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com mailto:kna...@gmail.com wrote: Dear list, I wonder if there is any way to specify some text as a description/comment for a certain VM in order to be able toquery such info later e.g. during 'onevm list' command execution. I just don't want to get lost in all my VMs and which one is for what. I would like to have something like $ onevm list ID USER GROUPNAMESTAT UCPU UMEM HOST TIME DESCRIPTION 11 oneadmin oneadmin one-11 runn 100 1G host1 0d 02h07 web-server 12 oneadmin oneadmin one-12 runn 1001G host1 0d 02h03 mail-server 13 oneadmin oneadmin one-13 runn100 1G host2 0d 00h17 development server Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org mailto:Users@lists.opennebula.org mailto: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 http://www.OpenNebula.org http://www.OpenNebula.org | rsmont...@opennebula.org mailto:rsmont...@opennebula.org mailto:rsmont...@opennebula.org mailto:rsmont...@opennebula.org | @OpenNebula -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org http://www.OpenNebula.org | rsmont...@opennebula.org mailto:rsmont...@opennebula.org | @OpenNebula
Re: [one-users] custom set of columns to display in 'onevm list' command
Javier, thanks a lot for a prompt reply! Maybe it does make a sense to mention in onevm man page that columns names have to be in upper case. Regards, Nikolay. Javier Fontan wrote on 18/10/12 12:04: Use upper case names for the columns: $ onevm list --list ID,NAME,UCPU If you want to make more permanent changes you can also modify the file /etc/one/cli/onevm.yaml. :default section is an array with the columns displayed: --8-- :default: - :ID - :USER - :GROUP - :NAME - :STAT - :UCPU - :UMEM - :HOST - :TIME --8-- On Thu, Oct 18, 2012 at 9:50 AM, kna...@gmail.com wrote: Dear community, I'd like to slightly modifya set of columns what are displayed as an output of'onevm list' command. For that purpose as far as I understand one can use '-l|--list' option of list command according to onevm's man page: [...] · list [filterflag] Lists VMs in the pool valid options: list, delay, xml, numeric, kilobytes OPTIONS [...] -l, --list x,y,z Selects columns to display with list command Itried as below: $ onevm list --list id,name,ucpu Column id not defined. $ onevm list --list id Column id not defined. $ onevm list --list user Column user not defined. $ onevm list --list cpu Column cpu not defined. $ onevm list --list ucpu Column ucpu not defined. $ onevm list --list id,ucpu Column id not defined. So I wonder what the proper way to specify a list of columns to display by 'onevm list' command? Regards, Nikolay. ___ 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] hostname and IP address as arguments for 'onetemplate instantiate' command
Dear community, I wonder if there is a way to assign a certain IP address for particular VM created and deployed by 'onetemplate instantiate' command? Right now it looks like IP is chosen randomly from the pool of free IP addresses (leases). Moreover from time to time I need to create a bunch of identical VMs which differ only by hostnames and corresponding IP addresses. It seems that the use of 'onetemplate instantiate' command looks reasonable in that case but I don't know how to pass the IP addresses. I would assume something like $ onetemplate instantiate --name vm%i -m 5 --ip 10.10.10.%i with the following network definition and contextualization section in template description as below: NIC=[ NETWORK_ID=0 ] CONTEXT=[ HOSTNAME=$NAME.domain.org, NAMESERVER=$NETWORK[DNS, NETWORK_ID=0 ] ] I can't use DHCP since venet is used as network devices (I am using OpenVZ hypervisor) and venet doesn't support DHCP. So I wonder what the possible ways to pass hostname and corresponding IP address to the VM deployment file are to be parsed by deploy script and make a proper OpenVZ config file? Iam using OpenNebula 3.6 installed from rpm. Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onevm saveas : [ImageAllocate] Error trying to CREATE IMAGE No PATH in template.
Hi Shi, My problem was that I was using a development branch of OpenNebula-2.2.1 instead of the stable one. The stable version didn't give me such error and solved my problem. Regards, Nikolay. Shi Jin wrote on 24/09/11 02:00: Hi there, I am getting the same error in 3.0RC2. $ onevm saveas 69 0 saved Windows [VirtualMachineSaveDisk] Error allocating a new image. No PATH in template. Knawnd, did you solve this problem? Thanks. Shi On Tue, Jun 7, 2011 at 8:00 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Hello! I am trying to test 'onevm saveas' command for my OpenVZ VMs and I get the following error: $ onevm saveas 57 0 vps145 saved disk [ImageAllocate] Error trying to CREATE IMAGE No PATH in template oned.log: [...] ue Jun 7 17:50:49 2011 [ReM][D]: ImageInfo method invoked Tue Jun 7 17:50:49 2011 [ReM][D]: ImageAllocate invoked Tue Jun 7 17:50:49 2011 [IMG][E]: No PATH in template. Tue Jun 7 17:50:49 2011 [ReM][E]: [ImageAllocate] Error trying to CREATE IMAGE No PATH in template. [...] DISK was defined in VM template as DISK = [ IMAGE = centos-5-x86 ] OS image was created from the following file: $ cat centos-5.x86.one.img NAME = centos-5-x86 PATH = /srv/cloud/one/one-2.1.8/var/__images/centos-5-x86.tar.gz PUBLIC= YES DESCRIPTION = CentOS 5 x86 OpenVZ template $ oneimage show 1 IMAGE INFORMATION ID : 1 NAME : centos-5-x86 TYPE : OS REGISTER TIME : 03/30 19:21:45 PUBLIC : Yes PERSISTENT : No SOURCE : /srv/cloud/one/one-2.2.0/var//__images/__70f38bbaf574eef06b8e3ca4e8ebee__3eb1f1786d STATE : used RUNNING_VMS: 1 IMAGE TEMPLATE DESCRIPTION=CentOS 5 x86 OpenVZ template DEV_PREFIX=sd NAME=centos-5-x86 PATH=/srv/cloud/one/one-2.1.8/__var/images/centos-5-x86.tar.gz OpenNebula 2.2.0, CentOS 5.5. What can be the reason of the error described above? Thanks! Nikolay. _ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Shi Jin, Ph.D. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula Express Install
you should check oned.log for errors. Regards, Nikolay. srivatsan jagannathan wrote on 22/09/11 21:38: Hi all, No error in install.log (front end and 2 nodes) but, onehost list ID NAME CLUSTER RVM TCPU FCPU ACPUTMEM FMEM STAT 3 cloud8default0 0 0100 0K 0K on 5 cloud7default0 0 0100 0K 0K on Regards, Srivatsan J. ___ 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] Error monitoring host
Hi Humberto, Just a guess. What the output of the command 'grep nodeinfo_text $ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node? I have nodeinfo_text = `virsh -c qemu:///system nodeinfo` But it looks like you should change it to virsh -c qemu+ssh:///system HTH, Nikolay. Humberto N. Castejon Martinez wrote on 21/09/11 19:21: Hi, I know the problem I am going to report has already been discussed, but what I have read from previous discussions has not helped. My Opennebula front-end has problems to monitor one of my hosts. I get the following log messages: Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm joker; else $ Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again. Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password). Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255 Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Could not monitor host joker. The first thing that I have noticed is that run_probes is not in /var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can that be the source of the problem? If I executed from my front end machine the following command as root, everything seems to work ok: /srv/cloud/one/lib/remotes/im/run_probes kvm joker However, if i execute it as oneadmin, i get the following error: Connecting to uri: qemu:///system error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission denied error: failed to connect to the hypervisor Error executing kvm.rb ARCH=x86_64 MODELNAME=Intel(R) Xeon(R) CPU E5540 @ 2.53GHz I have checked, and oneadmin is member of the cloud group in joker, I have specified unix_sock_group = cloud in /etc/libvirt/libvirtd.conf and libvirt-sock seems to have the right permissions: srwxrwx--- 1 root cloud 0 2011-09-21 17:02 /var/run/libvirt/libvirt-sock So i do not know why I get the permission denied message. However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to connect to virsh, w/o entering a password. So i do not really know what the problem is, and hope you can help me. The funny thing is that it used to work perfectly, but it stopped working suddenly, without me changing anything (or at least I think so). Cheers, Humberto ___ 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] (no subject)
Hi, Humberto N. Castejon Martinez wrote on 20/09/11 17:17: Hi, I am running Opennebula 2.1.8. When specifying the context for a VM, if I specify a URL in the files attribute, the contextualization fails. Consider, for example, the following context: CONTEXT=[ files=http://domain.com/test.xml; ] When I try to create the VM with such context, I get the following error message: tm_context.sh: Executed mkdir -p /srv/cloud/one/var//106/images/isofiles. tm_context.sh: Executed cp -R /srv/cloud/one/var/106/context.sh /srv/cloud/one/var//106/images/isofiles. tm_context.sh: ERROR: Command /usr/bin/wget -O /srv/cloud/one/var//106/images/isofiles http://domain.com/test.xml; failed. as far as I understand the file (http://domain.com/test.xml) needs to be put into isofiles dir ( /srv/cloud/one/var//106/images/isofiles) whereas -O option for wget means that file has to be saved as one specified in argument of -O option. I would try to replace -O option of wget command in line exec_and_log $WGET -O $ISO_DIR $f of $ONE_LOCATION/lib/tm_commands/driver/tm_context.sh file by -P option i.e. exec_and_log $WGET -P $ISO_DIR $f HTH, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenVZ
Hi Borja, I will go for option 2. Thanks! Nikolay. Borja Sotomayor wrote on 12/09/11 17:10: Hi Nikolay, Please, suggest the best way to share a piece of code for some basic OpenVZ support in OpenNebula and howto doc I wrote. For the moment the code is available only on my development machine and howto is in docs.google.com. You have two options: - If you meet the requirements for an ecosystem component, we encourage you to contribute it as such (you can find details about the requirements and the procedure here: http://www.opennebula.org/community:ecosystem) - If not, you could add your code and howto to our community wiki: http://opennebula.org/documentation:community:index (you will need an account to do this; you can find instructions on the wiki itself) Cheers! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] problem with xmlparser installation
Hi Steve, I faced with the same problem trying to prepare a build environment for OpenNebula-2.2.1 on CentOS-5.6 x86_64: Steven Timm wrote on 09/09/11 18:34: But still get stuck on nokogiri (needs ruby 1.8.7), rake (needs rubygems 1.3.2) xmlparser (depends on rake) [root@FN]$ gem install nokogiri rake xmlparser The execution of that command may fail with error like ERROR: Error installing nokogiri: nokogiri requires Ruby version = 1.8.7 ERROR: Error installing rake: rake requires RubyGems version = 1.3.2 Building native extensions. This could take a while... ERROR: Error installing xmlparser: ERROR: Failed to build gem native extension. rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib sh: rake: command not found Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/gem_make.out = I installed ruby-enterprise-1.8.7-3 ruby-enterprise-rubygems-1.3.2-2 from Southbridge repo (http://rpms.southbridge.ru/) $ yum --enablerepo=southbridge-stable install ruby-enterprise-1.8.7-3 ruby-enterprise-rubygems-1.3.2-2 and could successfully install nokogiri and rake: $ yum install libxml2-devel.x86_64 libxslt-devel.x86_64 $ gem install nokogiri rake but xmlparser installation via command 'gem install xmlparser' fails (gem_make.out is attached). Does someone know how to fix that? Regards, Nikolay. /usr/local/bin/ruby -rubygems /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake RUBYARCHDIR=/usr/local/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib RUBYLIBDIR=/usr/local/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib rake/gempackagetask is deprecated. Use rubygems/package_task instead rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) /usr/local/bin/ruby mkrf_conf.rb rake gcc -fPIC -g -O2 -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/site_ruby/1.8 -I. -c xmlparser.c xmlparser.c:50:24: error: xmlparse.h: No such file or directory xmlparser.c:106: error: expected specifier-qualifier-list before âXML_Parserâ xmlparser.c: In function âXMLParser_freeâ: xmlparser.c:158: error: âXMLParserâ has no member named âparserâ xmlparser.c:159: error: âXMLParserâ has no member named âparserâ xmlparser.c:160: error: âXMLParserâ has no member named âparserâ xmlparser.c: In function âXMLParser_markâ: xmlparser.c:169: error: âXMLParserâ has no member named âparentâ xmlparser.c:171: error: âXMLParserâ has no member named âparentâ xmlparser.c:171: error: âXMLParserâ has no member named âparentâ xmlparser.c:172: error: âXMLParserâ has no member named âparentâ xmlparser.c: In function âtaintParserâ: xmlparser.c:178: error: âXMLParserâ has no member named âtaintedâ xmlparser.c:179: error: âXMLParserâ has no member named âparentâ xmlparser.c:179: error: âXMLParserâ has no member named âcontextâ xmlparser.c:181: error: âXMLParserâ has no member named âparentâ xmlparser.c:181: error: âXMLParserâ has no member named âparentâ xmlparser.c: In function âtaintObjectâ: xmlparser.c:188: error: âXMLParserâ has no member named âtaintedâ xmlparser.c: At top level: xmlparser.c:205: error: expected â;â, â,â or â)â before â*â token xmlparser.c:233: error: expected â;â, â,â or â)â before â*â token xmlparser.c:247: error: expected â;â, â,â or â)â before â*â token xmlparser.c:262: error: expected â;â, â,â or â)â before â*â token xmlparser.c:278: error: expected â;â, â,â or â)â before â*â token xmlparser.c:294: error: expected â;â, â,â or â)â before â*â token xmlparser.c:319: error: expected â;â, â,â or â)â before â*â token xmlparser.c:342: error: expected â)â before âxmlparserâ xmlparser.c:689: error: expected â;â, â,â or â)â before â*â token xmlparser.c:712: error: expected â;â, â,â or â)â before â*â token xmlparser.c:722: error: expected â;â, â,â or â)â before â*â token xmlparser.c:733: error: expected â;â, â,â or â)â before â*â token xmlparser.c:745: error: expected â;â, â,â or â)â before â*â token xmlparser.c:769: error: expected â;â, â,â or â)â before â*â token xmlparser.c:787: error: expected â;â, â,â or â)â before â*â token xmlparser.c:802: error: expected â)â before âxmlparserâ xmlparser.c:1272: error: expected â;â, â,â or â)â before â*â token xmlparser.c: In function âXMLParser_newâ: xmlparser.c:1414: error: âXMLParserâ has no member named âparserâ xmlparser.c:1416: error: âXMLParserâ has no member named âtaintedâ xmlparser.c:1417: error: âXMLParserâ has no member named
Re: [one-users] problem with xmlparser installation
but xmlparser installation via command 'gem install xmlparser' fails (gem_make.out is attached). my problem was in missing expat-devel rpm installed. HTH, Nikolay. Does someone know how to fix that? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] [OpenNebula-2.2.1] add a custom attribute to image
Hi Tino, Sorry for the noise. It seems I specified the arguments for 'oneimage' command in a wrong sequence: oneimageimage_id addattr OSTEMPLATE centos-5 whereas the proper format is $ oneimage addattr image_id OSTEMPLATE centos-5 That's why I was getting a help content. It's even possible to specified custom attribute in image description file and that is really convenient! But now the problem is that such attribute is not passed to xml deployment.0 file and hence can't be used. Is there any way to transfer a custom image attribute to VM deployment.0 file? Regards, Nikolay. Tino Vazquez wrote on 31/08/11 20:30: Hi Nikolay, Can you post the relevant lines in oned.log when you run the oneimage addattr command? Also, the oneimage show before and after. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Aug 26, 2011 at 1:22 PM,kna...@gmail.com wrote: Hi! Is it possible to add a custom attribute to image registered in Image Repository using OpenNebula 2.2.1? For example, the command 'oneimageimage_id addattr OSTEMPLATE centos-5' produces the help on oneimage usage and doesn't add specified attribute. So I wonder if it's expected behavior or I am doing something wrong? I am looking for a way to pass a OpenVZ specific parameter to VM deployment file. For the time being I am using the image attribute NAME but as it is explained in [1] such attribute has to be unique among all registered images i.e. it is impossible to register two images in Image Repository with the same NAME. [1] http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002890.html Regards, Nikolay. ___ 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] hooks execution on remote nodes without shared ONE installation dir
Hi Tino, Tino Vazquez wrote on 29/08/11 17:17: Hi Nikolay, Ok, if not on system-wide, please copy them to $ONE_LOCATION/var/remotes, and see how it goes. A hook script copied into $ONE_LOCATION/var/remotes on front-end node appears on CNs in $SCRIPTS_REMOTE_DIR. But it's written the following in [1] and oned.conf (in Hook Manager Configuration): # Virtual Machine Hooks (VM_HOOK) defined by: [...snip...] # command : path can be absolute or relative to $ONE_LOCATION/share/hooks # case of self-contained installation or relative to # /usr/share/one/hooks in case of system-wide installation The above is true only for local hooks (i.e. hooks executed on front-end node). If a hook has to be executed on remote node (remote=yes) then a path has to correspond to the hook script location on CN and thus the citation above is almost never true (it's true only if admin creates exactly the same directory structure for $ONE_LOCATION/share/hooks in case of self-contained installation or /usr/share/one/hooks in case of system-wide installation and puts there the hook script). I think that has to be explicitly mentioned in [1] and oned.conf. By the way, it's not possible to use $SCRIPTS_REMOTE_DIR variable when defining a path for remote hook like VM_HOOK = [ name = vzfirewall, on= RUNNING, command = $SCRIPTS_REMOTE_DIR/hooks/vzfirewall.sh, arguments = , remote= yes ] since an argument for command parameter is translated into $ONE_LOCATION/$SCRIPTS_REMOTE_DIR/hooks/vzfirewall.sh. The value of $SCRIPTS_REMOTE_DIR is unknown for hook manager (?) and/or cluster node(?) (so it's empty). The hook manager is trying to execute $ONE_LOCATION//hooks/vzfirewall.sh and fails. So admin has to specify the value of $SCRIPTS_REMOTE_DIR twice in oned.conf: the first time when defining the variable itself and the second one - for specifying a absolute path of the remote hook on CN. It would be more convenient if admin have a possibility to refer to $SCRIPTS_REMOTE_DIR variable defining remote hooks path. [1] http://opennebula.org/documentation:rel2.2:hooks Thanks for helping me with understanding that issue! Hopefully my feedback is also useful. Nikolay. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Mon, Aug 29, 2011 at 9:19 AM,kna...@gmail.com wrote: any news/help on that? Nikolay. kna...@gmail.com wrote on 23/08/11 15:16: Tino Vazquez wrote on 23/08/11 14:45: Hi, Let's try this, since this seems like a bug. Could you please copy the hook into /var/lib/one/remotes and onehost sync again? Since in my deployment scenario OpenNebula is installed in self-contained mode there was no such dir as /var/lib/one/. So I created it: [root@FN]$ mkdir -p /var/lib/one/remotes [root@FN]$ chown oneadmin:cloud -R /var/lib/one/ And then [oneadmin@FN]$ cp $ONE_LOCATOIN/share/hooks/* /var/lib/one/remotes/ [oneadmin@FN]$ ll /var/lib/one/remotes/ total 28 -rwxr-xr-x 1 oneadmin cloud 3589 Aug 23 15:59 ebtables-flush -rwxr-xr-x 1 oneadmin cloud 3529 Aug 23 15:59 ebtables-kvm -rwxr-xr-x 1 oneadmin cloud 3459 Aug 23 15:59 ebtables-xen -rwxr-xr-x 1 oneadmin cloud 3084 Aug 23 15:59 host_error.rb -rwxr-xr-x 1 oneadmin cloud 2408 Aug 23 15:59 image.rb -rwxr-xr-x 1 oneadmin cloud 2151 Aug 23 15:59 image.rb.bk -rwxr-xr-x 1 oneadmin cloud 42 Aug 23 15:59 vzfirewall.sh [oneadmin@FN]$ onehost sync During next monitoring cycle the driver scripts had been updated on CNs (i.e. the content of /tmp/one/im/ovz/ and /tmp/one/vmm/ovz/ dirs) but no hooks scripts appeared in /tmp/one on CNs (checked by running 'find /tmp/one/ -name vzfirewall.sh'). So it looks like hooks scripts were not copied even from /var/lib/one/remotes. More ideas? Thanks! Nikolay. Regards, -Tino ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] [OpenNebula-2.2.1] add a custom attribute to image
Hi! Is it possible to add a custom attribute to image registered in Image Repository using OpenNebula 2.2.1? For example, the command 'oneimage image_id addattr OSTEMPLATE centos-5' produces the help on oneimage usage and doesn't add specified attribute. So I wonder if it's expected behavior or I am doing something wrong? I am looking for a way to pass a OpenVZ specific parameter to VM deployment file. For the time being I am using the image attribute NAME but as it is explained in [1] such attribute has to be unique among all registered images i.e. it is impossible to register two images in Image Repository with the same NAME. [1] http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002890.html Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] tune 'onevm saveas' behavior for OpenVZ
Any help on that, please? That is the only thing left to finish with implementing minimal OpenVZ support in OpenNebula 2.2.1. As soon as a stable version of OpenNebula 3.0 will be release I am planning to start porting existing implementation of OpenVZ support for 2.2.1 to 3.0. I already wrote a HowTo doc and can share it if someone is interested in. Regards, Nikolay. kna...@gmail.com wrote on 12/08/11 11:59: kna...@gmail.com wrote on 28/07/11 20:15: So for now I would like to make a 'onevm saveas' command work with OpenVZ VMs as well as if the SAVE sub-attribute is set to yes for OpenNebula 2.2.1. As far as I understand both these features trigger $ONE_LOCATOIN/share/hooks/image.rb script. So in order to achieve a desired behavior a command like 'tar -czf $VM_DIR/VMID/images/disk.0 -C /vz/private/VMID/ *' must be executed in the beginning of that hook (image.rb) what would replace the original disk.0 file. Is that correct? $ONE_LOCATOIN/share/hooks/image.rb is executed on front-end node but VM working dir needs to be archived on cluster node. So I see not so much possibilities: 1) add the execution of tar command on remote node in image.rb hook which is executed on local (front-end) node i.e. such approach breaks the local/remote hooks logic; 2) create one more custom hook what has to be executed on remote node and what would archive VM working dir. But there are several issues here: - how one can make sure that custom hook will be executed before image.rb one since both of them should be triggered when VM reaches the DONE state, - how make that custom hook trigger only upon 'onevm saveas' command execution or if SAVE sub-attribute of DISK attribute is set to YES. Any help on that is highly appreciated! Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
Tino Vazquez wrote on 23/08/11 13:54: Hi Nikolay, Hi Tino, The following are the location of the scripts for the FE * System wide = /usr/share/one/hooks * Self contained = $ONE_LOCATION/share/hooks The following the location in the CNs SCRIPTS_REMOTE_DIR=/var/tmp/one I set SCRIPTS_REMOTE_DIR to /tmp/one in oned.conf. Drivers scripts are there but hooks ones are missing. [CN]$ ll /tmp/one/ total 8 drwxr-xr-x 6 oneadmin cloud 4096 Aug 18 20:41 im drwxr-xr-x 5 oneadmin cloud 4096 Aug 18 20:41 vmm Should I provide more details? I tried to mention them in my initial email of that thread [1]. [1] http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006084.html Thanks for help! Nikolay. This should be writable by oneadmin and can be changed. Please let us know if this is not the seen behavior. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Mon, Aug 22, 2011 at 3:38 PM,kna...@gmail.com wrote: Tino Vazquez wrote on 22/08/11 13:54: Hi Nikolay, Hi Tino, thanks for reply but it doesn't clarify much for me (please, see below). For OpenNebula 2.2, the location of the remotes are * System wide = /usr/share/one/hooks * Self contained = $ONE_LOCATION/share/hooks I have OpenNebula (version 2.2.1) installed in self-contained mode. Are those hooks locations for 1) front-end node or 2) for CNs? If it is for CNs then it looks like it is mandatory to have $ONE_LOCATION/share/hooks mounted on all CNs. Or it's not true and one can have non-shared FS setup? Carlos wrote in [1]: === The mechanism you are referring to is the 'onehost sync', it has to be executed as oneadmin in the front-end. This will force the hooks and drivers scripts to be copied to the hosts in the next monitorization cycle. === So one can assume that it's not mandatory to have shared $ONE_LOCATION/share/hooks dir and in case of non-shared $ONE_LOCATION/share/hooks dir the hooks have to be copied on CNs. But it didn't happen in my case. So my questions still are the following: 1) is it mandatory to have shared $ONE_LOCATION/share/hooks on CNs? If the answer is 'no' then do I have to create on CNs the same directory structure (with proper permissions for oneadmin user) as on FN to make hooks be available in the same path on both FN and CNs? 2) is $SCRIPTS_REMOTE_DIR for specifying remote path for drivers scripts only or for hooks as well? 3) is there any way to configure remote location for hooks scripts (e.g. $SCRIPT_REMOTE_DIR/hooks)? Sorry about taking your time with that issue. [1] http://www.mail-archive.com/users@lists.opennebula.org/msg03892.html Thanks in advance, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
Tino Vazquez wrote on 23/08/11 14:45: Hi, Let's try this, since this seems like a bug. Could you please copy the hook into /var/lib/one/remotes and onehost sync again? Since in my deployment scenario OpenNebula is installed in self-contained mode there was no such dir as /var/lib/one/. So I created it: [root@FN]$ mkdir -p /var/lib/one/remotes [root@FN]$ chown oneadmin:cloud -R /var/lib/one/ And then [oneadmin@FN]$ cp $ONE_LOCATOIN/share/hooks/* /var/lib/one/remotes/ [oneadmin@FN]$ ll /var/lib/one/remotes/ total 28 -rwxr-xr-x 1 oneadmin cloud 3589 Aug 23 15:59 ebtables-flush -rwxr-xr-x 1 oneadmin cloud 3529 Aug 23 15:59 ebtables-kvm -rwxr-xr-x 1 oneadmin cloud 3459 Aug 23 15:59 ebtables-xen -rwxr-xr-x 1 oneadmin cloud 3084 Aug 23 15:59 host_error.rb -rwxr-xr-x 1 oneadmin cloud 2408 Aug 23 15:59 image.rb -rwxr-xr-x 1 oneadmin cloud 2151 Aug 23 15:59 image.rb.bk -rwxr-xr-x 1 oneadmin cloud 42 Aug 23 15:59 vzfirewall.sh [oneadmin@FN]$ onehost sync During next monitoring cycle the driver scripts had been updated on CNs (i.e. the content of /tmp/one/im/ovz/ and /tmp/one/vmm/ovz/ dirs) but no hooks scripts appeared in /tmp/one on CNs (checked by running 'find /tmp/one/ -name vzfirewall.sh'). So it looks like hooks scripts were not copied even from /var/lib/one/remotes. More ideas? Thanks! Nikolay. Regards, -Tino ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] tune 'onevm saveas' behavior for OpenVZ
Tino Vazquez wrote on 23/08/11 14:58: So for now I would like to make a 'onevm saveas' command work with OpenVZ VMs as well as if the SAVE sub-attribute is set to yes for OpenNebula 2.2.1. As far as I understand both these features trigger $ONE_LOCATOIN/share/hooks/image.rb script. So in order to achieve a desired behavior a command like 'tar -czf $VM_DIR/VMID/images/disk.0 -C /vz/private/VMID/ *' must be executed in the beginning of that hook (image.rb) what would replace the original disk.0 file. Is that correct? I would appreciate any help on that. Yes, this seems like a good approach. Have you tried it out? It look fine to me. I started to modify $ONE_LOCATION/share/hooks/image.rb file but then realized that hooks ($ONE_LOCATOIN/share/hooks/image.rb) is executed locally on FN whereas the VM directory packaging/archiving has to be done remotely i.e. on CNs. So adding to that hook something that needs to be done remotely (like ssh root@CN sudo tar -Sp -C -czf #{source_path} . would break remote and local hooks logic as I wrote before in [1] So I see not so much possibilities: 1) add the execution of tar command on remote node in image.rb hook which is executed on local (front-end) node i.e. such approach breaks the local/remote hooks logic; 2) create one more custom hook what has to be executed on remote node and what would archive VM working dir. But there are several issues here: - how one can make sure that custom hook will be executed before image.rb one since both of them should be triggered when VM reaches the DONE state, - how make that custom hook trigger only upon 'onevm saveas' command execution or if SAVE sub-attribute of DISK attribute is set to YES. So I am stuck at that point. As always any help on that is highly appreciated! Regards, Nikolay. [1] http://article.gmane.org/gmane.comp.distributed.opennebula.user/3948 Regards, and many thanks for the detailed emails (it does help a long way in understanding the issue ;)) -Tino ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
Tino Vazquez wrote on 19/08/11 20:01: Hi, Hi, Sorry, the default for SCRIPTS_REMOTE_DIR is /var/tmp/one. In my setup the $SCRIPTS_REMOTE_DIR is set to /tmp/one. The driver scripts appear there on CNs but hooks scripts don't. And that causes a problem when hook can not be found on CNs and hence can't be executed. Is $SCRIPTS_REMOTE_DIR for both drivers and hooks scripts or only for drivers one? I couldn't find the answer for that question in OpenNebula docs. Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Files specified in CONTEXT files sections are not copied to mounted iso image
Manish Sapariya wrote on 18/08/11 07:29: Hi, I have following context section. = CONTEXT=[ FILE=/opt/one/myconfig/contextdata/ipdevdns_root_rsa.pub The behavior you observe I guess is because you have to specify FILES instead of FILE. HTH, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
Tino Vazquez wrote on 18/08/11 19:27: Hi there, Hi Tino, The scripts are copied to /var/lib/one/remotes in the CNs, no shared directories are needed. For some reason the hooks scripts are not copied to CNs in /var/lib/one/remotes in my OpenNebula setup. The 'onehost sync' command was executed on ONE FN, a several monitoring cycles passed, $SCRIPTS_REMOTE_DIR was updated but no hooks scripts appears in /var/lib/one/remotes on CNs and there are no errors in oned.log. Is it possible to define a destination dir for hooks on CNs (e.g. $SCRIPTS_REMOTE_DIR/hooks)? Is it configurable at all? It is not clear for me how /var/lib/one/remotes dir can appear on CNs if only root has a write permission on /var/lib: $ su - oneadmin [oneadmin]$ mkdir /var/lib/one mkdir: cannot create directory `/var/lib/one': Permission denied [oneadmin]$ ll /var/|grep lib drwxr-xr-x 25 root root 4096 May 11 15:58 lib Regards, Nikolay. They are copied when the host is first monitored, and with onehost sync. Hope it helps, -Tino ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] tune 'onevm saveas' behavior for OpenVZ
kna...@gmail.com wrote on 28/07/11 20:15: So for now I would like to make a 'onevm saveas' command work with OpenVZ VMs as well as if the SAVE sub-attribute is set to yes for OpenNebula 2.2.1. As far as I understand both these features trigger $ONE_LOCATOIN/share/hooks/image.rb script. So in order to achieve a desired behavior a command like 'tar -czf $VM_DIR/VMID/images/disk.0 -C /vz/private/VMID/ *' must be executed in the beginning of that hook (image.rb) what would replace the original disk.0 file. Is that correct? $ONE_LOCATOIN/share/hooks/image.rb is executed on front-end node but VM working dir needs to be archived on cluster node. So I see not so much possibilities: 1) add the execution of tar command on remote node in image.rb hook which is executed on local (front-end) node i.e. such approach breaks the local/remote hooks logic; 2) create one more custom hook what has to be executed on remote node and what would archive VM working dir. But there are several issues here: - how one can make sure that custom hook will be executed before image.rb one since both of them should be triggered when VM reaches the DONE state, - how make that custom hook trigger only upon 'onevm saveas' command execution or if SAVE sub-attribute of DISK attribute is set to YES. Any help on that is highly appreciated! Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
Carlos Martín Sánchez wrote on 11/08/11 12:55: Hi, Hi, The mechanism you are referring to is the 'onehost sync', it has to be executed as oneadmin in the front-end. This will force the hooks and drivers scripts to be copied to the hosts in the next monitorization cycle. if 'onehost sync' has to copy hooks scripts from FN to CNs in case if OpenNebula is installed in self-contained mode and $ONE_LOCATION dir in not shared over remote nodes then I wonder in what dir on CNs those hooks will be copied? There are no any hook scripts in $SCRIPTS_REMOTE_DIR. There were no errors in oned.log that hooks couldn't be copied. I need to debug that issue to make ONE works in my deployment scenario. I wonder when hooks and drivers scripts are copied to CNs? When starting one (one start)? When adding new host? During each monitoring cycle? Before performing a corresponding action on remote node? Is there any link to documentation to read about that? Thanks! Nikolay. Regards. -- Carlos Martín ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] hooks execution on remote nodes without shared ONE installation dir
forgot to mention that I could not find any info in [1] too about a necessity to share $ONE_LOCATION/share/hooks dir across CNs in case if hooks has to be executed on remote node. So I wonder if $ONE_LOCATION/share/hooks needs to be available across CNs if there is hook to be executed on CNs or there is some built-in mechanism in ONE which transfers such hooks to CNs but for some reasons it didn't work in my case? Regards, Nikolay [1] http://opennebula.org/documentation:rel2.2:hooks kna...@gmail.com wrote on 03/08/11 11:33: Hi! I am trying to run some custom hook on remote/cluster node. I defined the hook as below: oned.conf: VM_HOOK = [ name = vzfirewall, on = RUNNING, command = vzfirewall.sh, arguments = , remote = yes ] and create the vzfirewall.sh file: $ ll $ONE_LOCATION/share/hooks/vzfirewall.sh -rwxr-xr-x 1 oneadmin cloud 42 Aug 1 22:00 /srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh with the following content: [FN]$ cat $ONE_LOCATION/share/hooks/vzfirewall.sh #!/bin/bash sudo /usr/sbin/vzfirewall -a So that hook has to invoke /usr/sbin/vzfirewall script located on all CNs. [CNs]$ ll /usr/sbin/vzfirewall -rwxr-xr-x 1 root root 7661 Jun 4 13:36 /usr/sbin/vzfirewall After defining that hook in oned.conf the oned had been restarted and in oned.log the relevant line appeared: [...] VM_HOOK=ARGUMENTS=,COMMAND=vzfirewall.sh,NAME=vzfirewall,ON=RUNNING,REMOTE=yes [...] But when VM reaches the RUNNING state on CN, the following errors appear in the oned.log: [...] Wed Aug 3 12:27:35 2011 [VMM][D]: Message received: DEPLOY SUCCESS 28 128 Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 Command execution fail: '/srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh ' Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 STDERR follows. Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 Warning: Permanently added 'CN_hostname,CN_IP-address' (RSA) to the list of known hosts. Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 bash: /srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh: No such file or directory Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 ExitCode: 127 Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: EXECUTE FAILURE 28 vzfirewall [...] So I wonder if $ONE_LOCATION/share/hooks/ dir must be mounted on CNs in case if hook needs to be executed there (i.e. on remote node)? I didn't find corresponding info neither in [1] nor in [2]. [1] http://opennebula.org/documentation:rel2.2:sm [2] http://opennebula.org/documentation:rel2.2:plan Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] hooks execution on remote nodes without shared ONE installation dir
Hi! I am trying to run some custom hook on remote/cluster node. I defined the hook as below: oned.conf: VM_HOOK = [ name = vzfirewall, on= RUNNING, command = vzfirewall.sh, arguments = , remote= yes ] and create the vzfirewall.sh file: $ ll $ONE_LOCATION/share/hooks/vzfirewall.sh -rwxr-xr-x 1 oneadmin cloud 42 Aug 1 22:00 /srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh with the following content: [FN]$ cat $ONE_LOCATION/share/hooks/vzfirewall.sh #!/bin/bash sudo /usr/sbin/vzfirewall -a So that hook has to invoke /usr/sbin/vzfirewall script located on all CNs. [CNs]$ ll /usr/sbin/vzfirewall -rwxr-xr-x 1 root root 7661 Jun 4 13:36 /usr/sbin/vzfirewall After defining that hook in oned.conf the oned had been restarted and in oned.log the relevant line appeared: [...] VM_HOOK=ARGUMENTS=,COMMAND=vzfirewall.sh,NAME=vzfirewall,ON=RUNNING,REMOTE=yes [...] But when VM reaches the RUNNING state on CN, the following errors appear in the oned.log: [...] Wed Aug 3 12:27:35 2011 [VMM][D]: Message received: DEPLOY SUCCESS 28 128 Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 Command execution fail: '/srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh ' Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 STDERR follows. Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 Warning: Permanently added 'CN_hostname,CN_IP-address' (RSA) to the list of known hosts. Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 bash: /srv/cloud/one/one-2.2.1/share/hooks/vzfirewall.sh: No such file or directory Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: LOG - 28 ExitCode: 127 Wed Aug 3 12:27:36 2011 [HKM][D]: Message received: EXECUTE FAILURE 28 vzfirewall [...] So I wonder if $ONE_LOCATION/share/hooks/ dir must be mounted on CNs in case if hook needs to be executed there (i.e. on remote node)? I didn't find corresponding info neither in [1] nor in [2]. [1] http://opennebula.org/documentation:rel2.2:sm [2] http://opennebula.org/documentation:rel2.2:plan Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Download 3.0 Beta1
Hi Nikolay Nikolay Gar wrote on 26/07/11 12:36: Hello list Where can I get download subject? , Please http://downloads.dsa-research.org/opennebula/ and you have to choose 2.9.80 (= 3.0 beta 1) Hope it helps, Nikolay. Thank a lot Nikolay ___ 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] 'resubmit' is missing in a list of onevm actions in the Managing Virtual Machines 2.2 guide
Hi! A 'resubmit' action is missing in the list of onevm actions mentioned in Command Line Interface section of [1]. [...] The following sections show the basics of the onevm command with simple usage examples. This command enables virtual machine management. Actions offered are: create ( a VM in OpenNebula's VM pool ) [] and somewhere in that list a resubmit command should be mentioned as well I guess Regards, Nikolay. [1] http://opennebula.org/documentation:rel2.2:vm_guide ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onevm saveas : [ImageAllocate] Error trying to CREATE IMAGE No PATH in template.
Hi Carlos, Indeed I was using the development branch of OpenNebula. I will try to switch to stable 2.2.1 version. Thanks. Nikolay. Carlos Martín Sánchez wrote on 09/06/11 17:11: Hi, That error message was not present in OpenNebula 2.2. It looks like you are using a 2.2 'onevm' and a development branch 'oned'. Can you please check that you are indeed using 2.2 and not the development version? Regards. -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org On Tue, Jun 7, 2011 at 4:00 PM, kna...@gmail.com mailto:kna...@gmail.com wrote: Hello! I am trying to test 'onevm saveas' command for my OpenVZ VMs and I get the following error: $ onevm saveas 57 0 vps145 saved disk [ImageAllocate] Error trying to CREATE IMAGE No PATH in template oned.log: [...] ue Jun 7 17:50:49 2011 [ReM][D]: ImageInfo method invoked Tue Jun 7 17:50:49 2011 [ReM][D]: ImageAllocate invoked Tue Jun 7 17:50:49 2011 [IMG][E]: No PATH in template. Tue Jun 7 17:50:49 2011 [ReM][E]: [ImageAllocate] Error trying to CREATE IMAGE No PATH in template. [...] DISK was defined in VM template as DISK = [ IMAGE = centos-5-x86 ] OS image was created from the following file: $ cat centos-5.x86.one.img NAME = centos-5-x86 PATH = /srv/cloud/one/one-2.1.8/var/images/centos-5-x86.tar.gz PUBLIC= YES DESCRIPTION = CentOS 5 x86 OpenVZ template $ oneimage show 1 IMAGE INFORMATION ID : 1 NAME : centos-5-x86 TYPE : OS REGISTER TIME : 03/30 19:21:45 PUBLIC : Yes PERSISTENT : No SOURCE : /srv/cloud/one/one-2.2.0/var//images/70f38bbaf574eef06b8e3ca4e8ebee3eb1f1786d STATE : used RUNNING_VMS: 1 IMAGE TEMPLATE DESCRIPTION=CentOS 5 x86 OpenVZ template DEV_PREFIX=sd NAME=centos-5-x86 PATH=/srv/cloud/one/one-2.1.8/var/images/centos-5-x86.tar.gz OpenNebula 2.2.0, CentOS 5.5. What can be the reason of the error described above? Thanks! Nikolay. ___ Users mailing list Users@lists.opennebula.org mailto: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] $SCRIPTS_REMOTE_DIR in tm_*.sh scripts
Hi! I need to customize tm_*.sh scripts located in $ONE_LOCATION/lib/tm_commands/ssh/hypervisor/ dir. There is a need to source $SCRIPTS_REMOTE_DIR/vmm/ovz/ovzrc file in tm_clone.sh script to get the location of OpenVZ config files. Is there any way to get the value of $SCRIPTS_REMOTE_DIR variable in tm_*.sh scripts? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onehost list showing me the status ERR
I would start a debug from checking the ability to perform passwordless ssh from OpenNebula front-end to cluster nodes. Adnan Pasic wrote on 17/05/11 15:29: Hello, the problem I am having is that despite installing everything according to this ubuntu-tutorial (https://help.ubuntu.com/community/OpenNebula), I still can't somehow make opennebula work. Everything is working fine, but after typing the command onehost list I get only the following message: /nebula@nebula1:~$ onehost list HID NAME RVM TCPU FCPU ACPUTMEM FMEM STAT 0 132.187.12.50 0 0 100 err/ The log says the following: /Tue May 17 13:24:32 2011 [InM][I]: Monitoring host 132.187.12.50 (0) Tue May 17 13:24:32 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Can not send script to remote machine: 132.187.12.50 Tue May 17 13:25:01 2011 [InM][I]: Monitoring host 132.187.12.50 (0) Tue May 17 13:25:02 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Can not send script to remote machine: 132.187.12.50 Tue May 17 13:25:31 2011 [InM][I]: Monitoring host 132.187.12.50 (0) Tue May 17 13:25:32 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE 0 Can not send script to remote machine: 132.187.12.50/ Also when I don't type anything in the CLI, after a few seconds (after a specific timeout?) I get lots of messages asking for the authenticity of the cluster I want to connect to: /The authenticity of host '132.187.12.50 (132.187.12.50)' can't be established. RSA key fingerprint is 52:2a:f0:c4:df:a8:2b:0e:d5:b4:a8:fd:90:6b:70:30. Are you sure you want to continue connecting (yes/no)? The authenticity of host '132.187.12.50 (132.187.12.50)' can't be established. RSA key fingerprint is 52:2a:f0:c4:df:a8:2b:0e:d5:b4:a8:fd:90:6b:70:30. Are you sure you want to continue connecting (yes/no)?/ Can anyone tell me what the problem could be here??? I somehow got the feeling that only this little issue is keeping me from using opennebula, so please help me out! :) Thanks in advance! ___ 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] poll script return value if VM is not running
Hi! I wonder what $ONE_LOCATION/var/remotes/vmm/hypervisor/poll script has to return if polling VM is not running (but it can be in one of a,p,d,e state)? Should it be just STATE='vm status' or script has to return all meaningful for OpenNebula variables (USEDCPU, USEDMEMORY, NETRX and NETTX)? If all variables listed above are mandatory then which values has to be assigned to them (0, -, something else or variables shouldn't have any value assigned) since they can't be retrieved? I couldn't find such info in [1]. Thanks! Nikolay. [1] http://opennebula.org/documentation:rel2.2:devel-vmm ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] second argument for restore script
Carlos Martín Sánchez wrote on 12/05/11 15:03: Hi Nikolay, Hi Carlos, We have opened a ticket with your request [1], to provide a generic method to query any VM attribute from the drivers. Meanwhile, you can add the deploy_id as the last parameter modifiying src/vmm_mad/ssh/one_vmm_ssh.rb, line 81 -remotes_action(#{@remote_path}/deploy #{remote_dfile}, -id, host, :deploy, @remote_dir, domain) +remotes_action(#{@remote_path}/deploy #{remote_dfile} #{id}, + id, host, :deploy, @remote_dir, domain) Since the problem with restore script and not deploy I guess the changes need to be done as below: $ diff one-2.2.0/lib/mads/one_vmm_ssh.rb one-2.2.0_src/src/vmm_mad/ssh/one_vmm_ssh.rb 104c104 remotes_action(#{@remote_path}/restore #{file} #{deploy_id}, --- remotes_action(#{@remote_path}/restore #{file}, Regards, Nikolay. Cheers, Carlos. [1] http://dev.opennebula.org/issues/633 -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org On Tue, May 10, 2011 at 9:48 AM, kna...@gmail.com mailto:kna...@gmail.com wrote: Dear ONE developers, To perform restore action OpenVZ hypervisor apart from dump file requires VM ID as well, i.e. the command looks like below: $ vzctl restore VM_ID --dumpfile path For more details please see [1]. As far as I understand from $ONE_LOCATION/var/remotes/vmm/hypervisor/restore files ONE invokes restore script only with one argument which is the dump file. I am using XML type of VM_MAD driver in oned.conf (as below) to perform all actions on OpenVZ VMs: -8- VM_MAD = [ name = vmm_ovz, executable = one_vmm_ssh, arguments = ovz, type = xml ] ---8 I wonder what file needs to be change to invoke restore script on remote node with one more argument ($deploy_id) needed for OpenVZ hypervisor (it looks for me that such approach should be safe for other hypervisors since they takes into account only the first argument). Thanks! Nikolay. [1] http://wiki.openvz.org/Checkpointing_and_live_migration ___ Users mailing list Users@lists.opennebula.org mailto: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] '-' or 'err' (instead of 0) as a value for parameters which ONE fails to get
Hi! ONE shows 0 (zero) as a value for those parameters which it fails to retrieve. For example, $ onevm list ID USER NAME STAT CPU MEMHOSTNAMETIME 39 oneadmin one-39 runn 0 0K host1 01 04:02:29 40 oneadmin vps145 runn 0 0K host2 00 08:23:28 I wonder if it wouldn't be more reasonable to show '-' or 'err' instead of 0? Sorry if that question has been already asked before (I couldn't found anything similar). Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] shutting down VM vs stopping it
Carlos Martín Sánchez wrote on 09/05/11 16:58: Hi Nikolay, Hi Carlos, The life-cycle diagram [1] is the best way to understand the VM states, and what actions are available for each of them. If you shut down a VM, it will enter the final DONE state, from which no action can be performed. A stopped VM on the other hand can be later resumed, using 'onevm resume'. Internally, the difference is that shutting down the VM it has a chance to perform any operations (like unregister from a service). A stopped VM is suspended (paused). The reason of my misunderstanding was mixing ONE VM states and VM states from hypervisor's point of view. Now it's clear. Thanks for explanation and your time! Regards, Nikolay. [1] http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle Regards -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org On Sun, May 8, 2011 at 5:34 PM, kna...@gmail.com mailto:kna...@gmail.com wrote: Hi! Tino has already explained the difference between deleting and shutting down VM in [1]. But I wonder what the difference is between shutting down VM and stopping it (I mean 'onevm shutdown' and 'onevm stop'). It's not clear from onevm man page [2]. Thanks. Nikolay. [1] http://www.mail-archive.com/users@lists.opennebula.org/msg02965.html [2] http://opennebula.org/doc/2.2/cli/onevm.html ___ Users mailing list Users@lists.opennebula.org mailto: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] shutting down VM vs stopping it
Hi! Tino has already explained the difference between deleting and shutting down VM in [1]. But I wonder what the difference is between shutting down VM and stopping it (I mean 'onevm shutdown' and 'onevm stop'). It's not clear from onevm man page [2]. Thanks. Nikolay. [1] http://www.mail-archive.com/users@lists.opennebula.org/msg02965.html [2] http://opennebula.org/doc/2.2/cli/onevm.html ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Command execution fail: 'if [ -x some command on remote node ]; then some command on remote node Creating; else exit 42; fi'
Indeed the problem was in wrong returning value of deploy script. Fixed now. Thanks a lot, Tino! Tino Vazquez wrote on 06/05/11 14:49: Hi, The cancel script expects the deploy_id (which is not the vm_id, but rather the identifier of the VM in the hypervisor). Please check you deploy script, it should return the deploy_id and now it is probably returning Creating. You can check this deploy_id in the VM template as well. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Thu, May 5, 2011 at 5:55 PM,kna...@gmail.com wrote: '$SOME_PATH_TO_REMOTE_SCRIPTS/vmm/ovz/cancelVMID' but as one can see from vm.log these command is '/tmp/one//vmm/ovz/cancel Creating' (Creating instead of VMID). ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula can not resume suspending VM
Mon Apr 11 00:47:48 2011 [LCM][I]: New VM state is SAVE_SUSPEND Mon Apr 11 00:47:49 2011 [VMM][I]: Command execution fail: 'if [ -x /var/lib/one/remotes/vmm/kvm/save ]; then /var/lib/one/remotes/vmm/kvm/save one-54 /var/lib/one//54/images/checkpoint; else exit 42; fi' Mon Apr 11 00:47:49 2011 [VMM][I]: STDERR follows. Mon Apr 11 00:47:49 2011 [VMM][I]: error: Failed to save domain one-54 to /var/lib/one//54/images/checkpoint Mon Apr 11 00:47:49 2011 [VMM][I]: error: unable to set ownership of '/var/lib/one//54/images/checkpoint' to user 0:0: Operation not permitted taking the mentioned above into account I would have a look at /var/lib/one/remotes/vmm/kvm/save and would try to perform the same manually on remote host where your VM is running. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onevm creta VGA problem
Idafen Santana Pérez wrote on 04/04/11 20:21: http://dev.opennebula.org/attachments/download/170/ttylinux.tar.gz) NAME = ttylinux-public CPU= 0.1 MEMORY = 64 DISK = [ image = ttylinux, target = hda, readonly = no ] NIC= [ NETWORK = onetd ] FEATURES=[ acpi=no ] Have you tried to specify GRAPHICS section in ttylinux.one as written at [1] e.g.: #listen = 0.0.0.0 will listen on any ip GRAPHICS = [ type= vnc, listen = 0.0.0.0, port= 5938] [1] http://opennebula.org/documentation:rel2.2:template Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenVZ VM config template
Tino Vazquez wrote on 01/04/11 14:52: the problem i see with the workaround is how to relate the RAW section to DISK in case there is more than one DISK. Hi Tino, There is no way and sense to have more then one disk in VMs (aka containers) based on OpenVZ [1]. You can't assign\attach more disks to OpenVZ VM in principle. The only thing you can do with VM disk resources is to change disk quota for particular VM on the host node. Thus such OpenVZ VM parameters for disk resources management as DISKSPACE and DISKINODES are unique per each VM and in principle can be passed in RAW section although it's not quite proper way to do that. [1] http://wiki.openvz.org/WP/What_are_containers#Disk Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenVZ VM config template
But then DISKSPACE, DISKINODES and QUOTATIME are not passed to remote node in deployment.0 file : What way would you recommend to pass disk-related parameters such as DISKSPACE, DISKINODES and QUOTATIME (and could be more) to deployment.0 file? The workaround for that can be using RAW attribute in ONE VM template e.g. as below: DISK = [ IMAGE = centos-5-x86 ] RAW = [ TYPE = ovz, DATE = DISKSPACE=\1048576:1153024\, DISKINODES=\20:22\ ] That way DISKSPACE and DISKINODES parameters appear in VM deployment.0 file. Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenVZ VM config template
kna...@gmail.com wrote on 31/03/11 16:56: But then DISKSPACE, DISKINODES and QUOTATIME are not passed to remote node in deployment.0 file : What way would you recommend to pass disk-related parameters such as DISKSPACE, DISKINODES and QUOTATIME (and could be more) to deployment.0 file? The workaround for that can be using RAW attribute in ONE VM template e.g. as below: DISK = [ IMAGE = centos-5-x86 ] RAW = [ TYPE = ovz, DATE = DISKSPACE=\1048576:1153024\, DISKINODES=\20:22\ ] Sorry, I mean DATA attribute here (not DATE). ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] force to update cluster nodes info
Sorry for the noise! It seems the problem is in xentop (for some reason it reports wrong free memory capacity what doesn't correspond to the 'free -m' output. Nikolay. kna...@gmail.com wrote on 24/03/11 17:28: Dear all, Is there any way to force to update cluster nodes info (I mean that one which is shown when 'onehost list' is executed). Thanks. Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] VM config template
Dear all, is it possible to change ONE VM template format in case of OpenVZ hypervisor and would it be enough to take those changes into account in OvzDriver.cc only? Or ONE VM template format is robust and the changes in other files are required as well (if yes then in which files?)? For example, I'd like to write MEMORY parameter for OpenVZ VM as MEMORY = [ KMEMSIZE=14372700:14790164, LOCKEDPAGES=2048:2048, PRIVVMPAGES=65536:69632, SHMPAGES=21504:21504, PHYSPAGES=0:unlimited, VMGUARPAGES=33792:unlimited, OOMGUARPAGES=26112:unlimited ] whereas for xen now it looks like MEMORY = 256. Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] command to deploy VM on remote host
Hi Carlos, Sorry I wasn't clear enough asking a question in my previous email in that thread. I meant what arguments I need to pass during e.g. the following invocation on remote host: [remote_host]$ $SCRIPTS_REMOTE_DIR/vmm/xen/deploy some arguments if I'd like to deploy xen VM It looks for me as the script e.g. deploy is invoked as [remote_host]$$SCRIPTS_REMOTE_DIR/vmm/xen/deploy xen path_to_VM_config Regards, Nikolay. Carlos Martín Sánchez wrote on 25/03/11 14:16: Hi Nikolay, You can check (and customize) the vmm_mad script files for each hypervisor in your $VAR_LOCATION/remotes/vmm dir. If you modify these scrips, use 'onehost sync' to update the files in the remote hosts. e.g. for Xen and system-wide installation, check /var/lib/one/remotes/vmm/xen/deploy (and xenrc). Regards, Carlos. -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org On 24 March 2011 15:41, kna...@gmail.com mailto:kna...@gmail.com wrote: Dear all, What command and with which arguments is executed on the remote host to deploy e.g. xen VM? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org mailto: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] command to deploy VM on remote host
Dear all, What command and with which arguments is executed on the remote host to deploy e.g. xen VM? Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] $total_memory in kvm.rb
Hi! The value for $total_memory variable in $ONE_LOCATION/var/remotes/im/kvm.d/kvm.rb is defined twice: 1) in line 38 as nodeinfo_text.split(/\n/).each{|line| if line.match('^CPU\(s\)') $total_cpu = line.split(:)[1].strip.to_i * 100 elsif line.match('^CPU frequency') $cpu_speed = line.split(:)[1].strip.split( )[0] elsif line.match('^Memory size') $total_memory = line.split(:)[1].strip.split( )[0] end } and 2) in line 68 $total_memory = `free -k|grep Mem: | awk '{print $2}'` I guess first one is useless since it is overwritten by second one. I mean the development version of OpenNebula. Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenVZ
Hi! Spent some time in attempts to implement OpenVZ support in OpenNebula via libvirt I realized that for the moment probably it was not the most efficient way to do that since libvirt provides pretty poor OpenVZ support. In particular: 1) some of openvz specific parameters/options are missing from libvirt docs (e.g. [1]) despite of they are mentioned in Example guest domain XML configuration at libvirt openvz driver page [2] (I submitted a bug: [3] ); 2) as far as I understand there is no way to specify assigned disk space and disk inodes by libvirt means (feature request: [4]); 3) it looks like network device veth is wrongly assigned inside openvz container (at least I couldn't find the proper way to do that: [5]) and there is no way to use another network device - venet (http://wiki.openvz.org/Venet). 4) total (max) and used (current) memory parameters for certain VM always have a zero value ([6]). Libvirt-users mail-list doesn't help too much to clarify details; Most of issues mentioned above as well as e.g. [7] had been discussed before in libvirt mail-list (some of them more than a year ago) but I couldn't find any submitted bugs and that and those issues still exist. For the moment I have done not so much progress in implementing openvz support in ONE via libvirt: $ git status # On branch one-openvz # Changes to be committed: # (use git reset HEAD file... to unstage) # # new file: src/im_mad/remotes/ovz.d/architecture.sh # new file: src/im_mad/remotes/ovz.d/cpu.sh # new file: src/im_mad/remotes/ovz.d/name.sh # new file: src/im_mad/remotes/ovz.d/ovz.rb # new file: src/vmm/LibVirtDriverOVZ.cc # new file: src/vmm_mad/remotes/ovz/cancel # new file: src/vmm_mad/remotes/ovz/deploy # new file: src/vmm_mad/remotes/ovz/migrate # new file: src/vmm_mad/remotes/ovz/ovzrc # new file: src/vmm_mad/remotes/ovz/restore # new file: src/vmm_mad/remotes/ovz/save # new file: src/vmm_mad/remotes/ovz/shutdown # new file: src/vmm_mad/remotes/poll_vmm.rb # deleted:src/vmm_mad/remotes/poll_xen_kvm.rb # new file: src/vmm_mad/ssh/vmm_ssh_ovz.conf # # Changed but not updated: # (use git add file... to update what will be committed) # # modified: include/LibVirtDriver.h # modified: install.sh # modified: share/etc/oned.conf # modified: src/vmm/LibVirtDriverOVZ.cc # modified: src/vmm/SConstruct # modified: src/vmm/VirtualMachineManager.cc # modified: src/vmm_mad/ssh/vmm_ssh_ovz.conf Taking all mentioned above into account I incline to an opinion it would be better to implement openvz support in OpenNebula by native openvz means like vzctl/vzlist/vzcalc/vzmigrate/vzdump commands just invoking those commands on remote host. I would like to know other opinions on that. Best regards, Nikolay. [1] http://libvirt.org/formatdomain.html [2] http://libvirt.org/drvopenvz.html [3] https://bugzilla.redhat.com/show_bug.cgi?id=683355 [4] https://bugzilla.redhat.com/show_bug.cgi?id=683512 [5] https://bugzilla.redhat.com/show_bug.cgi?id=683834 [6] https://bugzilla.redhat.com/show_bug.cgi?id=683851 [7] https://bugzilla.redhat.com/show_bug.cgi?id=683834 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] minor typo in ONE 2.2 docs [xen - kvm]
There is a minor typo in ONE 2.2 docs [1] in the section Driver Files. The line $ONE_LOCATION/lib/remotes/vmm/xen :commands executed to perform actions has to be $ONE_LOCATION/lib/remotes/vmm/kvm :commands executed to perform actions BR, Nikolay. [1] http://opennebula.org/documentation:rel2.2:kvmg ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] more universal name for poll_xen_kvm.rb
Hi! My first question is if that list is a proper one to ask questions related to ONE development? The second question (rather proposal) is to assign more universal names to the scripts. For example the script src/vmm_mad/remotes/poll_xen_kvm.rb could be named as e.g. poll_vmm.rb or poll_hypervisors.rb. Otherwise adding support for other VMMs (e.g. openvz) will make script's name too long if keep its current logic. BR, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] minor typo in onecluster help info
Hi! Executing 'onecluster' I noticed that among other info it outputs [...] Commands: * create (Creates a new user) onecluster create clustername [...] whereas it should be * create (Creates a new cluster) Best regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: VT not enabled still want to run OpenNebula
Vivek Shrivastava wrote on 23/02/11 14:38: My processor is not VT enabled (Core 2 duo) ( i checked it by:- egrep -c '(vmx|svm)' /proc/cpuinfo ) It might be that CPU supports VT but it is not enabled in BOIS. One can check if your CPU support VT at e.g. http://www.intel.com/products/processor/core2duo/specifications.htm. Or you can paste here the output of $ cat /proc/cpuinfo|grep model name vmx|svm flags might be not shown if you machine is booted in XEN enabled kernel. So I would suggest you to check in the web if your CPU model supports VT and if it can be enabled in BOIS. HTH, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] convert VM template in ONE format to libvirt format
Hi! What scripts/files in opennebula-2.0.1 are responsible for converting template with VM description in ONE format into libvirt xml format in order to run VM on libvirt enabled cluster node? Thanks. Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] retrieve info from OpenVZ host running libvirtd
Hi Hector, Héctor Sanjuán wrote on 21/02/11 15:27: Hi Nikolay, I had a similar problem and it came down to im driver files not having the proper execution rights. Can you maybe check that? Thanks for reply! FN$ ll /usr/lib/one/remotes/im/ovz.d/ovz.rb -rwxr-xr-x 1 root root 3305 Feb 21 09:23 /usr/lib/one/remotes/im/ovz.d/ovz.rb CN$ ll /tmp/one/im/run_probes -rwxr-xr-x 1 oneadmin cloud 1773 Feb 18 17:34 /tmp/one/im/run_probes execution right looks for me OK. Nikolay. Héctor El 21/02/11 13:17, kna...@gmail.com escribió: Hi Carlos, Carlos Martín Sánchez wrote on 21/02/11 14:04: Hi Nikolay, Could you paste the output of sshOVZ_cluster_node /var/tmp/one/im/run_probes ovz ? [oneadmin@FN]$ ssh edugrid10 /tmp/one/im/run_probes ovz Warning: Permanently added 'CN_hostname,CN_IP' (RSA) to the list of known hosts. [oneadmin@FN]$ i.e. it looks like the command above returns space character. Nikolay. Change /var/tmp/one to your SCRIPTS_REMOTE_DIR if you changed it in your oned.conf file. Regards, Carlos. -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.orghttp://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org On 18 February 2011 17:27,kna...@gmail.commailto:kna...@gmail.com wrote: Dear all, Trying to implement IM driver for OpenVZ cluster nodes I faced with the following problem: $ onehost list ID NAME CLUSTER RVM TCPU FCPU ACPU TMEMFMEM STAT 2cluster_node1 xen_x64 0 200 200 200 3.1G 128Mon 3cluster_node2 ovz_x32 00 0 100 0K 0K err oned.log: [...] Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored. Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end, expecting VARIABLE at line 2, columns 1:2 Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information: [...] I added oneadmin user into /etc/sudoers file and commented out the line Defaultsrequiretty: $ egrep oneadmin|requiretty /etc/sudoers #Defaultsrequiretty oneadminALL=(ALL) NOPASSWD: ALL (I couldn't figure out more secure and elegant way to get info from OpenVZ host having libvirt interface installed. Any suggestions on that?) and did the following changes in ovz.rb file: $ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb /usr/lib/one/remotes/im/kvm.d/kvm.rb 29c29 nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo` --- nodeinfo_text = `virsh -c qemu:///system nodeinfo` 90c90 print_info(HYPERVISOR,ovz) --- print_info(HYPERVISOR,kvm) sudo virsh -c openvz:///system nodeinfo running under oneadmin user from front-end node gives the following output: [oneadmin@ONE_front-end$ sshOVZ_cluster_node sudo virsh -c openvz:///system nodeinfo CPU model: i686 CPU(s): 1 CPU frequency: 2793 MHz CPU socket(s): 1 Core(s) per socket: 1 Thread(s) per core: 1 NUMA cell(s):1 Memory size: 2056216 kB I was hoping to apply the same solution as written in KVM Driver Guide 2.0 (http://opennebula.org/documentation:rel2.0:kvmg) since ONE uses the libvirt interface as well to interact with KVM hosts: ...The following steps are required in the cluster nodes to get the KVM driver running: [...] * The user with access to these remotes hosts on behalf of OpenNebula (typicallyoneadmin) has to pertain to thelibvirtd andkvm groups in order to use the deaemon and be able to launch VMs. but I can't following that way since there is no libvirt group and libvirtd is run under root (I had to build libvirt from tarball available at its home page since CentOS has a pretty old one in its repos without openvz support). Any help on that is highly appreciated! Nikolay. ___ Users mailing list Users@lists.opennebula.orgmailto: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 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] retrieve info from OpenVZ host running libvirtd
Héctor Sanjuán wrote on 21/02/11 16:29: Im seeing different paths here: FN$ ll /usr/lib/one/remotes/im/ovz.d/ovz.rb CN$ ll /tmp/one/im/run_probes The /tmp/one/im/run_probes script on the remote host would execute the contents of the /tmp/one/im/ovz folder. So you have to check that the right files are there on the remote host and that they have the right permissions. The im files are copied to the im folder (/tmp/one/im in your case it seems) in the remote host when adding a new host to OpenNebula. They are copied from the $ONE_LOCATION/var/remotes/im on the frontend host, even though there is a copy of them in the $ONE_LOCATION/lib/remotes/im as well, as backup. now it's clear! I put ovz-related files only into /usr/lib/one (ONE is installed in a system wide mode) and they are missing in /var/lib/one/remotes/im/. That's why they weren't copied on remote host during its addition. I've just copied ovz.d into /var/lib/one/remotes/im/. Delete remote host from the pool. Add it again and now ONE gets the proper info about remote host running OpenVZ. Thanks a lot, Hector! Best regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Hi Tino, Sorry for the noise - I found that one line in oned.conf wasn't commented out properly. Now oned starts smoothly: $ /etc/init.d/oned start Starting OpenNebula daemon: oned and scheduler started [ OK ] But I get an error in oned.log: Thu Feb 17 20:55:02 2011 [ONE][I]: Init OpenNebula Log system Thu Feb 17 20:55:02 2011 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG] Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: OpenNebula Configuration File Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: -- DB=BACKEND=sqlite DEBUG_LEVEL=3 DEFAULT_DEVICE_PREFIX=sd DEFAULT_IMAGE_TYPE=OS HM_MAD=EXECUTABLE=one_hm HOST_MONITORING_INTERVAL=600 IMAGE_REPOSITORY_PATH=/srv/cloud/images IM_MAD=ARGUMENTS=ovz,EXECUTABLE=one_im_ssh,NAME=im_ovz IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen MAC_PREFIX=02:00 MANAGER_TIMER=15 NETWORK_SIZE=254 PORT=2633 SCRIPTS_REMOTE_DIR=/tmp/one TM_MAD=ARGUMENTS=tm_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh VM_DIR=/srv/cloud VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE VM_MAD=ARGUMENTS=ovz,DEFAULT=vmm_ssh/vmm_ssh_ovz.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_ovz,TYPE=ovz VM_MAD=ARGUMENTS=xen,DEFAULT=vmm_ssh/vmm_ssh_xen.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_xen,TYPE=xen VM_POLLING_INTERVAL=600 VNC_BASE_PORT=5900 -- Thu Feb 17 20:55:02 2011 [ONE][I]: Bootstraping OpenNebula database. Thu Feb 17 20:55:02 2011 [VMM][I]: Starting Virtual Machine Manager... Thu Feb 17 20:55:02 2011 [LCM][I]: Starting Life-cycle Manager... Thu Feb 17 20:55:02 2011 [VMM][I]: Virtual Machine Manager started. Thu Feb 17 20:55:02 2011 [LCM][I]: Life-cycle Manager started. Thu Feb 17 20:55:02 2011 [InM][I]: Starting Information Manager... Thu Feb 17 20:55:02 2011 [TrM][I]: Starting Transfer Manager... Thu Feb 17 20:55:02 2011 [DiM][I]: Starting Dispatch Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting Request Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting XML-RPC server, port 2633 ... Thu Feb 17 20:55:02 2011 [InM][I]: Information Manager started. Thu Feb 17 20:55:02 2011 [TrM][I]: Transfer Manager started. Thu Feb 17 20:55:02 2011 [DiM][I]: Dispatch Manager started. Thu Feb 17 20:55:02 2011 [ReM][I]: Request Manager started. Thu Feb 17 20:55:02 2011 [HKM][I]: Starting Hook Manager... Thu Feb 17 20:55:02 2011 [HKM][I]: Hook Manager started. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading Virtual Machine Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_ovz (OVZ) Thu Feb 17 20:55:04 2011 [VMM][E]: Unknown driver type: OVZ Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_xen (XEN) Thu Feb 17 20:55:04 2011 [VMM][I]: Driver vmm_xen loaded. Thu Feb 17 20:55:04 2011 [InM][I]: Loading Information Manager drivers. Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_ovz Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_ovz loaded Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_xen Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_xen loaded Thu Feb 17 20:55:04 2011 [TM][I]: Loading Transfer Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: tm_ssh Thu Feb 17 20:55:04 2011 [TM][I]: Driver tm_ssh loaded. Thu Feb 17 20:55:04 2011 [HKM][I]: Loading Hook Manager driver. Thu Feb 17 20:55:04 2011 [HKM][I]: Hook Manager loaded As one can see there is an error Unknown driver type: OVZ. Where does new ovz driver type need to be specified? Thanks! Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Hi! I am trying to enable OpenVZ support in ONE. I used KVM scripts as an example since they are using libvirt library on cluster nodes what I am trying to use too. The following sections were added in oned.conf: #--- # OpenVZ Information Driver Manager Configuration #--- IM_MAD = [ name = im_ovz, executable = one_im_ssh, arguments = ovz ] #--- #--- # OpenVZ Virtualization Driver Manager Configuration #--- VM_MAD = [ name = vmm_ovz, executable = one_vmm_ssh, arguments = ovz, default= vmm_ssh/vmm_ssh_ovz.conf, type = ovz ] #--- But when I run oned I get the following error: $ /etc/init.d/oned start Starting OpenNebula daemon: Error while parsing configuration file: syntax error, unexpected OBRACKET, expecting STRING at line 176, columns 7290:7296 Could not load nebula configuration file. Error executing /usr/bin/oned. [FAILED] 176 line of oned.conf file is name = vmm_ovz, from custom section mentioned above in that email. $ ls -al /usr/lib/one/remotes/vmm/ total 12 drwxr-xr-x 2 root root 4096 Feb 11 14:42 kvm drwxr-xr-x 2 root root 4096 Feb 16 18:28 ovz drwxr-xr-x 2 root root 4096 Feb 11 14:45 xen $ ls -al /usr/lib/one/remotes/vmm/ovz/ total 32 -rwxr-xr-x 1 root root 1289 Feb 16 18:20 cancel -rwxr-xr-x 1 root root 1443 Feb 16 18:20 deploy -rwxr-xr-x 1 root root 1347 Feb 16 16:32 migrate -rw-r--r-- 1 root root 1281 Feb 16 16:28 ovzrc -rwxr-xr-x 1 root root 1890 Feb 16 18:22 poll -rwxr-xr-x 1 root root 1279 Feb 16 18:23 restore -rwxr-xr-x 1 root root 1364 Feb 16 18:24 save -rwxr-xr-x 1 root root 1664 Feb 16 18:28 shutdown Some additional info: $ rpm -q opennebula opennebula-2.0.1-1 Both front-end host and cluster node are running CentOS release 5.5 (Final) x86. Any ideas what needs to be fixed? Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] update to 2.0.1 replaces oned.conf
Hi! I noticed that update from 2.0 to 2.0.1 (rpm was downloaded from http://dev.opennebula.org/attachments/download/270/opennebula-2.0.1-1.i386.rpm) replaced the existing /etc/one/oned.conf. Is it expected behaviour? I guess it would be more referable way to keep the previous config instead of replacing by the new one coming from updated rpm package. Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problems when booting VM (OpenNebula 2.0.1 and ESXi 4.1)
Luigi Fortunati wrote on 01/02/11 14:34: I notice that OpenNebula generates a deployment.0 file and then hangs, the vm remains in BOOT state and I cannot find any information about what's happening by reading the logs. [...] Tue Feb 1 11:04:56 2011 [LCM][I]: New VM state is BOOT Tue Feb 1 11:04:56 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/35/deployment.0 I also noticed the same behaviour for Xen VM if OS = [ BOOTLOADER = /usr/lib/xen/boot/hvmloader ] is specified in VM template whereas VM boots normally if the lines as below are used: OS = [ BOOTLOADER = /usr/bin/pygrub ] RAW = [ type = xen, data = builder = 'hvm' ] Just a guess: maybe in your case (VMware) the proper bootloader needs to be specified as well as some additional raw options. HTH, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] managing images
anoop Lekshmanan wrote on 31/01/11 18:24: Hi, Me too need help on the same thing. Please share the info if you get some clue. Have tried to run the command what I wrote in reply to your email on cluster node (with xen installed): $ virt-install --connect xen:/// -n SL55_x64_base_xen -r 512 --vcpus=1 --os-type=linux --os-variant=rhel5 -b virbr0 --arch=x86_64 --disk path=./sl55_x64_base_xen.img,size=20 --hvm --vnc --cdrom=SL.55.051810.DVD.x86_64.disc1.iso ? A value for --cdrom option is a path to ISO file with OS installation image. Nikolay. Thanks, Anoop On Mon, Jan 31, 2011 at 8:39 PM, star rock rocksta...@gmail.com mailto:rocksta...@gmail.com wrote: Hi list, I have installed opennebula.using openneulaexpress 2.0 on centos 5.5 Where are the images available for specifying in the VM template?? The only tty image given will not suit my requirement. I want to know how to build these images using xen and i want to deploy a VM based on that.. Also let me know if its possible to invoke opennebula from some other software or location and boot a VM from there.. ___ Users mailing list Users@lists.opennebula.org mailto: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 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onehost shows wrong memory info [Xen Node]
anoop Lekshmanan wrote on 31/01/11 19:33: Hi, I have installed Opennebula-2.0.1 on Fedora 14 (FrontEnd) and CentOS 5.5 64 bit with Xen (kernel 2.6.18-194.32.1.el5xen) . What is the xen version (i.e. what is the output of the 'rpm -q xen' command)? Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] onehost shows wrong memory info [Xen Node]
I don't know if it's a ON bug. But 'onehost list' gives me for FMEM the same as 'xentop' for free (converted to MB) and 'xm info for free_memory. But 'free -m' shows much less because of memory caching I guess. I am using xen 3.4.3 on CentOS 5.5 which is available at GITCO repo (http://www.gitco.de/repo/). There is even the newest xen 4.0.1 but I haven't tried it yet. Nikolay. anoop Lekshmanan wrote on 31/01/11 19:33: Hi, I have installed Opennebula-2.0.1 on Fedora 14 (FrontEnd) and CentOS 5.5 64 bit with Xen (kernel 2.6.18-194.32.1.el5xen) . I have total 8 GB RAM on node1 and around 6 GB is free. But onehost list shows only 383 M free. onehost list ID NAME CLUSTER RVM TCPU FCPU ACPUTMEM FMEM STAT 0 node1_xen default04003994007.9G383M on where free command on node1_xen gives: free -m total used free sharedbuffers cached Mem: 7483670 6812 0 33292 -/+ buffers/cache:344 7138 Swap:10001 0 10001 Is this an Opennebula bug? Please help me. Thanks, Anoop ___ 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] managing images
anoop Lekshmanan wrote on 31/01/11 23:04: Hi Nikolay, Thanks! I have used the registered image with VM template but on onevm create template-name the vm state continues be on pending. To run VM it needs to be deployed apart from creating VM $ onevm deploy VM_id Host_id VM_id is virtual machine id (specified in first column on 'onevm list') Host_id is registered in ON host id ('onehost list') E.g. $ onevm deploy 9 3 Hope it helps, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] xen version for OpenNebula 2.0
Steven Timm wrote on 30/01/11 04:19: The Xen that ships with CentOS and SL is significantly older than 3.4.3--it is the equivalent of 3.1.2 even though the rpm says it is 3.0.3. I also noticed that xen version available from CentOS 5.5 repos is pretty old. That why I tried to find newer ones and found http://www.gitco.de/repo/. That is what I have installed on the xen part of my opennebula cloud and it is workign for me. I have 2.6.18-194.32.1.el5xen kernel installed both on VM host dom0 and on cloud domU and it is working fine. There are a few applications where KVM just doesn't cut it. One of them is running a mysql server. Thanks for sharing your experience! Nikolay. Steve Timm On Sat, 29 Jan 2011, kna...@gmail.com wrote: kna...@gmail.com wrote on 28/01/11 18:01: Dear list, What is the recommended version of xen for CentOS 5.5 to build ON cloud? I have xen-3.4.3 installed on cluster node $ rpm -q xen xen-3.4.3-1.el5 but VM log has the line: Error: Unable to connect to xend: No such file or directory. Is xend running? It looks like the problem appears with kernel (2.6.18-194.32.1.el5xen) whereas with the elder one (2.6.18-194.11.1.el5xen) xen works well. Has anyone try to run xen-4.0.1 with ON-2.0? Nikolay. ___ 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] xen version for OpenNebula 2.0
kna...@gmail.com wrote on 28/01/11 18:01: Dear list, What is the recommended version of xen for CentOS 5.5 to build ON cloud? I have xen-3.4.3 installed on cluster node $ rpm -q xen xen-3.4.3-1.el5 but VM log has the line: Error: Unable to connect to xend: No such file or directory. Is xend running? It looks like the problem appears with kernel (2.6.18-194.32.1.el5xen) whereas with the elder one (2.6.18-194.11.1.el5xen) xen works well. Has anyone try to run xen-4.0.1 with ON-2.0? Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] xen version for OpenNebula 2.0
Dear list, What is the recommended version of xen for CentOS 5.5 to build ON cloud? I have xen-3.4.3 installed on cluster node $ rpm -q xen xen-3.4.3-1.el5 but VM log has the line: Error: Unable to connect to xend: No such file or directory. Is xend running? xen is running on the cluster node: $/etc/init.d/xend status xend is running $ ps aux|grep xend root 4062 0.0 0.3 171524 9140 ?S17:36 0:00 /usr/bin/python2.4 /usr/sbin/xend start root 4063 0.0 0.3 192404 10288 ?Sl 17:36 0:00 /usr/bin/python2.4 /usr/sbin/xend start Regards, Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] OpenVZ
Dear List, Does somebody know if there is any progress in supporing OpenVZ by OpenNebula? Or maybe someone has custom-made scripts for running OpenVZ on OpenNebula and can share those scripts/one drivers with me. I can't find more info on that topic apart from http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002908.html Thanks in advance for your replies! Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org