Skip to contentSkip to conversation

KVM net bug

DISCUSSION José Antonio 3 participants 3 messages Jan 25, 2008 2 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi, First I'm sorry for my english.

I'm using kvm on

host: Debian GNU/Linux sid
host kernel: Linux enol 2.6.23-1-amd64 #1 SMP Fri Dec 21 12:00:17
UTC 2007 x86_64 GNU/Linux
kvm version 58+dfsg-2 (almost on Debian)
guest: Debian etch and Windows XP, although I think that problem is
on any guest
command: kvm -hda disk.img -net nic,macaddr=<valid mac> -net tap

I describe the problem on Debian: When I execute de kvm command the guest work but don't work the net because device eth0 don't exists instead of exists eth1 firstly eth2 when I shut down and later I boot the guest. Because of this my local net don't work.

Regards,

Signature · 13 lines
José A. Caro Leiva
Ingeniero Técnico de Sistemas
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
#2 lore raw
In reply to a message not in the archive
Quoted 12 lines · José Antonio

Hi, First I'm sorry for my english.

I'm using kvm on

host: Debian GNU/Linux sid
host kernel: Linux enol 2.6.23-1-amd64 #1 SMP Fri Dec 21 12:00:17
UTC 2007 x86_64 GNU/Linux
kvm version 58+dfsg-2 (almost on Debian)
guest: Debian etch and Windows XP, although I think that problem is
on any guest
command: kvm -hda disk.img -net nic,macaddr=<valid mac> -net tap

Quoted 5 lines

I describe the problem on Debian: When I execute de kvm command the guest work but don't work the net because device eth0 don't exists instead of exists eth1 firstly eth2 when I shut down and later I boot the guest. Because of this my local net don't work.

I'm having a hard time understanding your problem. Do you have an appropriate qemu-ifup script?

Regards,

Anthony Liguori

Quoted 3 lines

Regards,

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#4 lore raw
In reply to a message not in the archive

Hello,
when you have started the debian guest, take a look if this file exists:
/etc/udev/rules.d/z25_persistent-net.rules
if so, delete it, and reboot your guest. let the mac address always the same for that guest. Now you should have an eth0 interface.

I'm starting my debian guests like this:
kvm -hda apache.img -hdb apache_storage.img -m 1024 -boot c -smp 2 -net nic,vlan=0,macaddr=00:16:3e:00:00:01,model=rtl8139 -net tap -nographic -daemonize

For Windows I use:
kvm -no-acpi -m 1024 -boot c windows.img -net nic,vlan=0,macaddr=00:16:3e:00:00:41,model=rtl8139 -net tap -nographic -daemonize

Hope this helps,
Regards
Mike

Quoted 35 lines · Anthony Liguori
Quoted 12 lines · José Antonio

Hi, First I'm sorry for my english.

I'm using kvm on

host: Debian GNU/Linux sid
host kernel: Linux enol 2.6.23-1-amd64 #1 SMP Fri Dec 21 12:00:17
UTC 2007 x86_64 GNU/Linux
kvm version 58+dfsg-2 (almost on Debian)
guest: Debian etch and Windows XP, although I think that problem is
on any guest
command: kvm -hda disk.img -net nic,macaddr=<valid mac> -net tap

Quoted 6 lines

I describe the problem on Debian: When I execute de kvm command the guest work but don't work the net because device eth0 don't exists instead of exists eth1 firstly eth2 when I shut down and later I boot the guest. Because of this my local net don't work.

I'm having a hard time understanding your problem. Do you have an appropriate qemu-ifup script?

Regards,

Anthony Liguori

Quoted 4 lines

Regards,

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel