<div dir="ltr">Okay, so you mean to say that once the script is copied and executed, I need to remove context.ps1 from context cd?<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 10:06 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You have to take into account that the context CD is not regenerated<br>
after the VM is created so attached nics can not be automatically<br>
configured.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Aug 21, 2014 at 6:17 PM, kiran ranjane <<a href="mailto:kiran.ranjane@gmail.com">kiran.ranjane@gmail.com</a>> wrote:<br>
> Hello Andre,<br>
><br>
> Windows machine boot fine and I am able to login.<br>
> Issue is with ip contextualization where the IP is different inside the VM<br>
> and different in Sunstone.<br>
><br>
> I followed Windows Contextualization 4.8 documentation<br>
> -- Copied .vbs script to C: and enable it as a startup script.<br>
> -- Include context.ps1 into the CONTEXT files through Sunstone<br>
> -- rebooted the VM<br>
> -- After reboot it did not assign the ip that was displayed in sunstone.<br>
> -- Then I deleted .opennebula-context and rebooted again and it took correct<br>
> Ip that was assigned in Sunstone.<br>
><br>
> -- However when I hot added another nic to the VM it did not assign the ip<br>
> as it was in sunstone instead it took different ip from DHCP.<br>
> -- I delete the .opennebula-context file and rebooted it again but first nic<br>
> got correct IP but the second nic did not.<br>
><br>
> Regards<br>
> Kiran Ranjane<br>
><br>
><br>
><br>
><br>
> On Thu, Aug 21, 2014 at 8:56 PM, André Monteiro <<a href="mailto:andremonteiro@ua.pt">andremonteiro@ua.pt</a>> wrote:<br>
>><br>
>> Hi Kiran,<br>
>><br>
>><br>
>><br>
>> Can you provide more details on the your problem? I need to know if the<br>
>> problem is the machine not booting, not starting windows or not executing<br>
>> the script.<br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> André Monteiro<br>
>><br>
>> ________________________________<br>
>> De: kiran ranjane <<a href="mailto:kiran.ranjane@gmail.com">kiran.ranjane@gmail.com</a>><br>
>> Enviado: 21 de agosto de 2014 15:55<br>
>> Para: Javier Fontan<br>
>> Cc: André Monteiro; Users OpenNebula<br>
>><br>
>> Assunto: Re: [one-users] OpenNebula Windows Server 2008 R2.<br>
>><br>
>> Hi Javier,<br>
>><br>
>> I downloaded context from the latest 4.8 version documentation. I tried<br>
>> Linux version both .deb and .rmp on ubuntu and centos and they are working<br>
>> fine but having trouble with windows context.<br>
>><br>
>> Regards<br>
>> Kiran Ranjane<br>
>><br>
>><br>
>> On Thu, Aug 21, 2014 at 7:19 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>><br>
>> wrote:<br>
>>><br>
>>> Which version of the context scripts are you using? I've been using<br>
>>> the latest version from the documentation and work OK for me.<br>
>>><br>
>>><br>
>>> <a href="http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html" target="_blank">http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html</a><br>
>>><br>
>>> On Thu, Aug 21, 2014 at 3:42 PM, kiran ranjane <<a href="mailto:kiran.ranjane@gmail.com">kiran.ranjane@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hello Andre,<br>
>>> ><br>
>>> > I am also facing the same issue while contextualization Windows 2008 R2<br>
>>> > virtual machine. As said above, first time it does not work and I need<br>
>>> > to<br>
>>> > delete .opennebula from c drive and then restart the VM and it works,<br>
>>> > However if I add second nic interface it does not contextualize even<br>
>>> > after<br>
>>> > deleting .opennebula and re-running the the vbs scripts.<br>
>>> ><br>
>>> > Windows Version - Windows Server 2008 R2 Enterprise<br>
>>> > WMI - 6.1.7600.16385<br>
>>> > Powershell - 2.0<br>
>>> ><br>
>>> > Regards<br>
>>> > Kiran Ranjane<br>
>>> ><br>
>>> ><br>
>>> > On Tue, Apr 29, 2014 at 4:19 PM, André Monteiro <<a href="mailto:andremonteiro@ua.pt">andremonteiro@ua.pt</a>><br>
>>> > wrote:<br>
>>> >><br>
>>> >> Hi Leszek,<br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >> Please send me details about your Windows version, Powershell and WMI,<br>
>>> >> it<br>
>>> >> may be a problem of  versions. Executing the file on Powershell ISE<br>
>>> >> returns<br>
>>> >> any error?<br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >> --<br>
>>> >><br>
>>> >> André Monteiro<br>
>>> >><br>
>>> >> ________________________________<br>
>>> >> De: Jaime Melis <<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>><br>
>>> >> Enviado: terça-feira, 29 de Abril de 2014 10:45<br>
>>> >> Para: Leszek Master<br>
>>> >> Cc: Users OpenNebula; André Monteiro<br>
>>> >> Assunto: Re: [one-users] OpenNebula Windows Server 2008 R2.<br>
>>> >><br>
>>> >> Hi Leszek,<br>
>>> >><br>
>>> >> apologies with the delay. We've been busy with the release. Does the<br>
>>> >> hostname change with a reboot?<br>
>>> >><br>
>>> >> Does anyone have expertise changing the windows hostname without a<br>
>>> >> reboot<br>
>>> >> from the powershell CLI? these ares the lines that change the<br>
>>> >> hostname:<br>
>>> >><br>
>>> >> <a href="https://github.com/OpenNebula/addon-context-windows/blob/master/context.ps1#L134" target="_blank">https://github.com/OpenNebula/addon-context-windows/blob/master/context.ps1#L134</a><br>
>>> >><br>
>>> >> Adding Andé Monteiro, the original author of that line, to the<br>
>>> >> conversation.<br>
>>> >><br>
>>> >> cheers,<br>
>>> >> Jaime<br>
>>> >><br>
>>> >><br>
>>> >> On Wed, Apr 23, 2014 at 4:09 PM, Leszek Master <<a href="mailto:keksior@gmail.com">keksior@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >>><br>
>>> >>> Also now i see that it do everything beside changing hostname. The<br>
>>> >>> Hostname stays unchanged :(<br>
>>> >>><br>
>>> >>><br>
>>> >>> 2014-04-23 16:07 GMT+02:00 Leszek Master <<a href="mailto:keksior@gmail.com">keksior@gmail.com</a>>:<br>
>>> >>><br>
>>> >>>> I've got "VM already contextualized" but if i delete .opennebula<br>
>>> >>>> file<br>
>>> >>>> from C: and rerun this, it works 100% good. So why it doesn't work<br>
>>> >>>> in the<br>
>>> >>>> first time? Any idea how to track this down?<br>
>>> >>>><br>
>>> >>>> Also how to delete the cd-rom permamently after contextualizing my<br>
>>> >>>> VM?<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> 2014-04-23 16:03 GMT+02:00 Jaime Melis <<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>>:<br>
>>> >>>><br>
>>> >>>>> Hi Leszek,<br>
>>> >>>>><br>
>>> >>>>> have you tried running the context.ps1 manually?<br>
>>> >>>>><br>
>>> >>>>> (inside the PowerShell terminal)<br>
>>> >>>>> d:<br>
>>> >>>>> Set-ExecutionPolicy unrestricted<br>
>>> >>>>> Invoke-Expression context.ps1<br>
>>> >>>>><br>
>>> >>>>> what happens then?<br>
>>> >>>>><br>
>>> >>>>> cheers,<br>
>>> >>>>> Jaime<br>
>>> >>>>><br>
>>> >>>>><br>
>>> >>>>> On Wed, Apr 23, 2014 at 4:00 PM, Leszek Master <<a href="mailto:keksior@gmail.com">keksior@gmail.com</a>><br>
>>> >>>>> wrote:<br>
>>> >>>>>><br>
>>> >>>>>> It doesn't contextualize it for me - only the RDP enable working.<br>
>>> >>>>>><br>
>>> >>>>>> Also i would like to know how to deattach permamently context<br>
>>> >>>>>> cd-rom<br>
>>> >>>>>> from a VM, there is my CONTEXT variables i don't want to be seen<br>
>>> >>>>>> by<br>
>>> >>>>>> end-user. Is there any way to do that?<br>
>>> >>>>>><br>
>>> >>>>>><br>
>>> >>>>>> 2014-04-22 10:34 GMT+02:00 Jaime Melis <<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>>:<br>
>>> >>>>>>><br>
>>> >>>>>>> Hi Leszek,<br>
>>> >>>>>>><br>
>>> >>>>>>> in case you haven't seen this:<br>
>>> >>>>>>> <a href="http://opennebula.org/windows-contextualization/" target="_blank">http://opennebula.org/windows-contextualization/</a><br>
>>> >>>>>>><br>
>>> >>>>>>> cheers,<br>
>>> >>>>>>> Jaime<br>
>>> >>>>>>><br>
>>> >>>>>>><br>
>>> >>>>>>> On Wed, Apr 16, 2014 at 10:43 AM, Jaime Melis<br>
>>> >>>>>>> <<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>><br>
>>> >>>>>>> wrote:<br>
>>> >>>>>>>><br>
>>> >>>>>>>> Hi Leszek,<br>
>>> >>>>>>>><br>
>>> >>>>>>>> we are  currently working on a contextualization guide for<br>
>>> >>>>>>>> Windows.<br>
>>> >>>>>>>> We will probably release it next week.<br>
>>> >>>>>>>><br>
>>> >>>>>>>> Regards,<br>
>>> >>>>>>>> Jaime<br>
>>> >>>>>>>><br>
>>> >>>>>>>><br>
>>> >>>>>>>> On Wed, Apr 16, 2014 at 10:33 AM, Leszek Master<br>
>>> >>>>>>>> <<a href="mailto:keksior@gmail.com">keksior@gmail.com</a>><br>
>>> >>>>>>>> wrote:<br>
>>> >>>>>>>>><br>
>>> >>>>>>>>> I've got problem with running Windows Server 2008 R2 VM's in<br>
>>> >>>>>>>>> OpenNebula. It doesn't get contexted. I tryied to use manual:<br>
>>> >>>>>>>>><br>
>>> >>>>>>>>> <a href="http://wiki.ieeta.pt/wiki/index.php/OpenNebula#Using_Windows_Images_for_new_Virtual_Machines" target="_blank">http://wiki.ieeta.pt/wiki/index.php/OpenNebula#Using_Windows_Images_for_new_Virtual_Machines</a><br>

>>> >>>>>>>>> but it doesn't work in my environment. The scripts is on<br>
>>> >>>>>>>>> context cd but the<br>
>>> >>>>>>>>> VM doesn;t get the ip, hostname and user account. Can anyone<br>
>>> >>>>>>>>> help me get<br>
>>> >>>>>>>>> this working?<br>
>>> >>>>>>>>><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>
>>> >>>>>>>><br>
>>> >>>>>>>><br>
>>> >>>>>>>><br>
>>> >>>>>>>> --<br>
>>> >>>>>>>> Jaime Melis<br>
>>> >>>>>>>> Project Engineer<br>
>>> >>>>>>>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>>> >>>>>>>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
>>> >>>>>>><br>
>>> >>>>>>><br>
>>> >>>>>>><br>
>>> >>>>>>><br>
>>> >>>>>>> --<br>
>>> >>>>>>> Jaime Melis<br>
>>> >>>>>>> Project Engineer<br>
>>> >>>>>>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>>> >>>>>>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
>>> >>>>>><br>
>>> >>>>>><br>
>>> >>>>>><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>
>>> >>>>><br>
>>> >>>>><br>
>>> >>>>><br>
>>> >>>>> --<br>
>>> >>>>> Jaime Melis<br>
>>> >>>>> Project Engineer<br>
>>> >>>>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>>> >>>>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
>>> >>>><br>
>>> >>>><br>
>>> >>><br>
>>> >>><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>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >> --<br>
>>> >> Jaime Melis<br>
>>> >> Project Engineer<br>
>>> >> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>>> >> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
>>> >><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>
>>> ><br>
>>> ><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>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Javier Fontán Muiños<br>
>>> Developer<br>
>>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
>><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</div></div></blockquote></div><br></div>