[one-users] Checkpoint file (Ver .12)

Ruben S. Montero rubensm at dacya.ucm.es
Tue Aug 4 10:20:03 PDT 2009


Hi,

Yes that patch was for 1.4. The solution is essentially the same for
the 1.2 version of the driver. We have been working in the driver
subsystem and the solution is not as clean...

Simply replace each virsh ocurrence with

virsh -c qemu:///session

It should be just two lines:

177:  "ssh -n #{host} virsh #{command} ;"+

to
        "ssh -n #{host} virsh -c qemu:///session #{command} ;"+

and

130: "ssh -n #{args[2]} virsh dominfo #{args[3]};"+

to

"ssh -n #{args[2]} virsh -c qemu:///session dominfo #{args[3]};"+

I could not test this if you have problems with the ssh command try to
put a single quote ' in the ssh string, like


  "ssh -n #{host} 'virsh -c qemu:///session #{command} ;"+
" echo ExitCode: $? 1>&2'")

Do not forget to close the ' in the following line...


Cheers

Ruben

On Tue, Aug 4, 2009 at 11:05 AM, Primrose,
Richard<richard.primrose at sap.com> wrote:
>
> Hi,
>
> I posted a problem up yesterday regarding the checkpoint file, the fix I was
> given was:
>
> Implement the following into the template file:
>>
>> $ONE_LOCATION/lib/mads/one_vmm_kvm.rb, changing lines 48-56 to read:
>>
>>    LIBVIRT       = {
>>        :create   => "virsh -c qemu:///session create",
>>        :shutdown => "virsh -c qemu:///session  shutdown",
>>        :cancel   => "virsh -c qemu:///session destroy",
>>        :save     => "virsh -c qemu:///session save",
>>        :restore  => "virsh -c qemu:///session restore",
>>        :migrate  => "virsh -c qemu:///session migrate --live",
>>        :poll     => "virsh -c qemu:///session dominfo"
>>    }
>
> The problem with that was that the driver is still connecting to
> qemu:///system instead
> of qemu:///session. We have restarted the deamon and the file we have
> changed is being
> loaded, and also we started our frontend and nodes. Unfortunately our
> problem still remains.
>
> We are currently running version 1.2 of OpenNebula, does this fix apply to
> this version?
>
> Many Thanks,
> Richard Primrose
>
> Richard Primrose
> Student Intern
> SAP Research CEC Belfast
> SAP (UK) Limited
> University of Ulster - TEIC Building
> BT37 0QB Newtownabbey, U.K.
> T +44 (0)28 909 30090
> mailto:richard.primrose at sap.com
> www.sap.com/research
>
> This communication contains information which is confidential and may also
> be privileged. It is for the exclusive use of the addressee. If you are not
> the addressee please contact us immediately and also delete the
> communication from your computer. Steps have been taken to ensure this
> e-mail is free from computer viruses but the recipient is responsible for
> ensuring that it is actually virus free before opening it or any
> attachments. Any views and/or opinions expressed in this e-mail are of the
> author only and do not represent the views of SAP.
>
> SAP (UK) Limited, Registered in England No. 2152073. Registered Office:
> Clockhouse Place, Bedfont Road, Feltham, Middlesex, TW14 8HD.
> SAP (UK) Limited, Registered in Northern Ireland No. NFC04016.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
+---------------------------------------------------------------+
 Dr. Ruben Santiago Montero
 Associate Professor
 Distributed System Architecture Group (http://dsa-research.org)

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

 GridWay, http://www.gridway.org
 OpenNebula, http://www.opennebula.org
+---------------------------------------------------------------+


More information about the Users mailing list