Re: [one-users] Recommended tools for creating img files
Hi, a very nice tool is Suse Studio (for suse distrib fo course). You can generate iso, amazon ec2, vmdk files etc and can customize completly your image Olivier Le 3/31/11 7:48 PM, Madhurranjan Mohaan a écrit : What is the best way to -- gpg key id: 4096R/326D8438 (pgp.mit.edu) 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] Host hooks aren't triggered
Hi, I checked the ruby script that's called and it seems that the array containing the list of VMs is empty vm_ids_array = vms.retrieve_elements(/VM_POOL/VM[STATE=3]/HISTORY[HOSTNAME=\#{host_name}\]/../ID) I tried printing something to a tmp file to make sure that the script gets the right host id. my_file = File.new(/tmp/remove_me.txt, w) my_file.puts OpenNebula host has failed #{ARGV[0]} The hostname and host_id are correctly detected by the script. Thank you for any hints on how to fix this, -- Zaina On Thu, 31 Mar 2011 16:36:22 +0200, Zaina AFOULKI wrote: I just checked back the oned.log and it seems that the hook is executed [HKM][D]: Message received: EXECUTE SUCCESS 31 disable However the VMs aren't re-submitted as expected ? Thanks, -- Zaina On Thu, 31 Mar 2011 16:20:27 +0200, Zaina AFOULKI wrote: Hi, I'm having some trouble getting the HOST_HOOKS to work: I added this to the configuration file and restarted oned. HOST_HOOK = [ name = disable, on= DISABLE, command = host_error.rb, arguments = $HID -r y, remote= no ] However when I disable a host using onehost disable the VMs aren't re-submitted. The oned.log doesn't indicate that the hook has been triggered. I'm using OpenNebula 2.2 and the script host_error.rb is indeed located in my $ONE_LOCATION/share/hooks/ What am I doing wrong? Thanks ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] onevm creta VGA problem
Hi, I'm having problems when trying to create a VM. It claims about the VGA type, I'm not sure about what it meas. This is (part of) the output on my oned.log after executing 'onevm create ttylinux.one': Fri Apr 1 12:12:57 2011 [TM][D]: Message received: TRANSFER SUCCESS 5 - Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 Command execution fail: 'if [ -x /var/tmp/one/vmm/kvm/deploy ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//5/images/deployment.0; else exit 42; fi' Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 STDERR follows. Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 error: Failed to create domain from /srv/cloud/one/var//5/images/deployment.0 Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 error: internal error process exited while connecting to monitor: Unknown vga type: none Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 Fri Apr 1 12:13:00 2011 [VMM][D]: Message received: LOG - 5 ExitCode: 255 and this is the content of my ttylinux.one file (i took it from 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 ] Any hint? Thanks in advance. Regards, Idafen ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: Error trying to CREATE HOST Error inserting Host Share in DB
Hi Vivek, You are installing OpenNebula 2.0, right? Could you check if there is any error message in oned.log right after this message? [ONE][I]: Bootstraping OpenNebula database. It may be also helpful if you could send the output of $ sqlite3 one.db .schema 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 On 31 March 2011 16:02, Vivek Shrivastava shrivastava.vi...@gmail.comwrote: Hello all, I've installed opennebula with the help of express installation, while creating node I'm getting the problem:- oneadmin@oneadmin-desktop:~/Downloads$ onehost create node01 im_kvm vmm_kvm tm_ssh Error: [HostAllocate] Error trying to CREATE HOST Error inserting Host Share in DB. (1) I made /etc/one chmod 777, so that install.sh can run easily, is this the problem? (2) What should I do to solve above problem? (3) if I want to use kvm with ssh in cluster nodes, is that necessary to configure nfs (in node-install script) ? (4) in oned.log I got this error:- SQL command was: INSERT INTO host_shares (hid,disk_usage, mem_usage, cpu_usage,max_disk, max_mem, max_cpu,free_disk, free_mem, free_cpu,used_disk, used_mem, used_cpu,running_vms) VALUES (0,0,0,0,0,0,0,0,0,0,0,0,0,0), error: table host_shares has no column named free_disk What should I do? Thanks in advance. -- Regards, Vivek Shrivastava -- ___ 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] OpenVZ VM config template
Hi, I've opened a ticket to avoid erasing custom attributes in disk and network sections [1]. the problem i see with the workaround is how to relate the RAW section to DISK in case there is more than one DISK. Regards, [1] http://dev.opennebula.org/issues/559 -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Thu, Mar 31, 2011 at 3:50 PM, kna...@gmail.com wrote: 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 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM creation stuck in pending state
Happen to me as well , I can manually deploy, but by default it is stuck in Pending state forever .. I restarted SCHED as well. but same .. any hint ? Zeeshan On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán hsanj...@opennebula.orgwrote: Hi, make sure there is a host available to receive the VM. Have you tried to manually deploy it by: $ onevm deploy vmid hostid Maybe the logs will offer more information then. Héctor El 27/03/11 17:24, Madhurranjan Mohaan escribió: Hi All, I am unable to create VMs any further because they are stuck in pending state. onevm list 39 oneadminvm-ex pend 0 0K 00 00:07:44 The logs don't seem to get anything about this. I restarted after backing up the logs , on all machines but the result is the same . I keep getting this message but nothing more. Any suggestions ? Sun Mar 27 20:49:38 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:40 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: HostPoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked My vm-template is as follows: NAME = vm-ex CPU= 1 MEMORY = 256 DISK = [ image = Frame OS installation ] NIC = [ network = Test-Fixed ] GRAPHICS = [ type= vnc, listen = localhost, port= 5902 ] CONTEXT = [ HOSTNAME = ABC files = /srv/cloud/one/vm-template-2/init.sh ] thanks Ranjan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuan OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM creation stuck in pending state
Hi, Please take a look at [1]. Regards, -Tino [1] http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah zas...@pdc.kth.se wrote: Happen to me as well , I can manually deploy, but by default it is stuck in Pending state forever .. I restarted SCHED as well. but same .. any hint ? Zeeshan On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán hsanj...@opennebula.org wrote: Hi, make sure there is a host available to receive the VM. Have you tried to manually deploy it by: $ onevm deploy vmid hostid Maybe the logs will offer more information then. Héctor El 27/03/11 17:24, Madhurranjan Mohaan escribió: Hi All, I am unable to create VMs any further because they are stuck in pending state. onevm list 39 oneadmin vm-ex pend 0 0K 00 00:07:44 The logs don't seem to get anything about this. I restarted after backing up the logs , on all machines but the result is the same . I keep getting this message but nothing more. Any suggestions ? Sun Mar 27 20:49:38 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:40 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: HostPoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked My vm-template is as follows: NAME = vm-ex CPU = 1 MEMORY = 256 DISK = [ image = Frame OS installation ] NIC = [ network = Test-Fixed ] GRAPHICS = [ type = vnc, listen = localhost, port = 5902 ] CONTEXT = [ HOSTNAME = ABC files = /srv/cloud/one/vm-template-2/init.sh ] thanks Ranjan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuan OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ 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] Host hooks aren't triggered
Hi Zaina, Could you please print out also the content of vm_ids_array? I am afraid the xpath expression may not be doing its job. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Apr 1, 2011 at 8:57 AM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote: Hi, I checked the ruby script that's called and it seems that the array containing the list of VMs is empty vm_ids_array = vms.retrieve_elements(/VM_POOL/VM[STATE=3]/HISTORY[HOSTNAME=\#{host_name}\]/../ID) I tried printing something to a tmp file to make sure that the script gets the right host id. my_file = File.new(/tmp/remove_me.txt, w) my_file.puts OpenNebula host has failed #{ARGV[0]} The hostname and host_id are correctly detected by the script. Thank you for any hints on how to fix this, -- Zaina On Thu, 31 Mar 2011 16:36:22 +0200, Zaina AFOULKI wrote: I just checked back the oned.log and it seems that the hook is executed [HKM][D]: Message received: EXECUTE SUCCESS 31 disable However the VMs aren't re-submitted as expected ? Thanks, -- Zaina On Thu, 31 Mar 2011 16:20:27 +0200, Zaina AFOULKI wrote: Hi, I'm having some trouble getting the HOST_HOOKS to work: I added this to the configuration file and restarted oned. HOST_HOOK = [ name = disable, on = DISABLE, command = host_error.rb, arguments = $HID -r y, remote = no ] However when I disable a host using onehost disable the VMs aren't re-submitted. The oned.log doesn't indicate that the hook has been triggered. I'm using OpenNebula 2.2 and the script host_error.rb is indeed located in my $ONE_LOCATION/share/hooks/ What am I doing wrong? Thanks ___ 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] 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] VM creation stuck in pending state
in Our case they are monitorized and are not in error state as shown in one host list . neither the memory cpu requirement are exhausted .. any other hint ? it was working fine after that I launched 5vm and it stucked (Although) I have 32 cores with 160GB RAM left. but later i deleted vms restarted ONEd and SCHED: even after that when no vms left the new vms in pending state.I had to use manual one vm deploy everytime.. Zeeshan On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez tinov...@gmail.com wrote: Hi, Please take a look at [1]. Regards, -Tino [1] http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah zas...@pdc.kth.se wrote: Happen to me as well , I can manually deploy, but by default it is stuck in Pending state forever .. I restarted SCHED as well. but same .. any hint ? Zeeshan On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán hsanj...@opennebula.org wrote: Hi, make sure there is a host available to receive the VM. Have you tried to manually deploy it by: $ onevm deploy vmid hostid Maybe the logs will offer more information then. Héctor El 27/03/11 17:24, Madhurranjan Mohaan escribió: Hi All, I am unable to create VMs any further because they are stuck in pending state. onevm list 39 oneadminvm-ex pend 0 0K 00 00:07:44 The logs don't seem to get anything about this. I restarted after backing up the logs , on all machines but the result is the same . I keep getting this message but nothing more. Any suggestions ? Sun Mar 27 20:49:38 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:40 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: HostPoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked My vm-template is as follows: NAME = vm-ex CPU= 1 MEMORY = 256 DISK = [ image = Frame OS installation ] NIC = [ network = Test-Fixed ] GRAPHICS = [ type= vnc, listen = localhost, port= 5902 ] CONTEXT = [ HOSTNAME = ABC files = /srv/cloud/one/vm-template-2/init.sh ] thanks Ranjan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuan OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Asking about onehost command
Hi, please check this: http://lists.opennebula.org/pipermail/users-opennebula.org/2011-March/004580.html and see if it fixes it. Hope it helps, Héctor El 01/04/11 05:59, Hoang Dinh Phuc escribió: Dear all, I'm new to opennebula. I'm already install OpenNebula in CentOS5.5 (textmode). When i'm using command onehost to add a node to cluster, it make an STATE Err, here is my oned.log. Please tell me the solution: DB=BACKEND=mysql,DB_NAME=XXXuser,PASSWD=XXXpasswd,PORT=0,SERVER=localhost,USER=openadmin DEBUG_LEVEL=3 DEFAULT_DEVICE_PREFIX=hd DEFAULT_IMAGE_TYPE=OS HM_MAD=EXECUTABLE=one_hm HOST_MONITORING_INTERVAL=600 IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images IM_MAD=ARGUMENTS=kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm MAC_PREFIX=02:00 MANAGER_TIMER=15 NETWORK_SIZE=254 PORT=2633 SCRIPTS_REMOTE_DIR=/var/tmp/one TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs VM_DIR=/srv/cloud/one/var VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE VM_MAD=ARGUMENTS=kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm VM_POLLING_INTERVAL=600 VNC_BASE_PORT=5900 Fri Apr 1 10:29:59 2011 [ONE][I]: Bootstraping OpenNebula database. Fri Apr 1 10:29:59 2011 [VMM][I]: Starting Virtual Machine Manager... Fri Apr 1 10:29:59 2011 [LCM][I]: Starting Life-cycle Manager... Fri Apr 1 10:29:59 2011 [InM][I]: Starting Information Manager... Fri Apr 1 10:29:59 2011 [VMM][I]: Virtual Machine Manager started. Fri Apr 1 10:29:59 2011 [LCM][I]: Life-cycle Manager started. Fri Apr 1 10:29:59 2011 [InM][I]: Information Manager started. Fri Apr 1 10:29:59 2011 [TrM][I]: Starting Transfer Manager... Fri Apr 1 10:29:59 2011 [DiM][I]: Starting Dispatch Manager... Fri Apr 1 10:29:59 2011 [ReM][I]: Starting Request Manager... Fri Apr 1 10:29:59 2011 [ReM][I]: Starting XML-RPC server, port 2633 ... Fri Apr 1 10:29:59 2011 [HKM][I]: Starting Hook Manager... Fri Apr 1 10:29:59 2011 [TrM][I]: Transfer Manager started. Fri Apr 1 10:29:59 2011 [DiM][I]: Dispatch Manager started. Fri Apr 1 10:29:59 2011 [ReM][I]: Request Manager started. Fri Apr 1 10:29:59 2011 [HKM][I]: Hook Manager started. Fri Apr 1 10:30:01 2011 [VMM][I]: Loading Virtual Machine Manager drivers. Fri Apr 1 10:30:01 2011 [VMM][I]: Loading driver: vmm_kvm (KVM) Fri Apr 1 10:30:01 2011 [VMM][I]: Driver vmm_kvm loaded. Fri Apr 1 10:30:01 2011 [InM][I]: Loading Information Manager drivers. Fri Apr 1 10:30:01 2011 [InM][I]: Loading driver: im_kvm Fri Apr 1 10:30:01 2011 [InM][I]: Driver im_kvm loaded Fri Apr 1 10:30:01 2011 [TM][I]: Loading Transfer Manager drivers. Fri Apr 1 10:30:01 2011 [VMM][I]: Loading driver: tm_nfs Fri Apr 1 10:30:01 2011 [TM][I]: Driver tm_nfs loaded. Fri Apr 1 10:30:01 2011 [HKM][I]: Loading Hook Manager driver. Fri Apr 1 10:30:01 2011 [HKM][I]: Hook Manager loaded */Fri Apr 1 10:35:45 2011 [InM][I]: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm node01; else exit 42; fi' Fri Apr 1 10:35:45 2011 [InM][I]: STDERR follows. Fri Apr 1 10:35:45 2011 [InM][I]: error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied Fri Apr 1 10:35:45 2011 [InM][I]: error: failed to connect to the hypervisor /* *$ onehost list* *ID NAME CLUSTER RVM TCPU FCPU ACPUTMEM FMEM STAT* 0 node01default0 0 0100 0K 0K err *$ cat /srv/cloud/one/etc/oned.conf* HOST_MONITORING_INTERVAL = 600 VM_POLLING_INTERVAL = 600 VM_DIR=/srv/cloud/one/var SCRIPTS_REMOTE_DIR=/var/tmp/one PORT=2633 DB = [ backend = mysql, server = localhost, port= 0, user= XXXuser, passwd = XXXpasswd, db_name = opennebula ] VNC_BASE_PORT = 5900 DEBUG_LEVEL=3 NETWORK_SIZE = 254 MAC_PREFIX = 02:00 DEFAULT_IMAGE_TYPE= OS DEFAULT_DEVICE_PREFIX = hd IM_MAD = [ name = im_kvm, executable = one_im_ssh, arguments = kvm ] VM_MAD = [ name = vmm_kvm, executable = one_vmm_ssh, arguments = kvm, default= vmm_ssh/vmm_ssh_kvm.conf, type = kvm ] TM_MAD = [ name = tm_nfs, executable = one_tm, arguments = tm_nfs/tm_nfs.conf ] HM_MAD = [ executable = one_hm ] VM_HOOK = [ name = image, on= DONE, command = image.rb, arguments = $VMID ] I already install libvirt-bin on Ubuntu Server 10.10(node) Thanks --- F: Hoang Dinh Phuc E: hdp...@gmail.com mailto:hdp...@gmail.com M: +84909398700 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuan OpenNebula.org
[one-users] oned run problem
Hello all, while running opennebula express installation, i got problem can't execute - /usr/bin/oned so I run it manually :- root@oneadmin-desktop:~/Desktop/opennebula_express# sh /usr/bin/oned /usr/bin/oned: 1: Syntax error: word unexpected (expecting )) Now what should I do? -- From, Vivek Shrivastava ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] vm fails to start - vm.log: [TM][E]: prolog, error getting driver vmm_kvm
Hi Marius, Please check in oned.log if right after start-up there are some error messages like: MAD did not answer INIT command If so, you can enable the mad debug in etc/defaultrc: ONE_MAD_DEBUG=1. That could shed some light on the issue. 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 On 1 April 2011 13:53, Marius Dagilis mar...@proservis.lt wrote: Hello everyone, I'm trying to create vm, but after being for a short time at Pending state it ends up in Failed. ssh login to hosts works without passwords, user oneadmin is able to access all files in the /srv/cloud/. Where can be the problem? There are these lines in the vm.log file: Fri Apr 1 14:43:06 2011 [DiM][I]: New VM state is ACTIVE. Fri Apr 1 14:43:06 2011 [LCM][I]: New VM state is PROLOG. Fri Apr 1 14:43:06 2011 [TM][E]: prolog, error getting driver vmm_kvm Fri Apr 1 14:43:06 2011 [DiM][I]: New VM state is FAILED Fri Apr 1 14:43:06 2011 [TM][E]: epilog_delete, error getting driver tm_nfs. You may need to manually clean 192.168.21.240: /srv/cloud/one/var//4/images my one config is: DB=BACKEND=mysql,DB_NAME=opennebula,PASSWD=onetwoone,PORT=0,SERVER=localhost,USER=oneadmin DEBUG_LEVEL=3 DEFAULT_DEVICE_PREFIX=hd DEFAULT_IMAGE_TYPE=OS HM_MAD=EXECUTABLE=one_hm HOST_MONITORING_INTERVAL=600 IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm MAC_PREFIX=02:00 MANAGER_TIMER=15 NETWORK_SIZE=32 PORT=2633 SCRIPTS_REMOTE_DIR=/var/tmp/one TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs VM_DIR=/srv/cloud/one/var/ VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE VM_MAD=ARGUMENTS=-t 15 -r 0 kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm VM_POLLING_INTERVAL=600 VNC_BASE_PORT=5900 Thank you! Marius Dagilis. ___ 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] OpenVZ VM config template
Hi, Oh, I see then. I suggest using this RAW workaround then until the ticket is solved (we are solving it anyway since the overwritting wasn't the intended behavior). Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Apr 1, 2011 at 12:35 PM, kna...@gmail.com wrote: 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] VM creation stuck in pending state
Hi, Any REQUIREMENT section in the VM templates? Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Apr 1, 2011 at 1:38 PM, Zeeshan Ali Shah zas...@pdc.kth.se wrote: in Our case they are monitorized and are not in error state as shown in one host list . neither the memory cpu requirement are exhausted .. any other hint ? it was working fine after that I launched 5vm and it stucked (Although) I have 32 cores with 160GB RAM left. but later i deleted vms restarted ONEd and SCHED: even after that when no vms left the new vms in pending state. I had to use manual one vm deploy everytime.. Zeeshan On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez tinov...@gmail.com wrote: Hi, Please take a look at [1]. Regards, -Tino [1] http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah zas...@pdc.kth.se wrote: Happen to me as well , I can manually deploy, but by default it is stuck in Pending state forever .. I restarted SCHED as well. but same .. any hint ? Zeeshan On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán hsanj...@opennebula.org wrote: Hi, make sure there is a host available to receive the VM. Have you tried to manually deploy it by: $ onevm deploy vmid hostid Maybe the logs will offer more information then. Héctor El 27/03/11 17:24, Madhurranjan Mohaan escribió: Hi All, I am unable to create VMs any further because they are stuck in pending state. onevm list 39 oneadmin vm-ex pend 0 0K 00 00:07:44 The logs don't seem to get anything about this. I restarted after backing up the logs , on all machines but the result is the same . I keep getting this message but nothing more. Any suggestions ? Sun Mar 27 20:49:38 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:40 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: HostPoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo method invoked My vm-template is as follows: NAME = vm-ex CPU = 1 MEMORY = 256 DISK = [ image = Frame OS installation ] NIC = [ network = Test-Fixed ] GRAPHICS = [ type = vnc, listen = localhost, port = 5902 ] CONTEXT = [ HOSTNAME = ABC files = /srv/cloud/one/vm-template-2/init.sh ] thanks Ranjan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuan OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Regards Zeeshan Ali Shah System Administrator PDC-Center for High Performance Computing KTH-Royal Institute of Technology , Sweden +46 8 790 9115 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Host hooks aren't triggered
Hi Tino, I added this to the ruby script (I'm new to Ruby, so I'm not sure it's correct): my_file.puts OpenNebula host #{vm_ids_array.class} for item in 0...vm_ids_array.length my_file.puts #{vm_ids_array[item]}; end $cat /tmp/remove_me.txt OpenNebula host has failed 31 NilClass oned.log: Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 Command execution fail: /home/oneadmin/one/share/hooks/host_error.rb 31 -r y Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 STDERR follows. Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 /home/oneadmin/one/share/hooks/host_error.rb:81: undefined method `length' for nil:NilClass (NoMethodError) Thanks for your help, -- Zaina On Fri, 1 Apr 2011 12:31:21 +0100, Tino Vazquez wrote: Hi Zaina, Could you please print out also the content of vm_ids_array? I am afraid the xpath expression may not be doing its job. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Apr 1, 2011 at 8:57 AM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote: Hi, I checked the ruby script that's called and it seems that the array containing the list of VMs is empty vm_ids_array = vms.retrieve_elements(/VM_POOL/VM[STATE=3]/HISTORY[HOSTNAME=\#{host_name}\]/../ID) I tried printing something to a tmp file to make sure that the script gets the right host id. my_file = File.new(/tmp/remove_me.txt, w) my_file.puts OpenNebula host has failed #{ARGV[0]} The hostname and host_id are correctly detected by the script. Thank you for any hints on how to fix this, -- Zaina On Thu, 31 Mar 2011 16:36:22 +0200, Zaina AFOULKI wrote: I just checked back the oned.log and it seems that the hook is executed [HKM][D]: Message received: EXECUTE SUCCESS 31 disable However the VMs aren't re-submitted as expected ? Thanks, -- Zaina On Thu, 31 Mar 2011 16:20:27 +0200, Zaina AFOULKI wrote: Hi, I'm having some trouble getting the HOST_HOOKS to work: I added this to the configuration file and restarted oned. HOST_HOOK = [ name = disable, on = DISABLE, command = host_error.rb, arguments = $HID -r y, remote = no ] However when I disable a host using onehost disable the VMs aren't re-submitted. The oned.log doesn't indicate that the hook has been triggered. I'm using OpenNebula 2.2 and the script host_error.rb is indeed located in my $ONE_LOCATION/share/hooks/ What am I doing wrong? Thanks ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Zaina AFOULKI Étudiante à l'Ecole Nationale Supérieure d'Ingénieurs de Bourges. 1ère année Sécurité et Technologies Informatiques ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Host hooks aren't triggered
Hi, Please try the following: my_file.puts OpenNebula host #{vm_ids_array.class} my_file.puts vm_ids_array.class Also, please send the output of $ onehost list -x $ onevm list -x Regards, -Tino -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Fri, Apr 1, 2011 at 5:23 PM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote: Hi Tino, I added this to the ruby script (I'm new to Ruby, so I'm not sure it's correct): my_file.puts OpenNebula host #{vm_ids_array.class} for item in 0...vm_ids_array.length my_file.puts #{vm_ids_array[item]}; end $cat /tmp/remove_me.txt OpenNebula host has failed 31 NilClass oned.log: Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 Command execution fail: /home/oneadmin/one/share/hooks/host_error.rb 31 -r y Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 STDERR follows. Fri Apr 1 17:16:36 2011 [HKM][D]: Message received: LOG - 31 /home/oneadmin/one/share/hooks/host_error.rb:81: undefined method `length' for nil:NilClass (NoMethodError) Thanks for your help, -- Zaina On Fri, 1 Apr 2011 12:31:21 +0100, Tino Vazquez wrote: Hi Zaina, Could you please print out also the content of vm_ids_array? I am afraid the xpath expression may not be doing its job. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor www.OpenNebula.org | @tinova79 On Fri, Apr 1, 2011 at 8:57 AM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote: Hi, I checked the ruby script that's called and it seems that the array containing the list of VMs is empty vm_ids_array = vms.retrieve_elements(/VM_POOL/VM[STATE=3]/HISTORY[HOSTNAME=\#{host_name}\]/../ID) I tried printing something to a tmp file to make sure that the script gets the right host id. my_file = File.new(/tmp/remove_me.txt, w) my_file.puts OpenNebula host has failed #{ARGV[0]} The hostname and host_id are correctly detected by the script. Thank you for any hints on how to fix this, -- Zaina On Thu, 31 Mar 2011 16:36:22 +0200, Zaina AFOULKI wrote: I just checked back the oned.log and it seems that the hook is executed [HKM][D]: Message received: EXECUTE SUCCESS 31 disable However the VMs aren't re-submitted as expected ? Thanks, -- Zaina On Thu, 31 Mar 2011 16:20:27 +0200, Zaina AFOULKI wrote: Hi, I'm having some trouble getting the HOST_HOOKS to work: I added this to the configuration file and restarted oned. HOST_HOOK = [ name = disable, on = DISABLE, command = host_error.rb, arguments = $HID -r y, remote = no ] However when I disable a host using onehost disable the VMs aren't re-submitted. The oned.log doesn't indicate that the hook has been triggered. I'm using OpenNebula 2.2 and the script host_error.rb is indeed located in my $ONE_LOCATION/share/hooks/ What am I doing wrong? Thanks ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Zaina AFOULKI Étudiante à l'Ecole Nationale Supérieure d'Ingénieurs de Bourges. 1ère année Sécurité et Technologies Informatiques ___ 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] Host hooks aren't triggered
Hi, Everything seems alright, except for the xpath expression returned nil object. So please let's try debugging the vms fetched: --- class OpenNebula::VirtualMachinePool attr_reader :xml end my_file.puts vms.xml --- Regards, -Tino -- Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org On Fri, Apr 1, 2011 at 5:47 PM, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote: Hi Tino, I added the lines as you asked and I get this in the /tmp/remove_me.txt OpenNebula host NilClass NilClass $ onehost list -x HOST_POOL HOST ID29/ID NAMEnode1/NAME STATE2/STATE IM_MADim_kvm/IM_MAD VM_MADvmm_kvm/VM_MAD TM_MADtm_nfs/TM_MAD LAST_MON_TIME1301672703/LAST_MON_TIME CLUSTERdefault/CLUSTER TEMPLATE ARCH![CDATA[x86_64]]/ARCH CPUSPEED![CDATA[1998]]/CPUSPEED FREECPU![CDATA[90.6]]/FREECPU FREEMEMORY![CDATA[770956]]/FREEMEMORY HOSTNAME![CDATA[node1]]/HOSTNAME HYPERVISOR![CDATA[kvm]]/HYPERVISOR MODELNAME![CDATA[Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz]]/MODELNAME NETRX![CDATA[0]]/NETRX NETTX![CDATA[0]]/NETTX TOTALCPU![CDATA[200]]/TOTALCPU TOTALMEMORY![CDATA[2056676]]/TOTALMEMORY USEDCPU![CDATA[109.4]]/USEDCPU USEDMEMORY![CDATA[1285720]]/USEDMEMORY /TEMPLATE HOST_SHARE HID29/HID DISK_USAGE0/DISK_USAGE MEM_USAGE262144/MEM_USAGE CPU_USAGE10/CPU_USAGE MAX_DISK0/MAX_DISK MAX_MEM2056676/MAX_MEM MAX_CPU200/MAX_CPU FREE_DISK0/FREE_DISK FREE_MEM770956/FREE_MEM FREE_CPU90/FREE_CPU USED_DISK0/USED_DISK USED_MEM1285720/USED_MEM USED_CPU109/USED_CPU RUNNING_VMS1/RUNNING_VMS /HOST_SHARE /HOST HOST ID31/ID NAMEnode2/NAME STATE4/STATE IM_MADim_kvm/IM_MAD VM_MADvmm_kvm/VM_MAD TM_MADtm_nfs/TM_MAD LAST_MON_TIME1301672409/LAST_MON_TIME CLUSTERdefault/CLUSTER TEMPLATE ARCH![CDATA[x86_64]]/ARCH CPUSPEED![CDATA[1998]]/CPUSPEED FREECPU![CDATA[200.0]]/FREECPU FREEMEMORY![CDATA[1800824]]/FREEMEMORY HOSTNAME![CDATA[node2]]/HOSTNAME HYPERVISOR![CDATA[kvm]]/HYPERVISOR MODELNAME![CDATA[Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz]]/MODELNAME NETRX![CDATA[0]]/NETRX NETTX![CDATA[0]]/NETTX TOTALCPU![CDATA[200]]/TOTALCPU TOTALMEMORY![CDATA[2056676]]/TOTALMEMORY USEDCPU![CDATA[0.0]]/USEDCPU USEDMEMORY![CDATA[255852]]/USEDMEMORY /TEMPLATE HOST_SHARE HID31/HID DISK_USAGE0/DISK_USAGE MEM_USAGE0/MEM_USAGE CPU_USAGE0/CPU_USAGE MAX_DISK0/MAX_DISK MAX_MEM2056676/MAX_MEM MAX_CPU200/MAX_CPU FREE_DISK0/FREE_DISK FREE_MEM1800824/FREE_MEM FREE_CPU200/FREE_CPU USED_DISK0/USED_DISK USED_MEM255852/USED_MEM USED_CPU0/USED_CPU RUNNING_VMS0/RUNNING_VMS /HOST_SHARE /HOST /HOST_POOL $ onevm list -x VM_POOL VM ID3056/ID UID2/UID USERNAMEsfr/USERNAME NAMEsfr-ar/NAME LAST_POLL1301672685/LAST_POLL STATE3/STATE LCM_STATE3/LCM_STATE STIME1301672613/STIME ETIME0/ETIME DEPLOY_IDone-3056/DEPLOY_ID MEMORY0/MEMORY CPU0/CPU NET_TX0/NET_TX NET_RX0/NET_RX LAST_SEQ0/LAST_SEQ TEMPLATE CPU![CDATA[0.1]]/CPU DISK DISK_ID![CDATA[0]]/DISK_ID SOURCE![CDATA[/home/oneadmin/vmu.img]]/SOURCE TARGET![CDATA[sda]]/TARGET /DISK FEATURES ACPI![CDATA[yes]]/ACPI /FEATURES HAIZEA DURATION![CDATA[00:07:00]]/DURATION PREEMPTIBLE![CDATA[no]]/PREEMPTIBLE START![CDATA[+00:00:50]]/START /HAIZEA MEMORY![CDATA[256]]/MEMORY NAME![CDATA[sfr-ar]]/NAME NIC BRIDGE![CDATA[br0]]/BRIDGE IP![CDATA[172.30.8.12]]/IP MAC![CDATA[02:00:ac:1e:08:0c]]/MAC NETWORK![CDATA[orange_public]]/NETWORK NETWORK_ID![CDATA[20]]/NETWORK_ID /NIC OS BOOT![CDATA[hd]]/BOOT ROOT![CDATA[sda]]/ROOT /OS RAW DATA![CDATA[devicesserial type=ptysource path=/dev/pts/5/target port=0//serialconsole type=pty tty=/dev/pts/5source path=/dev/pts/5/target port=0//consolegraphics type=vnc port=5901 autoport=yes//devices]]/DATA TYPE![CDATA[kvm]]/TYPE /RAW VMID![CDATA[3056]]/VMID /TEMPLATE HISTORY SEQ0/SEQ HOSTNAMEnode1/HOSTNAME HID29/HID STIME1301672663/STIME ETIME0/ETIME PSTIME1301672663/PSTIME PETIME1301672665/PETIME RSTIME1301672665/RSTIME RETIME0/RETIME ESTIME0/ESTIME EETIME0/EETIME REASON0/REASON /HISTORY /VM VM ID3057/ID UID2/UID USERNAMEsfr/USERNAME NAMEsfr-ar/NAME LAST_POLL1301672685/LAST_POLL STATE3/STATE LCM_STATE3/LCM_STATE STIME1301672614/STIME ETIME0/ETIME DEPLOY_IDone-3057/DEPLOY_ID MEMORY0/MEMORY CPU0/CPU