At the end of my previous post Moving A VirtualBox VM With Snapshots, I described a common VirtualBox error you may experience when you try to clone virtual machines and move them around. The error is associated with VirtualBox Guest Additions which is usually installed across individual virtual machine instances.
VirtualBox allows us to copy a virtual machine from one host to another easily. You just copy the hard disk file (usually .vdi or .vhd) to the new host. Then you use the transferred hard disk file to start up a new virtual machine on the new host. That’s it! However, I have found that if you use this method on a VM containing snapshots, you only get an old machine state of the original virtual machine. All saved snapshots are lost. In this tutorial, I explain how to move a VirtualBox VM to a different host and still retain the snapshots on the original host.
This article goes straight to the installation and VM setup process. We shall be creating a Windows Server 2012 VM on a Windows 7 host machine. For some more background info, See my previous post – VirtualBox and Virtualization: An Introduction.
VirtualBox is a cross-platform virtualization application. It installs on your existing computer (and operating system) and extends the capabilities of your existing computer so that it can run multiple operating systems (inside multiple virtual machines) at the same time.
SSH provides a significantly more secure way of updating WordPress files and plugins or performing new plugin installations. Here, I explain how to enable WordPress to use SSH for all updates and installations.
A general overview of SSH2 for PHP can be found at the official Secure Shell2 reference. If you look at the requirements section, you will see that two other libraries are required for it to work. They are OpenSSL and libssh2. I explain here how to install both of these first. And then we proceed to actually install ssh2 for PHP shell connections.