Re: [one-users] Fwd: OpenVZ
Hi Nikolay, First of all, thanks a lot for the effort. The community has been consistently asking for this driver, and due to resource scarcity we couldn't adress it yet. Let me say that we are willing to provide you with support to best develop this driver, and we will be happy to add the first version to our ecosystem catalog. Regarding your problem, it looks like a malformed oned.conf. Please send the whole file to spot the problem. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor / Cloud Researcher www.OpenNebula.org | @tinova79 On Wed, Feb 16, 2011 at 5:34 PM, kna...@gmail.com wrote: Hi! I am trying to enable OpenVZ support in ONE. I used KVM scripts as an example since they are using libvirt library on cluster nodes what I am trying to use too. The following sections were added in oned.conf: #--- # OpenVZ Information Driver Manager Configuration #--- IM_MAD = [ name = im_ovz, executable = one_im_ssh, arguments = ovz ] #--- #--- # OpenVZ Virtualization Driver Manager Configuration #--- VM_MAD = [ name = vmm_ovz, executable = one_vmm_ssh, arguments = ovz, default = vmm_ssh/vmm_ssh_ovz.conf, type = ovz ] #--- But when I run oned I get the following error: $ /etc/init.d/oned start Starting OpenNebula daemon: Error while parsing configuration file: syntax error, unexpected OBRACKET, expecting STRING at line 176, columns 7290:7296 Could not load nebula configuration file. Error executing /usr/bin/oned. [FAILED] 176 line of oned.conf file is name = vmm_ovz, from custom section mentioned above in that email. $ ls -al /usr/lib/one/remotes/vmm/ total 12 drwxr-xr-x 2 root root 4096 Feb 11 14:42 kvm drwxr-xr-x 2 root root 4096 Feb 16 18:28 ovz drwxr-xr-x 2 root root 4096 Feb 11 14:45 xen $ ls -al /usr/lib/one/remotes/vmm/ovz/ total 32 -rwxr-xr-x 1 root root 1289 Feb 16 18:20 cancel -rwxr-xr-x 1 root root 1443 Feb 16 18:20 deploy -rwxr-xr-x 1 root root 1347 Feb 16 16:32 migrate -rw-r--r-- 1 root root 1281 Feb 16 16:28 ovzrc -rwxr-xr-x 1 root root 1890 Feb 16 18:22 poll -rwxr-xr-x 1 root root 1279 Feb 16 18:23 restore -rwxr-xr-x 1 root root 1364 Feb 16 18:24 save -rwxr-xr-x 1 root root 1664 Feb 16 18:28 shutdown Some additional info: $ rpm -q opennebula opennebula-2.0.1-1 Both front-end host and cluster node are running CentOS release 5.5 (Final) x86. Any ideas what needs to be fixed? Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Hi Tino, Sorry for the noise - I found that one line in oned.conf wasn't commented out properly. Now oned starts smoothly: $ /etc/init.d/oned start Starting OpenNebula daemon: oned and scheduler started [ OK ] But I get an error in oned.log: Thu Feb 17 20:55:02 2011 [ONE][I]: Init OpenNebula Log system Thu Feb 17 20:55:02 2011 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG] Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: OpenNebula Configuration File Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: -- DB=BACKEND=sqlite DEBUG_LEVEL=3 DEFAULT_DEVICE_PREFIX=sd DEFAULT_IMAGE_TYPE=OS HM_MAD=EXECUTABLE=one_hm HOST_MONITORING_INTERVAL=600 IMAGE_REPOSITORY_PATH=/srv/cloud/images IM_MAD=ARGUMENTS=ovz,EXECUTABLE=one_im_ssh,NAME=im_ovz IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen MAC_PREFIX=02:00 MANAGER_TIMER=15 NETWORK_SIZE=254 PORT=2633 SCRIPTS_REMOTE_DIR=/tmp/one TM_MAD=ARGUMENTS=tm_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh VM_DIR=/srv/cloud VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE VM_MAD=ARGUMENTS=ovz,DEFAULT=vmm_ssh/vmm_ssh_ovz.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_ovz,TYPE=ovz VM_MAD=ARGUMENTS=xen,DEFAULT=vmm_ssh/vmm_ssh_xen.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_xen,TYPE=xen VM_POLLING_INTERVAL=600 VNC_BASE_PORT=5900 -- Thu Feb 17 20:55:02 2011 [ONE][I]: Bootstraping OpenNebula database. Thu Feb 17 20:55:02 2011 [VMM][I]: Starting Virtual Machine Manager... Thu Feb 17 20:55:02 2011 [LCM][I]: Starting Life-cycle Manager... Thu Feb 17 20:55:02 2011 [VMM][I]: Virtual Machine Manager started. Thu Feb 17 20:55:02 2011 [LCM][I]: Life-cycle Manager started. Thu Feb 17 20:55:02 2011 [InM][I]: Starting Information Manager... Thu Feb 17 20:55:02 2011 [TrM][I]: Starting Transfer Manager... Thu Feb 17 20:55:02 2011 [DiM][I]: Starting Dispatch Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting Request Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting XML-RPC server, port 2633 ... Thu Feb 17 20:55:02 2011 [InM][I]: Information Manager started. Thu Feb 17 20:55:02 2011 [TrM][I]: Transfer Manager started. Thu Feb 17 20:55:02 2011 [DiM][I]: Dispatch Manager started. Thu Feb 17 20:55:02 2011 [ReM][I]: Request Manager started. Thu Feb 17 20:55:02 2011 [HKM][I]: Starting Hook Manager... Thu Feb 17 20:55:02 2011 [HKM][I]: Hook Manager started. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading Virtual Machine Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_ovz (OVZ) Thu Feb 17 20:55:04 2011 [VMM][E]: Unknown driver type: OVZ Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_xen (XEN) Thu Feb 17 20:55:04 2011 [VMM][I]: Driver vmm_xen loaded. Thu Feb 17 20:55:04 2011 [InM][I]: Loading Information Manager drivers. Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_ovz Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_ovz loaded Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_xen Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_xen loaded Thu Feb 17 20:55:04 2011 [TM][I]: Loading Transfer Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: tm_ssh Thu Feb 17 20:55:04 2011 [TM][I]: Driver tm_ssh loaded. Thu Feb 17 20:55:04 2011 [HKM][I]: Loading Hook Manager driver. Thu Feb 17 20:55:04 2011 [HKM][I]: Hook Manager loaded As one can see there is an error Unknown driver type: OVZ. Where does new ovz driver type need to be specified? Thanks! Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Hi Nikolay, That needs to be changed in the core, but I guess you can set XML and parse the deployment file in xml format. Regards, -Tino -- Constantino Vázquez Blanco, MSc OpenNebula Major Contributor / Cloud Researcher www.OpenNebula.org | @tinova79 On Thu, Feb 17, 2011 at 7:06 PM, kna...@gmail.com wrote: Hi Tino, Sorry for the noise - I found that one line in oned.conf wasn't commented out properly. Now oned starts smoothly: $ /etc/init.d/oned start Starting OpenNebula daemon: oned and scheduler started [ OK ] But I get an error in oned.log: Thu Feb 17 20:55:02 2011 [ONE][I]: Init OpenNebula Log system Thu Feb 17 20:55:02 2011 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG] Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: OpenNebula Configuration File Thu Feb 17 20:55:02 2011 [ONE][I]: Thu Feb 17 20:55:02 2011 [ONE][I]: -- DB=BACKEND=sqlite DEBUG_LEVEL=3 DEFAULT_DEVICE_PREFIX=sd DEFAULT_IMAGE_TYPE=OS HM_MAD=EXECUTABLE=one_hm HOST_MONITORING_INTERVAL=600 IMAGE_REPOSITORY_PATH=/srv/cloud/images IM_MAD=ARGUMENTS=ovz,EXECUTABLE=one_im_ssh,NAME=im_ovz IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen MAC_PREFIX=02:00 MANAGER_TIMER=15 NETWORK_SIZE=254 PORT=2633 SCRIPTS_REMOTE_DIR=/tmp/one TM_MAD=ARGUMENTS=tm_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh VM_DIR=/srv/cloud VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE VM_MAD=ARGUMENTS=ovz,DEFAULT=vmm_ssh/vmm_ssh_ovz.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_ovz,TYPE=ovz VM_MAD=ARGUMENTS=xen,DEFAULT=vmm_ssh/vmm_ssh_xen.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_xen,TYPE=xen VM_POLLING_INTERVAL=600 VNC_BASE_PORT=5900 -- Thu Feb 17 20:55:02 2011 [ONE][I]: Bootstraping OpenNebula database. Thu Feb 17 20:55:02 2011 [VMM][I]: Starting Virtual Machine Manager... Thu Feb 17 20:55:02 2011 [LCM][I]: Starting Life-cycle Manager... Thu Feb 17 20:55:02 2011 [VMM][I]: Virtual Machine Manager started. Thu Feb 17 20:55:02 2011 [LCM][I]: Life-cycle Manager started. Thu Feb 17 20:55:02 2011 [InM][I]: Starting Information Manager... Thu Feb 17 20:55:02 2011 [TrM][I]: Starting Transfer Manager... Thu Feb 17 20:55:02 2011 [DiM][I]: Starting Dispatch Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting Request Manager... Thu Feb 17 20:55:02 2011 [ReM][I]: Starting XML-RPC server, port 2633 ... Thu Feb 17 20:55:02 2011 [InM][I]: Information Manager started. Thu Feb 17 20:55:02 2011 [TrM][I]: Transfer Manager started. Thu Feb 17 20:55:02 2011 [DiM][I]: Dispatch Manager started. Thu Feb 17 20:55:02 2011 [ReM][I]: Request Manager started. Thu Feb 17 20:55:02 2011 [HKM][I]: Starting Hook Manager... Thu Feb 17 20:55:02 2011 [HKM][I]: Hook Manager started. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading Virtual Machine Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_ovz (OVZ) Thu Feb 17 20:55:04 2011 [VMM][E]: Unknown driver type: OVZ Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: vmm_xen (XEN) Thu Feb 17 20:55:04 2011 [VMM][I]: Driver vmm_xen loaded. Thu Feb 17 20:55:04 2011 [InM][I]: Loading Information Manager drivers. Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_ovz Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_ovz loaded Thu Feb 17 20:55:04 2011 [InM][I]: Loading driver: im_xen Thu Feb 17 20:55:04 2011 [InM][I]: Driver im_xen loaded Thu Feb 17 20:55:04 2011 [TM][I]: Loading Transfer Manager drivers. Thu Feb 17 20:55:04 2011 [VMM][I]: Loading driver: tm_ssh Thu Feb 17 20:55:04 2011 [TM][I]: Driver tm_ssh loaded. Thu Feb 17 20:55:04 2011 [HKM][I]: Loading Hook Manager driver. Thu Feb 17 20:55:04 2011 [HKM][I]: Hook Manager loaded As one can see there is an error Unknown driver type: OVZ. Where does new ovz driver type need to be specified? Thanks! Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Hi! I am trying to enable OpenVZ support in ONE. I used KVM scripts as an example since they are using libvirt library on cluster nodes what I am trying to use too. The following sections were added in oned.conf: #--- # OpenVZ Information Driver Manager Configuration #--- IM_MAD = [ name = im_ovz, executable = one_im_ssh, arguments = ovz ] #--- #--- # OpenVZ Virtualization Driver Manager Configuration #--- VM_MAD = [ name = vmm_ovz, executable = one_vmm_ssh, arguments = ovz, default= vmm_ssh/vmm_ssh_ovz.conf, type = ovz ] #--- But when I run oned I get the following error: $ /etc/init.d/oned start Starting OpenNebula daemon: Error while parsing configuration file: syntax error, unexpected OBRACKET, expecting STRING at line 176, columns 7290:7296 Could not load nebula configuration file. Error executing /usr/bin/oned. [FAILED] 176 line of oned.conf file is name = vmm_ovz, from custom section mentioned above in that email. $ ls -al /usr/lib/one/remotes/vmm/ total 12 drwxr-xr-x 2 root root 4096 Feb 11 14:42 kvm drwxr-xr-x 2 root root 4096 Feb 16 18:28 ovz drwxr-xr-x 2 root root 4096 Feb 11 14:45 xen $ ls -al /usr/lib/one/remotes/vmm/ovz/ total 32 -rwxr-xr-x 1 root root 1289 Feb 16 18:20 cancel -rwxr-xr-x 1 root root 1443 Feb 16 18:20 deploy -rwxr-xr-x 1 root root 1347 Feb 16 16:32 migrate -rw-r--r-- 1 root root 1281 Feb 16 16:28 ovzrc -rwxr-xr-x 1 root root 1890 Feb 16 18:22 poll -rwxr-xr-x 1 root root 1279 Feb 16 18:23 restore -rwxr-xr-x 1 root root 1364 Feb 16 18:24 save -rwxr-xr-x 1 root root 1664 Feb 16 18:28 shutdown Some additional info: $ rpm -q opennebula opennebula-2.0.1-1 Both front-end host and cluster node are running CentOS release 5.5 (Final) x86. Any ideas what needs to be fixed? Nikolay. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Fwd: OpenVZ
Töns, first of all thanks for reply! Please, see comments below. Toens Bueker wrote on 23/01/11 08:39: Nikolaykna...@gmail.com wrote: Does somebody know if there is any progress in supporing OpenVZ by OpenNebula? Or maybe someone has custom-made scripts for running OpenVZ on OpenNebula and can share those scripts/one drivers with me. I can't find more info on that topic apart from http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002908.html Actually I have done something, though :) I have installed a box with Proxmox (http://pve.proxmox.com/wiki/Main_Page). Proxmox is an interesting project in various respects. In my opinion it has a few advantages in terms of adapting OpenNebula for OpenVZ: It comes prepared with a quite recent kernel (2.6.32) which includes OpenVZ already. Furthermore the kernel supports kvm, too. Thus, if you don't want to deal with preparations but want to start with the adaption of OpenNebula right away, that would be the distribution for you. I would have to find out more about the various components of OpenVZ first, though. I am aware of Proxmox but it requires 64-bit machines only whereas I have a bunch of still powerful 32-bit machines which I would like to use. If you are considering starting to port the required scripts, I should be able to serve as a tester, anyway. yes, we are thinking about to start integrating OpenVZ into ON. We will take you into account as potential tester. Thanks! Nikolay. by Töns ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org