Virtualization With KVM On Ubuntu 8.10
Virtualization With KVM On Ubuntu 8.10Version 1.0 This guide explains how you can install and use KVM for creating and running virtual machines on an Ubuntu 8.10 server. I will show how to create image-based virtual machines and also virtual machines that use a logical volume (LVM). KVM is short for Kernel-based Virtual Machine and makes use of hardware virtualization, i.e., you need a CPU that supports hardware virtualization, e.g. Intel VT or AMD-V. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI'm using a machine with the hostname server1.example.com and the IP address 192.168.0.100 here as my KVM host. Because we will run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right now by typing sudo su
2 Installing KVM And vmbuilderFirst check if your CPU supports hardware virtualization - if this is the case, the command egrep '(vmx|svm)' --color=always /proc/cpuinfo should display something, e.g. like this: root@server1:~# egrep '(vmx|svm)' --color=always /proc/cpuinfo If nothing is displayed, then your processor doesn't support hardware virtualization, and you must stop here. To install KVM and vmbuilder (a script to create Ubuntu-based virtual machines), we run apt-get install ubuntu-virt-server python-vm-builder Afterwards we must add the user as which we're currently logged in (root) to the group libvirtd: adduser `id -un` libvirtd You need to log out and log back in for the new group membership to take effect. To check if KVM has successfully been installed, run virsh -c qemu:///system list It should display something like this: root@server1:~# virsh -c qemu:///system list If it displays an error instead, then something went wrong. Next we need to set up a network bridge on our server so that our virtual machines can be accessed from other hosts as if they were physical systems in the network. To do this, we install the package bridge-utils... apt-get install bridge-utils ... and configure a bridge. Open /etc/network/interfaces: vi /etc/network/interfaces Before the modification, my file looks as follows:
I change it so that it looks like this:
(Make sure you use the correct settings for your network!) Restart the network... /etc/init.d/networking restart ... and run ifconfig It should now show the network bridge (br0): root@server1:~# ifconfig
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
15 hours 35 min ago
17 hours 4 min ago
20 hours 38 min ago
23 hours 32 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 6 hours ago