• Books
  • Movies
  • Sports
    • Football
    • Hockey
  • Tech
    • Apps
    • Networking
    • Virtualization
    • Linux
      • CentOS
      • Ubuntu
    • MacOS
    • Microsoft
  • Recipes
  • Family
  • About
  • Home.Lab Project
    • Home.Lab Hardware
      • Storage CentOS Server (Phoenix)
      • Centos Hypervisor (Cyclops)
      • CentOS Hypervisor (Wolverine)
      • Homegrown SuperMicro ESXi Hypervisor (Deadpool)
    • Networking
      • Hypervisor Network
      • Juniper SSG5 Configuration
      • Security Zone Configuration
    • Virtual Machines
      • Black Widow (RHEL 6.4)
    • Hypervisor Technologies
    • Tutorials
      • Creating an iSCSI Target in CentOS 6.4
      • Managing Linux Hypervisors through Windows
Home » Tech » Apps » Managing Linux Hypervisors through Windows

Managing Linux Hypervisors through Windows

Posted on July 23, 2013 by Vitaly Posted in Apps, CentOS, Linux, Networking, Tech, Ubuntu, Virtualization

One of the pitfalls with using Windows as a workstation (which I need to as my wife uses the same machine – we consolidated into one machine) is that you cannot run virt-manager to handle your virtual machines. Additionally, the ESXi VMWare client only runs natively on Windows, so you must have at least one Windows machine, either hardware or virtualized. So what I will do is fire up a workstation (I will use Ubuntu as it has a lot of packages in its repos) and the install virt-manager on that machine. Not much horsepower is needed for this machine, just a GUI. I used a default Ubuntu distro (12.10), with 2 cores, and 2GB of RAM.

I won’t go through the steps on install Ubuntu as that for the most part is a next ~> next type of installer (as is common for many GUI based OS installs today). What we’re going to cover are the following steps:

  1. Install virt-manager package on our Ubuntu desktop
  2. Create SSH root keys
  3. Copy the SSH keys to the hypervisors we want to manage using ssh-copy-id

Installing Virt-Manager
In Ubuntu, this is as simple as opening a terminal window and typing in

apt-get install virt-manager

Accept the prompts and off you go.

Create SSH root keys
The reason we are going to create these keys is that we are going to copy them to the hypervisors, so that if we need to SSH into them,  we will login automatically, instead of entering credentials each time. Additionally, since virt-manager uses SSH to communicate with hypervisors, it will not ask for credentials each time it wishes to connect to a hypervisor. To create your SSH keys, simply enter

ssh-keygen

and accept all the prompts (or enter values for prompts if you would like – either way the key is secure, although the null method is said to be a potential loophole – I would use a small phrase, 10-30 chars in length, such as ‘a man a plan a canal panama’).

Copy the SSH keys to the hypervisors
Once you have the key created, you can copy the keys from the machine (and user you are logged in as) to the target machine by entering

ssh-copy-id account@target
#example
ssh-copy-id root@wolverine.home.lab

The target system will prompt you for the root password. Once this is completed, this will permit your currently logged in account to login to the hypervisor as root automatically. Simply type ssh wolverine.home.lab and you login as root automatically without a credential check.

Obviously please be careful with this machine, as that has carte blanche to your hypervisors and can be very dangerous if compromised. If you will be using this machine to manage your hypervisors, you may want to isolate this machine for this specific purpose, and perhaps disable internet access (or even its gateway).

You will find using virt-manager as not only an excellent tool for keeping an eye on your machines, but also for creating and moving machines (the one-step migrate feature is tremendous). More on that in its own page.

Virt1

« Security Zone Configuration
Creating an iSCSI Target in CentOS 6.4 »

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Around the Way

July 2013
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Apr   Aug »

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass

Old School

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Archives

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass
© Chubby Apple