Re: [one-users] Haven't authorized while using Java API
Can you check if you are using the same OpenNebula and Java OCA versions? -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Tue, Nov 27, 2012 at 3:37 AM, Hoàng Thái Xuân Khoa htxuank...@gmail.comwrote: On 11/26/2012 4:47 PM, Giovanni Toraldo wrote: On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoahtxuank...@gmail.com htxuank...@gmail.com wrote: Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8,http://localhost:2633/RPC2; http://localhost:2633/RPC2); This looks like an md5 hash, you should put your *real* password instead. -- Giovanni Toraldohttp://gionn.net It's still didn't work. The 7f44b494160f2e69fed6c21b2ce555b8 is a default password when i installed OpenNebula. So, i don't know *real* password behind it. I decide use oneuser command to change oneadmin's password: oneadmin@cluster:~#oneuser passwd 0 123 with 0 is the id of oneadmin user and 123 is a new password. After that, i can use password 123 to logon to SunStone server, managed private cloud via command line successfully. But, when i used it in Java code, it's didn't work. Client client = new Client(oneadmin:123,http://localhost:2633/RPC2;http://localhost:2633/RPC2 ); I got the same error: *Error message: [HostPoolInfo] User couldn't be authenticated, aborting call.* -- Hoang Thai Xuan Khoa Ho Chi Minh city, Vietnam ___ 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] Sunstone Error initializing authentication system
Got it all working Daniel, thanks in advance. What I actually did was e steps you provided. ried this after a hread started by Duverne. Thanks in advance! On Tue, Nov 27, 2012 at 8:22 AM, Daniel Molina dmol...@opennebula.orgwrote: Hi Rodolfo, On 22 November 2012 13:45, Rodolfo Conte Brufatto rcbrufa...@gmail.com wrote: Hey guys, I've had a similar issue, nothing in the sunstone.error file and the logs are showing: .. :auth=sunstone} Thu Nov 22 10:42:37 2012 [E]: Error initializing authentication system Thu Nov 22 10:42:37 2012 [E]: [UserPoolInfo] User couldn't be authenticated, aborting call. Checked for the same problem as Valentin, but everything seems to be normal. Anything else I might check? * Check that the AUTH_MAD section is enabled in your oned.conf and contains the server_cipher driver * Check that the Auth Manager starts correctly in your oned.conf Mon Nov 19 16:35:46 2012 [AuM][I]: Loading Auth. Manager driver. Mon Nov 19 16:35:46 2012 [AuM][I]: Auth Manager loaded * Check that the serveradmin driver is set to server_cipher (oneuser show serveradmin) * Update the serveradmin user password using the one contained in /var/lib/one/.one/sunstone_auth. Do not forget to add the --sha1 option $ cat /var/lib/one/.one/sunstone_auth serveradmin:newpass $oneuser passwd serveradmin newpass --sha1 Hope this helps Cheers On Tue, Nov 20, 2012 at 8:56 AM, Daniel Molina dmol...@opennebula.org wrote: On 20 November 2012 11:54, Valentin Bud valentin@gmail.com wrote: On Tue, Nov 20, 2012 at 11:36:11AM +0100, Daniel Molina wrote: On 20 November 2012 11:04, Valentin Bud valentin@gmail.com wrote: Hi Daniel, Yes, it's there. ``` /etc/one/oned.conf ... AUTH_MAD = [ executable = one_auth_mad, authn = ssh,x509,ldap,server_cipher,server_x509 ] ... ``` Could you check in your oned.log if it is loaded: Mon Nov 19 16:35:46 2012 [AuM][I]: Loading Auth. Manager driver. Mon Nov 19 16:35:46 2012 [AuM][I]: Auth Manager loaded And check the error in oned.log when the sunstone-server is started. (There I have restarted `one` and yes the Auth. Manager is loaded. `/var/log/one/oned.log` ``` Tue Nov 20 11:43:14 2012 [AuM][I]: Loading Auth. Manager driver. Tue Nov 20 11:43:14 2012 [AuM][I]: Auth Manager loaded ``` Issued `sunstone-server start` as `oneadmin` and the logs show: `/var/log/one/oned.log` ``` Tue Nov 20 11:45:25 2012 [AuM][D]: Message received: AUTHENTICATE FAILURE 0 Authentication driver 'server_core' not available Tue Nov 20 11:45:25 2012 [AuM][E]: Auth Error: Authentication driver 'server_core' not available Tue Nov 20 11:45:25 2012 [ReM][D]: Req:3952 UID:- UserPoolInfo invoked Tue Nov 20 11:45:25 2012 [ReM][E]: Req:3952 UID:- UserPoolInfo result FAILURE [UserPoolInfo] User couldn't be authenticated, aborting call. ``` No `server_core` Authentication driver. I have changed `/etc/one/oned.conf` to include it in `AUTH_MAD`. Again as `oneadmin` issue `sunstone-server start`. Now the `oned.log` shows something different: `/var/log/one/oned.log` ``` Tue Nov 20 11:47:52 2012 [AuM][E]: Auth Error: Tue Nov 20 11:47:52 2012 [ReM][D]: Req:8512 UID:- UserPoolInfo invoked Tue Nov 20 11:47:52 2012 [ReM][E]: Req:8512 UID:- UserPoolInfo result FAILURE [UserPoolInfo] User couldn't be authenticated, aborting call. ``` Found out what was wrong. User `serveradmin` had `server_core` setup as `AUTH_DRIVER`. Changed it to `server_cipher` and it works now, Sinatra has taken the stage. Thanks you all for time and help. Great! You're welcome Cheers and Goodwill, v Thank you. On Tue, Nov 20, 2012 at 10:47:31AM +0100, Daniel Molina wrote: On 20 November 2012 10:41, Valentin Bud valentin@gmail.com wrote: Hi Daniel, On Tue, Nov 20, 2012 at 10:31:22AM +0100, Daniel Molina wrote: Hi Valentin, On 20 November 2012 08:36, Valentin Bud valentin@gmail.com wrote: Hi Ruben, Thanks for your time. I followed the proposed solution but the result is the same. As `oneadmin` ``` $ oneuser show 1 | grep PASS PASSWORD : afc0f1457b5480afd548d5a09e14171bab315d2c $ oneuser passwd 1 1234 --sha1 $ oneuser show 1 | grep PASS PASSWORD : 7110eda4d09e062aa5e4a390b0a572ac0d2c0220 $ echo serveradmin:1234 ~/.one/sunstone_auth You have to update the file in /var/lib/one (If you installed system-wide) $ echo serveradmin:1234 /var/lib/one/.one/sunstone_auth That was the file, `oneadmin` user has `/var/lib/one` as $HOME (~). I should have posted using full path not ~ shortcut. ```
Re: [one-users] upgrade to latest from 1.4
Hi, The migration is sequentially executed by the latest installed code, so you only need to install the latest version [1]. Unfortunately the lowest version for wich we provide a migration path is 2.0. You may want to contact C12G [2] and ask if they provide or can develop support for 1.4 migrations. Regards [1] http://opennebula.org/documentation:rel3.8:upgrade [2] http://www.c12g.com/ -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Tue, Nov 27, 2012 at 12:34 AM, Seth Daniel s...@sethdaniel.org wrote: Hello, I have a (very) old installation of several hundred VMs that are still being managed by ONE 1.4. Based on the docs I have seen I am assuming I need to upgrade to 2.x and then to 3.x from 2.x. Is this assumption correct and where can I download older versions of ONE? The ONE website only seems to have recent downloads available. Thank you. -- seth /\ sethdaniel.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] Save As and Detach option
Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. First line I see in the in the log file seems seriously broken: 426622-Mon Nov 26 14:06:42 2012 [ImM][I]: Creating disk at of 2216Mb (type: save_as) It's not saying where it is creating the image (source in OpenNebula parlance) and give an strange type. Could you please send us the VM and Image templates from onevm and oneimage show? Maybe I am missing something and other developers could help me here. I also see this line that says the image was created: 426627:Mon Nov 26 14:06:42 2012 [ImG][D]: Message received: MKFS SUCCESS 25 /var/lib/one/datastores/100/a3e076f377a855dc76f44ac373c9b0ca But you are telling me that the image does not exist. Are you checking the hypervisor node or the frontend? More comments inline On Mon, Nov 26, 2012 at 2:33 PM, Roberto Rosende Dopazo rrose...@cesga.es wrote: [...] After delete machine image state is showed as READY in Sunstone. In dom0 deployment dir and file are still present and disk files disk.0 and disk.1 have their user and group changed to root.root and image file doesn't exist A new file appears # file /var/lib/one/datastores/0/123/checkpoint /var/lib/one/datastores/0/123/checkpoint: data This is really strange. After EPILOG (the state that comes after successful shutdown, delete or cancel) the VM directory in the system datastore is deleted, so those files should not be there. Also, then only way OpeNebula tells Xen to create checkpoint is on SAVE, STOP or MIGRATE. Are you sure that you have deleted the VM? It looks to me that the image was suspended or stopped. Bear in mind that save_as is not done in that state. Also with root.root but 666 file permission and in this case directory and files of this machine are never deleted from running datastore The non deletion of images is consistent my the SAVE/STOP theory. Cheers -- Javier Fontán Muiños Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Save As and Detach option
Hi, El 27/11/12 11:50, Javier Fontan escribió: Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. It's kvm image and dynamic_ownership was wrong because I misunderstood and put it to 1, now is 0 and owner and group is not changed. But option save as still doesn't work, I tried it directly from frontend shell instead SunStone and I got that: [grid@cloud ~]$ onevm show 138 VIRTUAL MACHINE 138 INFORMATION ID : 138 NAME: one-138 USER: emi GROUP : oneadmin STATE : ACTIVE LCM_STATE : RUNNING RESCHED : No HOST: nubacesga-01-4 START TIME : 11/27 11:34:32 END TIME: - DEPLOY ID : one-138 VIRTUAL MACHINE MONITORING USED MEMORY : 0K NET_RX : 0K USED CPU: 0 NET_TX : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VIRTUAL MACHINE TEMPLATE CPU=1 DISK=[ BUS=virtio, CLONE=YES, CLUSTER_ID=100, DATASTORE=GRID EMC, DATASTORE_ID=100, DEV_PREFIX=hd, DISK_ID=0, DRIVER=qcow2, IMAGE=GRID SL6_emi_cream_orig, IMAGE_ID=11, READONLY=NO, SAVE=NO, SOURCE=/var/lib/one/datastores/100/3dfef6d01e7e624f13ef13698ed04710, TARGET=hda, TM_MAD=shared, TYPE=FILE ] DISK=[ DEV_PREFIX=hd, DISK_ID=1, SIZE=1024, TARGET=hdb, TYPE=swap ] GRAPHICS=[ KEYMAP=es, LISTEN=0.0.0.0, PORT=6038, TYPE=vnc ] MEMORY=2512 NAME=one-138 NIC=[ BRIDGE=virbrPUBLIC, CLUSTER_ID=100, IP=193.144.35.36, MAC=02:00:c1:90:23:24, MODEL=e1000, NETWORK=red-193.144.35, NETWORK_ID=0, VLAN=NO ] OS=[ ROOT=hda1 ] PRODUCT=EMI-test REQUIREMENTS=CLUSTER_ID = 100 TEMPLATE_ID=6 VCPU=1 VMID=138 VIRTUAL MACHINE HISTORY SEQ HOSTREASON STARTTIME PROLOG_TIME 0 nubacesga-01-4 none11/27 11:34:560d 00h01m09s0d 00h00m22s [grid@cloud ~]$ onevm saveas 138 0 changes01 Image ID: 31 [grid@cloud ~]$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS [...] 31 grid oneadmin changes01 GRID EMC 2.2G OSNo lock0 [grid@cloud ~]$ oneimage show 31 IMAGE 31 INFORMATION ID : 31 NAME : changes01 USER : grid GROUP : oneadmin DATASTORE : GRID EMC TYPE : OS REGISTER TIME : 11/27 11:36:26 PERSISTENT : No SOURCE : /var/lib/one/datastores/100/08cee146d8bff43c6c61794f1ba947d3 FSTYPE : save_as SIZE : 2.2G STATE : lock RUNNING_VMS: 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- IMAGE TEMPLATE DEV_PREFIX=hd SAVED_DISK_ID=0 SAVED_IMAGE_ID=11 SAVED_VM_ID=138 SAVE_AS=YES From onevm help I understood that now it's supposed I have the file : saveas vmid diskid img_name Sets the specified VM disk to be saved in a new Image. The Image is created immediately, but the contents are saved only if the VM is shut down gracefully (i.e., using 'onevm shutdown' and not 'onevm delete') But it does not exist: [grid@cloud ~]$ file /var/lib/one/datastores/100/08cee146d8bff43c6c61794f1ba947d3 /var/lib/one/datastores/100/08cee146d8bff43c6c61794f1ba947d3: cannot open `/var/lib/one/datastores/100/08cee146d8bff43c6c61794f1ba947d3' (No such file or directory) After a shutdown file still does not exist but image is marked as READY [grid@cloud ~]$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS [...] 31 grid oneadmin changes01 GRID EMC 2.2G OSNo rdy 0 And file doesn't exists anyway, from oned.log 492501-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:5808 UID:0 AclInfo invoked 492502-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:5808 UID:0 AclInfo result SUCCESS, ACL_POOLACLID0... 492503-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:4608 UID:2 VirtualMachineSaveDisk invoked, 138, 0, changes01, 492504-Tue Nov 27 11:36:26 2012 [ImM][I]: Creating disk at of 2216Mb (type: save_as) 492505-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:4608 UID:2 VirtualMachineSaveDisk result SUCCESS, 31 492506-Tue Nov 27 11:36:26 2012 [ImG][D]: Message received: LOG I 31 ExitCode: 0 492507- 492508-Tue Nov 27 11:36:26 2012 [ImM][I]: ExitCode: 0 492509:Tue Nov 27 11:36:26 2012 [ImG][D]: Message received: MKFS SUCCESS 31 /var/lib/one/datastores/100/08cee146d8bff43c6c61794f1ba947d3 492510- Cheers, Roberto First line I see in the in the log file seems seriously broken: 426622-Mon Nov 26 14:06:42 2012 [ImM][I]: Creating disk at of 2216Mb (type: save_as) It's not saying where it is creating the image (source in OpenNebula parlance) and give an strange type. Could you please send us the VM and Image
Re: [one-users] Issues starting a VM
Hi It seems that you have already created the VLANs, so you do not need OpenNebula to do this for you. In your case you can just add the host and use --net dummy. The 802.1Q drivers would create eth0.160 and a bridge for it. Now your problem, I think that OpenNebula is not able to detect your hypervisor, probably because in yout system lsmod is not in /sbin/lsmod. Could you check that, and set it to the proper path in OpenNebulaNetwork.rb that should be in /var/lib/one/remotes/vnm. (In multi-node installations you would need onehost sync to propagate the changes). But as I said if you want OpenNebula to do the bridge work for you you need to: 1.- Add to the Network templates PHYDEV = eth0 VLAN = YES VLAN_ID = 160 # This is optional OPenNebula would pick one for you BRIDGE = server160 #This is optional OpenNebula would pick one for you 2.- Add a host with --net 802.1Q I'd suggest to first keep trying with your current setup (manual VLAN), remove the host and readd it with --net dummy; and then try the automatic VLAN mode (as described above). For the automatic VLAN we need to solve the issue you've reported that I believe could be the lsmod issue Cheers Ruben On Tue, Nov 27, 2012 at 8:42 AM, Stuart Longland stua...@vrt.com.au wrote: Hi all, Firstly I'll start by pointing out that I'm very new to OpenNebula, having grown used to just using plain shell scripts to fire up QEMU instances. My workplace is looking to use OpenNebula on a multi-node cluster for their server infrastructure. The machines are Intel Core i3 systems with Intel DQ77KB mainboards. The systems run Ubuntu 12.04 AMD64. The plan is to use the mainboard's two onboard network cards in LACP to facilitate high-speed data transfer between VMs for live migration and for distributed storage using Ceph, and a third PCI express card on a VLAN trunk port facing the network. Right now I'm testing on a single node, not one of the ones we'll eventually use but rather an older, former VMWare ESX box. The status: - Ubuntu 12.04 is installed. OpenNebula 3.8.1 packages installed from the OpenNebula website. - I have the switch port connected to eth0 set up as a VLAN trunk - I have /etc/network/interfaces set up to create the eth0.XXX devices for each VLAN, and sensibly named bridge devices, `brctl show` looks like this: root@bneprdvm0:~# brctl show bridge name bridge id STP enabled interfaces client130 8000.00101814cb1b no eth0.130 project144 8000.00101814cb1b no eth0.144 project159 8000.00101814cb1b no eth0.159 server160 8000.00101814cb1b no eth0.160 This works fine with plain QEMU. Now, I've tried to create a virtual network to place a VM on the 'server160' bridge (i.e. I'd expect kvm to start; then it do a `brctl addif server160 tapX`). The following is my configuration for that network interface: oneadmin@bneprdvm0:~$ onevnet show 4 VIRTUAL NETWORK 4 INFORMATION ID : 4 NAME : Server 160 LAN USER : oneadmin GROUP : oneadmin CLUSTER: - TYPE : FIXED BRIDGE : server160 VLAN : No PHYSICAL DEVICE: VLAN ID: USED LEASES: 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VIRTUAL NETWORK TEMPLATE FREE LEASES LEASE=[ IP=10.87.160.13, MAC=52:54:00:12:34:58, USED=0, VID=-1 ] The VM template looks like this: CPU=1.0 DISK=[ CLONE=NO, CLUSTER_ID=100, DATASTORE=default, DATASTORE_ID=1, DEV_PREFIX=hd, DISK_ID=0, IMAGE=bneprdsrv5-hda, IMAGE_ID=3, IMAGE_UNAME=vrtadmin, PERSISTENT=YES, READONLY=NO, SAVE=YES, SOURCE=/var/lib/one/datastores/1/301aac89561c0fbeaf140cb09124f941, TARGET=hda, TM_MAD=shared, TYPE=FILE ] MEMORY=256 NAME=bneprdsrv5 NIC=[ BRIDGE=project160, IP=10.87.160.13, MAC=52:54:00:12:34:58, NETWORK=server160, NETWORK_ID=2, NETWORK_UNAME=vrtadmin, PHYDEV=eth0.160, VLAN=YES ] REQUIREMENTS=CLUSTER_ID = 100 VMID=3 (Anyone know how to edit that by the way? So far all I seem to be able to do is blow away the VM configuration and rebuild from scratch!) I get the following error (apologies for the wall of text in advance): Tue Nov 27 17:09:35 2012 [LCM][I]: New VM state is BOOT Tue Nov 27 17:09:35 2012 [VMM][I]: Generating deployment file: /var/lib/one/3/deployment.0 Tue Nov 27 17:09:36 2012 [VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/pre PFZNPjxJRD4zPC9JRD48VUlEPj A8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Ym5lcHJkc3J2NTwvTkF NRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+
Re: [one-users] Save As and Detach option
Hi, Just to add a few considerations: 1.- Save_as images are not created on the datastore, just an ID is generated as a placeholder for the new image (this is the fstype: save_as). So, it is normal that no image (actual path) is created after a save_as operation, and the state is supposed to be locked (waiting for the real image) as reported. I do not see any issue here. 2.- The save_as image is moved to the final destination when the VM is shutdown, shutdown means onevm shutdown (delete or stop will not move the image, for example). Could you send the output vm.log of the image after the shutdown. You should look for messages about a MVDS command. Cheers Ruben On Tue, Nov 27, 2012 at 12:41 PM, Roberto Rosende Dopazo rrose...@cesga.eswrote: Hi, El 27/11/12 11:50, Javier Fontan escribió: Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. It's kvm image and dynamic_ownership was wrong because I misunderstood and put it to 1, now is 0 and owner and group is not changed. But option save as still doesn't work, I tried it directly from frontend shell instead SunStone and I got that: [grid@cloud ~]$ onevm show 138 VIRTUAL MACHINE 138 INFORMATION ID : 138 NAME: one-138 USER: emi GROUP : oneadmin STATE : ACTIVE LCM_STATE : RUNNING RESCHED : No HOST: nubacesga-01-4 START TIME : 11/27 11:34:32 END TIME: - DEPLOY ID : one-138 VIRTUAL MACHINE MONITORING USED MEMORY : 0K NET_RX : 0K USED CPU: 0 NET_TX : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VIRTUAL MACHINE TEMPLATE CPU=1 DISK=[ BUS=virtio, CLONE=YES, CLUSTER_ID=100, DATASTORE=GRID EMC, DATASTORE_ID=100, DEV_PREFIX=hd, DISK_ID=0, DRIVER=qcow2, IMAGE=GRID SL6_emi_cream_orig, IMAGE_ID=11, READONLY=NO, SAVE=NO, SOURCE=/var/lib/one/**datastores/100/**3dfef6d01e7e624f13ef13698ed047** 10, TARGET=hda, TM_MAD=shared, TYPE=FILE ] DISK=[ DEV_PREFIX=hd, DISK_ID=1, SIZE=1024, TARGET=hdb, TYPE=swap ] GRAPHICS=[ KEYMAP=es, LISTEN=0.0.0.0, PORT=6038, TYPE=vnc ] MEMORY=2512 NAME=one-138 NIC=[ BRIDGE=virbrPUBLIC, CLUSTER_ID=100, IP=193.144.35.36, MAC=02:00:c1:90:23:24, MODEL=e1000, NETWORK=red-193.144.35, NETWORK_ID=0, VLAN=NO ] OS=[ ROOT=hda1 ] PRODUCT=EMI-test REQUIREMENTS=CLUSTER_ID = 100 TEMPLATE_ID=6 VCPU=1 VMID=138 VIRTUAL MACHINE HISTORY SEQ HOSTREASON STARTTIME PROLOG_TIME 0 nubacesga-01-4 none11/27 11:34:560d 00h01m09s0d 00h00m22s [grid@cloud ~]$ onevm saveas 138 0 changes01 Image ID: 31 [grid@cloud ~]$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS [...] 31 grid oneadmin changes01 GRID EMC 2.2G OSNo lock0 [grid@cloud ~]$ oneimage show 31 IMAGE 31 INFORMATION ID : 31 NAME : changes01 USER : grid GROUP : oneadmin DATASTORE : GRID EMC TYPE : OS REGISTER TIME : 11/27 11:36:26 PERSISTENT : No SOURCE : /var/lib/one/datastores/100/** 08cee146d8bff43c6c61794f1ba947**d3 FSTYPE : save_as SIZE : 2.2G STATE : lock RUNNING_VMS: 0 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- IMAGE TEMPLATE DEV_PREFIX=hd SAVED_DISK_ID=0 SAVED_IMAGE_ID=11 SAVED_VM_ID=138 SAVE_AS=YES From onevm help I understood that now it's supposed I have the file : saveas vmid diskid img_name Sets the specified VM disk to be saved in a new Image. The Image is created immediately, but the contents are saved only if the VM is shut down gracefully (i.e., using 'onevm shutdown' and not 'onevm delete') But it does not exist: [grid@cloud ~]$ file /var/lib/one/datastores/100/** 08cee146d8bff43c6c61794f1ba947**d3 /var/lib/one/datastores/100/**08cee146d8bff43c6c61794f1ba947**d3: cannot open `/var/lib/one/datastores/100/**08cee146d8bff43c6c61794f1ba947**d3' (No such file or directory) After a shutdown file still does not exist but image is marked as READY [grid@cloud ~]$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS [...] 31 grid oneadmin changes01 GRID EMC 2.2G OSNo rdy 0 And file doesn't exists anyway, from oned.log 492501-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:5808 UID:0 AclInfo invoked 492502-Tue Nov 27 11:36:26 2012 [ReM][D]: Req:5808 UID:0 AclInfo result SUCCESS,
Re: [one-users] Save As and Detach option
Hi El 27/11/12 13:58, Ruben S. Montero escribió: Hi, Just to add a few considerations: 1.- Save_as images are not created on the datastore, just an ID is generated as a placeholder for the new image (this is the fstype: save_as). So, it is normal that no image (actual path) is created after a save_as operation, and the state is supposed to be locked (waiting for the real image) as reported. I do not see any issue here. Ok, I understood that file was created at that moment. 2.- The save_as image is moved to the final destination when the VM is shutdown, shutdown means onevm shutdown (delete or stop will not move the image, for example). Could you send the output vm.log of the image after the shutdown. You should look for messages about a MVDS command. The complete log for that machine, there is not MVDS message. From onevm show image was created at REGISTER TIME : 11/27 11:36:26 [root@cloud one]# cat 138.log Tue Nov 27 11:34:56 2012 [DiM][I]: New VM state is ACTIVE. Tue Nov 27 11:34:56 2012 [LCM][I]: New VM state is PROLOG. Tue Nov 27 11:34:56 2012 [VM][I]: Virtual Machine has no context Tue Nov 27 11:34:58 2012 [TM][I]: clone: Cloning /var/lib/one/datastores/100/3dfef6d01e7e624f13ef13698ed04710 in nubacesga-01-4:/var/lib/one/datastores/0/138/disk.0 Tue Nov 27 11:34:58 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [TM][I]: mkimage: Making filesystem of 1024M and type swap at nubacesga-01-4:/var/lib/one/datastores/0/138/disk.1 Tue Nov 27 11:35:18 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [LCM][I]: New VM state is BOOT Tue Nov 27 11:35:18 2012 [VMM][I]: Generating deployment file: /var/lib/one/138/deployment.0 Tue Nov 27 11:35:18 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [VMM][I]: Successfully execute network driver operation: pre. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute virtualization driver operation: deploy. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute network driver operation: post. Tue Nov 27 11:35:19 2012 [LCM][I]: New VM state is RUNNING Tue Nov 27 11:38:01 2012 [LCM][I]: New VM state is CLEANUP. Tue Nov 27 11:38:01 2012 [DiM][I]: New VM state is DONE Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Driver command for 138 cancelled Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 delete: Deleting /var/lib/one/datastores/0/138 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: TRANSFER SUCCESS 138 - Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute virtualization driver operation: cancel. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute network driver operation: clean. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: CANCEL SUCCESS 138 - Cheers Ruben On Tue, Nov 27, 2012 at 12:41 PM, Roberto Rosende Dopazo rrose...@cesga.es mailto:rrose...@cesga.es wrote: Hi, El 27/11/12 11:50, Javier Fontan escribió: Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. It's kvm image and dynamic_ownership was wrong because I misunderstood and put it to 1, now is 0 and owner and group is not changed. But option save as still doesn't work, I tried it directly from frontend shell instead SunStone and I got that: [grid@cloud ~]$ onevm show 138 VIRTUAL MACHINE 138 INFORMATION ID : 138 NAME: one-138 USER: emi GROUP : oneadmin STATE : ACTIVE LCM_STATE : RUNNING RESCHED : No HOST: nubacesga-01-4 START TIME : 11/27 11:34:32 END TIME: - DEPLOY ID : one-138 VIRTUAL MACHINE MONITORING USED MEMORY : 0K NET_RX : 0K USED CPU: 0 NET_TX : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VIRTUAL MACHINE TEMPLATE CPU=1 DISK=[ BUS=virtio, CLONE=YES, CLUSTER_ID=100, DATASTORE=GRID EMC, DATASTORE_ID=100, DEV_PREFIX=hd, DISK_ID=0, DRIVER=qcow2, IMAGE=GRID SL6_emi_cream_orig, IMAGE_ID=11, READONLY=NO, SAVE=NO,
Re: [one-users] Save As and Detach option
Images are only saved when you power off a machine with SHUTDOWN or CANCEL but not with DELETE. Delete command is ment to get rid of a VM that is in a wrong state or we just don't care about so no image saving is done. From what I see in the logs you are executing delete. If you just want to unplug the VM (not an ordered shutdown) you can use cancel. This will trigger the correct epilog that saves the images. On Tue, Nov 27, 2012 at 2:25 PM, Roberto Rosende Dopazo rrose...@cesga.es wrote: Hi El 27/11/12 13:58, Ruben S. Montero escribió: Hi, Just to add a few considerations: 1.- Save_as images are not created on the datastore, just an ID is generated as a placeholder for the new image (this is the fstype: save_as). So, it is normal that no image (actual path) is created after a save_as operation, and the state is supposed to be locked (waiting for the real image) as reported. I do not see any issue here. Ok, I understood that file was created at that moment. 2.- The save_as image is moved to the final destination when the VM is shutdown, shutdown means onevm shutdown (delete or stop will not move the image, for example). Could you send the output vm.log of the image after the shutdown. You should look for messages about a MVDS command. The complete log for that machine, there is not MVDS message. From onevm show image was created at REGISTER TIME : 11/27 11:36:26 [root@cloud one]# cat 138.log Tue Nov 27 11:34:56 2012 [DiM][I]: New VM state is ACTIVE. Tue Nov 27 11:34:56 2012 [LCM][I]: New VM state is PROLOG. Tue Nov 27 11:34:56 2012 [VM][I]: Virtual Machine has no context Tue Nov 27 11:34:58 2012 [TM][I]: clone: Cloning /var/lib/one/datastores/100/3dfef6d01e7e624f13ef13698ed04710 in nubacesga-01-4:/var/lib/one/datastores/0/138/disk.0 Tue Nov 27 11:34:58 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [TM][I]: mkimage: Making filesystem of 1024M and type swap at nubacesga-01-4:/var/lib/one/datastores/0/138/disk.1 Tue Nov 27 11:35:18 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [LCM][I]: New VM state is BOOT Tue Nov 27 11:35:18 2012 [VMM][I]: Generating deployment file: /var/lib/one/138/deployment.0 Tue Nov 27 11:35:18 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [VMM][I]: Successfully execute network driver operation: pre. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute virtualization driver operation: deploy. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute network driver operation: post. Tue Nov 27 11:35:19 2012 [LCM][I]: New VM state is RUNNING Tue Nov 27 11:38:01 2012 [LCM][I]: New VM state is CLEANUP. Tue Nov 27 11:38:01 2012 [DiM][I]: New VM state is DONE Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Driver command for 138 cancelled Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 delete: Deleting /var/lib/one/datastores/0/138 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: TRANSFER SUCCESS 138 - Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute virtualization driver operation: cancel. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute network driver operation: clean. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: CANCEL SUCCESS 138 - Cheers Ruben On Tue, Nov 27, 2012 at 12:41 PM, Roberto Rosende Dopazo rrose...@cesga.es wrote: Hi, El 27/11/12 11:50, Javier Fontan escribió: Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. It's kvm image and dynamic_ownership was wrong because I misunderstood and put it to 1, now is 0 and owner and group is not changed. But option save as still doesn't work, I tried it directly from frontend shell instead SunStone and I got that: [grid@cloud ~]$ onevm show 138 VIRTUAL MACHINE 138 INFORMATION ID : 138 NAME: one-138 USER: emi GROUP : oneadmin STATE : ACTIVE LCM_STATE : RUNNING RESCHED : No HOST: nubacesga-01-4 START TIME : 11/27 11:34:32 END TIME: - DEPLOY ID : one-138 VIRTUAL MACHINE MONITORING USED MEMORY : 0K NET_RX : 0K USED CPU: 0 NET_TX : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER
Re: [one-users] Save As and Detach option
Are you doing onevm shutdown? It should not go to the CLEANUP state On Tue, Nov 27, 2012 at 2:25 PM, Roberto Rosende Dopazo rrose...@cesga.eswrote: Hi El 27/11/12 13:58, Ruben S. Montero escribió: Hi, Just to add a few considerations: 1.- Save_as images are not created on the datastore, just an ID is generated as a placeholder for the new image (this is the fstype: save_as). So, it is normal that no image (actual path) is created after a save_as operation, and the state is supposed to be locked (waiting for the real image) as reported. I do not see any issue here. Ok, I understood that file was created at that moment. 2.- The save_as image is moved to the final destination when the VM is shutdown, shutdown means onevm shutdown (delete or stop will not move the image, for example). Could you send the output vm.log of the image after the shutdown. You should look for messages about a MVDS command. The complete log for that machine, there is not MVDS message. From onevm show image was created at REGISTER TIME : 11/27 11:36:26 [root@cloud one]# cat 138.log Tue Nov 27 11:34:56 2012 [DiM][I]: New VM state is ACTIVE. Tue Nov 27 11:34:56 2012 [LCM][I]: New VM state is PROLOG. Tue Nov 27 11:34:56 2012 [VM][I]: Virtual Machine has no context Tue Nov 27 11:34:58 2012 [TM][I]: clone: Cloning /var/lib/one/datastores/100/3dfef6d01e7e624f13ef13698ed04710 in nubacesga-01-4:/var/lib/one/datastores/0/138/disk.0 Tue Nov 27 11:34:58 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [TM][I]: mkimage: Making filesystem of 1024M and type swap at nubacesga-01-4:/var/lib/one/datastores/0/138/disk.1 Tue Nov 27 11:35:18 2012 [TM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [LCM][I]: New VM state is BOOT Tue Nov 27 11:35:18 2012 [VMM][I]: Generating deployment file: /var/lib/one/138/deployment.0 Tue Nov 27 11:35:18 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:18 2012 [VMM][I]: Successfully execute network driver operation: pre. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute virtualization driver operation: deploy. Tue Nov 27 11:35:19 2012 [VMM][I]: ExitCode: 0 Tue Nov 27 11:35:19 2012 [VMM][I]: Successfully execute network driver operation: post. Tue Nov 27 11:35:19 2012 [LCM][I]: New VM state is RUNNING Tue Nov 27 11:38:01 2012 [LCM][I]: New VM state is CLEANUP. Tue Nov 27 11:38:01 2012 [DiM][I]: New VM state is DONE Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Driver command for 138 cancelled Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 delete: Deleting /var/lib/one/datastores/0/138 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [TM][W]: Ignored: TRANSFER SUCCESS 138 - Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute virtualization driver operation: cancel. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 ExitCode: 0 Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: LOG I 138 Successfully execute network driver operation: clean. Tue Nov 27 11:38:01 2012 [VMM][W]: Ignored: CANCEL SUCCESS 138 - Cheers Ruben On Tue, Nov 27, 2012 at 12:41 PM, Roberto Rosende Dopazo rrose...@cesga.es wrote: Hi, El 27/11/12 11:50, Javier Fontan escribió: Hi, I'm struggling to understand the situation you are describing. Correct me if I am wrong. You mention dom0. Are you using Xen? If that is true disregard what I said about changing dynamic_ownership parameter in libvirt as Xen drivers do not use libvirt for hypervisor communication. It's kvm image and dynamic_ownership was wrong because I misunderstood and put it to 1, now is 0 and owner and group is not changed. But option save as still doesn't work, I tried it directly from frontend shell instead SunStone and I got that: [grid@cloud ~]$ onevm show 138 VIRTUAL MACHINE 138 INFORMATION ID : 138 NAME: one-138 USER: emi GROUP : oneadmin STATE : ACTIVE LCM_STATE : RUNNING RESCHED : No HOST: nubacesga-01-4 START TIME : 11/27 11:34:32 END TIME: - DEPLOY ID : one-138 VIRTUAL MACHINE MONITORING USED MEMORY : 0K NET_RX : 0K USED CPU: 0 NET_TX : 0K PERMISSIONS OWNER : um- GROUP : --- OTHER : --- VIRTUAL MACHINE TEMPLATE CPU=1 DISK=[ BUS=virtio, CLONE=YES, CLUSTER_ID=100, DATASTORE=GRID EMC, DATASTORE_ID=100, DEV_PREFIX=hd, DISK_ID=0, DRIVER=qcow2, IMAGE=GRID SL6_emi_cream_orig, IMAGE_ID=11, READONLY=NO, SAVE=NO, SOURCE=/var/lib/one/datastores/100/3dfef6d01e7e624f13ef13698ed04710,
[one-users] Question about VM scheduling
Hi all, We are considering using OpenNebula for some internal research tasks. We would like to know if it is possible to change the VM scheduler module to implement our own scheduling policies. Reading the documentation, it seems that the VM scheduler is a monolithic component, so we should replace it totally to develop our own scheduling policy. Is that so? Or is there any kind of plugin mechanism for scheduling policies? Best regards, Luis -- = Dr. Luis Rodero-Merino lrod...@gradiant.org Gradiant, Edificio CITEXVI, local 14 R/ Fonte das Abelleiras, Campus Universitario de Vigo Vigo, Pontevedra, Spain, CP 36310 Tf: +34 986 120 430 (ext 2012) Fax: +34 902 87 95 37 = ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VNC dont show popup window.
Hector, thanks for the help. I check the sunstone.error. There I see command not found error. To solve this: sudo chmod a+x /usr/share/one/websockify/websocketproxy.py Thanks. On Wed, Nov 14, 2012 at 5:08 PM, Hector Sanjuan li...@convivencial.orgwrote: ** Yes: Go through the troubleshooting section of the documentation: http://opennebula.org/documentation:rel3.8:sunstone#vnc_troubleshooting(change 3.8 to your version if you are on a different one) And through this thread from a couple of days ago: http://lists.opennebula.org/pipermail/users-opennebula.org/2012-November/020917.html Hector On Wed, 14 Nov 2012 20:55:26 +0100, Matheus Torquato matheus.t...@gmail.com wrote: Thanks Hector! Now I have the popup window. But, now I have this message Server disconnected (code: 1006). Any hints? Best regards 2012/11/14 matheus tor4 matheusi...@gmail.com Very apreciated Hector. I will try this now! Thanks! On Wed, Nov 14, 2012 at 4:44 PM, Hector Sanjuan li...@convivencial.orgwrote: Hello, this file cannot be located: Wed Nov 14 15:29:10 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:29:10] GET /vendor/noVNC/include/vnc.js HTTP/1.1 404 466 0.0017 I assume you are using OpenNebula 3.8. If you just ran the install_novnc.sh script, it probably won't work well due to late big changes to the novnc project. You can try fixing that by getting the last novnc_install.sh script[1] and rerunning it. Make sure all the /usr/lib/one/sunstone/public/vendor/noVNC/include/ files are in place though. Hector [1] http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/share/install_novnc.sh On Wed, 14 Nov 2012 20:23:48 +0100, matheus tor4 matheusi...@gmail.com wrote: Hello everybody, I got a error with VNC and sunstone. Even without a notice of errors, I dont can bring up a vnc session. I already tried: -- Move the files of /usr/lib/one/sunstone/public/vendor/noVNC/include/ to /usr/share/one/noVNC/include/ and vice-versa. -- Unable Secure websockets connection on dashboard configurations. Here my whole /var/log/one/sunstone.log: http://pastebin.com/iwVq7rgP Importants lines: tail -n2000 /var/log/one/sunstone.log | grep vnc {:vnc_proxy_base_port=29876, :vnc_proxy_key=nil, :vnc_proxy_support_wss=false, :vnc_proxy_path=/usr/share/one/noVNC/utils/websockify, :vnc_proxy_cert=nil, Wed Nov 14 15:11:20 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:11:20] GET /vendor/noVNC/include/vnc.js HTTP/1.1 404 466 0.0012 Wed Nov 14 15:28:32 2012 [I]: Starting vnc proxy: /usr/share/one/noVNC/utils/websockify 35783 ModcsNebula-FrontEnd:5907 Wed Nov 14 15:28:32 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:28:32] POST /vm/7/startvnc HTTP/1.1 200 30 0.0080 Wed Nov 14 15:29:10 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:29:10] GET /vendor/noVNC/include/vnc.js HTTP/1.1 404 466 0.0017 Wed Nov 14 15:29:17 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:29:17] GET /images/vnc_off.png HTTP/1.1 304 - 0.0008 Wed Nov 14 15:29:17 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:29:17] GET /images/vnc_on.png HTTP/1.1 304 - 0.0007 Wed Nov 14 15:31:00 2012 [I]: Starting vnc proxy: /usr/share/one/noVNC/utils/websockify 35786 ModcsNebula-FrontEnd:5910 Wed Nov 14 15:31:00 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:31:00] POST /vm/10/startvnc HTTP/1.1 200 30 0.1287 Wed Nov 14 15:32:51 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:32:51] POST /vm/10/startvnc HTTP/1.1 200 30 0.0014 Wed Nov 14 15:32:52 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:32:52] POST /vm/10/startvnc HTTP/1.1 200 30 0.0013 Wed Nov 14 15:35:21 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:35:21] POST /vm/7/startvnc HTTP/1.1 200 30 0.0014 Wed Nov 14 15:35:22 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:35:22] POST /vm/7/startvnc HTTP/1.1 200 30 0.0014 Wed Nov 14 15:35:23 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:35:23] POST /vm/7/startvnc HTTP/1.1 200 30 0.0014 Wed Nov 14 15:39:15 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:39:15] POST /vm/7/startvnc HTTP/1.1 200 30 0.0011 Wed Nov 14 15:41:28 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:28] POST /vm/10/startvnc HTTP/1.1 200 30 0.0011 Wed Nov 14 15:41:41 2012 [I]: Starting vnc proxy: /usr/share/one/noVNC/utils/websockify 35785 ModcsNebula-Node01:5909 Wed Nov 14 15:41:41 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:41] POST /vm/9/startvnc HTTP/1.1 200 30 0.0076 Wed Nov 14 15:41:42 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:42] POST /vm/9/startvnc HTTP/1.1 200 30 0.0013 Wed Nov 14 15:41:42 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:42] POST /vm/9/startvnc HTTP/1.1 200 30 0.0012 Wed Nov 14 15:41:42 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:42] POST /vm/9/startvnc HTTP/1.1 200 30 0.0012 Wed Nov 14 15:41:43 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:41:43] POST /vm/9/startvnc HTTP/1.1 200 30 0.0011 Wed Nov 14 15:46:23 2012 [I]: 192.168.56.4 - - [14/Nov/2012 15:46:23] POST /vm/10/startvnc HTTP/1.1 200 30 0.0011 Wed
Re: [one-users] Question about VM scheduling
Hi Luis, As you said, the scheduler is a separate daemon, mm_sched, and can be completely replaced. But the code is also ready to accept (and combine) new policies. To get started, take a look at the code in src/scheduler [1]. You'll see that RankPolicy is a child class of the more generic SchedulerHostPolicy. Regards [1] http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/scheduler -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Tue, Nov 27, 2012 at 3:49 PM, Luis Rodero Merino lrod...@gradiant.orgwrote: Hi all, We are considering using OpenNebula for some internal research tasks. We would like to know if it is possible to change the VM scheduler module to implement our own scheduling policies. Reading the documentation, it seems that the VM scheduler is a monolithic component, so we should replace it totally to develop our own scheduling policy. Is that so? Or is there any kind of plugin mechanism for scheduling policies? Best regards, Luis -- = Dr. Luis Rodero-Merino lrod...@gradiant.org Gradiant, Edificio CITEXVI, local 14 R/ Fonte das Abelleiras, Campus Universitario de Vigo Vigo, Pontevedra, Spain, CP 36310 Tf: +34 986 120 430 (ext 2012) Fax: +34 902 87 95 37 = ___ 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] failed to attached disk in KVM
Hello Javier, I followed your recommendation BUT still I got the same error. Is there any way to address the issue? I haven't upgraded to 3.8.1 still using 3.6 yet. Regards, Junix On Mon, Nov 26, 2012 at 4:54 AM, Javier Fontan jfon...@opennebula.orgwrote: I can not reproduce this problem in 3.8.1. Try to add DRIVER=raw to the image before attaching it. 2012/11/24 jd daniel ch juni...@gmail.com: Hello there, Scenario: OpenNebula 3.6+CentOS 6.3x86_64bit Issues: When I attached Disk (Type: Existing Image; Device prefix: sd) on my VM. Image created dev prefix is sd, target is sdb. Error log below when I attached the disk - Fri Nov 23 16:54:50 2012 [VMM][I]: Successfully execute transfer manager driver operation: tm_attach. Fri Nov 23 16:54:51 2012 [VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_disk one-305 /var/lib/one//datastores/0/305/disk.2 sdb 1
Re: [one-users] upgrade to latest from 1.4
On Tue, Nov 27, 2012 at 11:35:47AM +0100, Carlos Martín Sánchez wrote: Hi, The migration is sequentially executed by the latest installed code, so you only need to install the latest version [1]. Unfortunately the lowest version for wich we provide a migration path is 2.0. You may want to contact C12G [2] and ask if they provide or can develop support for 1.4 migrations. I think I may have misunderstood what you were saying. I am now thinking you are saying there are no official ways to upgrade from 1.4 to 2.x. Okay. However I did find this: http://dev.opennebula.org/issues/415 I am assuming that, if the above script works, I can still do a 1.4 - 2.0 and then a 2.0 - 3.8 upgrade. -- seth /\ sethdaniel.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