<div dir="ltr">Attaching screenshot.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 7:22 PM, Tejesh M <span dir="ltr"><<a href="mailto:tejeshmk@gmail.com" target="_blank">tejeshmk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br><br></div>I want to select "[sysprep]" [refer screenshot] & attach to floppy drive through java code? I'm trying to change administrator password for the VM which is cloned & change IP address. but i'm stuck, as there is no option to set new password & IP for windows. Is there any workaround?<br>
<div><br><br><img alt="" height="420" width="394"><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 6:22 PM, Moti Asayag <span dir="ltr"><<a href="mailto:masayag@redhat.com" target="_blank">masayag@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
----- Original Message -----<br>
> From: "Tejesh M" <<a href="mailto:tejeshmk@gmail.com" target="_blank">tejeshmk@gmail.com</a>><br>
> To: "Moti Asayag" <<a href="mailto:masayag@redhat.com" target="_blank">masayag@redhat.com</a>>, "users@oVirt.org" <<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>><br>
> Sent: Monday, March 17, 2014 1:05:21 PM<br>
> Subject: Attach floppy as [sysprep] to VM - API<br>
><br>
> Hi,<br>
><br>
> I want to attach floppy as [sysprep] to windows VM in the Run once via API.<br>
> can you help?<br>
><br>
<br>
Have a look on the exposed actions on your engine-server:<br>
<a href="http://localhost:8080/ovirt-engine/api?rsdl" target="_blank">http://localhost:8080/ovirt-engine/api?rsdl</a><br>
<br>
Specifically in the expected parameters of running a vm:<br>
- name: /vms/{vm:id}/start|rel=start<br>
<br>
I haven't tried executing this code, so adding Omer to adjust it:<br>
<br>
Action action = new Action();<br>
action.setVm(vm);<br>
Domain domain = new Domain();<br>
domain.setName("domainname");<br>
User user = new User();<br>
user.setName("username");<br>
user.setPassword("passwd");<br>
domain.setUser(user);<br>
vm.setDomain(domain);<br>
<br>
//not too sure if this is the way to use it or via vm payload<br>
Floppies floppies = new Floppies();<br>
Floppy floppy = new Floppy();<br>
File file = new File();<br>
file.setContent("content ?");<br>
floppy.setFile(file);<br>
floppies.getFloppies().add(floppy);<br>
vm.setFloppies(floppies);<br>
vm.start(action);<br>
<br>
> I want to do sysprep on windows 2008<br>
><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div>Thanks & Regards</div>
<div>Tejesh</div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div>Thanks & Regards</div>
<div>Tejesh</div>
</div>