LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-14-2013, 05:20 AM   #1
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Rep: Reputation: 15
Cloning a virtualbox machine to physical machine with clonezilla


Dear all,

I want to clone a Linux OS running on VirtualBox to a Physical machine through Clonezilla. is it possible?

I did this cloning for same physical machine.For example i used clonezilla and take image from PC1. Then i restored to same machine(PC1) and it worked.

But same thing i did for a Virtual Machine,which is running on VirtualBox and want to restore on a physical machine- result is failed show some "kernel panic"

"If it is necessary i can post kernel panic message "

any idea?
 
Old 01-14-2013, 07:17 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
Of course it is necessary to see the error message. How do you think we should know what is going on otherwise?
 
Old 01-14-2013, 07:57 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
If the virtual machine was built with a fixed disk size, then it should be possible to loop mount the VirtualBox .vdi. The trick is to find the appropriate offset for the loop mount to be successful. The offset will vary depending on the size of the fixed disk. This may help https://forums.virtualbox.org/viewtopic.php?f=7&t=52

If you have a variable sized disk, it will need to be converted to a fixed size disk. It has been a while since I used VirtualBox, but I think 'VBoxManage clonehd --format VDI --variant Fixed <uuid>|<filename> <outputfile>' will do this.
 
Old 01-14-2013, 08:33 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Just found this link about mounting .vdi files. It is very neat! http://bethesignal.org/blog/2011/01/...box-vdi-image/

Note that the use of -n option may be required to the qemu-nbd connection command (gmart says:
June 24, 2011 at 05:59) to avoid I/O errors.
 
Old 01-14-2013, 09:04 AM   #5
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
Of course it is necessary to see the error message. How do you think we should know what is going on otherwise?
I am really sorry for not posting the error message earlier ,now i have attached a screen shot. Can you please give a look.

thanks.
Attached Images
File Type: jpg ScreenShot.jpg (259.4 KB, 12 views)
 
Old 01-14-2013, 09:21 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
It seems to me that you have use LVM in the VM. Did you recreate the LVM configuration in the physical machine? Otherwise you have to adapt at least the bootloader configuration and your fstab to the new settings.
 
Old 01-14-2013, 09:32 AM   #7
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
It seems to me that you have use LVM in the VM. Did you recreate the LVM configuration in the physical machine? Otherwise you have to adapt at least the bootloader configuration and your fstab to the new settings.
Thanks for quick reply, no i did not create any LVM in physical machine. Yes i will going to check fstab file.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 02:48 PM
Setting up a firstboot script after cloning a virtual machine kkoene Linux - Enterprise 3 04-27-2012 09:16 AM
Problem with GRUB when cloning machine sternocera Linux - Software 4 02-14-2010 03:50 PM
Cloning partition on same machine different disk therefump Linux - Newbie 2 04-12-2009 06:22 PM
cloning a debian system from one machine to another kushalkoolwal Debian 6 08-15-2007 08:35 PM


All times are GMT -5. The time now is 06:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration