Lost VM Overnight

Discussions related to using VirtualBox on Windows hosts.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Lost VM Overnight

Post by pelican418 »

Ok, I've been fighting this all day. Tried everything I could find on the web and nothing has worked. Here is the senario, running Oracle Virtual Box version 5.1.22. on a Windows 10 host that was upgraded from Windows 7 some 2 weeks ago. I left my VM running overnight and when I woke up it had a message next to the VM name that it was unaccessible. I deleted it from the list in Virtualbox thinking I would just add it back. NOPE! Bad idea! Now I can see the vdi file in the vm folder along with a log folder along with a tmp and prev file using explorer but can't see it through add or manage in virtualbox. It was not listed in the XML in .vbox folder so I gave it a new uuid number through command and added the line to the xml file hoping that would work but NOPE again. Any other ideas on how to get my VM back up and running would be extremely helpful.
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

Open Command Prompt. Change to the VM directory. Post the output of the command:
  • dir /s
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

Ooops sorry here is the one with the switch. The AmazonResales VM's are the one's I can see any longer, all the others I can still see and start.
Last edited by pelican418 on 16. Jun 2017, 19:00, edited 1 time in total.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

This is image 2
Last edited by pelican418 on 16. Jun 2017, 18:59, edited 1 time in total.
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

"Post the output" doesn't mean "post the screen capture of the output". 1) The images are illegible, 2) they are larger compared to the text, and 3) they are not searchable.

Please edit the two posts, delete the images and replace them with the actual text. You copy the text from Command Prompt and you paste it in your post. Include them in the {Code} tag if you can, and please make a new post so that we get notified. Thanks...
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

I'm not sure what you mean by code but I ran the dir /s from the virtualbox vms folder and this is the result. I deleted the images as you requested.

Code: Select all

C:\Users\Roger\VirtualBox VMs>dir /s
 Volume in drive C is HP
 Volume Serial Number is 362B-0B4A

 Directory of C:\Users\Roger\VirtualBox VMs

01/06/2017  10:37 PM    <DIR>          .
01/06/2017  10:37 PM    <DIR>          ..
06/15/2017  02:50 PM    <DIR>          AmazonResalesWin7X86
12/05/2016  06:44 PM    <DIR>          AmazonResalesWin7X86 Clone
05/09/2016  10:40 AM    <DIR>          CentexResales
06/15/2017  04:03 PM    <DIR>          CollegeAmzAcct
02/24/2016  05:52 PM    <DIR>          Coupon1
03/09/2016  10:14 PM    <DIR>          CouponBase
06/15/2017  09:05 AM    <DIR>          Coupons1
01/05/2017  11:44 PM    <DIR>          Coupons2
01/06/2017  08:11 AM    <DIR>          Coupons3
01/06/2017  05:22 PM    <DIR>          Coupons4
01/06/2017  11:06 PM    <DIR>          Coupons5
               0 File(s)              0 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86

06/15/2017  02:50 PM    <DIR>          .
06/15/2017  02:50 PM    <DIR>          ..
06/10/2017  07:23 AM             7,828 AmazonResalesWin7X86.vbox-prev
06/14/2017  05:33 PM             7,843 AmazonResalesWin7X86.vbox-tmp
06/15/2017  02:57 PM   134,219,825,152 AmazonResalesWin7X86.vdi
06/10/2017  07:42 AM    <DIR>          Logs
               3 File(s) 134,219,840,823 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\Logs

06/10/2017  07:42 AM    <DIR>          .
06/10/2017  07:42 AM    <DIR>          ..
06/14/2017  05:30 PM           119,789 VBox.log
06/10/2017  07:23 AM           126,597 VBox.log.1
06/08/2017  12:48 PM            88,276 VBox.log.2
06/07/2017  07:43 AM            72,334 VBox.log.3
06/14/2017  05:33 PM           354,911 VBoxHardening.log
               5 File(s)        761,907 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86 Clone

12/05/2016  06:44 PM    <DIR>          .
12/05/2016  06:44 PM    <DIR>          ..
12/05/2016  07:30 PM   134,219,825,152 AmazonResalesWin7X86 Clone.vdi
               1 File(s) 134,219,825,152 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\CentexResales

05/09/2016  10:40 AM    <DIR>          .
05/09/2016  10:40 AM    <DIR>          ..
04/09/2016  05:56 AM        20,412,103 CentexResales-2016-04-09T10-49-49-286627500Z.webm
04/10/2016  07:00 AM       851,620,682 CentexResales-2016-04-09T11-00-17-489340700Z.webm
05/09/2016  10:34 AM           336,006 CentexResales-2016-05-09T15-32-35-268378400Z.webm
05/09/2016  10:39 AM           151,233 CentexResales-2016-05-09T15-39-47-654784500Z.webm
04/09/2016  05:49 AM           653,271 CentexResales.webm
               5 File(s)    873,173,295 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\CollegeAmzAcct

