Author Topic: vdi files  (Read 2244 times)

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
vdi files
« on: May 28, 2010, 07:33:32 AM »
I am a bit at lost at the moment and hope someone can set me on the rails again.
I used to simply copy a OS (.vdi file) installed in Virtualbox. That was nice for to be used to quickly run it again in i.e. a new install (testing etc.) and as backup of the same.
However, these OS's did meanwhile grow and so did the vdi file representing it.
Now I can't copy these things anymore for it simply stops at 4GB ......
I know (or better knew somewhere in the past) the "missing link" but right now I am at lost.  ???
Anyone?

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15513
  • ┌∩┐(◕_◕)┌∩┐
Re: vdi files
« Reply #1 on: May 28, 2010, 07:47:19 AM »
Hi bicol_willem ,

Couple of things to ask:

When you created your VDI hard disks can you remember whether you used "Dynamically expanding Storage" or "Fixed Size Storage" ?

And can you remember what size you allocated to them ?

Edit: I just found this which may help.

http://www.attackr.com/resize-an-existing-vdi-virtualbox-image-easily/
« Last Edit: May 28, 2010, 07:52:52 AM by menotu »
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; 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 pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: vdi files
« Reply #2 on: May 28, 2010, 07:57:34 AM »
What method are you using to copy the files?

Have you tried using VBoxManage?

Some benefits include re-organizing the .vdi drive data (especially if you zero-out and de-frag in the Virtual OS, prior), resulting in a smaller file, and creating a new UID (which would actually allow you to use the two .vdi's in seperate virtual machines concurrently on the same host).

The command format is:
Code: [Select]
VBoxManage clonehd /full/path/to/original/vdi/file /full/path/to/copy/of/vdi/file_new_name

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: vdi files
« Reply #3 on: May 28, 2010, 08:00:51 AM »
Hi bicol_willem ,

Couple of things to ask:

When you created your VDI hard disks can you remember whether you used "Dynamically expanding Storage" or "Fixed Size Storage" ?

And can you remember what size you allocated to them ?

Yes, dynamically expanding and about 12Gb max. The vdi's in question shows in their properties at a size of resp. 5.0 and 5.6 Gb. Nothing really special imho.
It wasn't any of a problem at the times these where less then 4 Gb. It now copies to exact 4 Gb and then fail to copy .... I tried to copy these to a external USB (hard)drive as I actually use to do.
Memory? Swap? Where is the missing link?  ???
This machine has 3Gig's RAM and 4 Gig's Swap. Not enough?
Tried as user(s) and root as well, no go.
Tried to burn them to a dual layer DVD, no go as well.
System fully updated and running fine.
Any idea?

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: vdi files
« Reply #4 on: May 28, 2010, 08:03:35 AM »
What method are you using to copy the files?

Have you tried using VBoxManage?

Some benefits include re-organizing the .vdi drive data (especially if you zero-out and de-frag in the Virtual OS, prior), resulting in a smaller file, and creating a new UID (which would actually allow you to use the two .vdi's in seperate virtual machines concurrently on the same host).

The command format is:
Code: [Select]
VBoxManage clonehd /full/path/to/original/vdi/file /full/path/to/copy/of/vdi/file_new_name

No, didn't use VBoxManage. You see, I never needed it ....  ;D (so far that is). But if nothing comes around I will sure give that a swirl, thanks for this tip.

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: vdi files
« Reply #5 on: May 28, 2010, 08:11:57 AM »
What method are you using to copy the files?

Have you tried using VBoxManage?

Some benefits include re-organizing the .vdi drive data (especially if you zero-out and de-frag in the Virtual OS, prior), resulting in a smaller file, and creating a new UID (which would actually allow you to use the two .vdi's in seperate virtual machines concurrently on the same host).

The command format is:
Code: [Select]
VBoxManage clonehd /full/path/to/original/vdi/file /full/path/to/copy/of/vdi/file_new_name

No, didn't use VBoxManage. You see, I never needed it ....  ;D (so far that is). But if nothing comes around I will sure give that a swirl, thanks for this tip.

I've used this to copy file in excess of 4GB.  My laptop only has 2 GB mem and 3 GB swap (although it had 4 GB swap when I did the copies).  I use the program as my regular (non-root) user, since I own all the VM files  ;)

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15513
  • ┌∩┐(◕_◕)┌∩┐
Re: vdi files
« Reply #6 on: May 28, 2010, 08:12:42 AM »
Quote
It now copies to exact 4 Gb and then fail to copy .... I tried to copy these to a external USB (hard)drive as I actually use to do.

What file format is on the drive your copying to?
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; 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 bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: vdi files
« Reply #7 on: May 28, 2010, 08:18:24 AM »
Quote
It now copies to exact 4 Gb and then fail to copy .... I tried to copy these to a external USB (hard)drive as I actually use to do.

What file format is on the drive your copying to?

To have my external drive as much compatible with it all out there, I use there FAT32 (Not sure if I always did so).
The crazy thing is that I faced the same kind of problem in the past, overcame it somehow and .... forgot how! Rather annoying  ::)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: vdi files
« Reply #8 on: May 28, 2010, 08:26:50 AM »
Quote
It now copies to exact 4 Gb and then fail to copy .... I tried to copy these to a external USB (hard)drive as I actually use to do.

What file format is on the drive your copying to?

To have my external drive as much compatible with it all out there, I use there FAT32 (Not sure if I always did so).
The crazy thing is that I faced the same kind of problem in the past, overcame it somehow and .... forgot how! Rather annoying  ::)

FAT 32 has a file size limit of 4GB
You want something bigger use a better filesystem.   ;)

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: vdi files
« Reply #9 on: May 28, 2010, 08:36:27 AM »
Quote
It now copies to exact 4 Gb and then fail to copy .... I tried to copy these to a external USB (hard)drive as I actually use to do.

