Here I am again posting about our cloud updates...
Today we decided to install a new physical machine as node in our cloud... the Homer's wife: Marge. The idea is to have in the future Marge as our storage and cluster controller making homer only our cloud and walrus controller.
After the installation of Marge (CentOS 5.4) I realized that our LAN had no internet. That was because when we installed the 2nd NIC, on Homer, more configurations were necessary (IP Masquerade). Since it is not a big deal, we made the required changes and now everything is running well. You can check here a good link of how to forward the internet to your lan if you have a server running Linux with 2 NICs as your lan's router. We needed the internet in order to run the CentOS updates on Marge.
Well, let's talk now about interesting things... we decided to test the live migration feature of Xen using our two currently installed physical nodes: Marge and Maggie. At this point of time we are not going to worry about Eucalyptus... The idea is just testing the Xen's live migration between our physical nodes.
So, we used a previously created CentOS image to run on Xen. If you want to know how to create a VM to run on Xen, check this.
At this point, the VM was working fine, but completely isolated in one physical node: Maggie. So now, we decided to create a NFS directory on Homer and store the image there (VM file). In that way, we could have access to the image from any physical node "without" the need to copy. To enable the NFS we just followed the instructions found on this page. It worked fine since the very first time.
Now, after rebooting the physical machines, all of them mount at startup time a directory shared by Homer. This directory contains the VM image.
Almost done! Now, we had to configure Xen in order to migrate the VMs...
To do that, you have to edit the file /etc/xen/xend-config.sxp and make the following changes:
(xend-relocation-server yes)
(xend-relocation-port 8002)
(xend-relocation-address '')
(xend-relocation-hosts-allow '')
Of course, we restarted the Xen service in all physical nodes:
... and then started the VM in Maggie with the following command:
Finally, we migrated the VM from Maggie to Marge:
That's all for today. Until next post.
Lucio
Of course, we restarted the Xen service in all physical nodes:
/etc/init.d/xend restart
... and then started the VM in Maggie with the following command:
xm create our-vm
Finally, we migrated the VM from Maggie to Marge:
xm migrate -l our-vm target-host
That's all for today. Until next post.
Lucio