Michael Tokarev wrote:
Gary Dale wrote:
Michael Tokarev wrote:
Gary Dale wrote:
Package: qemu-kvm
Followup-For: Bug #572784
Networking starts only on the first time that I start an XP virtual
machine after a reboot of the actual machine. If I subsequently restart
the virtual machine, or the XP instance within it, the network only
comes up enough for me to connect to my Samba server. I can't get
out to the Internet or ping some machines on my network.
Gary, can you please describe why do you think your problem is
the same as #572784?
[]
My problem looked similar based on the subject line.
My qemu-kvm command line is
kvm -cpu phenom -enable-kvm -vga std -localtime -hda
~/.virt/windowsxp/windows.qcow -m 1G
Aha. So it is user-mode networking.
Gary, that's.. difficult. The thing is, there is no way
I can think of the situation you describe. With user-mode
networking, kvm is just a normal user-space process, like
your web browser etc. You restart it, and it acts the same
way as before -- unless something else started on your host
which prevents it from working correctly.
Which unfortunately it doesn't. To make matters worse, it sometimes
doesn't start even after a reboot of my physical machine - which is also
what the original bug report contained. However so far as I have
observed, it never survives a reboot of my virtual OS.
My virtual machine is running Windows XP/Pro with SP3 and all the later
patches. I have very little else on it other than Pinnacle Studio 9.
My main board is a Gigabyte GA-MA790GP-UD4H with a Realtek 8111C NIC
onboard. I'm connecting to a Linksys WRT610N router which provides dhcp
services while my Samba server is running Debian/Lenny.
This is all not really relevant. Note that with user-mode net
in kvm, the dhcp server used is built-in to kvm, not any your
local one. It provides fixed ip address - 10.2.2.2 if memory
serves me right. See http://www.linux-kvm.org/page/Networking
for additional networking options.
Yes, the address 10.0.2.15 is given by KVM on my setup, with 10.0.2.2 as
the default gateway.
I've read the kvm networking page but it is not a model of clarity. I
can't even always tell where one subsection ends and another begins. The
different use cases simply confuse things. From my reading there are
simply two options - to use the user networking or to use a bridge.
There are then some options for setting up and configuring a bridge.
My /etc/network/interfaces file is:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
mapping eth1
script grep
map eth1
iface eth0 inet manual
auto br0
iface br0 inet dhcp
pre-up /usr/sbin/tunctl -u garydale -t tap0
pre-up ifconfig tap0 up
bridge_ports all tap0
post-down ifconfig tap0 down
post-down tunctl -d tap0
Note that you almost completed bridged networking setup
for kvm for non-root user, only the kvm command line is
missing.
Please check your networking setup, and if you still
has the issue please file a new bug. Thanks.
/mjt
Since it sometimes works, I'm not sure what is missing. The kvm
networking page doesn't mention any special options for the kvm command
line using a public bridge with option 1. I've tried adding the options
-net tap alone and in combination with -net nic,macaddr= using the tap0
mac address and also a made-up mac address. Neither worked. -net tap by
itself even prevents the virtual machine from starting.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org