LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 05-08-2014, 07:01 AM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Question Filesystem in compressed file to VDI (or other) image


Hello,

Is there a way to convert a compressed file containing a filesystem into an image that will be accepted by VirtualBox/OpenStack/etc?

I was thinking of using VirtualBox to create a VDI file of fixed size, then mount it in linux. I think I would then need to format it to ext3 and extract the compressed filesystem into it. Finally, reinstall GRUB in order to be able to boot. I'm not sure if this is the correct approach, or is there an easier way?

Any help would be greatly appreciated!

Thanks!
 
Old 05-08-2014, 07:08 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,035

Rep: Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337Reputation: 1337
is that a bootable system (I mean inside that compressed file) containing kernel and other goodies?
 
Old 05-08-2014, 09:53 AM   #3
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pan64 View Post
is that a bootable system (I mean inside that compressed file) containing kernel and other goodies?
Yes, it's all there.
 
Old 05-08-2014, 03:36 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,969

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I'd use any clone technique. Boot to some live media that can access it and copy it over to some pre-made virtual hard drive.

What is this format by the way? Do you have a live cd sort of image?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install GRUB2 to a virtualbox vdi image kara85 Linux - Newbie 3 07-19-2012 05:17 AM
VirtualBox virtual disk image backup? .vdi .sav brianpbarnes Linux - Software 3 07-17-2009 03:12 PM
Migrating a VirtualBox .vdi Image to CoLinux MetalSubstance Linux - Software 2 02-25-2008 08:03 AM
How to resize filesystem (image file)? how to truncate the image? nikov3 Linux - General 4 06-27-2006 04:02 AM
How can I attach a compressed file to /dev/loop0 (for filesystem image recovery)? rjlee Linux - General 0 09-26-2004 05:11 PM


All times are GMT -5. The time now is 12:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration