Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have customers with VPSs in various hosting companies, using the following OSes,

Ubuntu, CentOs, Debian, and Suse

I'd like to create VirtualBox images locally for testing purposes.
What is the best way to copy these VPS to a local VirtualBox ?


share|improve this question

If you want a more direct and exact image you can use dd and netcat. It would be best if you could take the servers offline for a period while you do this operation. If that's not an option, you can still do this, but you will need to run fsck after you are done. See this article for more information:

I would suggest that you create a virtualbox VM with a disk 2% larger than the box you are trying to capture. this virtualbox Vm will serve as the "target system" described in the article. Set this Vm's networking mode to bridged so it has it's own IP on your network. Boot this VM from an ISO, my personal favorite is "Trinity Rescue Kit 3.4". Open a port on your router pointing at the vm so that the VPS can connect.

share|improve this answer

You may be able to use the VMware Converter to get copies of the running machines. VirtualBox will then load and run the hard disk images natively.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.