Topic Contributors
creator avatar  
mreschke
Matthew Reschke
Site Developer
Created: Feb 9th, 2009
Updated: Jun 26th, 2011
File
Download Selected (zip)
Download Selected (tar.gz)
Edit
Select All
Select None
View
Detail
Detail Preview
Icons
Preview
Show Hidden
Hide Hidden
Full Manager
Reset Defaults
preview
Screenshot-2.png
preview
Screenshot-3.png
preview
Screenshot.png
preview
Screenshot02.png
Open In New Tab
Open In New Window
List Archive Contents
Download File
Open
Download Folder (as .zip)
Kernel Virtual Machine (KVM)
Post # 128 permalink Topic #128 by mreschke on 2009-02-09 23:45:02 (viewed 864 times)

Very nice, KVM on ubuntu instructions
https://help.ubuntu.com/community/KVM

Remember, theres also VirtualBox which I do have running, and there is vmware which I also have running.

First attempt to virt vista
Installing Windows Vista Ultimate on a KVM Virtual Machine running on Ubuntu Hardy Heron 8.04

File
Download Selected (zip)
Download Selected (tar.gz)
Edit
Select All
Select None
View
Detail
Detail Preview
Icons
Preview
Show Hidden
Hide Hidden
Full Manager
Reset Defaults
preview
404k1920x1200
Screenshot-2.png
preview
447k1920x1200
Screenshot-3.png
preview
1,448k1920x1200
Screenshot.png
preview
171k800x600
Screenshot02.png

Check system[-][- -][++]

Check if CPU can virtualize (can it returns any results)

BASH Code Snippet
egrep '(vmx|svm)' --color=always /proc/cpuinfo
 

Check if you have a 64 CPU (is if it returns any results)

BASH Code Snippet
grep ' lm ' /proc/cpuinfo
 

Check if your running a 64 bit kernel

BASH Code Snippet
uname -m
 

Install KVM and qemu[-][- -][++]

Install

BASH Code Snippet
sudo apt-get install kvm libvirt-bin ubuntu-vm-builder qemu bridge-utils virt-viewer
 

Add user (must be normal user when run this command)

BASH Code Snippet
sudo adduser `id -un` libvirtd
 

Now must logout, and back in, or possibly reboot

Check if worked

BASH Code Snippet
virsh -c qemu:///system list
 

Add a new virtual machine OS[-][- -][++]

Make the Machine from your OS .iso

BASH Code Snippet
sudo virt-install --connect qemu:///system -n vista -r 1024 -f /home/Storage/kvm/machines/vista.qcow2 -s 20 -c /media/qserver/installers/Windows/OS/Windows\ Vista\ Ultimate\ SP1.iso --vnc --noautoconsole --os-type windows --os-variant vista
 

Start up the newly created machine

BASH Code Snippet
sudo apt-get install virt-viewer
virt-viewer -c qemu:///system vista
 

And vista installer popped up!

When I came back the next morning, the vista windows was closed (probably because of the vista installer reboot) So I ran the virt-viewer command above again, but it did not work, I got an error

Code Snippet
unable to find vnc graphics for vista

Also tryed

BASH Code Snippet
qemu /home/Storage/kvm/machines/vista.qcow2
 

Which did popup vista and start loading, even got the splash screen, but kept blue screening, and rebooting quicly. Tried save mode too, did not work.

Finally I

BASH Code Snippet
apt-get install virt-manager
virt-manager
 

It opened, it's a nice gui, there was my vista setup, I click run, and it started running, but no display (supposed to run in background). I right-clicked on vista and clicked open, and there it was again. I guess my settings for virt-viewer are wrong.

Read if you have virtualbox installed too, you may run into kernel module issues
http://ubuntu-tutorials.com/2008/06/08/kvm-and-virt-manager-on-ubuntu-804/
So to remove virtualbox module

BASH Code Snippet
sudo modprobe -r vboxdrv
 

Or to remove kvm modules (there is kvm-amd which is mine, kvm-intel, and just kvm)

BASH Code Snippet
sudo modprobe -r kvm-amd
 

.Screenshot_preview.png

And a few minutes later if found my HD
.Screenshot02_preview.png

Other[-][- -][++]

Check this, my ubuntu install, with compiz of course, running tons of programs, including Windows XP in a VirtualBox virtual machine, and installing Windows Vista in a KVM qemu Virtual Machine, heck yeah!!
.Screenshot-2_preview.png

Wow, I have a Athlon X2, 2.0Ghz with 4GB ddr2 800 and I have it maxed.
Currently, have 6 terminals open, firefox with about 50 tabs, gnome-system-monitor, VirtualBox running Windows XP and playing a 700MB .avi movie in media player, KMV virtual machine installing windows vista to same disk as root partition, and you can see my CPU is maxed out!

.Screenshot-3_preview.png