Well, I like the pun :) but I don't know what to say..

I added the "arguments = "-t 15 -r 0 kvm"," line to the oned.conf as suggested, I rebooted the system and checked that the file was not changed in other ways (and it wasn't) but still that's what I got..

Furthermore of all the .conf files I have, oned.conf it's the only one where I can put something like that so it's not that other configurations override that one

Thanks for your help,

Cheers

On 21/12/11 10.43, Ruben S. Montero wrote:
Seems, you are still missing the arguments. The oned.conf used by the deamon (as shown in your logs) is:

VM_MAD=DEFAULT=vmm_exec/vmm_exec_kvm.conf,EXECUTABLE=one_vmm_exec,NAME=vmm_kvm,TYPE=kvm

no ARGUMENTS there....

Cheers

Ruben


2011/12/20 Stefano Ghio <[email protected] <mailto:[email protected]>>

    Hi and thanks for your answer,

    I tried it but it was no use, log says:

    cat /var/log/one/oned.log

    Tue Dec 20 16:12:05 2011 [ONE][I]: Init OpenNebula Log system
    Tue Dec 20 16:12:05 2011 [ONE][I]: Log Level: 3
    [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
    Tue Dec 20 16:12:05 2011 [ONE][I]:
    ----------------------------------------
    Tue Dec 20 16:12:05 2011 [ONE][I]:      OpenNebula Configuration File
    Tue Dec 20 16:12:05 2011 [ONE][I]:
    ----------------------------------------
    Tue Dec 20 16:12:05 2011 [ONE][I]:
    ----------------------------------
    DB=BACKEND=sqlite
    DEBUG_LEVEL=3
    DEFAULT_DEVICE_PREFIX=hd
    DEFAULT_IMAGE_TYPE=OS
    HM_MAD=EXECUTABLE=one_hm
    HOST_MONITORING_INTERVAL=60
    HOST_PER_INTERVAL=15
    IMAGE_MAD=ARGUMENTS=fs -t 15,EXECUTABLE=one_image
    IM_MAD=ARGUMENTS=-r 0 -t 15 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_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh
    VM_DIR=/var/lib/one/
    
VM_MAD=DEFAULT=vmm_exec/vmm_exec_kvm.conf,EXECUTABLE=one_vmm_exec,NAME=vmm_kvm,TYPE=kvm
    VM_PER_INTERVAL=5
    VM_POLLING_INTERVAL=60
    VNC_BASE_PORT=5900
    ----------------------------------
    Tue Dec 20 16:12:05 2011 [ONE][I]: Checking database version.
    Tue Dec 20 16:12:05 2011 [VMM][I]: Starting Virtual Machine Manager...
    Tue Dec 20 16:12:05 2011 [LCM][I]: Starting Life-cycle Manager...
    Tue Dec 20 16:12:05 2011 [InM][I]: Starting Information Manager...
    Tue Dec 20 16:12:05 2011 [TrM][I]: Starting Transfer Manager...
    Tue Dec 20 16:12:05 2011 [DiM][I]: Starting Dispatch Manager...
    Tue Dec 20 16:12:05 2011 [HKM][I]: Starting Hook Manager...
    Tue Dec 20 16:12:05 2011 [ImM][I]: Starting Image Manager...
    Tue Dec 20 16:12:05 2011 [ReM][I]: Starting Request Manager...
    Tue Dec 20 16:12:05 2011 [ReM][I]: Starting XML-RPC server, port
    2633 ...
    Tue Dec 20 16:12:05 2011 [DiM][I]: Dispatch Manager started.
    Tue Dec 20 16:12:05 2011 [HKM][I]: Hook Manager started.
    Tue Dec 20 16:12:05 2011 [ImM][I]: Image Manager started.
    Tue Dec 20 16:12:05 2011 [ReM][I]: Request Manager started.
    Tue Dec 20 16:12:05 2011 [TrM][I]: Transfer Manager started.
    Tue Dec 20 16:12:05 2011 [InM][I]: Information Manager started.
    Tue Dec 20 16:12:05 2011 [LCM][I]: Life-cycle Manager started.
    Tue Dec 20 16:12:05 2011 [VMM][I]: Virtual Machine Manager started.
    Tue Dec 20 16:12:07 2011 [VMM][I]: Loading Virtual Machine Manager
    drivers.
    Tue Dec 20 16:12:07 2011 [VMM][I]:     Loading driver: vmm_kvm (KVM)
    Tue Dec 20 16:12:07 2011 [MAD][E]: MAD did not answer INIT command
    Tue Dec 20 16:12:07 2011 [InM][I]: Loading Information Manager
    drivers.
    Tue Dec 20 16:12:07 2011 [InM][I]:     Loading driver: im_kvm
    Tue Dec 20 16:12:07 2011 [MAD][E]: MAD did not answer INIT command
    Tue Dec 20 16:12:07 2011 [TM][I]: Loading Transfer Manager drivers.
    Tue Dec 20 16:12:07 2011 [VMM][I]:     Loading driver: tm_ssh
    Tue Dec 20 16:12:07 2011 [MAD][E]: MAD did not answer INIT command
    Tue Dec 20 16:12:07 2011 [HKM][I]: Loading Hook Manager driver.
    Tue Dec 20 16:12:07 2011 [MAD][E]: MAD did not answer INIT command
    Tue Dec 20 16:12:07 2011 [ImM][I]: Loading Image Manager driver.
    Tue Dec 20 16:12:08 2011 [MAD][E]: MAD did not answer INIT command

    on the front-end machine I have /etc/one/im_kvm directory empty
    while /usr/lib/one/mads is populated. On the host machine I have a
    directory /var/tmp/one where the front-end successfully copied
    some files and directories (not empty):

      * auth
      * hooks
      * im - ganglia.d kvm.d run_probes xen.d
      * image
      * scripts_common.rb
      * scripts_common.sh
      * vmm - kvm xen

    Furthermore "virsh -c qemu+ssh://host/system list" works as well
    as qemu+tcp so I guess the two machines are able to find and
    communicate with each other.

    On the front-end machine if I try "/usr/lib/one/mads/one_im_ssh
    im_kvm_/im_kvm.conf" and then I type "INIT" I see "INIT
    SUCCESS--". On the host machine there is no such file.

    I'm at a loss here..


    On 20/12/11 15.48, Carlos Martín Sánchez wrote:
    Hi,

    From the error message you pasted, it looks like the vmm_kvm
    driver crashed.

    Can you check the first lines from oned.log and look for these
    messages?

    Tue Dec 20 06:42:30 2011 [VMM][I]: Loading Virtual Machine
    Manager drivers.
    Tue Dec 20 06:42:30 2011 [VMM][I]:      Loading driver: vmm_kvm (KVM)
    Tue Dec 20 06:42:30 2011 [VMM][I]:      Driver vmm_kvm loaded.


    After a quick glimpse at your oned.conf, I see that the
    'arguments' line is missing from your kvm VM_MAD. This is
    the default one:

    VM_MAD = [
        name       = "vmm_kvm",
        executable = "one_vmm_exec",
        arguments  = "-t 15 -r 0 kvm",
        default    = "vmm_exec/vmm_exec_kvm.conf",
        type       = "kvm" ]

    Maybe that is causing the driver to fail...


    Regards.
    --
    Carlos Martín, MSc
    Project Engineer
    OpenNebula - The Open Source Toolkit for Data Center Virtualization
    www.OpenNebula.org <http://www.OpenNebula.org> |
    [email protected] <mailto:[email protected]> |
    @OpenNebula <http://twitter.com/opennebula>


    On Tue, Dec 20, 2011 at 11:52 AM, Stefano Ghio <[email protected]
    <mailto:[email protected]>> wrote:

        Cheers,

        I'm having trouble starting new VM instances with ONE. I get
        to the point where the machine state is BOOT, then I get:

        [VMM][E]: deploy_action, error getting driver vmm_kvm

        and immediately after the machine state is FAILED. I was
        trying with the ttylinux.img downloaded from the ONE website
        but it fails with any image I give it. Full log is attached
        as vm_log.txt

        I tried with both FIXED and RANGED virtual networks.

        I'm using ONE front-end on a Ubuntu 11.04 32 bit virtualized
        with VirtualBox and I set up the host machine on a dedicated
        server with Ubuntu 11.04. I installed ONE 3.0.0 from apt.

        From the Sunstone GUI I can see that ONE sees the host and
        successfully talks to it (I can monitor it and I see the
        image file transfer happening). Both front-end and host are
        configured with user oneadmin in group oneadmin and libvirt
        and KVM with same UID and GID.

        I installed on both machines:

          * libvirt-bin 0.8.8
          * ruby 1.8.7
          * qemu-kvm 0.14.0
          * sqlite3 3.7.4
          * libxml2 2.7.8
          * expat 2.0.1
          * curl 7.21.3

        with the -dev version too where available.

        SSH is configured properly and the server starts with no
        problems. I can successfully upload an image but when I try
        to start it I get the issue in topic.

        I also downloaded vmcontext.sh 18-05-2011 release from
        dev.opennebula.org <http://dev.opennebula.org> and copied it
        in /etc/init.d but when I run "update-rc.d vmcontext.sh start
        01 S" I get "warning: vmcontext.sh start runlevel arguments
        (none) do not match LSB Default-Start values (S)". But I
        think this is unrelated.

        front-end and host configuration files (which are exactly the
        same) are attached as one_conf.tar.gz. Asterisk * marks the
        files/folders missing on the host. I have:

        /etc/libvirt/qemu.conf
        /etc/libvirt/libvirtd.conf
        /etc/default/libvrit-bin
        * /etc/one
        * /etc/one/oned.conf
        * /etc/one/im_kvm which is empty on the front-end
        * /etc/one/vmm_exec/vmm_exec_kvm.conf
        * /usr/lib/one/mads
        * /var/lib/one/remotes

        even setting the front-end machine as the host does not
        change anything, transfer ok then failure when starting.

        I tried everything I could find by searching this problem
        around but nothing worked. I could really use your help here,
        any ideas?

        Thank you,

        have a nice day
-- Dr. Stefano Ghio - ENG Engineering Italy

        Website: http://groglogs.blogspot.com/

        *If you received this message but you are not its recipient,
        please ignore it and warn me, thank you.*

        _______________________________________________
        Users mailing list
        [email protected] <mailto:[email protected]>
        http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- Dr. Stefano Ghio - ENG Engineering Italy

    Website: http://groglogs.blogspot.com/

    *If you received this message but you are not its recipient,
    please ignore it and warn me, thank you.*

    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7


_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


--
Dr. Stefano Ghio - ENG Engineering Italy

Website: http://groglogs.blogspot.com/

*If you received this message but you are not its recipient, please ignore it and warn me, thank you.*
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to