Hi there,<br><br>The contextualization offered by OpenNebula is creating that cdrom and context.sh script, but it's up to the guest OS to read that file and configure itself.<br><br>We only provide linux scripts; you would have to create similar ones. I'm not sure how difficult that can be since I don't have experience with Windows scripting.<br>

<br><br>If you only need to configure the right IP for your VM, then you can try to configure a DHCP server in your network (it can be placed in a VM in the same VNet). This has been discussed in the list, hopefully these threads will help:<br>

<br>[1] <a href="http://www.mail-archive.com/users@lists.opennebula.org/msg01143.html">http://www.mail-archive.com/users@lists.opennebula.org/msg01143.html</a><br>[2] <a href="http://www.mail-archive.com/users@lists.opennebula.org/msg01395.html">http://www.mail-archive.com/users@lists.opennebula.org/msg01395.html</a><br>

<br>Regards<br><br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>

<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>


<br><br><div class="gmail_quote">2011/5/6 ddd <span dir="ltr"><<a href="mailto:xrchina2008@163.com">xrchina2008@163.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div> hi,all</div>
<div>       now,my winxp vm is running.but,config's ip and hostname is not right.</div>
<div>       now,windows vm's cd-rom is existing context.sh. </div>
<div>       This is my vm config file:</div>
<div>                NAME=WinVista<br>                CPU=1<br>                MEMORY=1024<br>                OS=[boot=hd]<br>                DISK =[source="/root/images/winxp_test.img", clone=yes, target=hda, readonly=no]<br>

                NIC=[network ="Small network"]</div>
<div>                CONTEXT=[<br>                       hostname   = "$NAME$VMID",<br>                       ip_public  = "$NIC[IP, NETWORK=\"Small network\"]",<br>                       target     ="hdb"<br>

                ]<br>                GRAPHICS =[type ="vnc",listen ="127.0.0.1", port = "1"]</div>
<div>       windows template  need config?how?</div>
<div>       Please help me.</div>
<div>                                                            ---Rong  Xiong</div><br><br><span title="neteasefooter"><span></span></span><br><br><span title="neteasefooter"><span></span></span><br><br><span title="neteasefooter"><span></span></span><br>

<br><span title="neteasefooter"><span></span></span><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>
<br></blockquote></div><br>