<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1414402258725_21181" dir="ltr">In the GUI there is a flag "permanent" for every shared folder that I can enable even though the VM is running at the time. If it is enabled, it means the shared folder remains attached to the VM even when it is shut down (powered off) and later started again from cold boot. Transient shared folders are gone once the VM starts from cold boot or is powered off. They remain if the VM is saved and restored.</div><div id="yui_3_16_0_1_1414402258725_21182" dir="ltr"><br></div><div id="yui_3_16_0_1_1414402258725_21183" dir="ltr">This is the behaviour the GUI enables me, but I cannot see how I can reproduce that with the API. Except if I explicitly change shared folders into persistent shared folders once the VM is powered off and I can change its settings.<br></div><div id="yui_3_16_0_1_1414402258725_21184"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> Klaus Espenlaub <klaus.espenlaub@oracle.com> schrieb am 12:24 Montag, 27.Oktober 2014:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv0114063077"><div>
    Karoline,<br clear="none">
    <div class="yiv0114063077moz-cite-prefix">On 27.10.2014 10:33, Karoline Haus
      wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
        <div id="yiv0114063077yui_3_16_0_1_1414402258725_2405">Hi I would like to add
          a permanent shared folder to a VM. Now I would like to be able
          to do that also while the VM is in running state and while it
          is in saved state. That is possible using the normal VBOX GUI,
          but using the API, I get an error trying to add a shared
          folder to a saved VM and I don't know how I can add a
          permanent shared folder to a running VM. The API says it only
          works while the VM is off using the IMachine class? Is it not
          possible to add a permanent shared folder using the IConsole
          class while the VM is running or in saved state? <br clear="none">
        </div>
      </div>
    </blockquote>
    Confused... If the GUI can do what the API doesn't offer then how
    would the GUI do that when it's only using the API? It's also adding
    temporary shared folders in this case. When there's a running VM
    it's absolutely impossible to add a permanent shared folder. If the
    GUI manages to somehow add a permanent shared folder I'd consider it
    an API bug, but this bug should be "exploitable" by all API clients
    if they use the same sequence of calls.<br clear="none">
    <br clear="none">
    I think even for VMs which are in saved state it's not allowed to
    add permanent shared folders - though this is something which
    probably could be changed without causing extreme effort (the
    corresponding change for removing shared folders while in saved
    state is much harder, because currently the API has no knowledge
    which shared folders are actually in use, and removing those would
    definitely break saved state).<br clear="none">
    <br clear="none">
    Klaus<div class="yiv0114063077yqt9070508257" id="yiv0114063077yqtfd00943"><br clear="none">
    <blockquote type="cite">
      <div class="yiv0114063077moz-signature">
        <div dir="ltr" id="yiv0114063077yui_3_16_0_1_1414402258725_2407">Any help
          would be greatly appreciated. Thanks, Karoline 
        </div>
      </div>
    </blockquote>
  </div></div></div><br>_______________________________________________<br clear="none">vbox-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:vbox-dev@virtualbox.org" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br clear="none"><a shape="rect" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><div class="yqt9070508257" id="yqtfd08093"><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>