Page 1 of 1
Eclipse projects lost after VM power down
Posted: 18. Jan 2016, 19:15
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
Re: Eclipse projects lost after VM power down
Posted: 18. Jan 2016, 20:34
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.
Re: Eclipse projects lost after VM power down
Posted: 18. Jan 2016, 21:40
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
Re: Eclipse projects lost after VM power down
Posted: 18. Jan 2016, 23:49
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
Re: Eclipse projects lost after VM power down
Posted: 19. Jan 2016, 15:49
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.
Re: Eclipse projects lost after VM power down
Posted: 19. Jan 2016, 16:13
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?
Re: Eclipse projects lost after VM power down
Posted: 19. Jan 2016, 16:39
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
- 2016-01-19_6-31-17.jpg (58.65 KiB) Viewed 2899 times
Re: Eclipse projects lost after VM power down
Posted: 19. Jan 2016, 17:16
by Martin
"Power off" is the same as pulling the power cable on a real system
