PowerBASIC Peer Support Forums
 

Go Back   PowerBASIC Peer Support Forums > User to user Discussions > Cafe PowerBASIC

Notices

Cafe PowerBASIC General discussion. Topics need not be related to PowerBASIC, but promotion of other programming languages is not allowed.

Reply
 
Thread Tools Display Modes
  #1  
Old May 31st, 2008, 08:06 AM
jcfuller jcfuller is online now
Member
 
Join Date: Aug 1998
Location: Fort Edward, NY
Posts: 1,165
VirtualBox Assistance Please

It appears it's possible to backup (save) your VirtualBox guest installs.
I read the how to but I'm still not quite sure of the steps.
I want to reinstall ubuntu but I don't want to have to install XP again in
the new VirtualBox host. Step by step would be nice for this old codger.
I have a NAS where I would put the files.

Thanks,

James
Reply With Quote
  #2  
Old May 31st, 2008, 12:17 PM
John Spikowski John Spikowski is offline
Inactive Member
 
Join Date: Nov 1999
Posts: 468
VBoxManage clonevdi current.vdi your_backup.vdi

This is the only way to backup a .vdi VM. Just doing a copy will not work.

John

Last edited by John Spikowski; May 31st, 2008 at 12:25 PM.
Reply With Quote
  #3  
Old May 31st, 2008, 12:35 PM
jcfuller jcfuller is online now
Member
 
Join Date: Aug 1998
Location: Fort Edward, NY
Posts: 1,165
Quote:
Originally Posted by John Spikowski View Post
VBoxManage clonevdi current.vdi your_backup.vdi

This is the only way to backup a .vdi VM. Just doing a copy will not work.

John
John,
That does both the vm and the virtual HD?

James
Reply With Quote
  #4  
Old May 31st, 2008, 12:48 PM
John Spikowski John Spikowski is offline
Inactive Member
 
Join Date: Nov 1999
Posts: 468
This makes a clone of your current VM. I have restored from a .vdi clone and it works great. To restore a clone, create a new vm and select use existing .vdi file rather then creating a new one. If you have a second .vdi as an additional hard drive, use the same clone command for it as well.


John
Reply With Quote
  #5  
Old May 31st, 2008, 02:48 PM
Scott Hauser Scott Hauser is offline
Member
 
Join Date: Aug 1998
Location: Montana, USA
Posts: 215
VBoxManage Clone VDI has a known bug that prevents it from working. The workaround is here. http://murga-linux.com/puppy/viewtopic.php?t=21796

I can confirm that the bug exists in version 1.6.0 and that the workaround works[around].
__________________
The most exasperating part of the "rat race" is how often the rats are in the lead!
Reply With Quote
  #6  
Old May 31st, 2008, 03:20 PM
Donald Darden Donald Darden is offline
Member
 
Join Date: Jun 2003
Posts: 2,200
Quote:
Originally Posted by John Spikowski View Post
VBoxManage clonevdi current.vdi your_backup.vdi

This is the only way to backup a .vdi VM. Just doing a copy will not work.

John
I beg to differ. I've copied the .VDI image found at ~/.VirtualBox/VDI to a different partition and brought it up in a different instance of VirtualBox. The problem is that the Virtual Disk Image gets a unique UUID which is what VirtualBox tracks it by. So it will not let you use the same UUID twice in the same instance of VirtualBox (this was not implemented until recent revisions).

If you want the same drive image to be used in the same instance by cloning it, then you have to use a method that will change the UUID of the cloned image. But it you are porting it for use elsewhere, then a straightforward copy will work.

I think XP is eventually going to force the courts to address the issue of what
is Abandonware or Orphanware, and at what point the rights to it shift into the public domain. Technically, Abandonware is not law, but there is a need for it. We have too much vested in being able to continue to use and treat it as real property for it to be ignored forever.

My own take on Abandonware is that:

(1) The original source no longer promotes it
(2) The original source no longer markets it
(3) The original source no longer supports it
(4) The original source no longer upgrades it
(5) The original source ceases to exist as a legal entity
(6) The original source either officially discontinues the product, or ceases to give evidence of any of the above for some specified period of time.

By "original source", I merely seek to clarify a point about origin, Legal rights
can be transferred or disposed of, at which point the new party would then be identified in place of the original source. So if Microsoft chose to sell off the XP product line, there would be a new owner to contend with.
Reply With Quote
  #7  
Old May 31st, 2008, 03:24 PM
jcfuller jcfuller is online now
Member
 
Join Date: Aug 1998
Location: Fort Edward, NY
Posts: 1,165
In my case I will be reinstalling Linux and VirtualBox but first I want to save my XP guest to my nas. What is the procedure here. I won't be cloning it so as to have 2 Virtual machines.

James
Reply With Quote
  #8  
