Hi
My name is Steen Schmidt and welcome to this migration demo showing how to move a VM from
OVM 3.4 to OLVM 4.3.
This demo is based on a blog by Simon Coter.
First we see the VM in my OVM environment which I want to move to my OLVM server.
So I am moving from a Zen based hypervisor to a KVM based hypervisor.
So before we start out we need to prepare some simple tasks on the KVM server.
So the initial step is to log into the OLVM KVM server which is the one thats going to
do or manage our migration.
So we need to install some libraries first on this server.
And please just follow the instructions here or go and read the blog, but this is of course
all the initial steps that need to be accomplished before this KVM server is ready to become
migration host.
The next step we need to do is prepare the Zen server.
As you will see on the Zen server, we need to change some small parameters for us to
communicate between the server and the Zen server while doing the migration.
So please just follow the next steps which will be happening here.
So whats actually happening here is I was just changing the behavior of our Zen server
here, and here the program requires us to change some of the parameters, operation parameters,
which will determine the behavior of our daemon at runtime.
So this is whats happening, we are enabling the port for listening so we can be communicating
between the KVM server and the Zen server.
So thats whats happening at this point. And move on to the next.
So as this is finishing now, we will just restart the service on the Zen server, and
then we'll move on to the KVM server where we do some tasks that are set up above.
First we need to run on the KVM server is to verify that we can get a list of the VMs
running there, so we will log in and say yes, then password, and then we should hopefully
get a list, and here we will see that domain 0 is running, yes.
Next step is that we get the OL KVM VDMS daemons self authenticating to the OVM server.
So we are copying the keys, doing a sudo copying the key and moving the key over to the Zen
server, and then we'll verify that everything works without having to enter a password,
and we will see here, and there yes we are there.
We now need to copy the Oracle Linux Virtualization Manager certificate onto the KVM server, which
is what we are doing here with SCP, the IP of our OLVM manager, and then where is needs
to go, and this is whats happening here.
The next step we need is to create a password file for the KVM host to access the Oracle
Linux Virtualization Manager through the API, which is what we are doing here.
Since I am using NFS on my OVM environment, I will just jump to the step setting up the
path between my OVM repository and the KVM server.
So basically that means I am making sure that my KVM server can read my image files on my
repository on OVM.
So whats happening here is I am mounting my NFS share from my OVM repository to my KVM
server.
In the meanwhile I've started my VM on the OVM server so I need this for the next step
where I will be using the same command as I used previously where I list all my VMs
on the OVM server.
As you can see here, I've listed my running VMs on my OVM Zen host.
Next step will be to get the configuration of the VM, copy into an XLM file, so I can
use that for my migration process.
This XML file will be used to use the virt-v2v process to import the virtual machine into
Oracle Linux Virtualization Manager and the Oracle Linux KVM server.
So the next step will be the physical migration, but I have done this little step here which
is not documented, its just to write a file into the Oracle Linux server itself, before
I stop it and move it out of the system.
So its important to emphasize you need to stop the VM before you start the migration.
So this is the command, virt-v2v libvirt the XML file which is doing the process, and now
we will see the process happening.
And it will take a few minutes, this is a twelve gig file being moved and I have speeded
up the process so we dont need to wait so long.
So some more notes on it, this is of course how to demonstrate how to move a single VM.
But you can do it on any of your VMs, Windows, Linux, whatever.
And as you will see in a moment, the VM will pop up in the Oracle Linux Virtualization
Manager, so as you can see it finished.
And if we zoom in here, you will see a long ID come up, which was the ID of the VM we
moved.
We will edit it and give it some meaningful name, and then after that give it some network
and we will start it up and we will check to see if this is the VM that we moved.
Just a moment.
I will spin it up and we will log into it through the console.
And you will see just here, we'll click on here, and it is booting up.
And this is the process of moving a VM from Zen based to KVM.
Thank you.