LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cloning a virtualbox machine to physical machine with clonezilla (http://www.linuxquestions.org/questions/linux-general-1/cloning-a-virtualbox-machine-to-physical-machine-with-clonezilla-4175445517/)

eboy98 01-14-2013 04:20 AM

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?

TobiSGD 01-14-2013 06:17 AM

Of course it is necessary to see the error message. How do you think we should know what is going on otherwise?

allend 01-14-2013 06:57 AM

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.

allend 01-14-2013 07:33 AM

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.

eboy98 01-14-2013 08:04 AM

1 Attachment(s)
Quote:

Originally Posted by TobiSGD (Post 4869581)
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.

TobiSGD 01-14-2013 08:21 AM

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.

eboy98 01-14-2013 08:32 AM

Quote:

Originally Posted by TobiSGD (Post 4869639)
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.


All times are GMT -5. The time now is 08:00 AM.