Virtualization With KVM On Ubuntu 9.04
Virtualization With KVM On Ubuntu 9.04Version 1.0 This guide explains how you can install and use KVM for creating and running virtual machines on an Ubuntu 9.04 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 aptitude install ubuntu-virt-server python-vm-builder General type of mail configuration: <-- Internet Site 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... aptitude 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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning




print: 

Recent comments
9 hours 38 min ago
11 hours 39 min ago
14 hours 51 min ago
17 hours 10 min ago
18 hours 20 min ago
19 hours 38 min ago
23 hours 42 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 18 hours ago