From the course: Migrate VMware Virtual Machines to AWS: Agent-Based and Agentless Strategies
Installing the agent - Amazon Web Services (AWS) Tutorial
From the course: Migrate VMware Virtual Machines to AWS: Agent-Based and Agentless Strategies
Installing the agent
- [Instructor] In the previous video, we downloaded an agent that we're going to use to replicate the contents of this virtual machine up to the Amazon cloud. So now we need to install that agent. So let's go ahead and get started. Now before I open up the terminal, you'll notice that there's a new icon on the desktop, and that icon is for a file called Access Key.txt. I'll go ahead and open that up. So as you can see, this file is just a text file containing my access key and my secret access key. I created this file early on in the course. Now you don't necessarily have to use this file if you don't want to. This is just something I created to make my life easier because it's a lot easier to copy and paste these keys than to type them and try not to make a mistake along the way. So with that said, let's go ahead and open up the terminal. Now I downloaded the agent to a folder called Agent. So I'm going to type cd Agent and press Enter, and that will take me into the Agent folder. And now if I type dir and press Enter, you can see the Agent file. So let's go ahead and install the agent. The way that we do this is by typing sudo chmod +x aws-replication-installer-init ; sudo ./ aws-replication-installer-init. And I'll press Enter. And now I'm prompted to enter my local machine password. I'll do that now. And then I see a message saying that the installation of the AWS Replication Agent has started, and I'm prompted to enter the AWS region name. Now, as you recall, when we initialized the application migration service, we had to do that for a specific region. Likewise, when we downloaded the agent, we had to download it from a particular region. So the region name that you enter here has to match the region name associated with the application migration service and the agent. So in my case, that's us-east-1. I'll go ahead and type that. And if you're in a different region, you would obviously want to type the region that's appropriate for you. I'll go ahead and press Enter. And now I'm prompted to enter my AWS access key. So I'm going to switch over to that text file and I'll select my access key, right click and choose Copy. And then I'll go back to the terminal and right click and choose Paste and press Enter. Now I have to do the same thing for my secret key. So I'll switch back to my text file, I'll select the secret key, and right click and choose Copy. And then go back to the terminal and right click and choose Paste and press Enter. Now I'm asked to choose the volumes that I want to replicate. Typically, if you're going to be migrating a virtual machine to the cloud, it's a good idea to replicate all of the volumes. And the easiest way to do that is to just press Enter, so that's what I'm going to do now. And you see a message saying that the script is downloading the AWS Replication Agent onto the source server. And that might seem a little odd being that we already downloaded the agent in the previous video, but really what's going on is that the agent that we downloaded is being decompressed. So once that finishes, we move into a phase where the Replication Agent is being installed onto the server, and this process can take quite a while to complete. And after several minutes, the process finishes and our agent is now successfully installed.