Re: [one-users] Fwd: updating TEMPLATE from hooks
On 11/22/2013 04:27 PM, Valentin Bud wrote: Hi Olivier, I guess what you are looking for is `onevm update`. But can it be called in a hook, before the VM is started to see it in context file? Olivier * update vmid [file] Update the user template contents. If a path is not provided the editor will be launched to modify the current content. valid options: append Just tried it to see how it works. # cat /tmp/append A=B # onevm update 278 /tmp/append -a # onevm show -x 278 USER_TEMPLATE A![CDATA[B]]/A /USER_TEMPLATE Hope it helps. Cheers and Goodwill, Valentin On Fri, Nov 22, 2013 at 02:13:14PM +0100, Olivier Sallou wrote: Hi, I see that feature allowing to update the vm template from a hook has been integrated ( http://dev.opennebula.org/issues/1556), but I do not see how in the hook documentation page (nor elsewhere). I see how to get the template but not how to modify it. How can we do this ? Thanks Olivier -- gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 23 November 2013 10:34, Stefan Kooman ste...@bit.nl wrote: Quoting Stefan Kooman (ste...@bit.nl): Quoting Daniel Molina (dmol...@opennebula.org): You are getting a 500 error from the server, there should be an error message in /var/log/one/sunstone.error I have re-installed oned / sunstone from scratch. If I try to log in as a user which is not a member of oneadmin group I get the errors in the log as attached in this mail (sunstone.error). Can you figure out what's happening here? Might this be an issue related to Ubuntu Saucy (13.10)? According to [1] Ubuntu Saucy would be a certified linux distribution if I'm not mistaken. I've build the packages (4.2.0, 4.3.85, 4.3.90) for Saucy in a pbuilder environment [2] which can be found here [3]. I'm not doing any weird things, it's a basic sunstone setup. I would be more than happy to provide you with a clone of the vm I'm working on (debugging purposes / system tests). See attachment for a list of installed packages (dpkg_list) / gems (gem_list). From your logs, it looks like the problem is related to this part of the code, SunstoneViews.rb: def available_views(user_name, group_name) available_views = @views_config['users'][user_name] if @views_config['users'] available_views ||= @views_config['groups'][group_name] if @views_config['groups'] available_views ||= @views_config['default'] return available_views end Did you modify the ''/etc/one/sunstone-views/user.yaml'' file, could you check the content of this file and its permissions? Cheers Thanks, Cheers, Stefan Kooman [1]: http://opennebula.org/software:testing [2]: https://wiki.ubuntu.com/PbuilderHowto [3]: http://obit.bit.nl/ubuntu/saucy/opennebula/ -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAlKQdpMACgkQTyGgYdFIOcZSkwD/WaqK+0zCiALUcgJd5xiUwu3F pViQBpSXctFPwLeF9jEA+wUI/IGXuUGgwCkpsJcBah0CxXXKB2ay9Uvew6iJgHSM =h6zk -END PGP SIGNATURE- -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] New monitoring system in OpenNebula 4.4
Dear community, We have published the fifth entry on the new features that will come with OpenNebula 4.4. This entry is about the new monitoring system, which is able to monitor tens of thousands of VMs in a matter of minutes : http://blog.opennebula.org/?p=5499 We'd love to hear your thoughts and get some feedback about it. Cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | jme...@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] datastore capacity stats
Hi, Sunstone is considering the capacity usage as total - free. In your case is 0, so it showing 0% usage. The USED_MB reported by the probes is not used because total != used + free. In my case, I have a disk with this capacity: TOTAL: : 113.3G USED: : 375M FREE: : 50.8G Even though OpenNebula is only using 375, taking the usage as TOTAL - FREE Sunstone is showing me the same usage percentage as df. Regards -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Mon, Nov 25, 2013 at 5:49 AM, Gary S. Cuozzo g...@isgsoftware.netwrote: Hi All, I just added a monitor script for my custom datastore driver. When viewing the datastore in sunstone, if I click on the datastore to view the details, I see the correct information: Total14.1TBUsed142GBFree 14.1TB But the capacity column in the summary line indicates: 0MB / 14.1TB (0%) I would expect to see the used indicate 142GB and whatever the % is. Any idea why that does not populate correctly? Cheers, gary ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use
Hi, What ruby version are you running? Could you send us the list of gems (gem list) Cheers On 25 November 2013 11:23, caohf ca...@wedogame.com wrote: Dear All: when i login the sunstone i find the sunstone process get 100% cpu use. PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 22989 oneadmin 20 0 304m 209m 4080 R 99.5 0.9 6:04.00 ruby /usr/lib/one/sunstone/sunstone-server 25525 oneadmin 20 0 304m 209m 4080 S 0.3 0.9 0:00.69 ruby /usr/lib/one/sunstone/sunstone-server -- Best Wishes! Dennis ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Opennebula RC1 and PUBLIC_CLOUD
Hi, The automatic requirements now includes always the !(PUBLIC_CLOUD=YES) condition to support hybrid templates [1]. In an environment without hybrid hosts, it should not have any effect. From the output you provide, I see a couple of problems: - The DS RBD is not a system DS, its type is IMAGE. The scheduler selects a system DS to run the VMs, and the SCHED_DS_REQUIREMENTS attribute refers only to system DS. - Your DS template has PUBLIC_CLOUD=YES. Even if it was a system DS, the scheduler would filter it because of it. Ceph DS can only hold images, you can't create an RBD system DS. You need a system DS [2] in the same cluster 100 to be able to deploy images. Regards [1] http://dev.opennebula.org/issues/2092 [2] http://opennebula.org/documentation:rel4.4:ceph_ds#configuring_the_system_datastore -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Sun, Nov 24, 2013 at 7:55 AM, Ирек Фасихов malm...@gmail.com wrote: I use Hypervisor KVM, but when I run VM status of Pending. In parameter VM automatically generated AUTOMATIC_REQUIREMENTS = CLUSTER_ID = 100 *! (PUBLIC_CLOUD = YES). * Is this true? *[oneadmin@cloud ~]$ onedatastore show 105* DATASTORE 105 INFORMATION ID : 105 NAME : RBD USER : oneadmin GROUP : oneadmin CLUSTER: XXX TYPE : IMAGE DS_MAD : ceph TM_MAD : ceph BASE PATH : /var/lib/one//datastores/105 DISK_TYPE : RBD DATASTORE CAPACITY TOTAL: : 5.5T USED: : 315.3G FREE: : 5.1T PERMISSIONS OWNER : um- GROUP : u-- OTHER : u-- DATASTORE TEMPLATE BRIDGE_LIST=cloud CLONE_TARGET=SELF DATASTORE_CAPACITY_CHECK=YES DISK_TYPE=RBD DS_MAD=ceph LN_TARGET=NONE NAME=RBD PUBLIC_CLOUD=YES TM_MAD=ceph TYPE=IMAGE_DS IMAGES 11 *[oneadmin@cloud ~]$ onetemplate show 13* TEMPLATE 13 INFORMATION ID : 13 NAME : Temp USER : oneadmin GROUP : oneadmin REGISTER TIME : 11/24 00:10:43 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CLUSTER_100=100 CPU=8 DISK=[ DEV_PREFIX=vd, IMAGE=Test2, IMAGE_UNAME=oneadmin ] GRAPHICS=[ LISTEN=0.0.0.0, TYPE=VNC ] MEMORY=4096 OS=[ ARCH=x86_64, BOOT=cdrom ] SCHED_DS_RANK=FREE_MB SCHED_DS_REQUIREMENTS=NAME=RBD SCHED_RANK=FREECPU SCHED_REQUIREMENTS=CLUSTER_ID=\100\ VCPU=8 [oneadmin@cloud ~]$ onevm show 80 VIRTUAL MACHINE 80 INFORMATION ID : 80 NAME: Temp-80 USER: oneadmin GROUP : oneadmin STATE : PENDING LCM_STATE : LCM_INIT RESCHED : No START TIME : 11/24 10:39:20 END TIME: - DEPLOY ID : - VIRTUAL MACHINE MONITORING NET_RX : 0K USED CPU: 0 NET_TX : 0K USED MEMORY : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VM DISKS ID TARGET IMAGE TYPE SAVE SAVE_AS 0 vdaTest2 rbdNO - USER TEMPLATE CLUSTER_100=100 SCHED_DS_RANK=FREE_MB SCHED_DS_REQUIREMENTS=NAME=RBD *SCHED_MESSAGE=Sun Nov 24 10:52:07 2013 : No system datastore meets SCHED_DS_REQUIREMENTS: CLUSTER_ID = 100 !(PUBLIC_CLOUD = YES) ( NAME=RBD )* SCHED_RANK=FREECPU SCHED_REQUIREMENTS=CLUSTER_ID=\100\ VIRTUAL MACHINE TEMPLATE *AUTOMATIC_REQUIREMENTS=CLUSTER_ID = 100 !(PUBLIC_CLOUD = YES)* CPU=8 GRAPHICS=[ LISTEN=0.0.0.0, PORT=5980, TYPE=VNC ] MEMORY=4096 OS=[ ARCH=x86_64, BOOT=cdrom ] TEMPLATE_ID=13 VCPU=8 VMID=80 Thanks. -- С уважением, Фасихов Ирек Нургаязович Моб.: +79229045757 ___ 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] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): Did you modify the ''/etc/one/sunstone-views/user.yaml'' file, could you check the content of this file and its permissions? You are awesome. I did change that file (change logo definition) and for some reason something went wrong merging changes for that file from 4.2 - 4.4. An opennebula-sunstone re-install (without modifications) works like a charm. At least with sinatra as backend. If I use passenger I'm able to login ... dashboard screen gets loaded ... and then I'm warped back to the login page. Same config files (sunstone-server.conf etc.). No errors are logged in apache/passenger error log. This behaviour is the same for oneadmin user and unpriviliged users. Any hints on this one? Thanks, Stefan Passenger conf: IfModule mod_passenger.c PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby PassengerMaxInstancesPerApp 1 PassengerHighPerformance on # on or off doesn't make a difference PassengerFriendlyErrorPages off PassengerLogLevel 2 PassengerUser oneadmin PassengerGroup oneadmin /IfModule -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 25 November 2013 14:28, Stefan Kooman ste...@bit.nl wrote: At least with sinatra as backend. If I use passenger I'm able to login ... dashboard screen gets loaded ... and then I'm warped back to the login page. Same config files (sunstone-server.conf etc.). No errors are logged in apache/passenger error log. This behaviour is the same for oneadmin user and unpriviliged users. Any hints on this one? It looks like a memcache issue. Is it enabled in sunstone-server.conf? Cheers -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): On 25 November 2013 14:28, Stefan Kooman ste...@bit.nl wrote: At least with sinatra as backend. If I use passenger I'm able to login ... dashboard screen gets loaded ... and then I'm warped back to the login page. Same config files (sunstone-server.conf etc.). No errors are logged in apache/passenger error log. This behaviour is the same for oneadmin user and unpriviliged users. Any hints on this one? It looks like a memcache issue. Is it enabled in sunstone-server.conf? It is, and I'm able to connect to it from the sunstone server. I've installed memcached locally just to rule that out ... doesn't change anything :(. Gr. Stefan -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] slow live migration of VM's
Here you have the algorithm for live migration: http://www.linux-kvm.org/page/Migration#Algorithm_.28the_short_version.29 In case your VM is doing some work that changes a lot of memory it will keep marking dirty pages and it will continue in the Iteratively transfer all dirty pages (pages that were written to by the guest). until the number of dirty pages is small enough so you don't notice the migration. Try stopping services changing memory in the VM before the migration. On Mon, Nov 25, 2013 at 3:32 AM, Gary S. Cuozzo g...@isgsoftware.net wrote: Hi all, I was just moving some VM's around as a prep for some server maintenance, via live migration. I moved 3 VM's which were all fairly small in size of 1GB - 3GB RAM and 20GB - 60GB disk. I did the migrations 1 at a time. I was surprised at how long the migrations took and also that each VM was pretty much unusable during the migration. SSH sessions timed out and websites were not able to be accessed. A VM with 3GB RAM allocation took around 10 minutes to migrate. Is this typical? Or do I maybe have some sort of issue on my network or config? We run a dedicated 1000Mbps management network for this type of thing, and all data storage access is via separate 4x 1000Mbps bonded channels. I would have expected 3GB of RAM data to be pretty quick. Probably 1 min. Are there any settings in ONE that should be tuned? I don't seem to recall having an issue with migrations when I was just running virt-manager/libvirt directly. The last VM I have to move is a pretty important one and it has 24GB RAM allocated. So I think it would be easier/quicker to just shut the VM down, disable the host for maintenance, and redeploy it. I'm hoping to avoid that. Thanks for any advice, gary ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Contex script
Good evening, i've created a VM with ubuntu kvm image from marketplace. My templatre is: CONTEXT FILES_DS /var/lib/one/datastores/2/4e178e253b6f838c9b2b0458712538a0:'id_rsa.pub' /var/lib/one/datastores/2/7fcc69a21a0a86ea5437eea7a171b1b3:'init.sh' NETWORK YES TARGET hdb ETH0_NETWORK * ETH0_MASK ** SSH_PUBLIC_KEY *** ETH0_IP * ETH0_GATEWAY *** ETH0_DNS 8.8.8.8 DISK_ID 1 -- i can ping the vm, but dont login with my account without password. Have you a link with the full document (with sample) for a correct contex file for remote access with ssh wothout password? Thanks to all... GIANCARLO DE FILIPPIS LTBL S.r.L. Cell. +39 320 8155325 Uff. +39 02 89604424 Fax +39 02 89954500 __ ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula4.2 with esxi5.1 when install vms faild.
Hi, Does the error go away if you set an empty KEYMAP for VNC in the VM template? It would also help knowing which browser and version are you using. Regards, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On Fri, Nov 22, 2013 at 9:27 AM, hansz hanshizhun...@126.com wrote: hi, CONTEXT=[NETWORK=YES,SSH_PUBLIC_KEY=$USER[SSH_PUBLIC_KEY],ROOT_PASS=$name,HOSTNAME=$name] GRAPHICS=[KEYMAP=en-us,TYPE=VNC,LISTEN=0.0.0.0] INPUT=[BUS=usb,TYPE=tablet] INPUT=[BUS=ps2,TYPE=tablet] MEMORY=5192 CPU=0.1 REQUIREMENTS=ID=\43\ FEATURES=[PAE=yes,ACPI=yes,PCIBRIDGE=0] DISK=[IMAGE_ID=131] At 2013-11-21 20:33:26,Tino Vazquez cvazq...@c12g.com wrote: Hi, Could you send through the template of the VM? I'm interested in the VNC definition. Regards, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On Thu, Nov 21, 2013 at 10:24 AM, hansz hanshizhun...@126.com wrote: hi, i do try with the VMware vSphere Client to my esxi, and there are no problems with VMware vSphere Client,but use sunstone's novnc could not input ABCD At 2013-11-20 22:20:51,Tino Vazquez cvazq...@c12g.com wrote: Hi, Let's discard hypervisor issues. Could you connect directly to the host with another VNC client, and see if you are having the caps problem? Regards, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On Fri, Nov 15, 2013 at 8:09 AM, hansz hanshizhun...@126.com wrote: hi, thinks for your reply man,anther question, i through the novnc to connect to my vms ,(opennebula 4.2 and esxi 51.) but i can not input ABCD to the vms,only the abcd OK? anything wrong? 在 2013-11-14 19:18:18,Tino Vazquez cvazq...@c12g.com 写道: Hi, On Wed, Nov 13, 2013 at 2:36 PM, hansz hanshizhun...@126.com wrote: hi, you are so kind to change this guide,could you show me where can i get the new guide? I've just updated the existing guide you mean through the 'vmfs' drivers for the system datastores?or image datastores? or both? I mean for both cloud you kind enough to show me how can i use opennebula4.2+and esxi to create vms? You need to check the documentation, specially these guides: * http://opennebula.org/documentation:rel4.2:evmwareg * http://opennebula.org/documentation:rel4.2:vmwarenet * http://opennebula.org/documentation:rel4.2:vmware_ds Regards, -Tino thinks At 2013-11-13 20:03:37,Tino Vazquez cvazq...@c12g.com wrote: I think a further clarification is in place. OpenNebula 4.0+ supports VMware NFS datastores, but
Re: [one-users] slow live migration of VM's
Thank you for the reply. The storage is shared storage via NFS, so no disk data should need to be transferred. Just the running VM. I was figuring just the running VM (RAM state) needs to sync'd. The time to transfer wouldn't be such an issue if the VM's were functional during that time. The main issue is that the guests are completely unusable, so the migration may as well not be 'live'. Thanks, gary - Original Message - From: Ionut Popovici io...@hackaserver.com To: users@lists.opennebula.org Sent: Monday, November 25, 2013 2:52:51 AM Subject: Re: [one-users] slow live migration of VM's 1st20- 60Gb disk .. is preaty much .. 2nd transfer is done via SCP that si a lil slower than any other transfer but is more safer. 3nd It depends on READ on the host where are the VMS .. if they have other host working .. keep in mind that the machine share the IO of that datastore. On perfect Datastone it sould be around 6ms time to access data on HDD .. but on live datastore it my take a lil more. My test was starting nonpersistent image with size 50GB on a SSD drive it took around 4Mins and was not lunch via network, just copy via scp .. on same drive. On 11/25/2013 4:32 AM, Gary S. Cuozzo wrote: Hi all, I was just moving some VM's around as a prep for some server maintenance, via live migration. I moved 3 VM's which were all fairly small in size of 1GB - 3GB RAM and 20GB - 60GB disk. I did the migrations 1 at a time. I was surprised at how long the migrations took and also that each VM was pretty much unusable during the migration. SSH sessions timed out and websites were not able to be accessed. A VM with 3GB RAM allocation took around 10 minutes to migrate. Is this typical? Or do I maybe have some sort of issue on my network or config? We run a dedicated 1000Mbps management network for this type of thing, and all data storage access is via separate 4x 1000Mbps bonded channels. I would have expected 3GB of RAM data to be pretty quick. Probably 1 min. Are there any settings in ONE that should be tuned? I don't seem to recall having an issue with migrations when I was just running virt-manager/libvirt directly. The last VM I have to move is a pretty important one and it has 24GB RAM allocated. So I think it would be easier/quicker to just shut the VM down, disable the host for maintenance, and redeploy it. I'm hoping to avoid that. Thanks for any advice, gary ___ 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 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] slow live migration of VM's
Thanks Javier. The algorithm makes sense and the link pretty much validates what I figured was the process for live migration. Maybe the VM is a lot more active than I thought and it caused a lot of dirty pages. The last VM I have on the server to migrate off is much larger and active, so I guess I should plan for some downtime and do a cold migration where I pause the running system. I think that would take far less time to accomplish. Like I said in my last email, it the VM were usable during the migration, I really would not care how long it took. But having the VM effectively be 'down' makes live migration far less useful. My main concern was that I need to tune something in ONE to make it effective. It sounds like that is really not the case. The VM's that I previously migrated must just have been very low use and did not take long to sync. I will build out a test vm and do a non-live sync to validate the process. Thanks again, gary - Original Message - Here you have the algorithm for live migration: http://www.linux-kvm.org/page/Migration#Algorithm_.28the_short_version.29 In case your VM is doing some work that changes a lot of memory it will keep marking dirty pages and it will continue in the Iteratively transfer all dirty pages (pages that were written to by the guest). until the number of dirty pages is small enough so you don't notice the migration. Try stopping services changing memory in the VM before the migration. On Mon, Nov 25, 2013 at 3:32 AM, Gary S. Cuozzo g...@isgsoftware.net wrote: Hi all, I was just moving some VM's around as a prep for some server maintenance, via live migration. I moved 3 VM's which were all fairly small in size of 1GB - 3GB RAM and 20GB - 60GB disk. I did the migrations 1 at a time. I was surprised at how long the migrations took and also that each VM was pretty much unusable during the migration. SSH sessions timed out and websites were not able to be accessed. A VM with 3GB RAM allocation took around 10 minutes to migrate. Is this typical? Or do I maybe have some sort of issue on my network or config? We run a dedicated 1000Mbps management network for this type of thing, and all data storage access is via separate 4x 1000Mbps bonded channels. I would have expected 3GB of RAM data to be pretty quick. Probably 1 min. Are there any settings in ONE that should be tuned? I don't seem to recall having an issue with migrations when I was just running virt-manager/libvirt directly. The last VM I have to move is a pretty important one and it has 24GB RAM allocated. So I think it would be easier/quicker to just shut the VM down, disable the host for maintenance, and redeploy it. I'm hoping to avoid that. Thanks for any advice, gary ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] AppMarket Update
Hi, Indeed it is a bug, could you try applying the following patch? https://gist.github.com/dmamolina/14c2d2bc6ec53fcdab72 appmarket update ID FILE Cheers On 22 November 2013 05:13, Naza naza1...@gmail.com wrote: I am trying to update the appliance logo and description in the appmarket using appmarket update command but it throws error. I assumed the command requires a json file format as an input so my file: { id:528d708080ea62085100010b, logo:http://x.x.x.x/logo/logo.png;, description:Logo description } i execute # appmarket update file /srv/cloud/one/lib/ruby/oneapps/market/appmarket_client.rb:106:in `update': wrong number of arguments (1 for 2) (ArgumentError) from /srv/cloud/one/bin/appmarket:251:in `block (2 levels) in main' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `call' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `run' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:76:in `initialize' from /srv/cloud/one/bin/appmarket:101:in `new' from /srv/cloud/one/bin/appmarket:101:in `main' The documentation does not have much about appmarket update: http://opennebula.org/documentation:rel4.2:appmarket_use Please help me to resolve this problem. Thanks in advance. Regards, Naza ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] AppMarket Update
Thanks for the patch. Regards, Naza On Tue, Nov 26, 2013 at 1:39 AM, Daniel Molina dmol...@opennebula.orgwrote: Hi, Indeed it is a bug, could you try applying the following patch? https://gist.github.com/dmamolina/14c2d2bc6ec53fcdab72 appmarket update ID FILE Cheers On 22 November 2013 05:13, Naza naza1...@gmail.com wrote: I am trying to update the appliance logo and description in the appmarket using appmarket update command but it throws error. I assumed the command requires a json file format as an input so my file: { id:528d708080ea62085100010b, logo:http://x.x.x.x/logo/logo.png;, description:Logo description } i execute # appmarket update file /srv/cloud/one/lib/ruby/oneapps/market/appmarket_client.rb:106:in `update': wrong number of arguments (1 for 2) (ArgumentError) from /srv/cloud/one/bin/appmarket:251:in `block (2 levels) in main' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `call' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `run' from /srv/cloud/one/lib/ruby/cli/command_parser.rb:76:in `initialize' from /srv/cloud/one/bin/appmarket:101:in `new' from /srv/cloud/one/bin/appmarket:101:in `main' The documentation does not have much about appmarket update: http://opennebula.org/documentation:rel4.2:appmarket_use Please help me to resolve this problem. Thanks in advance. Regards, Naza ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use
Dear Cheers: My ruby version is : ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] the gem list: *** LOCAL GEMS *** daemons (1.1.9) eventmachine (1.0.3) json (1.8.1) rack (1.5.2) rack-protection (1.5.1) rvm (1.11.3.8) sequel (4.3.0) sinatra (1.4.4) sqlite3 (1.3.8) thin (1.6.0) tilt (1.4.1) Best Wishes! Dennis From: Daniel Molina Date: 2013-11-25 19:52 To: caohf CC: users@lists.opennebula.org Subject: Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use Hi, What ruby version are you running? Could you send us the list of gems (gem list) Cheers On 25 November 2013 11:23, caohf ca...@wedogame.com wrote: Dear All: when i login the sunstone i find the sunstone process get 100% cpu use. PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 22989 oneadmin 20 0 304m 209m 4080 R 99.5 0.9 6:04.00 ruby /usr/lib/one/sunstone/sunstone-server 25525 oneadmin 20 0 304m 209m 4080 S 0.3 0.9 0:00.69 ruby /usr/lib/one/sunstone/sunstone-server Best Wishes! Dennis ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] updating TEMPLATE from hooks with onevm update
Hi, If my VM HOOK (on CREATE) adds new elements with a onevm update, I can see those variables in the the user template of the vm/ onevm show: USER TEMPLATE SSH_PUBLIC_KEY=ssh-rsa.. XGRID_PWD=xxx In my image template, I have set: SSH_PUBLIC_KEY $USER[SSH_PUBLIC_KEY] XGRID_PWD $USER[XGRID_PWD] But in the VM template, I do not see any of those variable. It would seem that user template attributes are created *after* the vm template generation. Any idea ? Thanks Olivier ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org