Virtio install Windows 7 KVM (x64/x86) on Ubuntu 10.04.1 Server via DNJL PPA

First of all setup DNJL PPA to upgrade KVM/QEMU up to Qemu 0.12.5 & Libvirt 0.8.3 on Ubuntu Lucid Server and download the most recent Fedora virtio-win drivers from http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin as floppy and ISO image. Notice , that same virt-install will run fine on KVM Server Ubuntu 10.10 due to required versions of Libvirt & Qemu appear to be installed by default.

root@ServerLNX:~# add-apt-repository ppa:dnjl/virtualization
Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /etc/apt/secring.gpg –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver keyserver.ubuntu.com –recv 5C1F788FDE6E8657FF5864FFD18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key “Launchpad ppa” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

Add to /etc/apt/sources.list

deb http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main
deb-src http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main

Save

# apt-get update
# apt-get upgrade

Check packages installed

root@ServerLNX:~# dpkg -l |grep qemu
ii kvm 1:84+dfsg-0ubuntu16+0.12.5+noroms+0ubuntu1.1~dnjl1~lucid0 dummy transitional pacakge from kvm to qemu-
ii qemu-common 0.12.5+noroms-0ubuntu1.1~dnjl1~lucid0 qemu common functionality (bios, documentati
ii qemu-kvm 0.12.3+noroms-0ubuntu9.2 Full virtualization on i386 and amd64 hardwa
root@ServerLNX:~# dpkg -l |grep libvirt
ii libvirt-bin 0.8.3-1ubuntu4+dnjl1~lucid0 the programs for the libvirt library
ii libvirt0 0.8.3-1ubuntu4+dnjl1~lucid0 library for interfacing with different virtu

Without step bellow i was unable to attach virtio-win-1.1.16.vfd as floppy before W7 (x64) KVM start up

root@ServerLNX:~# apt-get remove kvm qemu-kvm
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
kvm qemu-kvm ubuntu-virt-server
0 upgraded, 0 newly installed, 3 to remove and 3 not upgraded.
After this operation, 8,483kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database … 160403 files and directories currently installed.)
Removing kvm …
Removing ubuntu-virt-server …
Removing qemu-kvm …
qemu-kvm stop/waiting
Processing triggers for ureadahead …
ureadahead will be reprofiled on next reboot
Processing triggers for man-db …
root@ServerLNX:~# apt-get install kvm qemu-kvm
Reading package lists… Done
Building dependency tree
Reading state information… Done
=> The following extra packages will be installed:
=> libvdeplug2
The following NEW packages will be installed:
kvm libvdeplug2 qemu-kvm
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 2,969kB/2,985kB of archives.
After this operation, 8,536kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/universe libvdeplug2 2.2.3-3 [13.0kB]
Get:2 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-kvm 0.12.5+noroms-0ubuntu1.1~dnjl1~lucid0 [2,956kB]
Fetched 2,969kB in 10s (277kB/s)
Selecting previously deselected package libvdeplug2.
(Reading database … 160361 files and directories currently installed.)
Unpacking libvdeplug2 (from …/libvdeplug2_2.2.3-3_amd64.deb) …
Selecting previously deselected package qemu-kvm.
Unpacking qemu-kvm (from …/qemu-kvm_0.12.5+noroms-0ubuntu1.1~dnjl1~lucid0_amd64.deb) …
Selecting previously deselected package kvm.
Unpacking kvm (from …/kvm_1%3a84+dfsg-0ubuntu16+0.12.5+noroms+0ubuntu1.1~dnjl1~lucid0_amd64.deb) …
Processing triggers for ureadahead …
Processing triggers for man-db …
Setting up libvdeplug2 (2.2.3-3) …

Setting up qemu-kvm (0.12.5+noroms-0ubuntu1.1~dnjl1~lucid0) …
qemu-kvm start/running

Proceed with install W7 KVM on virtio bootup device

virt-install --name W7VIRT64 --ram 4096 --disk /dev/sda8,bus=virtio \
--disk /usr/tmp/virtio-win-1.1.16.vfd,device=floppy --os-variant win7 \
--cdrom /usr/tmp/Win7_64.iso --cpu 2












Set up virtio network driver




About these ads

2 Responses to Virtio install Windows 7 KVM (x64/x86) on Ubuntu 10.04.1 Server via DNJL PPA

  1. Phoenic says:

    I follow the instruction above but after I removed kvm, it cannot be installed anymore with dependencies error libsound2 (< 1.0.24.1). I am running on ubuntu 2.6.32-31-server and running 32-bit guest OS is fine until i removed kvm. Any help would be appreciated. Thanks in advance…C:

  2. Phoenic says:

    Never mind, after i upgrade to kernel 2.6.32-32-server, kvm can be reinstalled and I have successfully installed 64-bit Win7 guest on my 64-bit Lucid Lynx host…C:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: