This question has bothered me for a while.
I have a remote machine with CentOS, which can only be accessed via
ssh. I need to clone everything this system has and replicate it in my local with
virtualbox. Here is what did:
Clone the system by following steps/commands (
dd) mentioned in this article. The command looks like this:
dd if=/dev/xvda of=xvda.raw
Transfer the dumped file to my local, and convert it to VDI format after reading this page:
VBoxManage convertdd xvda.raw xvda.vdi --format VDI
Create a VM with
The VM cannot be launched, showing black screen and saying "Press any key to continue...".
See below dump from the remote machine. It seems there's no boot partition exists in the remote machine. If this, how can I create a boot partition in my local VM and clone all other partitions (I guess it's all about
/dev/xvda) from remote machine?
[tom@ip-10-203-0-000 ~]$ sudo fdisk -l Disk /dev/xvda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00057cbb Device Boot Start End Blocks Id System /dev/xvda1 1 3917 31456256 83 Linux [tom@ip-10-203-0-000 ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 30G 9.2G 19G 33% / tmpfs 1.8G 0 1.8G 0% /dev/shm