Author Topic: [Solved] keeping virtual box settings in a new install  (Read 632 times)

Offline luikki

  • Hero Member
  • *****
  • Posts: 1407
[Solved] keeping virtual box settings in a new install
« on: May 22, 2010, 07:48:35 AM »
i'm about to upgrade my main pc from 2009 to 2010.1...
i'll do it by the book... formatting the whole disk.
is there a way i can save my actual virtualbox settings and use them on the new install?
« Last Edit: May 23, 2010, 11:19:35 PM by Texstar »

Offline aherkey

  • Full Member
  • ***
  • Posts: 109
Re: keeping virtual box settings in a new install
« Reply #1 on: May 22, 2010, 10:06:30 AM »
If you haven't changed any default locations like the virtual hard drives all the config files and Machine definitions are kept in your home directory under .VirtualBox. Backup that directory and restore it on your new install and you should be good to go.

- Andy

Offline luikki

  • Hero Member
  • *****
  • Posts: 1407
Re: keeping virtual box settings in a new install
« Reply #2 on: May 22, 2010, 10:10:10 AM »
thanks for your reply.
i'll give it a try...

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15288
  • ┌∩┐(◕_◕)┌∩┐
Re: keeping virtual box settings in a new install
« Reply #3 on: May 22, 2010, 10:40:01 AM »
To add to Andy's post you may also want to backup the actual hardiskname.vdi somewhere separate and if anything goes awry you can just re-use the vdi hard drive.
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline luikki

  • Hero Member
  • *****
  • Posts: 1407
Re: keeping virtual box settings in a new install
« Reply #4 on: May 22, 2010, 10:48:02 AM »
menotu, thanks for your reply.
could you pls. elaborate? i'm a bit thick with this matters...

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15288
  • ┌∩┐(◕_◕)┌∩┐
Re: keeping virtual box settings in a new install
« Reply #5 on: May 22, 2010, 11:10:56 AM »
menotu, thanks for your reply.
could you pls. elaborate? i'm a bit thick with this matters...

Okey dokey!

Have a look in the folder .virtualbox/HardDisks (which is under your /home folders) you may need to select "Show Hidden Folders" in Dolphin

In that HardDisks folder you'll see a file with a .vdi extension which will correspond to the name of your Virtualbox VM (or it will have the name you gave it it you specified a certain HDD name when you created your VM)

Anyway, that .vdi file is actually the Hard Disk of your VM, therefore its just a matter of copying that somewhere safe and re-using when required.

Think of it as if you've taken your ACTUAL REAL hard disk out of your main PC for use in another PC.

So when you create a new VM you can point it to that hard disk and voila! it will boot to whatever OS you have installed on it.

I have half a dozen backup VDI's on another disk.  Its like a "remaster" but in Virtualbox's VDI format.

If you need any clarification luikki, please just holler.
« Last Edit: May 22, 2010, 11:14:02 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline luikki

  • Hero Member
  • *****
  • Posts: 1407
Re: keeping virtual box settings in a new install
« Reply #6 on: May 22, 2010, 11:36:19 AM »
thanks again menotu!
that was a very good lesson.  :)

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15288
  • ┌∩┐(◕_◕)┌∩┐
Re: [solved] keeping virtual box settings in a new install
« Reply #7 on: May 22, 2010, 12:43:52 PM »
Your very welcome - good luck.
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000