Old May 31st, 2008, 04:01 PM
Scott Hauser Scott Hauser is offline
Member
 
Join Date: Aug 1998
Location: Montana, USA
Posts: 215
James,

Merely copy your existing VDI to another drive. You should be able to remount it when you reinstall VirtualBox and create the new VM. I presume VirtualBox will use the existing uuid.

I keep a fresh windows VDI handy to test my setup programs when doing something new with innosetup, etc.. It is quicker to clone a 2 GB VDI and dispose of it after testing than to reformat and install windows on my extra computer.
__________________
The most exasperating part of the "rat race" is how often the rats are in the lead!

Last edited by Scott Hauser; May 31st, 2008 at 04:11 PM.
Reply With Quote
  #9  
Old May 31st, 2008, 06:58 PM
Donald Darden Donald Darden is offline
Member
 
Join Date: Jun 2003
Posts: 2,200
I concur with the advise above. If you reinstall VirtualBox, there is no problem with having it recognize an existing VDI, except to locate it where you placed it before attempting the reinstalls. Most Linux installs presume you want the partition to be reformatted (some require it), and that means putting it on a different partition. I just copy it to one of my NTFS drives.

Note that the copy process is much faster under Windows than it is under Linux if copying between partitions configured for both OSes. To enable Windows to recognize Ext2/3 partitions, you need to search for Ext2 and Windows, and install the necessary driver.
Reply With Quote
  #10  
Old May 31st, 2008, 07:11 PM
John Spikowski John Spikowski is offline
Inactive Member
 
Join Date: Nov 1999
Posts: 468
Quote:
cp disk1.vdi disk2.vdi
VBoxManage internalcommands setvdiuuid disk2.vdi
I was able to restore a .vdi with a cloned copy. I will try the above as it would be a faster then cloning.

Thanks for the information !

John
Reply With Quote
  #11  
Old May 31st, 2008, 08:24 PM
jcfuller jcfuller is online now
Member
 
Join Date: Aug 1998
Location: Fort Edward, NY
Posts: 1,165
Quote:
Originally Posted by Donald Darden View Post
I concur with the advise above. If you reinstall VirtualBox, there is no problem with having it recognize an existing VDI, except to locate it where you placed it before attempting the reinstalls. Most Linux installs presume you want the partition to be reformatted (some require it), and that means putting it on a different partition. I just copy it to one of my NTFS drives.

Note that the copy process is much faster under Windows than it is under Linux if copying between partitions configured for both OSes. To enable Windows to recognize Ext2/3 partitions, you need to search for Ext2 and Windows, and install the necessary driver.
Thanks Donald. I have a 500GB NAS so I'll use that.

James
Reply With Quote
  #12  
Old Jun 1st, 2008, 03:16 PM
John Spikowski John Spikowski is offline
Inactive Member
 
Join Date: Nov 1999
Posts: 468
I have been using VirtualBox on my CentOS 5 Linux system for some time without issues. I tried to install VirtualBox on my Ubuntu 8.04 system and ran into all kinds of issues. My first attempt was to use the add/remove programs menu option to install VirtualBox. This option tried to install 1.5.6 and wouldn't allow me to start a .vdi I had created on the CentOS system. I kept getting errors saying that the kernel couldn't be regenerated. I also had permission problems which is strange seeing that I'm logged in as root. After an hour of messing with it and getting nowhere, I uninstalled 1.5.6 and tried to install 1.6.0 of VirtualBox. I'm still having issues with the kernel rebuilding. I even intalled the kernel source and headers with no luck.

The CentOS 5 (Red Hat) install on Virtualbox worked as soon as I installed it. Has anyone else run into problems getting VirtualBox to work on Ubuntu?
Reply With Quote
  #13  
Old Jun 1st, 2008, 03:29 PM
jcfuller jcfuller is online now
Member
 
Join Date: Aug 1998
Location: Fort Edward, NY
Posts: 1,165
Quote:
Originally Posted by John Spikowski View Post

Has anyone else run into problems getting VirtualBox to work on Ubuntu?
John,
No problems at all with 1.6 on ubuntu 8.04. One Xp vm and one ubuntu 8.04 so far


James
Reply With Quote
  #14  
Old Jun 1st, 2008, 09:33 PM
John Spikowski John Spikowski is offline
Inactive Member
 
Join Date: Nov 1999
Posts: 468
James,

I was able to get VirtualBox installed on Ubuntu.

1. Make root a member of the virtualbox group
2. Download essential kernel headers
3. Other tweaks I found while researching the errors I was getting.

Installation Instructions (5/30/2008) Ubuntu 8.04

The CentOS install was MUCH easier. (install and run)

John

Last edited by John Spikowski; Jun 2nd, 2008 at 06:38 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 1999-2010 PowerBASIC, Inc. All Rights Reserved.