Skip to contentSkip to conversation

installing kvm on debian 4.0 r0

DISCUSSION Koen de Jonge 3 participants 5 messages Aug 17, 2007 – Aug 19, 2007 3 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi All,

Below is how I installed kvm-35 on my debian etch installation, it may be included in the wiki :)

I installed the amd64 version of debian 4.0 r0 on my amd4800+ I did all 'apt-get update' and 'apt-get upgrade' steps to get the system updated with all latest patches.
And off course I did 'apt-get install linux-image-2.6-amd64 to get the 2.6.18-5-amd64 kernel.

I then used these to make the system workable:
apt-get install openssh-server
apt-get install sudo

Then I used these as prerequisite packages for kvm:
apt-get install gcc-3.4
apt-get install libsdl1.2-dev
apt-get install zlibc
apt-get install zlib1g-dev
apt-get install uuid-dev
apt-get install linux-kernel-headers apt-get install libasound2-dev

I then downloaded kvm-35 and did:
tar zxf kvm-35.tar.gz
cd kvm-35
./configure --prefix=/usr/local/kvm
make
make install
modprobe kvm-amd

I then wanted to test the i386 debian netinstall iso doing this:
/usr/local/kvm/bin/qemu-img create -f qcow test.img 2G /usr/local/kvm/bin/qemu-system-x86_64 -hda test.img -cdrom debian-40r0-i386-netinst.iso -boot d -m 265

It was very, very fast, even better than using ubuntu 7.04 but that wasn't a fully 64 bit host os, and this debian is.

Are you developers interested in warnings like these? /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_newtcpcb':
/root/kvm-35/qemu/slirp/tcp_subr.c:210: warning: cast from pointer to integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_close':
/root/kvm-35/qemu/slirp/tcp_subr.c:286: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:288: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:290: warning: cast to pointer from integer of different size

Greetz,
Koen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 46C5FB67.7040301-OoqVcbiag8BWk0Htik3J/[email protected]

#2 lore raw
Quoted 15 lines · Koen de Jonge

Hi All,

Below is how I installed kvm-35 on my debian etch installation, it may be included in the wiki :)

I installed the amd64 version of debian 4.0 r0 on my amd4800+ I did all 'apt-get update' and 'apt-get upgrade' steps to get the system updated with all latest patches.
And off course I did 'apt-get install linux-image-2.6-amd64 to get the 2.6.18-5-amd64 kernel.

I then used these to make the system workable:
apt-get install openssh-server
apt-get install sudo

Quoted 8 lines

Then I used these as prerequisite packages for kvm:
apt-get install gcc-3.4
apt-get install libsdl1.2-dev
apt-get install zlibc
apt-get install zlib1g-dev
apt-get install uuid-dev
apt-get install linux-kernel-headers apt-get install libasound2-dev

Installing on another machine (with no X and no nvidia card I noticed I also needed):

apt-get install kernel-package
apt-get install linux-headers-2.6-amd64

I allready installed these getting my X to work.

Quoted 33 lines

I then downloaded kvm-35 and did:
tar zxf kvm-35.tar.gz
cd kvm-35
./configure --prefix=/usr/local/kvm
make
make install
modprobe kvm-amd

I then wanted to test the i386 debian netinstall iso doing this:
/usr/local/kvm/bin/qemu-img create -f qcow test.img 2G /usr/local/kvm/bin/qemu-system-x86_64 -hda test.img -cdrom debian-40r0-i386-netinst.iso -boot d -m 265

It was very, very fast, even better than using ubuntu 7.04 but that wasn't a fully 64 bit host os, and this debian is.

Are you developers interested in warnings like these? /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_newtcpcb':
/root/kvm-35/qemu/slirp/tcp_subr.c:210: warning: cast from pointer to integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_close':
/root/kvm-35/qemu/slirp/tcp_subr.c:286: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:288: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:290: warning: cast to pointer from integer of different size

Quoted 3 lines

Greetz,
Koen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 46C715F5.80601-OoqVcbiag8BWk0Htik3J/[email protected]

#4 lore raw
Quoted 12 lines · Koen de Jonge
Quoted 4 lines

I then used these to make the system workable:
apt-get install openssh-server
apt-get install sudo

Quoted 8 lines

Then I used these as prerequisite packages for kvm:
apt-get install gcc-3.4
apt-get install libsdl1.2-dev
apt-get install zlibc
apt-get install zlib1g-dev
apt-get install uuid-dev
apt-get install linux-kernel-headers apt-get install libasound2-dev

Quoted 5 lines

Installing on another machine (with no X and no nvidia card I noticed I also needed):

apt-get install kernel-package
apt-get install linux-headers-2.6-amd64

Since Debian has a KVM package you can do:

apt-get build-dep kvm

which should cover all the dependencies.

Luca

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 68676e00708180944l2db80c12ycd073d0804647bbb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw
Quoted 22 lines · Luca
Quoted 13 lines · Koen de Jonge
Quoted 4 lines

I then used these to make the system workable:
apt-get install openssh-server
apt-get install sudo

Quoted 9 lines

Then I used these as prerequisite packages for kvm:
apt-get install gcc-3.4
apt-get install libsdl1.2-dev
apt-get install zlibc
apt-get install zlib1g-dev
apt-get install uuid-dev
apt-get install linux-kernel-headers apt-get install libasound2-dev

Quoted 6 lines

Installing on another machine (with no X and no nvidia card I noticed I also needed):

apt-get install kernel-package
apt-get install linux-headers-2.6-amd64

Quoted 6 lines

Since Debian has a KVM package you can do:

apt-get build-dep kvm

which should cover all the dependencies.

You are right, but, well, that package is in the unstable tree.

Of course kvm is not exactly 'stable' but still, I see no reason to activate unstable in /etc/apt/sources.list if that only provides you with a very old version that is also not stable.

Here is the page about it:
http://packages.debian.org/unstable/misc/kvm

It is being maintained by Baruch Even <mailto:[email protected]> and Leonard Norrgård <mailto:[email protected]>.

Latest release (kvm-28) is dated june 21st, and that is almost 2 months ago.

Thursday Jim Paris asked to update to kvm-35:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=438412

Koen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#7 lore raw
In reply to a message not in the archive
Quoted 3 lines · Koen de Jonge

It was very, very fast, even better than using ubuntu 7.04 but that wasn't a fully 64 bit host os, and this debian is.

It's probably due to ubuntu 7.04 using a very old version of kvm.

Quoted 7 lines

Are you developers interested in warnings like these? /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_newtcpcb':
/root/kvm-35/qemu/slirp/tcp_subr.c:210: warning: cast from pointer to integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c: In function `tcp_close':
/root/kvm-35/qemu/slirp/tcp_subr.c:286: warning: cast to pointer from integer of different size

Quoted 9 lines

/root/kvm-35/qemu/slirp/tcp_subr.c:288: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:289: warning: cast to pointer from integer of different size /root/kvm-35/qemu/slirp/tcp_subr.c:290: warning: cast to pointer from integer of different size

These are qemu issues, send patches to qemu-devel.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/