Eclipse projects lost after VM power down

Discussions about using Linux guests in VirtualBox.
Post Reply
teald
Posts: 4
Joined: 18. Jan 2016, 18:59

Eclipse projects lost after VM power down

Post by teald »

Hi,
I'm having a problem with Eclipse: I import a complete U-boot project and can see all the files just fine. I tried both checking and leaving unchecked the "copy project into workspace". Closing eclipse and re-opening it recalls the project just fine too. However, when I power off the VM and then restart it, then open eclipse, the project has been lost (although the previously opened files are still named in the tabs, but says "can't be found". It's fairly consistent. Sometimes, the project is listed on the left pane, but the previously open files are not not open any more.

Any ideas? Must be something that the VM is doing at power off. I'm using these versions:
VM: 5.0.12 r104815
Ubuntu: 14.04 LTS
Eclipse: 3.8.1

Thanks,
DT
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Eclipse projects lost after VM power down

Post by mpack »

Either the drive is marked as immutable in the VM settings, or you have not installed the Linux guest properly: a common mistake is to keep using it in live CD (demo) mode, which means that all your files are store in RAMdisk... and the obvious happens when you reboot.
teald
Posts: 4
Joined: 18. Jan 2016, 18:59

Re: Eclipse projects lost after VM power down

Post by teald »

Thanks for that response. The drive is not immutable (see result of vboxmanage showhdinfo below). I'm not sure how to check the Linux install to see if it's in demo mode, but I'll poke around and do some research.

Output of vboxmanage showhdinfo:

UUID: b2a57a48-e14b-4811-b6ba-316e7e780c86
Parent UUID: base
State: created
Type: normal (base)
Location: C:\Users\dteal\VirtualBox VMs\Ubuntu3\Ubuntu3.vdi
Storage format: VDI
Format variant: fixed default
Capacity: 40960 MBytes
Size on disk: 40962 MBytes
Encryption: disabled
In use by VMs: Ubuntu3 (UUID: 1b6d2ba8-e310-4f51-ba34-eba12879adc2)

Thanks,
DT
teald
Posts: 4
Joined: 18. Jan 2016, 18:59

Re: Eclipse projects lost after VM power down

Post by teald »

Ok, the Ubuntu install doesn't appear to be running in live CD demo mode. I've added several apps and custom shell scripts, and they are all still there after powering the VM down and back up.

Any other suggestions for this Eclipse issue?
DT
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Eclipse projects lost after VM power down

Post by mpack »

No, I wasn't holding anything back from my previous answer. If it is not one of the two issues I suggested, then perhaps you need to ask on an Eclipse forum.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Eclipse projects lost after VM power down

Post by socratis »

teald wrote:I import a complete U-boot project and can see all the files just fine.
Are the files local or in a network share?
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.
teald
Posts: 4
Joined: 18. Jan 2016, 18:59

Re: Eclipse projects lost after VM power down

Post by teald »

Thanks for the hint - the files are local.
I have good news to report: I've stumbled across what appears to be the solution. Since I've only been using VirtualBox for about 4 days, I always "kill" the guest and "power off" to close it when I'm done. However, if I use "shut down" instead, the problem has disappeared. I've done 10 iterations of "shut down" with no problem at all. One iteration of "power off" causes it right away. Here's a screen shot of both methods:
Screen shot of 2 methods to close the VM
Screen shot of 2 methods to close the VM
2016-01-19_6-31-17.jpg (58.65 KiB) Viewed 2898 times
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Eclipse projects lost after VM power down

Post by Martin »

"Power off" is the same as pulling the power cable on a real system ;)
Post Reply