Ask Your Question
0

Can I clone the virtualbox VM Fedora 20 to real machine?

asked 2013-11-26 19:46:47 -0600

Charles Wang gravatar image

I have used Fedora for 10 months as a virtualbox VM and have very interesting in it, I want to turn Ubuntu to Fedora, can I clone the customized Fedora 20 beta to my real computer? thanks very much.

edit retag flag offensive close merge delete

Comments

Thanks Mr. Ezq, I see.

Charles Wang gravatar imageCharles Wang ( 2013-11-27 05:44:10 -0600 )edit

6 Answers

Sort by » oldest newest most voted
0

answered 2013-11-27 05:26:13 -0600

You can use clonezilla, do a backup image and restore it in the real machine ...

[from the clonzilla web page]

Clonezilla is a partition and disk imaging/cloning program similar to True Image® or Norton Ghost®. It helps you to do system deployment, bare metal backup and recovery. Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (server edition). Clonezilla live is suitable for single machine backup and restore. While Clonezilla SE is for massive deployment, it can clone many (40 plus!) computers simultaneously. Clonezilla saves and restores only used blocks in the harddisk. This increases the clone efficiency. At the NCHC's Classroom C, Clonezilla SE was used to clone 41 computers simultaneously. It took only about 10 minutes to clone a 5.6 GBytes system image to all 41 computers via multicasting!

edit flag offensive delete link more

Comments

Thanks, I got it.

Charles Wang gravatar imageCharles Wang ( 2013-11-27 22:54:57 -0600 )edit

The situation is: two disk with difference schema, sda means /dev/sda, etc, sda : sda1, ext4, 30GB, mount to /; sda2, 1GB,swap; sda3,ext,50GB, mount to /home; BUT sdb: sdb1, 50GB,NTFS,Windows Root, sdb2,FAT32, datafiles, sdb5,ext4, 25GB, want to mount as Linux root, sdb6,2GB, want to swap, sdb7, ext4, 100GB,want to /homesdb4 ,2, want to swap, sdb44567, ext4, 100,want to /home,. How to clone it manually using command line?

Charles Wang gravatar imageCharles Wang ( 2013-12-12 18:49:11 -0600 )edit

first you need to mount all the partitions as you want, next you can use Rsync to copy the files, for example:

ezq gravatar imageezq ( 2013-12-16 07:01:14 -0600 )edit
0

answered 2014-01-03 17:30:49 -0600

sergiomb gravatar image

yes , you enter in F20 vm in rescue mode, dump partitions over ssh to other host , you can save there or restore directly (with other rescue system ) , after that need just adapt /etc/fstab and few more files .

see my draft here: http://www.serjux.com/clone/

edit flag offensive delete link more

Comments

thanks, I'll try it.

Charles Wang gravatar imageCharles Wang ( 2014-01-05 22:39:03 -0600 )edit
0

answered 2013-11-27 02:26:16 -0600

mrunge gravatar image

You can get a list of installed rpms via:

rpm -qa > rpmlist.txt

and later install the list of packages on a freshly installed system:

for i in cat rpmlist.txt; do yum -y install $i; done

(untested, might require some tweaking).

You can copy your home directory directly to the new installed machine.

edit flag offensive delete link more

Comments

System Clone NOT installed softwares reinstalling.

Charles Wang gravatar imageCharles Wang ( 2013-11-27 22:59:42 -0600 )edit
0

answered 2013-11-27 03:37:55 -0600

Charles Wang gravatar image

updated 2013-11-27 03:38:41 -0600

sorry sir, you miss understand my meanings, I mean clone Fedora system from VM to real machine such as Ghost, NOT only the installed softwares, so I need edit fstab, grub.cfg, etc. because the disk partitions are not the same. But I also thanks for your attentions.

edit flag offensive delete link more
0

answered 2013-11-28 02:05:47 -0600

mrunge gravatar image

IMHO cloning shouldn't work, because devices likely will get different device IDs.

edit flag offensive delete link more

Comments

Yes, but I have already change the grub.cfg file for device ID, change /etc/fstab will also be occurs.

Charles Wang gravatar imageCharles Wang ( 2013-11-28 02:10:41 -0600 )edit
0

answered 2013-11-27 14:28:58 -0600

williamjmorenor gravatar image

I think than can be easier to copy your /home partition into a fresh instalation of Fedora, in this way you will have your configuration with you in your new installed system.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-11-26 19:46:47 -0600

Seen: 666 times

Last updated: Jan 03 '14