After setting up VirtalBox based virtualization on our server, I needed a way to have it automatically started and stopped whenever the host is restarted.
Also it would be for the better if the system was not simply started and stopped, but rather saved and restored when possible. I love scripting, but prefer the easy way, and since it’s a problem many have probably already tackled I sniffed around for a while.
There it was, new and shiny tool to make my day!
We host the server for a legacy application in our office. Since it’s more like a favor than a real assignment we don’t care much about the server. However we had a few network issues lately, so we decided to migrate it to a virtual server running on our hosted server. Also the machine produces lot’s of heat and noise, so we’d better had it switched off.
This seemed like such an easy task to do, what could be hard in creating a disk image with CloneZilla, copy it to a server, set up a virtual machine there with kvm, restore the image and redirect all traffic to this computer instead of the one in our office. We estimated it could be done in two to three hours tops, and we get home around 7PM.
Continue reading “Migrating from physical to virtual server with pain and tears”