inaccessible guest - guest additions iso in use by snapshot

Discussions related to using VirtualBox on Windows hosts.

inaccessible guest - guest additions iso in use by snapshot

Postby epu » 17. May 2010, 23:17

Hey everyone,

Hoping you can help! Did some google searches of the forums for my exact issue, but haven't found a solution in an hour of online research.

On Windows Vista x64, I've got 3.1.6 r59338 puel host running with guest extensions. Have a Windows Vista x64 guest with a small snapshot tree that branches before I install some software.

When I fire up the vbox gui, my VM (vista64-sp2 in the screenshot) is marked as inaccessible. The snapshot tab is not selectable. The error message is 'Cannot attach medium 'C:\path\to\VboxGuestAdditions.iso' {cd-uid} from snapshot '{snapshot-uid}': medium is already in use by snapshot '{snapshot-uid}'. Both of the snapshot-uid are the same. That is, the error as I interpret it reads: snapshot can't use the medium because the snapshot is already using the medium.

inaccesible_extensions_disc_vista64_guest_snapshots.jpg
screenshot of inaccessible vista64 guest
inaccesible_extensions_disc_vista64_guest_snapshots.jpg (53.23 KiB) Viewed 2688 times


I haven't deleted nor hand-edited any files, nor upgraded vbox.

Is there some reference manual or online help I missed?
Is there a quick edit I can make to restore some of the tree of snapshots?
Is this something an upgrade to a new vbox might fix, or would it make it worse?

Best regards,

-e
epu
 
Posts: 3
Joined: 17. May 2010, 22:32
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Ubuntu, Kubuntu, debian, Windows Vista x64, Windows XP

Re: inaccessible guest - guest additions iso in use by snapshot

Postby Sasquatch » 18. May 2010, 23:17

Close VB and make sure no process is running in the background. Then open your user profile (easy access by typing %userprofile% in the address bar) and go to the Application Data folder (it's hidden, you can use %appdata% instead to access it more directly) and look for the folder ".Virtualbox". In there you will find a few folders (Machines and Harddrives) and one will hold the settings file of your VM. Open that file (<vmname>.xml) in notepad and search for the CD/DVD entry. Clear the media that is listed there so it will only have the opening and closing tags for it (the media entry is indented). Save the file and start VB. The VM should now be accessible again.

If you're not sure it will work, make a backup of the file you edit so you can revert any changes.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: inaccessible guest - guest additions iso in use by snapshot

Postby epu » 21. May 2010, 01:18

Hey, awesome, thanks for the help!

I have 2 dvd drives, the virtual one for vbox extensions, and a physical pass-through one for install cd/dvd.

Somehow, through normal use, all of the pass-through ones were set to mount the vbox extensions, so each snapshot said both drives had mounted that disc.

Deleting the entire xml element for the Image of the pass-through disc for each snapshot fixed this, and now the machine and its snapshots are available again.

Thank you so much!

-e
epu
 
Posts: 3
Joined: 17. May 2010, 22:32
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Ubuntu, Kubuntu, debian, Windows Vista x64, Windows XP

Re: inaccessible guest - guest additions iso in use by snapshot

Postby sandervl » 21. May 2010, 12:07

That's fixed in 3.2.0.
sandervl
Volunteer
 
Posts: 1064
Joined: 10. May 2007, 10:27
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Windows, Linux, Solaris

Re: inaccessible guest - guest additions iso in use by snapshot

Postby epu » 21. May 2010, 17:05

Great! I see the update is available, snagging now.
epu
 
Posts: 3
Joined: 17. May 2010, 22:32
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Ubuntu, Kubuntu, debian, Windows Vista x64, Windows XP

Re: inaccessible guest - guest additions iso in use by snapshot

Postby mbauhahn » 15. Apr 2011, 15:22

I'm having the same problem:

Cannot attach medium 'C:\epm11121.iso' {1a6b3d0a-688b-4bad-83ce-3d223b0408f7} from snapshot '80ad972b-5a00-48cd-b23b-0a1512b53208': medium is already in use by this snapshot!.
Result Code:
VBOX_E_OBJECT_IN_USE (0x80BB000C)
Component:
Medium
Interface:
IMedium {9edda847-1279-4b0a-9af7-9d66251ccc18}

Problem appeared after rebooting host in VirtualBox 4.0.0 (and after upgrading today to 4.0.4). My host OS is Windows 7 64-bit and my client OS is Microsoft Windows 2008 R2 64-bit.

Any further suggestion? I tried the workaround (deleting 'C:\epm11121.iso' from VirtualBox.xml) but no joy. Any suggestion?

Cheers,

Maurice
mbauhahn
 
Posts: 3
Joined: 15. Apr 2011, 15:02
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Win2008R2

Re: inaccessible guest - guest additions iso in use by snapshot

Postby rudi » 11. May 2011, 12:04

The following worked for me on Linux:

  1. stopped any vm on virtualbox
    .
  2. stopped the vboxdrv by
    Code: Select all   Expand viewCollapse view
    /etc/rc.d/vboxdrv stop

    (I don't know if this is neccessary at all, but I felt better with this)
    .
  3. identified the xyz.vbox file (XML) for the inaccessible vm and made a copy of it
    .
  4. opened that xyz.vbox file in a text editor
    .
  5. searched for the uuid for the failed medium /usr/share/virtualbox/VBoxGuestAdditions.iso, in your case that would be C:\epm11121.iso:
    Code: Select all   Expand viewCollapse view
    <VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.11-linux">
      <Machine uuid="..." name="shouldBeTheNameOfTheInaccessibleVm" OSType="..." ...">
        <Description>...</Description>
        <MediaRegistry>
          <HardDisks>
            <HardDisk ...>
               ...
           </HardDisk>
               ...
          <DVDImages>
            <Image uuid="{d5939483-1581-4cc6-9ba2-41f597a3ad34}" location="/usr/share/virtualbox/VBoxGuestAdditions.iso"/>
               ...

    and found {d5939483-1581-4cc6-9ba2-41f597a3ad34}
    .
  6. searched for that uuid in any <Snapshot ...> entity where it is to be attached twice:
    Code: Select all   Expand viewCollapse view
                    <Snapshot uuid="shouldBeTheSnapshotUuidFromTheErrorMessage" ...>
                      ... (lots of contents snipped here)
                      <StorageControllers>
                        <StorageController ...>
                          ...
                          <AttachedDevice passthrough="false" type="DVD" port="0" device="1">
                            <Image uuid="{d5939483-1581-4cc6-9ba2-41f597a3ad34}"/>
                          </AttachedDevice>
                         ...
                          <AttachedDevice passthrough="false" type="DVD" port="1" device="1">
                            <Image uuid="{d5939483-1581-4cc6-9ba2-41f597a3ad34}"/>
                          </AttachedDevice>
                        ...

  7. threw a dice to decide against one of them :lol:
    .
  8. deleted all but one <AttachedDevice ...> entities for that uuid so that the section finally changed to
    Code: Select all   Expand viewCollapse view
                    <Snapshot uuid="shouldBeTheSnapshotUuidFromTheErrorMessage" ...>
                      ... (lots of contents snipped here)
                      <StorageControllers>
                        <StorageController ...>
                          ...
                          ...
                          <AttachedDevice passthrough="false" type="DVD" port="1" device="1">
                            <Image uuid="{d5939483-1581-4cc6-9ba2-41f597a3ad34}"/>
                          </AttachedDevice>
                        ...

  9. saved the edited file
    .
  10. restarted the vboxdrv by
    Code: Select all   Expand viewCollapse view
    /etc/rc.d/vboxdrv start

  11. opened the virtualbox gui while praying to Murphy
    .
  12. started the VM

Maybe you have to change this a little bit due to your Windoze host OS (paths, names). But finally the VM definition files should be the same.

I didn't find the time for rolling the VM back to the "repaired" snapshot yet, so don't hesitate to try it and report here if it worked.
Maybe someone else can state here if my solution leaves unusable snapshots, too.


Best regards
rudi
rudi
 
Posts: 1
Joined: 11. May 2011, 10:49
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Linux, Windoze

Re: inaccessible guest - guest additions iso in use by snapshot

Postby joseazul7 » 29. Jun 2011, 06:31

MANY THANKS RUDI, It worked great for me!
I was sincerely worry about doing any mistake when editing my Win7 Ultimate Lite SP1 VM, but it is working very well since i did that,
I thought the error happenen bcuz I re-installer GuestAdditions.iso by mistake.

I would want to know it should I edit the file named "W7UltLiteSP1.vbox-prev" in the "/home/user_name/VirtualBox VMs/shared_folder_name/" folder, ¿Should I for the changes to apply in my VM? I ask about it bcuz that (.vbox-prev) file -unknowned for me about its using -
has the same information as my .vbox file.

Many thanks for your help!

Jose Azúul...
joseazul7
 
Posts: 1
Joined: 29. Jun 2011, 06:20
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows 7 Ultimate Lite SP1 (2011)


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot], socratis and 22 guests