Hi Simon, I recently had this problem when I was using xen with opennebula. This might be worth a try (it worked for me) 1. Make sure qemu-dm is installed (not necessary with xen as it comes in the xen-hypervisor package so I think that's the package name) 2. Locate the correct qemu binary file location 3. Create a symbolic link to the correct qemu binary path "ln -s /usr/bin/kvm <correct qemu binary path here>"
Hope this helps and let me know if it works!!! Yours Sincerely, Marc Reilly On 5 Jan 2013, at 20:10, "users-requ...@lists.opennebula.org" <users-requ...@lists.opennebula.org> wrote: > Send Users mailing list submissions to > users@lists.opennebula.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > or, via email, send a message with subject or body 'help' to > users-requ...@lists.opennebula.org > > You can reach the person managing the list at > users-ow...@lists.opennebula.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. Which is the best storage for One/KVM? (Alberto Zuin - Liste) > 2. Getting OpenNebula working on Fedora 17/CentOS 5 (Simon J Mudd) > 3. Patch to opennebula-3.8.1/share/scripts/one to allow checking > the daemons' status (Simon J Mudd) > 4. Re: Getting OpenNebula working on Fedora 17/CentOS 5 > (Karanbir Singh) > 5. Re: Getting OpenNebula working on Fedora 17/CentOS 5 > (Simon J Mudd) > 6. Re: Getting OpenNebula working on Fedora 17/CentOS 5 > (Karanbir Singh) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 05 Jan 2013 10:52:26 +0100 > From: Alberto Zuin - Liste <li...@albertozuin.eu> > To: users@lists.opennebula.org > Subject: [one-users] Which is the best storage for One/KVM? > Message-ID: <50e7f7da.9080...@albertozuin.eu> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hello all, > in past for a customer I made a cloud with OpenNebula, XEN and a MooseFS > storage: with a lot of chunk servers, the I/O latency of VM is acceptable. > Recently I made a little cloud for my personal purposes and also I made > it with OpenNebula and MooseFS, but with KVM instead of XEN. > Sometimes, the I/O is very slow and the Kernel VM remounts the disk in > read-only due to a timeout of 900 seconds (!!! I modified this setting > in sysctl.conf). > In all 2 systems the images are always in raw format (I don't use qow), > then I don't known if the difference is caused by KVM/XEN or by MooseFS > chunckservers hardware (2 server with a replica of 2, instead of 5 > server with a relica of 3). > Now, I don't have enough time to make some tests: simply my setup is > wrong and I have to make another one which works. > The question is: if you have to make a little cloud like mine, with > OpenNebula, 2 KVM host and 2 servers for storage (each with 2 SATA disk > that I want to substitute with WD Velociraptor 1 TB to be secure), what > kind of storage technology you'll choose? The size is not a problem (now > I use only 1 TB, then a total of 2 TB is OK), but the speed is important > because mail and sql wants a solid I/O and obviously rock solid in case > of failure. > MooseFS with better or more hardware? Another Cluster filesystem like > Gluster o Chepth? A simple active/active DRBD? > Thanks, > Alberto > > -- > AZ Network Specialist > via Mare, 36A > 36030 Lugo di Vicenza (VI) > ITALY > P.I. IT04310790284 > http://www.azns.it > Tel +39.3286268626 > Fax +39.0492106654 > > > > ------------------------------ > > Message: 2 > Date: Sat, 5 Jan 2013 11:43:02 +0100 > From: Simon J Mudd <sjm...@pobox.com> > To: users@lists.opennebula.org > Subject: [one-users] Getting OpenNebula working on Fedora 17/CentOS 5 > Message-ID: <20130105104302.ga11...@mad06.wl0.org> > Content-Type: text/plain; charset=us-ascii > > Hi I'm trying to get OpenNebula working on Fedora 17 and CentOS 5 > and have a few issues. It looks likes all the work for OpenNebula has > been done on Debian or Ubuntu. I've built OpenNebula successfully on Fedora > 17 (from source) and now trying to resolve issues which prevent > the kvms starting up. > > One issue I see is this: > > Sat Jan 5 11:23:47 2013 [DiM][I]: New VM state is ACTIVE. > Sat Jan 5 11:23:47 2013 [LCM][I]: New VM state is PROLOG. > Sat Jan 5 11:23:47 2013 [VM][I]: Virtual Machine has no context > Sat Jan 5 11:23:47 2013 [LCM][I]: New VM state is BOOT > Sat Jan 5 11:23:47 2013 [VMM][I]: Generating deployment file: > /var/lib/one/11/deployment.0 > Sat Jan 5 11:23:48 2013 [VMM][I]: ExitCode: 0 > Sat Jan 5 11:23:48 2013 [VMM][I]: Successfully execute network driver > operation: pre. > Sat Jan 5 11:23:48 2013 [VMM][I]: Command execution fail: cat << EOT | > /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/11/deployment.0 mad06 > 11 mad06 > Sat Jan 5 11:23:48 2013 [VMM][I]: error: Failed to create domain from > /var/lib/one//datastores/0/11/deployment.0 [*] > Sat Jan 5 11:23:48 2013 [VMM][I]: error: Cannot find QEMU binary > /usr/bin/kvm: No such file or directory > Sat Jan 5 11:23:48 2013 [VMM][E]: Could not create domain from > /var/lib/one//datastores/0/11/deployment.0 > Sat Jan 5 11:23:48 2013 [VMM][I]: ExitCode: 255 > Sat Jan 5 11:23:48 2013 [VMM][I]: Failed to execute virtualization driver > operation: deploy. > Sat Jan 5 11:23:48 2013 [VMM][E]: Error deploying virtual machine: Could not > create domain from /var/lib/one//datastores/0/11/deployment.0 > Sat Jan 5 11:23:48 2013 [DiM][I]: New VM state is FAILED > > This is on the CentOS 5 server. checking and indeed there is no /usr/bin/kvm > binary. > There is the following: > > [sjmudd@mad06 ~]$ ls -la /usr/bin/qemu > -rwxr-xr-x 1 root root 1797488 Sep 7 2009 /usr/bin/qemu > [sjmudd@mad06 ~]$ rpm -qi qemu > package qemu is not installed > [sjmudd@mad06 ~]$ rpm -qf /usr/bin/qemu > qemu-system-x86-0.10.5-1.el5.2 > [sjmudd@mad06 ~]$ > > So I'd expect that configuring opennebula to use the qemu binary should be > sufficient. > What's the best way to do this? (note the CentOS 5 PC is just running the > node software, > the install was done on Fedora 17) > > Also I had a similar issue on Fedora 17 and ended up doing something similar, > namely > create a symlink to the expected kvm binary: > > [sjmudd@fedora17 ~]$ ls -la /usr/bin/kvm > lrwxrwxrwx 1 root root 8 Dec 2 11:59 /usr/bin/kvm -> qemu-kvm > [sjmudd@fedora17 ~]$ rpm -qf /usr/bin/qemu-kvm > qemu-system-x86-1.0.1-2.fc17.x86_64 > [sjmudd@fedora17 ~]$ > > This strikes me as rather broken, and I'd expect a way for OpenNebula to > figure out > the location of the kvm binary by either looking for it, or based on the > Linux distribution > that it's running on. > > Also see the [*] above. Any ideas why I'm getting the double // in the path? > Most certainly > a configuration error but I am not sure where to look. > > Feedback would be welcome. > > Thanks, > > Simon > > > ------------------------------ > > Message: 3 > Date: Sat, 5 Jan 2013 13:47:23 +0100 > From: Simon J Mudd <sjm...@pobox.com> > To: users@lists.opennebula.org > Subject: [one-users] Patch to opennebula-3.8.1/share/scripts/one to > allow checking the daemons' status > Message-ID: <20130105124723.ga11...@mad06.wl0.org> > Content-Type: text/plain; charset=us-ascii > > Hi, > > I'm not sure the right forum to provide this so hope sending to the list is > ok. > One thing I found when initially trying to setup OpenNebula is that you can > start and > stop the daemons but you can not check if they are running. Most "init > scripts" allow > you to provide a status. > > This small patch provides that functionality. Perhaps it can be included? > > $ diff -u opennebula-3.8.1/share/scripts/one{.orig,} > --- opennebula-3.8.1/share/scripts/one.orig 2013-01-05 13:38:50.846539319 > +0100 > +++ opennebula-3.8.1/share/scripts/one 2013-01-05 13:39:08.110451396 +0100 > @@ -181,6 +181,38 @@ > } > > #------------------------------------------------------------------------------ > +# Function that checks if the daemons are running > +#------------------------------------------------------------------------------ > +status() > +{ > + if [ -f $ONE_PID ]; then > + PID=$(cat $ONE_PID) > + RESULT=$(/usr/bin/ps --no-heading -p $PID) > + > + if [ -z "$RESULT" ]; then > + echo "DOWN: $ONED seems not to be running, $ONE_PID thinks it > has pid $PID" > + else > + echo "UP: Found $ONED running with PID $PID" > + fi > + else > + echo "DOWN: $ONE_PID does not exist." > + fi > + > + if [ -f $ONE_SCHEDPID ]; then > + PID=$(cat $ONE_SCHEDPID) > + RESULT=$(/usr/bin/ps --no-heading -p $PID) > + > + if [ -z "$RESULT" ]; then > + echo "DOWN: $ONE_SCHEDULER seems not to be running, > $ONE_SCHEDPID thinks it has pid $PID" > + else > + echo "UP: Found $ONE_SCHEDULER running with PID $PID" > + fi > + else > + echo "DOWN: $ONE_SCHEDPID does not exist." > + fi > +} > + > +#------------------------------------------------------------------------------ > #------------------------------------------------------------------------------ > > if [ "$1" = "-f" ]; then > @@ -197,8 +229,12 @@ > stop > echo "oned and scheduler stopped" > ;; > + status) > + # Check if everything is working. > + status > + ;; > *) > - echo "Usage: one [-f] {start|stop}" >&2 > + echo "Usage: one [-f] {start|stop|status}" >&2 > echo "Options:" >&2 > echo " -f Do not backup log file." >&2 > exit 3 > $ > > On the server I'm trying to get OpenNebula working on I see this: > > [oneadmin@myhost ~]$ opennebula-3.8.1/share/scripts/one status > UP: Found /usr/bin/oned running with PID 424 > UP: Found /usr/bin/mm_sched running with PID 425 > [oneadmin@myhost ~]$ one stop > oned and scheduler stopped > [oneadmin@myhost src]$ opennebula-3.8.1/share/scripts/one status > DOWN: /var/run/one/oned.pid does not exist. > DOWN: /var/run/one/sched.pid does not exist. > [oneadmin@myhost ~]$ one start > [oneadmin@myhost ~]$ opennebula-3.8.1/share/scripts/one status > UP: Found /usr/bin/oned running with PID 30006 > UP: Found /usr/bin/mm_sched running with PID 30007 > [oneadmin@myhost ~]$ > > I've not yet patched the active script but this shows how it works. > > Regards, > > Simon > > > ------------------------------ > > Message: 4 > Date: Sat, 05 Jan 2013 14:24:00 +0000 > From: Karanbir Singh <mail-li...@karan.org> > To: users@lists.opennebula.org > Subject: Re: [one-users] Getting OpenNebula working on Fedora > 17/CentOS 5 > Message-ID: <50e83780.1020...@karan.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Simon, > > On 01/05/2013 10:43 AM, Simon J Mudd wrote: >> Hi I'm trying to get OpenNebula working on Fedora 17 and CentOS 5 >> and have a few issues. It looks likes all the work for OpenNebula has >> been done on Debian or Ubuntu. I've built OpenNebula successfully on Fedora >> 17 (from source) and now trying to resolve issues which prevent >> the kvms starting up. > > There are CentOS-6 specific rpms, in a repo, along with some CentOS > specific content ( and contextualised VM images ). Best place to start > for that would be here : http://wiki.centos.org/Cloud/OpenNebula > > Ofcourse, this does not solve the problem you have of getting this to > work on CentOS-5, but it might be a good place to start from. Also, I am > not sure that OpenNebula will work with the ruby185 shipped in CentOS-5. > > Regards > > -- > Karanbir Singh > +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh > ICQ: 2522219 | Yahoo IM: z00dax | Gtalk: z00dax > GnuPG Key : http://www.karan.org/publickey.asc > > > ------------------------------ > > Message: 5 > Date: 05 Jan 2013 19:05:20 +0100 > From: Simon J Mudd <sjm...@pobox.com> > To: users@lists.opennebula.org > Subject: Re: [one-users] Getting OpenNebula working on Fedora > 17/CentOS 5 > Message-ID: <m3y5g7mrof....@mad06.wl0.org> > Content-Type: text/plain; charset=us-ascii > > > Hi Karanbir, > > mail-li...@karan.org (Karanbir Singh) writes: > >> On 01/05/2013 10:43 AM, Simon J Mudd wrote: >>> Hi I'm trying to get OpenNebula working on Fedora 17 and CentOS 5 >>> and have a few issues. It looks likes all the work for OpenNebula has >>> been done on Debian or Ubuntu. I've built OpenNebula successfully on Fedora >>> 17 (from source) and now trying to resolve issues which prevent >>> the kvms starting up. >> >> There are CentOS-6 specific rpms, in a repo, along with some CentOS >> specific content ( and contextualised VM images ). Best place to start >> for that would be here : http://wiki.centos.org/Cloud/OpenNebula > > Yes, I'm aware of these rpms. Unfortunately they compile but have missing > dependencies (because of the difference between Fedora 17 and CentOS 6) > on Fedora 17 and also miss dependencies to compile on CentOS 5. I'm > trying to work on getting this resolved. I guess this is a sign > that the RH community is not very active with OpenNebula. > >> Ofcourse, this does not solve the problem you have of getting this to >> work on CentOS-5, but it might be a good place to start from. Also, I >> am not sure that OpenNebula will work with the ruby185 shipped in >> CentOS-5. > > Well so far I've managed to get this partially working but as stated > have bumped into several issues which the documentation does not > seem to cover adequately (for me), and thus it's taking me longer > than I expected to get up and running. > > I'll get there in the end but am needing to poke here and there, > and read quite a bit in several places to figure out the things that > are missing or breaking. Hence pre-built rpms for CentOS 5, or Fedora > would be nice. Perhaps I can contribute to getting there once > things are working better. > > Anyway thanks for the pointers. > > Simon > > > ------------------------------ > > Message: 6 > Date: Sat, 05 Jan 2013 19:22:09 +0000 > From: Karanbir Singh <mail-li...@karan.org> > To: users@lists.opennebula.org > Subject: Re: [one-users] Getting OpenNebula working on Fedora > 17/CentOS 5 > Message-ID: <50e87d61.8050...@karan.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 01/05/2013 06:05 PM, Simon J Mudd wrote: >> are missing or breaking. Hence pre-built rpms for CentOS 5, or Fedora >> would be nice. Perhaps I can contribute to getting there once >> things are working better. > > That would be very welcome, let me know if I can help in anyway getting > there. > > btw, as a matter of interest, why CentOS-5 and not 6, specially if you > are starting out something for new now > > -- > Karanbir Singh > +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh > ICQ: 2522219 | Yahoo IM: z00dax | Gtalk: z00dax > GnuPG Key : http://www.karan.org/publickey.asc > > > ------------------------------ > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > > End of Users Digest, Vol 59, Issue 8 > ************************************ > _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org