Page 2 of 2

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:26
by vbox_user1001
I DO see this in the log but don't understand what it seeks to explain...

[/Devices/piix3ide/0/LUN#2/AttachedDriver/Config/] (level 6)
00:00:00.409 Format <string> = "RAW" (cb=4)
00:00:00.409 Path <string> = "/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso" (cb=67)
00:00:00.409 ReadOnly <integer> = 0x0000000000000001 (1)
00:00:00.409 Type <string> = "DVD" (cb=4)

It appears TWICE (which has me wondering if the code is trying to open the same file twice ... of its own doing).

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:28
by Perryg
The PID is not in the log file.
Mine is located as shown above and the folder is exact with the exception of my user name where I used <...>
/temp/.vbox-<your-user-name>-ipc/ipcd
/temp/.vbox-<your-user-name>-ipc/lock

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:31
by vbox_user1001
Where would THIS be (me wonders)...

/Devices/piix3ide/0/LUN#2/AttachedDriver/Config/

Anyone?
Anyone?
Beuller?

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:36
by vbox_user1001
I think I found it. It's IN the .vbox file itself (which, in retrospect, sort of makes sense). ...had assumed that that was a binary file. It's not. It's an xml container.

I'm going to back things up and empty out the DVDImages section and see if she wakes up (or falls over).

IMPORTANT INFO IN THE LATER POSTING ... DO NOT ALTER DVDImages section! ... read onward before taking action!


Here's the section, btw...

Code: Select all

      <DVDImages>
        <Image uuid="{b8cfda58-1f8b-493c-8bdf-8b49cf96e40a}" location="/Volumes/dl/vbox/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso"/>
        <Image uuid="{ffcbd5ea-0acd-4d16-95d6-e93cf1867365}" location="/Volumes/dl/vbox/ISOs/Visual Studio 2005 Pro/VSPROD1.cdr"/>
        <Image uuid="{ac9975dd-199d-40bb-bb8e-4520d3e4fa2f}" location="/Volumes/dl/vbox/ISOs/Visual Studio 2005 Pro/VSPROD2.cdr"/>
        <Image uuid="{db9e7226-e315-4bd7-950a-82e0c079a11c}" location="/Volumes/dl/vbox/ISOs/Visual Studio 2008 Pro/DVD1.cdr"/>
        <Image uuid="{d10b2fea-6111-4755-beff-cb191843868b}" location="/Volumes/dl/vbox/ISOs/Visual Studio 2008 Pro/SQLDEV.cdr"/>
        <Image uuid="{2095614f-cdc6-4347-aba8-483662d650c7}" location="/Volumes/dl/vbox/ISOs/Visual Studio 2010 Pro/X16-43127VS2010Pro.cdr"/>
        <Image uuid="{a0c32d08-046f-4395-adf4-7a231d1ac6a8}" location="/Volumes/dl/Users/...snip.../Desktop/bootcamper.cdr"/>
        <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}" location="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso"/>
        <Image uuid="{e4f9282a-91c4-4e7b-bc8b-a23043b88eea}" location="/Volumes/dl/vbox/ISOs/Visual Studio 11 Ultimate/VS11_BETA_ULT_ENU.iso"/>
        <Image uuid="{59a39fa5-5cff-4f30-bb77-916e1c36ee3f}" location="/Volumes/dl/Users/...snip.../Desktop/ubuntu-12.04-desktop-i386.iso"/>
        <Image uuid="{5fb6f4c6-a25b-4bad-a309-5065f6837eba}" location="/Volumes/dl/vbox/ISOs/Windows 7/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso"/>
      </DVDImages>

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:41
by Perryg
The mount statement is stored there and removing it may get it going again but it is not advisable to edit this file so yes back it up first.

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 22:54
by vbox_user1001
!!!SOLVED!!! (read on)

In my case, .18 created (and left in place) a DUPLICATE "AttachedDevice" node that led vbox to attempt to open, err... mount the same volume TWICE (failing the second time, of course). Here's the relevant portion of the .vbox file:

Code: Select all

   <StorageControllers>
      <StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
        <AttachedDevice passthrough="false" type="DVD" port="0" device="0">
          <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
        </AttachedDevice>
        <AttachedDevice passthrough="false" type="DVD" port="1" device="0">
          <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
        </AttachedDevice>
      </StorageController>
TO FIX THIS ISSUE...

-1) QUIT VirtualBox;
0) BACKUP your .vbox file; (nee, your ENTIRE VM directory)!

NOTE: In my case it was at ~/VirtualBox VMs/<name of vm>.vbox

1) Open the .vbox file associated with the inaccessible VM (in an editor);

-----
EDITOR INFO (for those in great pain)
-----
I used TextWrangler (google it). "Word" is NOT an editor!
-----

2) Scroll to the bottom of the file;
3) Near the bottom you'll see something similar to what appears below:

Code: Select all

<AttachedDevice passthrough="false" type="DVD" port="0" device="0">
   <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
</AttachedDevice>
<AttachedDevice passthrough="false" type="DVD" port="1" device="0">
   <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
</AttachedDevice>
4) Remove the duplicate "AttachedDevice" (XML) node. (that means all text from "<AttachedDevice " through "</AttachedDevice>").

From this:

Code: Select all

<AttachedDevice passthrough="false" type="DVD" port="0" device="0">
   <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
</AttachedDevice>
<AttachedDevice passthrough="false" type="DVD" port="1" device="0">
   <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
</AttachedDevice>
To this:

Code: Select all

<AttachedDevice passthrough="false" type="DVD" port="0" device="0">
   <Image uuid="{eebf0531-6c89-4839-b27b-8d4410bb8c5b}"/>
</AttachedDevice>
5) Save;
6) Quit (editor);
7) Start VirtualBox (manager);
8) BEFORE YOU LAUNCH THE VM!!! Go into Settings and remove the GuestAdditions.iso from the storage UI);

8a) Select VM (one click. one click only!);
8b) Click Settings (button);
8c) Click Storage (button);
8d) Select GuestAdditions.iso from the list of disks;
8e) Click the remove button (a little minus sign);
8f) Click OK;

9) NOW you can start the VM.

Re: Ugh. 4.1.18 GuestAdditions locked me out...

Posted: 25. Jun 2012, 23:00
by vbox_user1001
If there are any vbox devs/qas out there...

#1 - Write a pre-commit scan (across the <StorageControllers><StorageController><AttachedDevice> nodes) and ignore/bail when a duplicate guid/hash is found. By definition, the VM will fail to run when duplicates are found in that sub-tree so it follows that there should NEVER be any duplicates.

#2 - The Media Manager isn't working. One would expect (given the actions I took) that the ENTIRE <DVDImages> nodeset would have been made empty. Alas, upon (handle) "Close" the MediaManager did ZIPPO. NADDA. NOTHING. (or silently caught and ignored an exception whilst trying to save)

Thanks Perry!