<div dir="ltr">Thanks a lot Rechard for your inputs. </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 11:23 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Sep 12, 2014 at 10:40:14PM +0530, Priyanka Ranjan wrote:<br>
> Hello Experts,<br>
><br>
> I need a help from you . I am using CentOS 6.4 and using guestfish<br>
> to modify an ESX image.<br>
><br>
> I am adding a disk, executing "run" command and mounting it.  the<br>
> "run" command is taking around 50 seconds . Is there any way to<br>
> minimize it.<br>
<br>
</span>So first of all, measure the performance.  Run the simple<br>
baseline tests here:<br>
<br>
<a href="http://libguestfs.org/guestfs-performance.1.html#baseline-measurements" target="_blank">http://libguestfs.org/guestfs-performance.1.html#baseline-measurements</a><br>
<br>
If, after several runs, this stays at ~ 50 seconds, then it's likely<br>
because you are running this inside a virtual machine, on Amazon EC2,<br>
or on a machine which has virtualization disabled (eg in the BIOS<br>
settings).  You can fix that by using baremetal (or maybe nested virt).<br>
<br>
You will find other tips in the guestfs-performance(1) man page that I<br>
linked to above.<br>
<span class=""><br>
> If we can not minimize it then Can we create and keep the guestfish<br>
> virtual shell open so that we can just add a disk , mount and modify<br>
> the image in few seconds.<br>
<br>
</span>Yes, but unfortunately not on CentOS 6.  On RHEL / CentOS 7 we support<br>
hotplugging in both libguestfs and guestfish, and that lets you do<br>
exactly what you describe above.<br>
<br>
  <a href="http://libguestfs.org/guestfs.3.html#hotplugging" target="_blank">http://libguestfs.org/guestfs.3.html#hotplugging</a><br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" target="_blank">http://libguestfs.org</a><br>
</font></span></blockquote></div><br></div>