<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ruben<div><br></div><div>Thanks for the pointers its a great help.</div><div><br></div><div>Is it possible in one to have that type='xml' be type='json' to generate the machine description as Json rather, or would you recommend that the driver do the translation ?</div><div><br></div><div>Cheers</div><div>Len</div><div><br><div><div>On 05 Nov 2012, at 9:59 PM, "Ruben S. Montero" <<a href="mailto:rsmontero@opennebula.org">rsmontero@opennebula.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Len<div><br></div><div>You may take a look to the VMM driver development guide:</div><div><br></div><div><a href="http://opennebula.org/documentation:rel3.8:devel-vmm">http://opennebula.org/documentation:rel3.8:devel-vmm</a><br>
</div><div><br></div><div>Probably the best way to get started is to use the kvm or xen driver as an starting point. You may:</div><div><br></div><div><br></div><div>1 Copy the /var/lib/one/remotes/vmm/kvm folder to /var/lib/one/remotes/vmm/smartos and start working from there.</div>
<div><br></div><div>2 Add the driver to the oned.conf file</div><div><br></div><div><div>VM_MAD = [</div><div> name = "vmm_smartos",</div><div> executable = "one_vmm_exec",</div><div> arguments = "-t 15 -r 0 smartos",</div>
<div> default = "vmm_exec/vmm_exec_kvm.conf",</div><div> type = "xml" ]</div></div><div><br></div><div>3 Any time you modify the driver you need to copy it to the hosts, so do not forget to execute onehost sync</div>
<div><br></div><div>A couple of additional notes:</div><div><br></div><div>1 Actions are executed remotely on the target host, if you want to execute them in the front-end use the -l option in configuration. There are examples in oned.conf</div>
<div><br></div><div>2 The xml type will generate a XML file with the domain description as $1 for the deploy script. This is the real work for the driver, translate the generic template in something specific to SmartOS</div>
<div><br></div><div>3 Initially you'll need to deploy the vms by hand, use onevm deploy. You need also to get specific information from SmartOS with an Information Driver, that can come as a second step.</div><div><br>
</div><div><br></div><div>Please keep us updated with your progress and don't hesitate to ask for help.</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Nov 5, 2012 at 5:57 PM, Len Weincier <span dir="ltr"><<a href="mailto:len@cloudafrica.net" target="_blank">len@cloudafrica.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All<br>
<br>
I would like to try my hand at implementing drivers for SmartOS under opennebula. Does anyone have any pointers to where I could start looking on how to go about this ?<br>
<br>
Is anyone else looking this so that I dont duplicate efforts ?<br>
<br>
Thanks<br>
Len<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>
</div>
</blockquote></div><br></div></body></html>