Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You would have to build out your new server and rsync your data across... no other easy solution unless you setup a config app like puppet to push your content/configs out to new servers.
The simplest way I could think of would be Clonezilla. Your can also use a LiveCD to just rsync the files to the physical machine (absolutely no need to install first), then install a bootloader. Won't get much simpler.
You cant really use clonezilla or another disk to disk copy sort of method due to the hardware differences. You will need to do a clean OS install then copy over your content. I refresh servers to new hardware on a daily basis and yes I wish it were easier but thats the way it is.
I disagree that you can't move it via clonezilla. Generally can work.
I also agree that the old standard of clean install used to be true. Today a modern linux doesn't care what hardware it is on.
You are correct in that a clean install would be or tends to be best.
You can use a V2P app.
You can use dd or tar or other clone copy tool.
You can use G4U if you want.
The basic issue here is that a virtual machine is to be considered a real computer. Any task that can move a real computer can usually move this issue.
I have even used dd over ftp and dd over netcat to clone.
You need to watch out for how some computers boot. Some systems may say disk by id or disk by name in grub or use different geometry or names to boot so you'd have to fix it.
I am not sure I'd go from a VM to a real system. Seems backwards.
You cant really use clonezilla or another disk to disk copy sort of method due to the hardware differences. You will need to do a clean OS install then copy over your content. I refresh servers to new hardware on a daily basis and yes I wish it were easier but thats the way it is.
I had no problems to clone the OS from my laptop (AMD CPU+Chipset+Graphics) to my netbook (Intel CPU+Chipset+Graphics), except that I forgot to install the X.Org driver for the Intel graphics. No other problems. As long as you don't have proprietary drivers installed there should be no problem. The kernel looks anyways everytime at boot which hardware is present at boot. I had such incompatibility issues with Windows XP and older, but since Vista they are rare even on Windows.
Is there a way to use the back up I have using Deja Dup? I have a fresh install of Ubuntu 11.04 (physical) and I believe it's using the same version of gnome as the VM it came from.. I have the root of the VM backed up and copied to the Documents of my home folder on the physical machine. I know I can simply write over the entire root drive!
I can use dd to write the image of the VMs root to a flash drive? and how would I go about using the image with the physical machine?
I'm looking into all your suggestions!! I've tried Clonezilla, but find it tough to use. I'll look into it again!!
We are talking dd here or other ways to copy a hard drives content aren't we?
If you have a dd image of either a real hard drive or a virtual hard drive then the two are for this question the same. You can treat them as equal. IF something and OF it is the way it works. Bit by bit the data is moved.
Clonezilla saves some drive specific data. If we know about the failure then we might be able to fix it.
The now presented issue of the USB raises other issues.
The problems of moving an install may be simple to fix if you have ways to diag the failures. If you want you can do a test install from your dd image to the real machine. At this point, don't consider any sort of install OS and then try to add in data on top. You are simply trying a complete wipe of the storage media.
What has been installed on the VM can be found by running the following command at the terminal:
dpkg --get-selections > installed-software
and to restore on the physical machine I transferred the installed-software file to a usb and ran the following (this will download and install items listed in installed-software):
dpkg --set-selections < installed-software && dselect
From there I used Deja Dup to restore any files that held configurations and was careful to not overwrite anything that might break the system. I had to redo permissions to get somethings working. I'm guessing that's because I backed up as a user, not root..
Thanks for the help. I'm still looking into your suggestions!!
Last edited by secondhandman; 06-15-2012 at 05:16 PM.
If you now have a good working physical machine then you could make some image. Not worth the trouble to make it bootable unless you mean you are trying to get an external usb hard drive working.
From what you did, I feel that it may have worked. More that one way to do stuff. Use what you know is best.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.