I m using <font color="#0000ff">RHEM 3.0</font> as a GUI and <span style="color:rgb(0,0,255);font-family:arial,sans-serif;font-size:13px">ovirt-engine-sdk-3.1.0.3-1.</span><span style="color:rgb(0,0,255);font-family:arial,sans-serif;font-size:13px">el6.noarch.rpm</span><span style="font-family:arial,sans-serif;font-size:13px"><font color="#000000"> for writting python script !</font></span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><font color="#000000"><br></font></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><font color="#000000">I have one existing VM in RHEVM3.0 that I have created using Template( memory 2GB , virtual disk = 10 GB ) in RHEVM 3.0</font></span></div>
<div><font color="#000000" face="arial, sans-serif">Now , I want to increase the virtual disk size upto 60 GB of VM .</font></div><div><font color="#000000" face="arial, sans-serif">How I can do that ???</font></div><div>
<font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">Regards,</font></div><div><font color="#000000" face="arial, sans-serif">Romil </font></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><font color="#000000"><br></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 12:02 PM, Oved Ourfalli <span dir="ltr">&lt;<a href="mailto:ovedo@redhat.com" target="_blank">ovedo@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Romil Gupta&quot; &lt;<a href="mailto:romilgupta19@gmail.com">romilgupta19@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:users@ovirt.org">users@ovirt.org</a>, &quot;Michael Pasternak&quot; &lt;<a href="mailto:mpastern@redhat.com">mpastern@redhat.com</a>&gt;, &quot;Eli Mesika&quot; &lt;<a href="mailto:emesika@redhat.com">emesika@redhat.com</a>&gt;<br>

&gt; Sent: Wednesday, November 21, 2012 8:19:25 AM<br>
&gt; Subject: [Users] Related to extend disk size of existing virtual machine !<br>
&gt;<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt;<br>
&gt; To add a disk to VM we use the following :<br>
&gt;<br>
&gt;<br>
&gt; api.vms.get(VM_NAME).disks.add(params.Disk(storage_domains=params.StorageDomains(storage_domain=[api.storagedomains.get(STORAGE_NAME)]),<br>
&gt;                                                    size=512*MB, #<br>
&gt;                                                    type_=&#39;system&#39;, -<br>
&gt;                                                    disk type is<br>
&gt;                                                    deprecated<br>
&gt;                                                    status=None,<br>
&gt;                                                    interface=&#39;virtio&#39;,<br>
&gt;                                                    format=&#39;cow&#39;,<br>
&gt;                                                    sparse=True,<br>
&gt;                                                    bootable=True))<br>
&gt;<br>
&gt; but the type_ attribute is deprecated , so I got the following<br>
&gt; exception :<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Failed to add disk<br>
&gt;<br>
&gt;<br>
&gt; status: 400<br>
&gt; reason: Bad Request<br>
&gt; detail: Cannot add Virtual Machine Disk. Disk 1 already marked as<br>
&gt; system<br>
&gt;<br>
&gt;<br>
&gt; Now , if I try giving disk_type=&#39;Data&#39; on GUI of RHEVM then it will<br>
&gt; be added to VM.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I want to know from which ovirt-sdk version you have deprecated<br>
&gt; attribute disk_type ?<br>
&gt;<br>
</div></div>According to the changelog, it was done in 3.1.0.3-1.<br>
<br>
* Mon Jun 25 2012 Michael Pasternak &lt;<a href="mailto:mpastern@redhat.com">mpastern@redhat.com</a>&gt; - 3.1.0.3-1<br>
...<br>
- to Disk type added provisioned_size property and removed /type/ (not supported in 3.1)<br>
...<br>
<br>
What&#39;s the ovirt engine version you&#39;re working with?<br>
<div class="im"><br>
<br>
&gt;<br>
&gt; I am currently using ovirt-engine-sdk-3.1.0.3-1.el6.noarch.rpm and I<br>
&gt; didn&#39;t find type_ attribute using this rpm !<br>
&gt;<br>
&gt;<br>
&gt; How I can extend the disk size of a existing VM in RHEVM ?<br>
&gt;<br>
</div>There is currently no way to extend an existing disk.<br>
<div class="im"><br>
&gt;<br>
&gt; Help me !<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards ,<br>
&gt; Romil Gupta<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>I don&#39;t wish to be everything to everyone, but I would like to be something to someone. <br>
</div>