eth0 problems
Hello All,
I have just been able to compile the 0.6.0 version. Thanks for the help with the C Math library.
Not the problem is that I am still seeing the same problem with the eth0 interface.
When I run the qemu
qemu -user-net linux.img
I am getting:
SIOCSIFADDR: No such device
eth0: Unknown Inteface: No such device
I am using a standard install of Mandrake 10.0
How can I get qemu to see the network?
Thanks,
Lonnie
Quoted 17 lines · Lonnie Cumberland
Hello All,
I have just been able to compile the 0.6.0 version. Thanks for the help with the C Math library.
Not the problem is that I am still seeing the same problem with the eth0 interface.
When I run the qemu
qemu -user-net linux.img
I am getting:
SIOCSIFADDR: No such device
eth0: Unknown Inteface: No such device
Quoted 7 lines
I am using a standard install of Mandrake 10.0
How can I get qemu to see the network?
Thanks,
Lonnie
Check for existence of /etc/qemu-ifup. If exists, try renaming it.
Also, what is output of /sbin/ifconfig command?
-jm
No, the /etc/qemu-ifup does not exist and my host eth0 is there but the guest linux.img eth0 does not show. Only the "lo" loopback.
Quoted 45 lines · Joe Menola
Quoted 17 lines · Lonnie Cumberland
Hello All,
I have just been able to compile the 0.6.0 version. Thanks for the help with the C Math library.
Not the problem is that I am still seeing the same problem with the eth0 interface.
When I run the qemu
qemu -user-net linux.img
I am getting:
SIOCSIFADDR: No such device
eth0: Unknown Inteface: No such deviceQuoted 9 lines
I am using a standard install of Mandrake 10.0
How can I get qemu to see the network?
Thanks,
LonnieCheck for existence of
/etc/qemu-ifup. If exists, try renaming it.Also, what is output of
/sbin/ifconfigcommand?-jm
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 2 lines · Lonnie Cumberland
No, the
/etc/qemu-ifupdoes not exist and my host eth0 is there but the guest linux.img eth0 does not show. Only the "lo" loopback.
-user-net doesn't provide eth0 in your qemu host. It provides internet access only. To get full networking (eth0) you need to setup a tun device.
-jm
Quoted 10 lines · Joe Menola
Quoted 2 lines · Lonnie Cumberland
No, the
/etc/qemu-ifupdoes not exist and my host eth0 is there but the guest linux.img eth0 does not show. Only the "lo" loopback.-user-net doesn't provide eth0 in your qemu host. It provides internet access only. To get full networking (eth0) you need to setup a tun device.
-jm
Technically, tun doesn't provide eth0 for the host either. In fact, the kernel documentation says you need to have eth0 first, or else you cant use tuntap (that may no longer be true though, remember this is from the offical kernel docs :). tuntap provides a tun0/tap0 device in the host and an eth0 device in the guest. user net should provide an eth0 as well, but it won't add anything to the host.
If eth0 doesn't show, that may be due to lack of hardware support. Be sure your kernel has support for the ne2k-pci module.
user net isn't just for internet access .. the guest can still access the LAN or the WAN/intranet .. they just can't initiate a talk to it.
Quoted 5 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Quoted 18 lines · Jim C. Brown
Quoted 9 lines · Joe Menola
Quoted 2 lines · Lonnie Cumberland
No, the
/etc/qemu-ifupdoes not exist and my host eth0 is there but the guest linux.img eth0 does not show. Only the "lo" loopback.-user-net doesn't provide eth0 in your qemu host. It provides internet access only. To get full networking (eth0) you need to setup a tun device.
-jm
Technically, tun doesn't provide eth0 for the host either. In fact, the kernel documentation says you need to have eth0 first, or else you cant use tuntap (that may no longer be true though, remember this is from the offical kernel docs :). tuntap provides a tun0/tap0 device in the host and an eth0 device in the guest. user net should provide an eth0 as well, but it won't add anything to the host.
Quoted 6 lines
If eth0 doesn't show, that may be due to lack of hardware support. Be sure your kernel has support for the ne2k-pci module.
user net isn't just for internet access .. the guest can still access the LAN or the WAN/intranet .. they just can't initiate a talk to it.
You're correct...nor can network shares be accesed?
Thanks for the correction.
-jm
Quoted 7 lines · Joe Menola
Quoted 7 lines
Technically, tun doesn't provide eth0 for the host either. In fact, the kernel documentation says you need to have eth0 first, or else you cant use tuntap (that may no longer be true though, remember this is from the offical kernel docs :). tuntap provides a tun0/tap0 device in the host and an eth0 device in the guest. user net should provide an eth0 as well, but it won't add anything to the host.
Quoted 8 lines
Quoted 6 lines
If eth0 doesn't show, that may be due to lack of hardware support. Be sure your kernel has support for the ne2k-pci module.
user net isn't just for internet access .. the guest can still access the LAN or the WAN/intranet .. they just can't initiate a talk to it.
You're correct...nor can network shares be accesed?
Not sure. A node on the lan can't access shares on the user net guest, but the guest may be able to access shares on the node ... this depends on the protocol in question.
Windows shares have the additional complication that they have to be on the same subnet, although I am not familar with Windows XP and above so they may have removed this limitation (Samba removes this limitation if you set an option in its config file).
Quoted 4 lines
Thanks for the correction.
-jm
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Hello All,
I just looked at the kernel sources for my 2.6.3-7mdk kernel and TUN/TAP has already been compiled in as a module.
Although there is no /dev/net/tun0 listed or /dev/tun0 as well
Actually, on I do not even see the /dev/eth0 even though it is now working on my cable modem and the ifconfig show that it is there.
Any other ideas?
Thanks for the help,
Lonnie
Quoted 39 lines · Jim C. Brown
Quoted 10 lines · Joe Menola
Quoted 10 lines
Technically, tun doesn't provide eth0 for the host either. In fact, the kernel documentation says you need to have eth0 first, or else you cant use tuntap (that may no longer be true though, remember this is from the offical kernel docs :). tuntap provides a tun0/tap0 device in the host and an eth0 device in the guest. user net should provide an eth0 as well, but it won't add anything to the host.
If eth0 doesn't show, that may be due to lack of hardware support. Be sure your kernel has support for the ne2k-pci module.
Quoted 9 lines
Quoted 5 lines
user net isn't just for internet access .. the guest can still access the LAN or the WAN/intranet .. they just can't initiate a talk to it.
You're correct...nor can network shares be accesed?
Not sure. A node on the lan can't access shares on the user net guest, but the guest may be able to access shares on the node ... this depends on the protocol in question.
Windows shares have the additional complication that they have to be on the same subnet, although I am not familar with Windows XP and above so they may have removed this limitation (Samba removes this limitation if you set an option in its config file).
Quoted 5 lines
Thanks for the correction.
Quoted 4 lines · Lonnie Cumberland
I just looked at the kernel sources for my 2.6.3-7mdk kernel and TUN/TAP has already been compiled in as a module.
Although there is no
/dev/net/tun0listed or/dev/tun0as well
/dev/net/tun0 wont exist until module "tun" is loaded.
If you wish to setup a tun device, I've created a small and raw howto for my own use on what works for me. Should give you a decent start...
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
First off, kernel needs tun networking support compiled in and module loaded.
"eth0" =host device connected to lan
"/etc/rc.d/init.d" = path to init scripts
adjust as needed
Setup Masquerade
Run in terminal as root:
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #/etc/rc.d/init.d/iptables save
Sanity check
#/etc/rc.d/init.d/iptables start
#/etc/rc.d/init.d/iptables status
Rule "Chain POSTROUTING (policy ACCEPT)"
should contain:
"MASQUERADE all -- anywhere anywhere"
Create Ifup scripts
1- Create file: /etc/qemu-ifup
#!/bin/sh
sudo /sbin/ifconfig $1 <ip address>
sudo /etc/qemu-iptables
#end
2- #chmod 777 /etc/qemu-ifup
3- Create file /etc/qemu-iptables
#!/bin/sh/etc/rc.d/init.d/iptables stop
echo "1" >&/proc/sys/net/ipv4/ip_forward/etc/rc.d/init.d/iptables start
#/usr/sbin/dhcpd -q tun0
#end
4- #chmod 777 /etc/qemu-iptables
<<<<<<<<<<
Is there a way for me to tell if the TUN module has been compiled into this kernel?
I looked at the src for the kernel via the "make menuconfig" and it showed the TUN/TAP device as a Module. Also the module exists in the /lib/modules directory.
how can I load the tun module?
Thanks,
Lonnie
Quoted 67 lines · Joe Menola
Quoted 6 lines · Lonnie Cumberland
I just looked at the kernel sources for my 2.6.3-7mdk kernel and TUN/TAP has already been compiled in as a module.
Although there is no
/dev/net/tun0listed or/dev/tun0as well
/dev/net/tun0wont exist until module "tun" is loaded.If you wish to setup a tun device, I've created a small and raw howto for my own use on what works for me. Should give you a decent start...
First off, kernel needs tun networking support compiled in and module loaded.
"eth0" =host device connected to lan "
/etc/rc.d/init.d" = path to init scripts adjust as neededSetup Masquerade
Run in terminal as root:
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #/etc/rc.d/init.d/iptables saveSanity check
#/etc/rc.d/init.d/iptables start
#/etc/rc.d/init.d/iptables statusRule "Chain POSTROUTING (policy ACCEPT)" should contain:
"MASQUERADE all -- anywhere anywhere"Create Ifup scripts
1- Create file:
/etc/qemu-ifup#!/bin/sh
sudo/sbin/ifconfig$1 <ip address>
sudo/etc/qemu-iptables
#end2- #chmod 777
/etc/qemu-ifup3- Create file
/etc/qemu-iptables#!/bin/sh
/etc/rc.d/init.d/iptablesstop
echo "1" >&/proc/sys/net/ipv4/ip_forward/etc/rc.d/init.d/iptablesstart
#/usr/sbin/dhcpd -q tun0
#end4- #chmod 777
/etc/qemu-iptables
<<<<<<<<<<_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 9 lines · Lonnie Cumberland
Is there a way for me to tell if the TUN module has been compiled into this kernel?
I looked at the src for the kernel via the "make menuconfig" and it showed the TUN/TAP device as a Module. Also the module exists in the
/lib/modulesdirectory.how can I load the tun module?
#modprobe tun
To verify it's loaded
#lsmod
-jm