KVM Guest Management With Virt-Manager On Ubuntu 8.10

Similar documents
KVM Virtualization With Enomalism 2 On An Ubuntu 8.10 Server

Back Up/Restore Hard Drives And Partitions With CloneZilla Live

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

How To Convert Physical Systems And Xen VMs Into OpenVZ Containers (Debian Etch)

Cymmetria MazeRunner INSTALLATION GUIDE

Quick Start Guide. KVM Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

If you re not using Citrix XenCenter 6.0, your screens may vary.

VRX VIRTUAL REPLICATION ACCELERATOR

Parallel Programming

Quick Start Guide. Citrix XenServer Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS

Quick Start Guide. KVM Hypervisor. Bridge Mode (In-Line Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

Quick Start Guide. KVM Hypervisor. Router Mode (Out-of-Path Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

Comparative Bacterial Genomics

Installation and Setup Guide

VIRTUALBOX UBUNTU EBOOK

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

VRX VIRTUAL REPLICATION ACCELERATOR

Quick Start Guide. Citrix XenServer Hypervisor. Router Mode (Out-of-Path Deployment) Before You Begin SUMMARY OF TASKS

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Preparing Virtual Machines for Cisco APIC-EM

Preparing Virtual Machines for Cisco APIC-EM

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

Installing MediaWiki using VirtualBox

About the XenClient Enterprise Solution

RHEL 5 Essentials. Red Hat Enterprise Linux 5 Essentials

Fedora 12 Essentials

Xen: How to Convert An Image-Based Guest To An LVM-Based Guest

How to Install Oracle VM VirtualBox and Create a Virtual Machine

Setting Up U P D AT E D 1 / 3 / 1 6

Invirt: A Technical Overview

How to Use This Lab Manual

ElasterStack 3.2 User Administration Guide - Advanced Zone

How to Deploy a Barracuda NG Vx using Barracuda NG Install on a VMware Hypervisor

Title: Demonstrate the linux installation and administration settings.

BT Cloud Compute. Adding a Volume to an existing VM running Microsoft Windows

CTEC1863/2018F Bonus Lab Page 1 of 5

Tutorial for virtual machine creation and installation of Linux C4Sys iso file in Windows.

The Python Mini-Degree Development Environment Guide

Virtualization with colinux

Install ISE on a VMware Virtual Machine

PARALLELS SERVER 4.0 FOR MAC BARE METAL EDITION README

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

ECDS MDE 100XVB Installation Guide on ISR G2 UCS-E and VMWare vsphere Hypervisor (ESXi)

Labtainer Student Guide

CST VMWare Documentation

Sample: Computer Network. Contents

Fedora Core: Made Simple

Quick Start Guide to Compute Canada Cloud Service

Practical Exercises of Computer system security course

Creating a Virtual Network with Virt-manager

Installation and Setup Guide

ABOUT ZEPCAM SOFTWARE INSTALLATION MANAGEMENT AND BACKUPS. Description What is it Installation requirement Server requirement

F5 iworkflow and Linux KVM: Setup. Version 2.0.2

Build Nested Openstack. Using Ubuntu as BaseOS on BareMetal

Andrew Pullin, Senior Software Designer, School of Computer Science / x4338 / HP5165 Last Updated: October 05, 2015

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Cymmetria MazeRunner USER GUIDE

This is Lab Worksheet 7 - not an Assignment

Install ISE on a VMware Virtual Machine

CIS 76 Ethical Hacking Building an open source Pentest Sandbox, carrying out a Remote Code Execution exploit, and Remediating the RCE vulnerability.

BIG-IP Virtual Edition and Linux KVM: Setup. Version 12.1

Scrutinizer Virtual Appliance Deployment Guide Page i. Scrutinizer Virtual Appliance Deployment Guide. plixer

Lab Install Windows 8

Build your own NAS with OpenMediaVault

Creating and Controlling KVM Guests using libvirt

WA2503 Hadoop Programming on the. Hortonworks Data Platform. Lab Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Red Hat Enterprise Linux 8.0 Beta

Virtualization with SUSE Linux Enterprise 11 SP2 Lab

Andrew Pullin, Senior Software Designer, School of Computer Science / x4338 / HP5165 Last Updated: September 26, 2016

CIT 480: Securing Computer Systems. Operating System Concepts

Remote Access Via Remote Desktop

VIRTUALIZATION MANAGER SINGLE SERVER EDITION GETTING STARTED GUIDE

Install and Configure Ubuntu on a VirtualBox Virtual Machine

Installing SeisComP3

kernels-in-kernels kernels within kernels by Lee Elston Version 1.0 c CC-BY SA4

Install ISE on a VMware Virtual Machine

Using KVM On Ubuntu 7.10 (Gutsy Gibbon)

Get VirtualBox. VirtualBox/Ubuntu Setup. Go to and select Downloads.

Red Hat Virtualization 4.2

Upgrade Tool Guide. July

Start Up and Shutdown Procedures (Unix)

Ixia Developer KVM over CentOS deployment and configuration steps:

Download the current release* of VirtualBox for the OS on which you will install VirtualBox. In these notes, that's Windows 7.

How to Install Ubuntu on VirtualBox

Red Hat Network Satellite 5.0.0: Virtualization Step by Step

Getting Started with ESXi Embedded

How to Deploy an Oracle E-Business Suite System in Minutes Using Oracle VM Templates

Installation of the DigitalSystemsVM virtual machine

This is Lab Worksheet/Installation 7

VMWare Workstation Installation. Microsoft Windows Server 2008 Enterprise with Service Pack 2

Required Virtual Interface Maps to... mgmt0. virtual network = mgmt0 wan0. virtual network = wan0 mgmt1. network adapter not connected lan0

Lab - Install Windows 7 or Vista

Windows Subsystem for Linux Guide Documentation

Install ISE on a VMware Virtual Machine

Newsreader virtual machines Technical Report NWR

CHAPTER III PLANNING

Guideline for the installation of the free C-MOR Video Surveillance Virtual Machine on VirtualBox

Cloud and Datacenter Networking

Arabic Ubuntu Support

Transcription:

By Falko Timme Published: 2009-02-08 18:56 Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 02/05/2009 Virt-Manager (Virtual Machine Manager) is a graphical interface for managing KVM and Xen guests on the local and also on remote systems. You can use it to start, stop, pause, create, and delete guests, and you can connect to the guests using the graphical console. This guide shows how you can use it to manage KVM guests on an Ubuntu 8.10 desktop. I do not issue any guarantee that this will work for you! 1 Preliminary Note Make sure that you have a KVM host (can be on the same machine or on a remote system) that you can connect to using virt-manager. You can use this guide to set up KVM on an Ubuntu 8.10 host: Virtualization With KVM On Ubuntu 8.10. Creating guests is supported only if virt-manager is installed directly on the KVM host. 2 Installing Virt-Manager Open the Synaptic Package Manager (System > Administration > Synaptic Package Manager): Page 1 of 43

Type in your password: Page 2 of 43

In Synaptic, search for virt-manager... Page 3 of 43

... and virt-viewer and mark both packages for installation; click on Apply afterwards: Page 4 of 43

Confirm your selection by clicking on Apply again: Page 5 of 43

Afterwards, both packages and their dependencies are installed: Page 6 of 43

Click on Close afterwards and leave Synaptic: Page 7 of 43

2.1 Make Virt-Manager Run With root Privileges Normally virt-manager is run as a normal user (i.e., without root privileges). This is fine as long as you only want to start, stop, or pause KVM guests. If Page 8 of 43

you want to create or delete KVM guests (works only if KVM is installed on the same system!), virt-manager must be run with root privileges. If KVM is installed on the same system as virt-manager, and you want to create or delete KVM guests, open a terminal (Applications > Accessories > Terminal) and open the file /usr/bin/virt-manager: sudo gedit /usr/bin/virt-manager Insert the word sudo between exec and python so that the file looks as follows: #!/bin/sh exec sudo python "/usr/share/virt-manager/virt-manager.py" "$@" That's it - virt-manager will be executed with root privileges from now on. 3 Using Virt-Manager You can now start virt-manager (Applications > System Tools > Virtual Machine Manager): Page 9 of 43

Depending on if you have followed chapter 2.2, you are asked or not asked for your password. If you have followed chapter 2.2, but virt-manager doesn't start, open a terminal and start it as follows: Page 10 of 43

sudo virt-manager This is how virt-manager looks: Page 11 of 43

If your KVM host is on a remote system, you must connect to it - go to File > Open connection...: Page 12 of 43

Select QEMU and Remote tunnel over SSH and type in the hostname or IP address of the KVM host: Page 13 of 43

If this is the first time you're trying to connect to the remote KVM host, you must type in yes: Page 14 of 43

Next type in the root password of the KVM host. Page 15 of 43

(Please note that the root account must be enabled, and that root logins must be allowed on the remote system. If the remote system is an Ubuntu system, run Page 16 of 43

sudo passwd root to enable the root account; to check if root logins are allowed check the directive PermitRootLogin in /etc/ssh/sshd_config - you might have to restart the SSH daemon afterwards. ) You should now see a list of virtual machines running on the KVM host: Page 17 of 43

By right-clicking on a virtual machine, you can start/pause/stop it; if you select Details,... Page 18 of 43

... you will see something like this (performance graphs of the virtual machine). By clicking on the Hardware tab,... Page 19 of 43

... you can learn more about the "hardware" used by the virtual machine (and tweak some parameters): Page 20 of 43

You can connect to the virtual machine by going to View > Graphical Console: Page 21 of 43

Type in the root password of the KVM host (this will pop up only if it is a remote host): Page 22 of 43

And voilã, here's your virtual machine (in this example, it's a server vm, but of course, you can also install a desktop as a virtual machine). Click on the console to work in the virtual machine, and press CTRL+ALT to release the mouse pointer from the console: Page 23 of 43

Page 24 of 43

3.1 Creating Virtual Machines Creating guests on remote KVM hosts is not yet supported - you will see the following message when you click on the New button while the remote KVM Page 25 of 43

host is marked: Creating new gusts on remote connections is not yet supported. Page 26 of 43

If have therefore installed virt-manager on my KVM host as well to show you how to create a new virtual machine (if you want to do this, please make sure you have followed chapter 2.1!). Page 27 of 43

Right-click on localhost and select New: Page 28 of 43

The virtual machine creation wizard comes up - click on Forward: Page 29 of 43

Type in a name for your new virtual machine (e.g. vm7): Page 30 of 43

On the next screen, select Fully Virtualized (Paravirtualized should be greyed out anyway) as well as your CPU architecture. Pick kvm from the Hypervisor drop-down menu: Page 31 of 43

Select the installation method - normally you choose Local install media (ISO image or CDROM) here. Then select the operating system (e.g. Linux) and the variant (e.g. Ubuntu 8.10): Page 32 of 43

If you want to install from a CD or DVD, insert it, select CD-ROM or DVD and choose the CD from the drop-down menu. If you want to install from an ISO file, please specify the full path to the file: Page 33 of 43

Now we come to the storage space. You can either install the virtual machine in an image file (select Simple File)... Page 34 of 43

... or, if you have an unused partition or are using LVM and have some unallocated space in your volume group, you can specify a disk partition. Disk partitions are faster and not as IO-heavy as image files. Page 35 of 43

Let's assume you are using LVM and have some unallocated space in your volume group (e.g. vg0), then you can create a new logical volume (e.g. vm7) with a size of 4GB as follows: lvcreate -L4G -n vm7 vg0 Afterwards, you fill in /dev/vg0/vm7 in the Partition field: Page 36 of 43

After you've configured your storage type, you must configure the network - select Shared physical device (this will create a bridge so that the virtual machine will have a working network connection from the start on): Page 37 of 43

Next allocate some RAM and CPU(s) to the virtual machine: Page 38 of 43

Finally, there's a summary screen which lists all selected options. If they look ok, click on Finish to start the installation of the virtual machine: Page 39 of 43

A graphical console comes up in which you can install your new virtual machine (click on it to work in the virtual machine, and press CTRL+ALT to release the mouse pointer from the console): Page 40 of 43

Page 41 of 43

4 Links - KVM (Ubuntu Community Documentation): https://help.ubuntu.com/community/kvm Page 42 of 43

- Ubuntu: http://www.ubuntu.com/ Page 43 of 43