LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-17-2013, 11:40 AM   #1
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Rep: Reputation: 36
clonezilla disk image into virtualbox virtual machine


I have used clonezilla to clone hard drive to hard drive successfully. Then I used clonezilla to clone drive and put image on external usb drive. I then booted clonezilla into a virtual box vm, but was unable to get virtual box to see the image on the usb drive. My image on the usb drive is a folder with several 2gb image files of the whole drive. I tried pointing virtual box to the usb drive, but it does not recognize any of the files as valid image files. Clonezilla from virtualbox does not see the usb drive. How do I get clonezilla to see external usb hardware from virtualbox?
 
Old 02-17-2013, 11:45 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You have to pass through the USB device to the VM. Alternatively, you can mount the USB device and set it up as shared folder or you set up a Samba, FTP or NFS server.
 
Old 02-17-2013, 04:59 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
There are a few more complex ways but start with the usb.

When you boot to the VM with the iso image of clonzilla you need two things. One is a pre-made hard drive image that would be blank. Best if it is the original size or more of the cloned disk you had. Second is when it boots up, you then have a chance to attach your hosts usb devices to the VM. Wait a bit for it to be ready. It should then show up as available to clonezilla for you to image over.
 
Old 02-21-2013, 10:55 AM   #4
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Original Poster
Rep: Reputation: 36
I formatted a blank virtual hard drive in ntfs. Clonezilla can see the drive. I installed the virtualbox extensions and I can add my usb drive and create a filter for it. After booting clonezilla, it will see the virtual box ntfs formatted virtual disk, however, virtualbox is not allowing me to access the usb drive. If I hover the mouse pointer over the usb icon at the bottom, it says 'no usb devices attached', however, it is there but grayed out. In the virtualbox control panel, I have the usb device listed, including all its filter information. I tried to 'safely remove' drive in dolphin, but that did not help. Is there a way to disassociate the usb drive in the host in order to have access in the guest? Also, if I copy the image from the usb drive to the hard drive, how would I point clonezilla to it? Would that method work better?
 
Old 02-21-2013, 02:48 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I just click on the virtualbox usb device in the menu. I don't usually add in filters.

It is best to unmount the usb in the vm first.
 
Old 02-21-2013, 04:22 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Is your host a Linux or a Windows machine? If it is Windows I would just setup a network share for the folder your image is in. If it is Linux you can use Samba or NFS to share it to the network. Clonezilla should be able to see and mount those shares, so that you can use access the image files.
 
Old 02-21-2013, 08:16 PM   #7
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Original Poster
Rep: Reputation: 36
Thank you for the replies. I have usb working. The last piece of the puzzle was editing the file:
etc/udev/reles.d//60-vboxdrv.rules
On the last two lines, remove the # in front of the lines, save and reboot. I tried it in a virtual machine and could browse the folders in the thumb drive. I found the instructions here: https://en.opensuse.org/VirtualBox
The instructions also warned about the possible security risks by allowing usb support. I can only think of the possible risk of directly accessing the virtual machine with a usb drive that could have malware on it.
A question on clonezilla: I have only used it to make images. I am guessing that restoring an image is doing a copy, but in the reverse direction.
 
Old 02-21-2013, 08:26 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Clonezilla uses a few other tools to do it's tasks. Normally you clone to a group of files or clone to a complete hard drive. If Clonezilla understands the file system it will use file by file copy. If not it does a bit by bit copy if it can.

So to restore, clonezilla may format and partition and copy file by file or it may simply use bit by bit.
 
Old 02-23-2013, 07:04 PM   #9
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Original Poster
Rep: Reputation: 36
The image is installed in virtual box. It was done using the partition option because the original was a dual boot windows linux and I cloned the windows partition. I then used the grub disk to repair the boot loader because the linux partition was not there. I could then boot the virtual machine with the grub disk. To my surprise, I did not have any issues with windows complaining. However, the box was decommissioned from a windows network, so I have to figure out how to get admin rights so I can install guest additions.
 
Old 02-24-2013, 10:50 AM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Came with a vm in it and no admin. Kind of odd by not unheard of. I usually run qemu since it doesn't need any admin privileges.

Plenty of web pages on how to get that admin. I use a gentoo live cd.
 
  


Reply



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
Clonezilla can't find disk image cmplet-noobie Linux - Software 15 10-08-2016 09:02 PM
Cloning a virtualbox machine to physical machine with clonezilla eboy98 Linux - General 6 01-14-2013 08:32 AM
Install CloneZilla image to smaller disk EricTRA Linux - Software 1 08-18-2010 04:36 PM
VirtualBox virtual disk image backup? .vdi .sav brianpbarnes Linux - Software 3 07-17-2009 02:12 PM
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 - Virtualization and Cloud

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

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