Hi there,
This is my 'inaccessible' virtual machine. I was trying to uninstall an old vbox guest additions so I had multiple guest additions mounted when my host system crashed.
I believe I have the same issue as Mary Ann in the thread: "[Solved] Cannot attach medium ... medium is already associated with the current state of machine" (I can't add the link as this is my first post)
It seems like @mpack did some magic on the virtual machine and repaired it. How may I fix this?
I've also attached my virtual machine if anyone would like to have a look.
Cannot attach medium VBoxGuestAdditions.iso
Cannot attach medium VBoxGuestAdditions.iso
- Attachments
-
- Lubuntu.zip
- (1.91 KiB) Downloaded 42 times
Last edited by socratis on 27. Jul 2019, 09:03, edited 1 time in total.
Reason: Added missing URL.
Reason: Added missing URL.
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: Cannot attach medium VBoxGuestAdditions.iso
It doth appear that you have almost the same issue in your Lubuntu guest that the linked poster had. You have two CD drives in your guest, and both have the same Guest Additions ISO inserted:
Based on Mpack's solution in the linked thread, to remove the ISO's from the CD drives, Here's what the same sections would look like:<DVDImages> <Image uuid="{4470bc09-1149-42c7-a122-65823e7f72f2}" location="C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso"/> </DVDImages> .......... <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"> <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"> <Image uuid="{4470bc09-1149-42c7-a122-65823e7f72f2}"/> </AttachedDevice> <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="0" device="0"> <Image uuid="{4470bc09-1149-42c7-a122-65823e7f72f2}"/> </AttachedDevice> </StorageController>
These edits are in this Lubuntu.vbox file. Turn off all things related to Virtualbox, maybe reboot your host so there's nothing running related to Virtualbox. Then make a backup copy of the Lubuntu.vbox file you have now, then copy this edited file into the guest folder over the top of the original.<DVDImages/> ........ <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"> <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0" /> <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="0" device="0" /> </StorageController>
- Attachments
-
- edited Lubuntu.zip
- (1.84 KiB) Downloaded 42 times
Last edited by socratis on 27. Jul 2019, 19:44, edited 1 time in total.
Reason: Enclosed the information in [quote][pre] tags for better readability
Reason: Enclosed the information in [quote][pre] tags for better readability
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Cannot attach medium VBoxGuestAdditions.iso
Actually, you don't even need two DVD drives, just one.
<StorageController name="IDE" type="PIIX4" PortCount="1" useHostIOCache="true" Bootable="true"> <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="0" device="0" /> </StorageController>
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Cannot attach medium VBoxGuestAdditions.iso
Thanks so much @socrates. Unfortunately when I load the edited vbox file it gives an error: extra content at the end of the document (line 93)
However when I check line 93 it refers to the </VirtualBox> tag so I'm unsure hwo to resolve it. Any suggestions?
However when I check line 93 it refers to the </VirtualBox> tag so I'm unsure hwo to resolve it. Any suggestions?
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Cannot attach medium VBoxGuestAdditions.iso
Try this one:
- Attachments
-
- Lubuntu.zip
- (1.87 KiB) Downloaded 72 times
Re: Cannot attach medium VBoxGuestAdditions.iso
Thanks so much @mpack, what did you do to fix it?
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Cannot attach medium VBoxGuestAdditions.iso
I didn't. I started from scratch from your first post of it. Easier than trying to count brackets in an XML.