Docunext


Creating an OpenVZ Virtual Machine Container from a Physical Machine

January 8th, 2011

I'm migrating some machines with problematic hardware to OpenVZ containers (as well as to save on energy).

rsync -arvpz --numeric-ids --exclude=/dev --exclude=/proc --exclude=/tmp --exclude=/boot -e ssh root@192.168.8.38:/ /var/lib/vz/private/838

Seems to me that it is much easier to go from a real machine to an OpenVZ container than vice-versa.

The above script is an example I found at the OpenVZ site. In reality I had to tailor mine so that I wasn't transferring data I didn't need.

To

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022