Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

Thanks

share|improve this question
add comment

2 Answers

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
add comment

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:

http://digiassn.blogspot.com/2006/01/dd-over-netcat-for-cheap-ghost.html

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.

If you have any further questions, let me know!

Regards, Port Forward Podcast

http://portforwardpodcast.com/

share|improve this answer
add comment

Your Answer

 
discard

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.