Package: qemu
Version: 0.6.1-1
Severity: normal

I tried to configure qemu network using tun/tap device. I wanted to have
full access to my network from the emulated system so I configured a bridge
device in my kernel using bridge device module and bridge-utils. It runs
perfectly well using kernel-image-2.6.8-1-686(using a slightly modified
version of /etc/qemu-ifup script which you can look up below) but having a 
pentium 4 -
HT I normally use the smp enabled kernel-image
(kernel-image-2.6.8-1-686-smp). With a smp enabled kernel if you have
your tun device added to a bridge a crash
occures just before you shut down your emulated environment (f.g if you
run windows 98 and shut it down using the start button but other don't
make a difference).
A workaround I found is to manually delete the tun device from the
bridge setup just before you shut qemu:
# brctl delif br0 tun0 
If you forget to do so your system will crash.
It might be it's more general issue or perhaps it's only related to the
current kernel-images shipped. Or there's a need for a /etc/qemu-ifdown
script to be present or invoked before the application goes down.

Here's my slightly modified /etc/qemu-ifup script to automatically  bring the 
virtual interface up with my bridge:
#!/bin/sh
#sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1 up
sudo -p "Password for $0:" /sbin/ifconfig $1 up ; brctl addif br0 tun0

and below I attach my /etc/network/interfaces config:

auto lo
iface lo inet loopback

# This entry was created during the Debian installation
auto eth0
iface eth0 inet manual
address 192.168.1.12
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.243
auto br0
iface br0 inet static
address 192.168.1.12
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.243
bridge_ports eth0


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-pentium4
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages qemu depends on:
ii  bochsbios     2.1.1+20041109-2           BIOS for the Bochs emulator
ii  libc6         2.3.2.ds1-20               GNU C Library: Shared libraries an
ii  libsdl1.2debi 1.2.7+1.2.8cvs20041007-4.1 Simple DirectMedia Layer
ii  sharutils     1:4.2.1-11                 shar, unshar, uuencode, uudecode
ii  vgabios       0.4c+20041014-1            VGA BIOS software for the Bochs an
ii  zlib1g        1:1.2.2-3                  compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to