06/15/2017  04:03 PM    <DIR>          .
06/15/2017  04:03 PM    <DIR>          ..
06/15/2017  04:03 PM             8,786 CollegeAmzAcct.vbox
05/11/2016  06:09 AM            11,258 CollegeAmzAcct.vbox-prev
06/15/2017  04:41 PM    80,532,733,952 CollegeAmzAcct.vdi
06/15/2017  03:38 PM    <DIR>          Logs
               3 File(s) 80,532,753,996 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\CollegeAmzAcct\Logs

06/15/2017  03:38 PM    <DIR>          .
06/15/2017  03:38 PM    <DIR>          ..
06/15/2017  03:38 PM            31,052 VBox.log
05/11/2016  06:09 AM           132,200 VBox.log.1
06/15/2017  03:38 PM            31,064 VBoxHardening.log
               3 File(s)        194,316 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupon1

02/24/2016  05:52 PM    <DIR>          .
02/24/2016  05:52 PM    <DIR>          ..
02/24/2016  05:52 PM    26,843,545,600 Coupon1-flat.vmdk
02/24/2016  05:52 PM            11,708 Coupon1.vbox
02/24/2016  05:27 PM            11,708 Coupon1.vbox-prev
02/24/2016  05:52 PM               657 Coupon1.vmdk
02/24/2016  05:33 PM    <DIR>          Logs
               4 File(s) 26,843,569,673 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupon1\Logs

02/24/2016  05:33 PM    <DIR>          .
02/24/2016  05:33 PM    <DIR>          ..
02/24/2016  05:52 PM           114,913 VBox.log
02/24/2016  05:27 PM           103,897 VBox.log.1
01/14/2016  05:08 PM           111,670 VBox.log.2
01/09/2016  07:18 PM           108,881 VBox.log.3
02/24/2016  05:52 PM           477,757 VBoxHardening.log
               5 File(s)        917,118 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\CouponBase

03/09/2016  10:14 PM    <DIR>          .
03/09/2016  10:14 PM    <DIR>          ..
03/09/2016  09:56 PM    26,843,545,600 CouponBase-flat.vmdk
03/09/2016  10:14 PM            11,316 CouponBase.vbox
03/09/2016  09:56 PM            11,645 CouponBase.vbox-prev
03/09/2016  09:56 PM               645 CouponBase.vmdk
03/09/2016  09:55 PM    <DIR>          Logs
               4 File(s) 26,843,569,206 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\CouponBase\Logs

03/09/2016  09:55 PM    <DIR>          .
03/09/2016  09:55 PM    <DIR>          ..
03/09/2016  09:56 PM           104,498 VBox.log
03/09/2016  09:35 PM           106,060 VBox.log.1
01/09/2016  07:26 PM           107,523 VBox.log.2
10/31/2015  07:30 AM           125,636 VBox.log.3
03/09/2016  09:56 PM           395,067 VBoxHardening.log
               5 File(s)        838,784 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons1

06/15/2017  09:05 AM    <DIR>          .
06/15/2017  09:05 AM    <DIR>          ..
06/15/2017  09:05 AM             7,447 Coupons1.vbox
06/15/2017  07:11 AM             7,537 Coupons1.vbox-prev
06/15/2017  07:11 AM    26,845,642,752 Coupons1.vdi
06/15/2017  07:11 AM    <DIR>          Logs
               3 File(s) 26,845,657,736 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons1\Logs

06/15/2017  07:11 AM    <DIR>          .
06/15/2017  07:11 AM    <DIR>          ..
06/15/2017  07:11 AM            94,340 VBox.log
06/15/2017  06:43 AM            96,992 VBox.log.1
05/31/2017  09:11 AM            88,595 VBox.log.2
01/24/2017  10:38 PM           107,320 VBox.log.3
06/15/2017  07:11 AM           355,267 VBoxHardening.log
               5 File(s)        742,514 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons2

01/05/2017  11:44 PM    <DIR>          .
01/05/2017  11:44 PM    <DIR>          ..
01/05/2017  11:44 PM            11,223 Coupons2.vbox
01/05/2017  11:44 PM    26,845,642,752 Coupons2.vdi
               2 File(s) 26,845,653,975 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons3

01/06/2017  08:11 AM    <DIR>          .
01/06/2017  08:11 AM    <DIR>          ..
01/06/2017  08:11 AM            11,223 Coupons3.vbox
01/06/2017  08:11 AM    26,845,642,752 Coupons3.vdi
               2 File(s) 26,845,653,975 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons4

01/06/2017  05:22 PM    <DIR>          .
01/06/2017  05:22 PM    <DIR>          ..
01/06/2017  05:22 PM            11,223 Coupons4.vbox
01/06/2017  05:22 PM    26,845,642,752 Coupons4.vdi
               2 File(s) 26,845,653,975 bytes

 Directory of C:\Users\Roger\VirtualBox VMs\Coupons5

01/06/2017  11:06 PM    <DIR>          .
01/06/2017  11:06 PM    <DIR>          ..
01/06/2017  11:06 PM            11,223 Coupons5.vbox
01/06/2017  11:06 PM    26,845,642,752 Coupons5.vdi
               2 File(s) 26,845,653,975 bytes

     Total Files Listed:
              54 File(s) 537,764,460,420 bytes
              50 Dir(s)  192,927,182,848 bytes free
