PDA

View Full Version : [SOLVED] Cloning existing VM to other PCs



ramzes777
24th August 2017, 07:35 AM
Hi comrades,

I am new to Linux, I have configured Fedora 25 under Oracle Virtual Box to the way I like it, it took my considerable time to install apps and tweak the desktop.

In fact I like it so much that I would like to clone this machine on two other laptops. One of them is Asus and another is Apple Mac Book Air. I do not want to go through same process of configuring base image. Also I want these to be local installations, not VMs. On Asus this will be an only OS available and on Mac Book Air I would like to have an option to boot into MAC OS or Linux.

Please advise the best way to port this VM to two other laptops as local installs.


Any help will be appreciated.
Cheers.

antikythera
24th August 2017, 09:15 AM
I'm not sure you can because of hardware differences involved. An Oracle VM install works like a bare metal install in that it will detect available hardware (using virtual acceleration or faked by the VM software) during installation phase and setup the kernel modules accordingly.

Maybe someone else knows how it could be made to work but as far as I'm aware it would be unstable at best if it ran at all.

ramzes777
25th August 2017, 08:41 AM
I'm not sure you can because of hardware differences involved. An Oracle VM install works like a bare metal install in that it will detect available hardware (using virtual acceleration or faked by the VM software) during installation phase and setup the kernel modules accordingly.

Maybe someone else knows how it could be made to work but as far as I'm aware it would be unstable at best if it ran at all.


I see, what you've said makes total sense to me. During installation it is indeed should detect hardware and install modules accordingly.

Thank you for your reply.

flyingfsck
25th August 2017, 09:06 AM
Well, reinstalling only takes about 30 minutes, vs hours and hours learning how to do it any other way...

The proper way to do what you want is to make a kickstart file listing the packages on your master machine and then replicate it onto any new machine. Kickstart will then install the required drivers and the same packages:
http://www.aeronetworks.ca/2014/06/replicating-fedora-machines-using.html

ramzes777
25th August 2017, 09:12 AM
I see, what you've said makes total sense to me. During installation it is indeed should detect hardware and install modules accordingly.

Thank you for your reply.


You are correct re-installation does not take long, its the packages that you've installed and desktop configuration, that takes long, besides hard to remember all of the settings and tweaks you've made that seem to work so nicely :)

Kickstart, sounds just what I need. Thanks.

AlexTheoto
25th August 2017, 10:03 AM
You can copy user's configs by copying home's .* [dot] files and directories into external memory

ramzes777
3rd September 2017, 10:33 AM
Thank you everyone for suggestions, I've found my answer.
Do I need to mark this thread as resolved? If so, how :) ?

AlexTheoto
3rd September 2017, 11:07 AM
Use the 'thread tools' at the top of the thread.

srakitnican
3rd September 2017, 12:30 PM
If VirtualBox installation uses the same kernel, just making the partitions and then cloning the files with rsync for example on the disk should do it. All there is left to do then is to install and configure grub so that it can boot the kernel.

If you decide to that be aware to use appropriate flags for rsync, so that it copies all metadata as well. From my notes "rsync -avAX -H --numeric-ids".

https://fedoraproject.org/wiki/GRUB_2