LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2021, 04:04 AM   #1
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Rep: Reputation: Disabled
Question Clonezilla image conversion to a .img file issue.


Hi, hopefully someone can help me with this issue. I have a Clonezilla image of a Linux application it has the format of "name-img". I need to restore this image to a Virtualbox Red hat machine but can't convert the Clonezilla image to .vdi (or -img when I could convert it to .vhi) Many thanks in anticipation.
 
Old 07-03-2021, 04:52 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
The first hit on DDG: How to Convert Clonezilla to VirtualBox.
 
Old 07-03-2021, 06:37 AM   #3
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Shruggy, many thanks for the response, however the problem when I get to step 3 of the steps by Michael Butler is that the types of disk image allowed are ..vmdk, .vdi, .vhd, .hdd, .qed, .qcow, .vhdx. The disk image created by Clonezilla does not have any of those extensions it simply ends in a -img Not .img. I need to be able to convert the -img from Clonezilla into a .vdi.
 
Old 07-03-2021, 11:45 AM   #4
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,172

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Did you try changing the image name to .img? The dash may be confusing things.
 
Old 07-03-2021, 01:03 PM   #5
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Utek, thanks for the suggestion, I have tried adding a .img extension to the file but when I tried converting it then to a .vdi (for virtualbox) I get "access denied" after the convertfromraw command. I have even changed permissions to no avail. All clonezilla disk backups (as far as I can see) all end up with the file name abcxyz-img. there must be some way of converting them to a .VDI, .VHD, etc to use as a virtual drive... I have tried using Clonezilla to create an .iso image from the backup but error tells me the backup image is too large for cd.
 
Old 07-03-2021, 02:11 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Corealis View Post
Hi, hopefully someone can help me with this issue. I have a Clonezilla image of a Linux application it has the format of "name-img". I need to restore this image to a Virtualbox Red hat machine but can't convert the Clonezilla image to .vdi (or -img when I could convert it to .vhi) Many thanks in anticipation.
I have not previously used either clonezilla or VirtualBox, so I installed VirtualBox and put a copy of clonezilla live on usb to test what you are seeing.
Making a clone of my system took some time but I wound up with a directory on my usb stick named 2021-07-03-16-img. That directory contains all the files created by clonezilla for my system.
I then used VirtualBox and followed the instructions on the page linked in post #2.
Selecting the -img directory as the source and waiting a few moments allowed VirtualBox to begin reading the image files and I see this during the process. (a progress bar)

You don't convert the file, you allow VirtualBox to read the image file(s) and do the restore from that image into the .vdi virtual drive. The restore must complete before the VM is able to boot, and the time involved is dependent upon your system and the size of the image being restored.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-07-03 13-53-25.png
Views:	88
Size:	18.5 KB
ID:	36730  

Last edited by computersavvy; 07-03-2021 at 02:13 PM.
 
Old 07-03-2021, 02:22 PM   #7
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Computersavvy, thanks for your reply, I have tried that earlier but not successful, I shall try that again, if it works for you it must be something I am not getting. I shall start again. Thank you.
 
Old 07-03-2021, 02:56 PM   #8
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Computersavvy again, I have followed the steps carefully and when I get to the point where I have to add the disk with the image to install it looks for all of the normal virtual drive formats and will not accept my image with the -img extension. What am I doing wrong I wonder. I am in a bit of a fix because the image I am trying to install came from a machine that no longer exists so I can not recreate it. I do have several images of it created when the original machine was alive and all give me the same result.
 
Old 07-03-2021, 10:36 PM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Going just a little deeper into the results from a google search I also found these links, which have more info on how to do what is needed for installing a clonezilla image into a VirtualBox VM. These looked promising with techniques that may work for you.

https://jlorenzen.blogspot.com/2010/...age-using.html
https://blog.hyperionworks.com/blog/...-machine-image

There are many other links and I did not take time to research more as yet.

There is more than one way to skin that cat, and all it will take is patience and a bit more research until you find a way to do what is needed.

I wonder if it may not be almost as easy to do a clonezilla restore to a suitable hard drive instead of a VM.

Last edited by computersavvy; 07-03-2021 at 10:40 PM.
 
Old 07-04-2021, 04:47 AM   #10
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi again Computersavvy many thanks for your help. The problem with installing on a suitable disk is that I want to run it on a Windows platform (the person using it only works in a windows environment). After following closely the steps outlined in Post 2 (as you did) but using Clonezilla in the VBox to install the image and it has worked to a degree but the issues now are simply configuration setting which I am working through. Again many thanks to you and all who responded to my plea.
 
Old 07-04-2021, 02:54 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Thought Clonezilla makes a number of files? When I do this I make a virtual machine. Boot to Clonezilla and use it to clone the data. Build a vm either in the target vm program or build on a supported virtual hard drive format.
 
Old 07-04-2021, 09:25 PM   #12
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Clonezilla does make a number of files, but when doing the restore clonezilla only needs to be able to read the directory it created to restore the files. Clonezilla manages the rest, although it is possible to do the restore manually as well according to the different posts I read on the subject.
 
Old 07-05-2021, 02:37 AM   #13
Corealis
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi jefro when you say you "build on a supported virtual hard drive format" do you build this on the host machine
Then import it to the VM?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error when trying to create a bootable img from clonezilla backup Rosika Linux - Software 4 11-15-2018 08:39 AM
LXer: Clonezilla-release Stable Clonezilla live (2.0.1-15) Released LXer Syndicated Linux News 0 12-18-2012 09:21 PM
[SOLVED] Mounting .img file (chromiumos.img); can't mount it?? Help please? linus72 Linux - General 2 11-27-2009 08:11 PM
how to extract hard disk image (hdb1.ext2-ptcl-img.gz) given by clonezilla laginagesh Linux - Software 1 09-10-2009 12:56 AM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration