Trouble when upgrading to VBox 3
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Trouble when upgrading to VBox 3
After installing, I tried to open a VM, but I got an error. The machine was in a saved state, and apparently the new version can't read old saved states. So it told me to discard it and then start the VM, but I don't remember the last time I turned it off, so if I delete the saved state I might lose data. What should I do? Can I install an older version, shut down the VM properly, and then reinstall 3.0.0?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Trouble when upgrading to VBox 3
You should revert back to the version that you were using and then shutdown the guest properly. You may need to change the virtualbox.xml.XXX.BAK to virtualbox.xml to get it back to the previous version. Keep backups of these files so you will not hose your VirtualBox and loose the data.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
I tried installing 2.2.4, but near the end of the installation an error happens and it rolls back to 3.0.0. Is there a log file I can check for details on the error?
-
alukin
- Posts: 17
- Joined: 4. Jul 2009, 13:27
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win XP, Fedora 12
Re: Trouble when upgrading to VBox 3
Easiest way to solve such problems is delete virtual machines but keep hard disk image. Then you just create new VM and attach old hard disk. Everything must work because VB keeps state of VM outside of it's hard disk image. One potential danger is improper disk unmount of guest OS that may cause small problems similar to suddenly pressed "reset" button in real life.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Trouble when upgrading to VBox 3
@alukin
Well that has always been an option, but it will lose all the work he has not saved.
@ ReyJavikVI
You need to uninstall the new version and then install the version that you had previously. Then look in the machine folder of the Guest OS at the *.xml as well as the virtualbox.xml that is in your home folder/ .virtualbox. When you do an upgrade the install creates a backup of the previous *.xml and renames to **.bak. Almost all of the time you can revert back and it will work properly because the new file does not change that much. In your case it might though because you installed in in a saved state. Look at the files and you will see the saved state section. That is the one that you need to change to be the new default (no .bak) it should be the one with the highest number and next to the newest file date. Other than that you will need to just accept the discard saved state and lose the work that was not saved by properly shutting down before upgrading.
Well that has always been an option, but it will lose all the work he has not saved.
@ ReyJavikVI
You need to uninstall the new version and then install the version that you had previously. Then look in the machine folder of the Guest OS at the *.xml as well as the virtualbox.xml that is in your home folder/ .virtualbox. When you do an upgrade the install creates a backup of the previous *.xml and renames to **.bak. Almost all of the time you can revert back and it will work properly because the new file does not change that much. In your case it might though because you installed in in a saved state. Look at the files and you will see the saved state section. That is the one that you need to change to be the new default (no .bak) it should be the one with the highest number and next to the newest file date. Other than that you will need to just accept the discard saved state and lose the work that was not saved by properly shutting down before upgrading.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Trouble when upgrading to VBox 3
You can safely discard the saved state. All changes are already written to disk, the only thing you loose is if you had a document open and you didn't save it yet. Saved State is nothing more than putting the system in standby or hibernate and resume from there. Discarding the state is simply pulling the plug or boot the system normally, instead of restoring from hibernate.
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.
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.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
So if I copy the hard drive and then make a new machine with it, the only stuff I'll lose is what hasn't been saved to disk?
Anyway, I think I messed something up. Neither 2.2.4 nor 3.0.0 will install.
Anyway, I think I messed something up. Neither 2.2.4 nor 3.0.0 will install.
-
alukin
- Posts: 17
- Joined: 4. Jul 2009, 13:27
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win XP, Fedora 12
Re: Trouble when upgrading to VBox 3
Only thing you may do is to remove all VB stuff by means of your OS, clean ".virtualbox" dirs in your home and do other usual things you usually doing removing every trace of installed program in your OS. Then do clean install of VB. Only thing you must care of is your hard disk image of guest OS. It will work even if you move this HD image to another computer or another universe where VirualBox exists 
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Trouble when upgrading to VBox 3
As long as you don't use snapshots.ReyJavikVI wrote:So if I copy the hard drive and then make a new machine with it, the only stuff I'll lose is what hasn't been saved to disk?
Anyway, I think I messed something up. Neither 2.2.4 nor 3.0.0 will install.
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.
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.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
Already did that, no luck. I'll try downloading the installer for 2.2.2.alukin wrote:Only thing you may do is to remove all VB stuff by means of your OS, clean ".virtualbox" dirs in your home and do other usual things you usually doing removing every trace of installed program in your OS. Then do clean install of VB. Only thing you must care of is your hard disk image of guest OS. It will work even if you move this HD image to another computer or another universe where VirualBox exists
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
I managed to install it. The VMs settings folders are still there (I saved them in a different place), so how do I tell VirtualBox to import them automatically?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Trouble when upgrading to VBox 3
If you copied the whole .VirtualBox folder from your profile, then restoring that folder to it's original location will be enough.
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.
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.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
Actually, what I did is simply to change the location for disks and machines before installing 3.0.0, in the Preferences window. I assume that's not enough?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Trouble when upgrading to VBox 3
No, because the files still need to be registered. You can register VMs using their XML file using the VBoxManager command, but you have to make sure that no media is attached to it, so you have to manually edit the XML files of the VMs and remove the hard disks and ISO/floppy. You can add them again after the registration. Hard drives and ISO's are done through the Media Manager.
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.
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.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Trouble when upgrading to VBox 3
Well, it seems that I run into obstacle after obstacle. What do I do with a machine that has many snapshots? Will attaching the hard drive file to the machine make all the snapshots work?