Last edited by mpack on 16. Jun 2017, 19:40, edited 1 time in total.
Reason: Added code brackets (for readability) around pasted text.
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

pelican418 wrote:I'm not sure what you mean by code
Do you see the different buttons at the top? "B" for bold, "I" for italic, etc? Well you enclose the information in the "Code" tag, so that it looks like the computer output (taking into account the spaces), just like "mpack" did for you after editing your message ;)

Now, I guess that the VM you're talking about is the "AmazonResalesWin7X86" one. I don't know why you'd think that changing UUIDs would help your situation, but it most certainly didn't.

Do you see that file "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vbox-tmp"? Copy that and change the new file's extension to "AmazonResalesWin7X86.vbox". Double-click on that file to register it with VirtualBox. Hopefully you haven't really messed up your VirtualBox.xml.
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

I did the copy and rename. It now sees it but I get the following error when trying to start the vm:

Failed to open a session for the virtual machine AmazonResalesWin7X86.

UUID {4e8c0d8f-ab22-45a2-884d-968ff6482be2} of the medium 'C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi' does not match the value {c42c8739-05bd-45a6-ae64-406e354f26ef} stored in the media registry ('C:\Users\Roger\.VirtualBox\VirtualBox.xml').

Result Code: E_FAIL (0x80004005)
Component: MediumWrap
Interface: IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

I was afraid that something might go wrong. ZIP and post the two files:
• "C:\Users\Roger\.VirtualBox\VirtualBox.xml"
• "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vbox"
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

Here are the zipped files requested.
Attachments
AmazonResalesWin7X86.zip
VBOX file
(2.25 KiB) Downloaded 6 times
VirtualBox.zip
XML File
(1.23 KiB) Downloaded 4 times
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

The 'C:\Users\Roger\.VirtualBox\VirtualBox.xml' reference was a red herring, there's nothing actually stored there, it simply references a file that's using that UUID. So, leave that alone.

Open a Command Prompt. Navigate to the VirtualBox installation directory, usually "C:\Program Files\Oracle\VirtualBox". Issue the command:
  • VBoxManage showmediuminfo "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi"
Make sure that the output contains the lines:
  • UUID:           4e8c0d8f-ab22-45a2-884d-968ff6482be2
    Parent UUID:    base
This is a sanity check only. If that's not the case, STOP and report back.

Now, you have two options:
  1. With the VM shutdown, go to the Media Manager, release "AmazonResalesWin7X86.vdi" from your VM, remove it (without deleting it), and then go to the VM settings and add the same VDI to the VM, or
  2. Quit VirtualBox (and all VB*, Virtual*, VM* processes from the Task Manager), and edit "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vbox" and replace the value "{c42c8739-05bd-45a6-ae64-406e354f26ef}" with "{4e8c0d8f-ab22-45a2-884d-968ff6482be2}". There are two instances that you need to replace.
I'd go with option one...
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

I did option 1 and this is what was returned:

Code: Select all

UUID:           c42c8739-05bd-45a6-ae64-406e354f26ef
Parent UUID:    base
State:          inaccessible
Access Error:   UUID {4e8c0d8f-ab22-45a2-884d-968ff6482be2} of the medium 'C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi' does not match the value {c42c8739-05bd-45a6-ae64-406e354f26ef} stored in the media registry ('C:\Users\Roger\.VirtualBox\VirtualBox.xml')
Type:           normal (base)
Location:       C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       0 MBytes
Size on disk:   0 MBytes
Encryption:     disabled
In use by VMs:  AmazonResalesWin7X86 (UUID: 1a0a5756-3f07-4104-90c2-1c1aec333c95)
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

I see that we need to take it one step at a time. Post the complete output of the command (including the command itself):
  •     VBoxManage showmediuminfo "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi"
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.
pelican418
Posts: 13
Joined: 15. Jun 2017, 22:07

Re: Lost VM Overnight

Post by pelican418 »

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage showmediuminfo "C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi"
UUID:           c42c8739-05bd-45a6-ae64-406e354f26ef
Parent UUID:    base
State:          inaccessible
Access Error:   UUID {4e8c0d8f-ab22-45a2-884d-968ff6482be2} of the medium 'C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi' does not match the value {c42c8739-05bd-45a6-ae64-406e354f26ef} stored in the media registry ('C:\Users\Roger\.VirtualBox\VirtualBox.xml')
Type:           normal (base)
Location:       C:\Users\Roger\VirtualBox VMs\AmazonResalesWin7X86\AmazonResalesWin7X86.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       0 MBytes
Size on disk:   0 MBytes
Encryption:     disabled
In use by VMs:  AmazonResalesWin7X86 (UUID: 1a0a5756-3f07-4104-90c2-1c1aec333c95)
socratis
Site Moderator
Posts: 27330
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: Lost VM Overnight

Post by socratis »

Did you quit VirtualBox before making the changes? It doesn't look like you did. Please try again...
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.
Post Reply