What file format is on the drive your copying to?

To have my external drive as much compatible with it all out there, I use there FAT32 (Not sure if I always did so).
The crazy thing is that I faced the same kind of problem in the past, overcame it somehow and .... forgot how! Rather annoying  ::)

FAT 32 has a file size limit of 4GB
You want something bigger use a better filesystem.   ;)

Yep.  That's it, exactly!

FAT32 is only required if you'll being using the drive with W9x, etc.  If you need to share the drive with Windows XP (or, 2000, or Vista, or 7...), try formatting it as NTFS.  Using the ntfs-3g software under PCLOS, you'll be able to write to it.
If you use the drive under Linux only, you should consider ext3.  I get great performance from external USB HDDs w/ ext3 (apparently, ext4 can be problematic with external drives...no experience there, myself)

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: vdi files
« Reply #10 on: May 28, 2010, 08:39:27 AM »
So in short, you suggest to reformat the external drive to i.e. NTFS or EXT3 and simply try again?

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: vdi files
« Reply #11 on: May 28, 2010, 09:08:10 AM »
So in short, you suggest to reformat the external drive to i.e. NTFS or EXT3 and simply try again?

Yes.
As long as you don't lose any data on it!  ;)  Backup what's on it, if it's important to you...

If you're going to go the NTFS route (which presumes you have access to hardware running Windows), I personally would format the drive on Windows.
If EXT3, then obviously...Windows doesn't come into consideration at all  ;D

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: vdi files
« Reply #12 on: May 28, 2010, 09:15:13 AM »
Yeah right ... well, Windows is "out of reach" for now. Guess I will have to try Pmagic to get NTFS on it .... I would prefer EXT3 but as I said earlier, sometimes I got to share things, even with Windows fan's  :o
Thanks for all the suggestions, will post later (Tomorrow, it's late here now) in how far this is/was the solution.

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: vdi files
« Reply #13 on: May 28, 2010, 09:39:12 AM »
Yeah right ... well, Windows is "out of reach" for now. Guess I will have to try Pmagic to get NTFS on it .... I would prefer EXT3 but as I said earlier, sometimes I got to share things, even with Windows fan's  :o
Thanks for all the suggestions, will post later (Tomorrow, it's late here now) in how far this is/was the solution.

There is software for Windows that will allow it to access an ext3 filesystem (not sure what it is ... Google should help).

As such, a possible approach (and if you don't care to go down this road, that is, of course, fine!) would be to re-partiton the drive with a small (relative, depending on the total size of the drive ... 1 GB, perhaps, for >20GB ... 1/2 GB for <20GB?) FAT partition.  The balance could then be one big ext3 filesystem.
The ext3 Windows software could be stored on the FAT partition, and then used on any Windows machine that may need to access the larger partition.

In reality, the single NTFS approach is simpler.  I just trust ext3 more  ;).

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15513
  • ┌∩┐(◕_◕)┌∩┐
Re: vdi files
« Reply #14 on: May 28, 2010, 10:38:11 AM »
Quote
There is software for Windows that will allow it to access an ext3 filesystem (not sure what it is ... Google should help).


Is this it Pags ?

http://www.diskinternals.com/linux-reader/
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; 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