Skip to contentSkip to conversation

slirp regression

Qemu-devel Avi Kivity 3 participants 9 messages Jul 2, 2009

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

Slirp now defaults to direct connection (no gateway) to 10.0.0.0/8, compared to 10.0.2.0/24 in the past. This renders my real 10.0.0.0/8 network inaccessible.

Also, NetworkManager in F11 isn't able to bind to the network - I have to dhclient manually. I don't know whether this is a regression or an F11 bug.

Signature · 1 line
error compiling committee.c: too many arguments to function
#1 lore raw
Quoted 7 lines · Avi Kivity

Slirp now defaults to direct connection (no gateway) to 10.0.0.0/8, compared to 10.0.2.0/24 in the past. This renders my real 10.0.0.0/8 network inaccessible.

Also, NetworkManager in F11 isn't able to bind to the network - I have to dhclient manually. I don't know whether this is a regression or an F11 bug.

Please post the corresponding pcap trace generated by "-net dump".

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#2 lore raw
Quoted 6 lines · Jan Kiszka
Quoted 4 lines · Avi Kivity

Slirp now defaults to direct connection (no gateway) to 10.0.0.0/8, compared to 10.0.2.0/24 in the past. This renders my real 10.0.0.0/8 network inaccessible.

Quoted 8 lines
Quoted 4 lines

Also, NetworkManager in F11 isn't able to bind to the network - I have to dhclient manually. I don't know whether this is a regression or an F11 bug.

Please post the corresponding pcap trace generated by "-net dump".

[avi@barcelona1 qemu-kvm (master)]$ q -m 1024 /images/F11.img -cdrom /home/avi/iso/linux/Fedora-11-x86_64-DVD.iso -net nic -net user -drive file=/dev/vg0/compile,if=virtio,cache=none -smp 8 -redir tcp:4444::22 -net dump
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
create_userspace_phys_mem: Bad file descriptor
kvm_cpu_register_physical_memory: failed

Looks like something is closing random file descriptors.

Signature · 1 line
error compiling committee.c: too many arguments to function
author
#3 lore raw
Quoted 26 lines · Avi Kivity
Quoted 11 lines · Jan Kiszka
Quoted 7 lines · Avi Kivity

Slirp now defaults to direct connection (no gateway) to 10.0.0.0/8, compared to 10.0.2.0/24 in the past. This renders my real 10.0.0.0/8 network inaccessible.

Also, NetworkManager in F11 isn't able to bind to the network - I have to dhclient manually. I don't know whether this is a regression or an F11 bug.

Please post the corresponding pcap trace generated by "-net dump".

[avi@barcelona1 qemu-kvm (master)]$ q -m 1024 /images/F11.img -cdrom /home/avi/iso/linux/Fedora-11-x86_64-DVD.iso -net nic -net user -drive file=/dev/vg0/compile,if=virtio,cache=none -smp 8 -redir
tcp:4444::22 -net dump
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
create_userspace_phys_mem: Bad file descriptor
kvm_cpu_register_physical_memory: failed

Quoted 2 lines

Looks like something is closing random file descriptors.

Simplifying the command line I do get a dump, attached. No dhcp packets there.

Signature · 1 line
error compiling committee.c: too many arguments to function
author
#5 lore raw
In reply to Avi Kivity
Quoted 3 lines · Avi Kivity

Looks like something is closing random file descriptors.

This fails:

q -m 1024 /images/F11.img -net nic -net user -redir tcp:4444::22
-net dump

But this succeeds:

q -m 1024 /images/F11.img -net nic -net user -net dump

Signature · 1 line
error compiling committee.c: too many arguments to function
#6 lore raw
Quoted 5 lines · Avi Kivity
Quoted 3 lines · Avi Kivity

Looks like something is closing random file descriptors.

Quoted 9 lines

This fails:

   q -m 1024 /images/F11.img  -net nic -net user -redir tcp:4444::22 

-net dump

But this succeeds:

q -m 1024 /images/F11.img -net nic -net user -net dump

Does -net user,hostfwd=tcp::4444-:22 work for you? I will check the legacy path later.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#4 lore raw
In reply to Avi Kivity
Quoted 28 lines · Avi Kivity
Quoted 27 lines · Avi Kivity
Quoted 11 lines · Jan Kiszka
Quoted 7 lines · Avi Kivity

Slirp now defaults to direct connection (no gateway) to 10.0.0.0/8, compared to 10.0.2.0/24 in the past. This renders my real 10.0.0.0/8 network inaccessible.

Also, NetworkManager in F11 isn't able to bind to the network - I have to dhclient manually. I don't know whether this is a regression or an F11 bug.

Please post the corresponding pcap trace generated by "-net dump".

[avi@barcelona1 qemu-kvm (master)]$ q -m 1024 /images/F11.img -cdrom /home/avi/iso/linux/Fedora-11-x86_64-DVD.iso -net nic -net user -drive file=/dev/vg0/compile,if=virtio,cache=none -smp 8 -redir tcp:4444::22 -net dump
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
kvm_create_vcpu: Bad file descriptor
create_userspace_phys_mem: Bad file descriptor kvm_cpu_register_physical_memory: failed

Quoted 5 lines
Quoted 2 lines

Looks like something is closing random file descriptors.

Simplifying the command line I do get a dump, attached. No dhcp packets there.

Hmm, I'm not sure ATM if the previous netmask was /24, but I will check again and fix the defaults if required.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#7 lore raw
In reply to Jan Kiszka
Quoted 5 lines · Jan Kiszka
Quoted 5 lines

This fails:

    q -m 1024 /images/F11.img  -net nic -net user -redir tcp:4444::22

-net dump

Quoted 10 lines
Quoted 5 lines

But this succeeds:

q -m 1024 /images/F11.img -net nic -net user -net dump

Does -net user,hostfwd=tcp::4444-:22 work for you? I will check the legacy path later.

It does.

Signature · 1 line
error compiling committee.c: too many arguments to function
#8 lore raw
Quoted 12 lines · Avi Kivity
Quoted 11 lines · Jan Kiszka
Quoted 10 lines

This fails:

    q -m 1024 /images/F11.img  -net nic -net user -redir tcp:4444::22

-net dump

But this succeeds:

q -m 1024 /images/F11.img -net nic -net user -net dump

Quoted 7 lines
Quoted 4 lines

Does -net user,hostfwd=tcp::4444-:22 work for you? I will check the legacy path later.

It does.

Confirmed and found. That was an interesting bug - a kvm kernel bug! Patches for the latter and a workaround for userland will follow.

Jan