Robotics StackExchange | Archived questions

Cloning existing ROS to another PC

Hi all,

I am running ROS Fuerte on a Virtual Machine(VM) (Ubuntu 12.04). Is it possible to clone the ROS to another physical PC running the same Ubuntu (12.04).

Tried to clone the whole VM as physical machine but failed.

Need guidance. TQ

Asked by manter89 on 2016-04-13 22:34:48 UTC

Comments

you mean get out the partition of the VM and set it up in a physical pc ?

Asked by TomSon on 2016-04-14 02:02:31 UTC

Yes, exactly. Is it possible?

Asked by manter89 on 2016-04-14 02:21:54 UTC

You can trick your VM by using G4L and get back the partition you need. Check that it's compatible with your PC hard drive and that should be good.

Asked by TomSon on 2016-04-14 02:44:28 UTC

It means, i should clone the ROS partition in VM and restore it in my new pc?

Asked by manter89 on 2016-04-14 04:17:15 UTC

that will do the trick: made an image of your partition or disk and copy it on your target drive

Asked by TomSon on 2016-04-14 04:32:59 UTC

Answers

You do not know if this is the best way, but it should work:

You can convert the virtual hdd to a standard image and then mount it.

VBoxManage clonehd --format RAW ubuntu.vdi ubuntu.img

Then you could mount the new physical hdd, too. Next step is to make a copy:

sudo cp -avxT /mnt/old /mnt/new

Other ways to copy: http://linuxdocs.org/HOWTOs/mini/Hard-Disk-Upgrade/copy.html

Then you need to correct the entries in fstab and repair grub. I know a good Tutorial, but it is in germen. But the command are still correct: https://wiki.ubuntuusers.de/Ubuntu_umziehen/

Asked by MichaelKorn on 2016-04-14 06:29:48 UTC

Comments