Oracle VM VirtualBox: Ticket #2049: VBoxHeadless with "-a" option aborts when restoring statehttps://www.virtualbox.org/ticket/2049
<p>
I'm running VB 1.6.6 on Ubuntu (this bug happens on both Gutsy and Hardy.)
</p>
<p>
If I use the -a option to VBoxHeadless to restore a VM with saved state, I get the following error message (and the VM is set to 'aborted' state):
</p>
<pre class="wiki">VirtualBox Headless Interface 1.6.6
(C) 2008 Sun Microsystems, Inc.
All rights reserved
[!] FAILED calling vrdpServer-&gt;SetNetAddress(Bstr(vrdpAddress)) at line 855!
[!] Primary RC = E_ACCESSDENIED (0x80070005) - Access denied
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0x80070005) - Access denied
[!] Text = The machine is not mutable (state is 2)
[!] Component = Machine, Interface: IMachine, {f95c0793-7737-49a1-85d9-6da81097173b}
[!] Callee = IVRDPServer, {ed9d31ae-867f-45fc-b727-6740084d1883}
</pre><p>
The command I'm running is
</p>
<pre class="wiki">VBoxHeadless -s &lt;VMName&gt; -a 127.0.0.1
</pre><p>
It doesn't seem to happen when starting a VM from powered off state. In case it is relevant, I'm saving the VM states with "VBoxManage controlvm <em>VMName</em> savestate".
</p>
en-usOracle VM VirtualBox/graphics/vbox_logo2_gradient.pnghttps://www.virtualbox.org/ticket/2049
Trac 0.12michaelFri, 12 Sep 2008 11:51:01 GMThttps://www.virtualbox.org/ticket/2049#comment:1
https://www.virtualbox.org/ticket/2049#comment:1
<p>
As far as I know, the VRDP address is set when the VM is originally started and cannot be changed until it is stopped again (just saving the state doesn't count as stopping).
</p>
Ticketsteved424Fri, 12 Sep 2008 13:06:19 GMThttps://www.virtualbox.org/ticket/2049#comment:2
https://www.virtualbox.org/ticket/2049#comment:2
<p>
Ah, OK, I didn't realize the setting was persistent. (Though is there any particular reason for a front-end, per-session setting to be tied to the life of the VM, given that the session may be much shorter lived? And should it set the state to 'aborted'?)
</p>
<p>
Feel free to downgrade the severity, BTW, or mark it as a documentation issue, or whatever.
</p>
TicketmichaelMon, 15 Sep 2008 14:18:13 GMTpriority changedhttps://www.virtualbox.org/ticket/2049#comment:3
https://www.virtualbox.org/ticket/2049#comment:3
<ul>
<li><strong>priority</strong>
changed from <em>major</em> to <em>minor</em>
</li>
</ul>
<p>
There probably isn't a good reason, which is why I didn't close the ticket. This will probably get fixed at some point, but it is of course very low on the priority list.
</p>
TicketaeichnerFri, 12 Aug 2016 13:13:24 GMTstatus, description changed; resolution sethttps://www.virtualbox.org/ticket/2049#comment:4
https://www.virtualbox.org/ticket/2049#comment:4
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>obsolete</em>
</li>
<li><strong>description</strong>
modified (<a href="/ticket/2049?action=diff&amp;version=4">diff</a>)
</li>
</ul>
<p>
Please reopen if still relevant with a recent <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> release.
</p>
Ticket