Author Topic: Copying an OS installation  (Read 1516 times)

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Copying an OS installation
« on: December 31, 2010, 09:00:19 AM »
I have a piece of Windows Software that I'd like to play around with and learn.  But, I'd rather not install on my main Windows XP VB install. Does Virtual Box allow me to easily copy the OS?

This way, I can install the software on the Windows XP copy.  if  anything goes wrong, I won't be reinstalling everything.

(My apologies.  I'm not in front of my PCLinuxOS system at the moment.)
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: Copying an OS installation
« Reply #1 on: December 31, 2010, 09:06:44 AM »
Yup - I just copy the VDI -and use that.

After the copy has been done I usually rename it - then just add it back to VBox as a new hard drive and away ya go

Note - Can't use them at the same time as the VBox ID is the same and Vbox will throw a wobbly.
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 Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #2 on: December 31, 2010, 09:12:14 AM »
Yup - I just copy the VDI -and use that.

After the copy has been done I usually rename it - then just add it back to VBox as a new hard drive and away ya go

Note - Can't use them at the same time as the VBox ID is the same and Vbox will throw a wobbly.


Great! :)  Thanks. :)  I'll just copy the VDI and rename then.  I won't be using them at the same time. 

To be sure, (again, not in front of my machine) where's that VDI located?
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

uncleV

  • Guest
Re: Copying an OS installation
« Reply #3 on: December 31, 2010, 09:33:10 AM »
Quote
To be sure, (again, not in front of my machine) where's that VDI located?
Here it is in
home/<user_name>/.VirtualBox/HardDisks

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #4 on: December 31, 2010, 09:36:51 AM »
Quote
To be sure, (again, not in front of my machine) where's that VDI located?
Here it is in
home/<user_name>/.VirtualBox/HardDisks

Thank you. :)

Now that I think about it, I'm going to first copy my existing virtual hard drive with Windows XP to one of my storage drives for safe keeping.   I really should have done that all along. :-[  Then, I'll copy and rename it and get going on the software.  Something to do during the New Year's weekend.:)
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: Copying an OS installation
« Reply #5 on: December 31, 2010, 09:50:12 AM »
Quote
where's that VDI located?

If you haven't changed any settings or paths during your installs/setups it should be in

/home/your-name/.VirtualBox/

It'll probably be a few Gigs in size (dependent on how many apps you've installed and files it may be holding)

As this is your first time and your going to be re-using it, to be on the safe side, open VB and "release & remove" the hard drive;  (File > Virtual Media Manager > Hard Disks - Release - then select Remove - when it prompts if you want to Keep or Delete choose the Keep option) )

That has now "removed" the HDD from VBox

Now go to your VBox location in /home and copy the VDI file to where you want it. Now give it a new name - keeping the .vdi extension)

Now go back to VBox and do the (File > Virtual Media Manager > Hard Disks - and this time Add the VDI Hard Disk by going to where you copied it to.

That's it - you can now setup your "new" XP install using that hard disk.

Hope that helps a little.

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 menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: Copying an OS installation
« Reply #6 on: December 31, 2010, 09:55:15 AM »
Quote
Now that I think about it, I'm going to first copy my existing virtual hard drive with Windows XP to one of my storage drives for safe keeping.   I really should have done that all along. Embarrassed  Then, I'll copy and rename it and get going on the software.  Something to do during the New Year's weekend

Excellent idea.

VBox also gives the option of exporting the whole VM but I find it quicker and simpler to just copy the VDI files.

I have about a dozen VDI's on a backup disk with different versions of PCLinuxOS on them which I can use for testing things out.
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 Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #7 on: December 31, 2010, 04:13:30 PM »
Quote
Now that I think about it, I'm going to first copy my existing virtual hard drive with Windows XP to one of my storage drives for safe keeping.   I really should have done that all along. Embarrassed  Then, I'll copy and rename it and get going on the software.  Something to do during the New Year's weekend

Excellent idea.

VBox also gives the option of exporting the whole VM but I find it quicker and simpler to just copy the VDI files.

I have about a dozen VDI's on a backup disk with different versions of PCLinuxOS on them which I can use for testing things out.

Well, I'm glad I did the back up first.  it appears that when I added the original VB HD back, it wouldn't take for some reason. i fiddled with it and finally figured it out. I had to change the PIIX4 setting to PIIX3.

On opening, it appears some data was no longer there in my quickbooks file. not srewy, but god thing I always back theat up. i restored and thingsare ifne.

However, I can't add the WinXP copy. it sys the UUID is the same as the other.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Copying an OS installation
« Reply #8 on: December 31, 2010, 04:21:19 PM »
I think you may have to "Release" one to use the other .......

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #9 on: December 31, 2010, 04:36:06 PM »
I think you may have to "Release" one to use the other .......

Yeah, that's probably it. However, is there a way to NOT release either one?
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline MCP

  • Sr. Member
  • ****
  • Posts: 371
Re: Copying an OS installation
« Reply #10 on: December 31, 2010, 04:44:58 PM »
Why not go here:

http://forums.virtualbox.org/viewtopic.php?f=6&t=22422

And install CloneVDI in wine.  It will clone your vm changing the uuid in the process.  That way you can not only create copies but they will be able to be used at the same time in VB.

MCP

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #11 on: December 31, 2010, 05:56:42 PM »
Why not go here:

http://forums.virtualbox.org/viewtopic.php?f=6&t=22422

And install CloneVDI in wine.  It will clone your vm changing the uuid in the process.  That way you can not only create copies but they will be able to be used at the same time in VB.

MCP


Thanks for this info.:)  But, I'm thinking there's gotta be a way to just change the UUID.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #12 on: December 31, 2010, 07:35:13 PM »
Okay, I've found my solution and I am a bit red faced here. :-[

It seems that, some time ago, I did back up a complete, separate, second WinXP installation to VirtualBox.  I can't remember when I did this, but I had a copy of it on my storage drive.

(For some reason, the area of this storage drive is only accessible as root...not sure how that happened.  No matter, I just used Konqueror Super User Mode).

I simply moved the VDI over (and changed permission to user) and added it. then, I added the machine and I'm up and running!:)now I can install this piece of Windows software and mess around with it to my heart's content without worrying aobut messing up my main WinXP installation.

And, the nice thing is, I have both WinXP configurations backed up on the storage drive.

My sincere thanks to everyone for their input and help.:)  It certainly helped me to avoid making major mistakes.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline GermanTux

  • Hero Member
  • *****
  • Posts: 693
Re: Copying an OS installation
« Reply #13 on: January 12, 2011, 02:15:17 PM »
Another little feature which I use all the time is snapshots.  That way you can play with the software, and when you are done simply revert to the snapshot.  This is a great feature for "experimenting." 

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Copying an OS installation
« Reply #14 on: January 12, 2011, 06:40:23 PM »
Another little feature which I use all the time is snapshots.  That way you can play with the software, and when you are done simply revert to the snapshot.  This is a great feature for "experimenting." 

Thanks.:)I'll definitley look at that feature.  does this alow for me to, say install a new sofware app and then go back in time? As in, Snapshot > Add new software > Play with it > Revert to snapshot which then restores system to original state without the new software.  Is that it?
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.