I 've looked through the docs and googled the heck out of this list and the 
'net, but can't find a single working example of a slip setup.  
I need to use slip because I am running the UML in a VPS (with no kernel 
tun/tap support, exactly the situation pointed out in the docs as the only 
reason to use slip)
There's a lot of commentary about how slip was the first way UML was connected 
to the 'net and how it has drawbacks, but unfortunately the examples present in 
the documentation make a lot of assumptions about the host.  I get the feeling 
the author genuinely believed that using slip was a bad thing, and so avoided 
giving a useful example as a way of discouraging its use.

Here's my config so far (all taken from the docs, but not verbatim, as it would 
collide with my upstream router)
#HOST ./linux-2.6.24-rc7 ubda=Fedora.cow,FedoraCore5-x86-root_fs 
eth0=slip,192.168.0.1
[... loading noise...]
[r...@localhost ~]# dmesgLinux version 2.6.24-rc7-dirty 
(jd...@tp.user-mode-linux.org) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)) 
#97 Mon Jan 7 11:18:24 EST 2008[...snip...]net_namespace: 64 bytesUsing 2.6 
host AIONET: Registered protocol family 16NET: Registered protocol family 
2Time: itimer clocksource has been installed.Switched to high resolution mode 
on CPU 0IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP 
established hash table entries: 2048 (order: 2, 16384 bytes)TCP bind hash table 
entries: 2048 (order: 1, 8192 bytes)TCP: Hash tables configured (established 
2048 bind 2048)TCP reno registeredChecking host MADV_REMOVE 
support...<3>MADV_REMOVE failed, err = -38Can't release memory to the host - 
memory hotplug won't be supportedmconsole (version 2) initialized on 
/root/.uml/wOqluE/mconsole[...snip...]TCP cubic registeredNET: Registered 
protocol family 1NET: Registered protocol family 17Initialized stdio console 
driverConsole initialized on /dev/tty0console [tty0] enabledInitializing 
software serial port version 1Choosing a random ethernet address for device 
eth0Netdevice 0 (66:35:f6:cf:fb:ab) : SLIP backend - SLIP IP = 
192.168.0.1console [mc-1] enabled[...snip...]Setting slip line discipline: 
Invalid argumentuml_net : waitpid process 15689 failed, errno = 10slip_tramp 
failed - err = 10
[r...@localhost ~]# ifconfiglo        Link encap:Local Loopback            inet 
addr:127.0.0.1  Mask:255.0.0.0          UP LOOPBACK RUNNING  MTU:16436  
Metric:1          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 
txqueuelen:0           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[r...@localhost ~]# ifconfig eth0 upSetting slip line discipline: Invalid 
argumentuml_net : waitpid process 27924 failed, errno = 10get_ifname failed, 
err = 22SIOCSIFFLAGS: Invalid argument[r...@localhost ~]# routeKernel IP 
routing tableDestination     Gateway         Genmask         Flags Metric Ref   
 Use Iface169.254.0.0     *               255.255.0.0     U     0      0        
0 lo
[from the docs, 2 steps to configure the interface for slip, albeit not 
explicitly given.]
[r...@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0ONBOOT=yesIPADDR=192.168.0.100GATEWAY=192.168.0.1NETMASK=255.255.255.0
[r...@localhost ~]# halt
#HOST ifconfig sl0 192.168.0.1 pointopoint 192.168.0.100 upSIOCSIFADDR: No such 
devicesl0: unknown interface: No such deviceSIOCSIFDSTADDR: No such devicesl0: 
unknown interface: No such devicesl0: unknown interface: No such device
Best guess at this point is I'm missing something here to create the virtual 
slip network interface, and possibly the other portion is failing because it is 
not present, but the errors are not so helpful.  "Setting slip line discipline: 
Invalid argument" "uml_net : waitpid process 27924 failed, errno = 10" 
"get_ifname failed, err = 22" "SIOCSIFFLAGS: Invalid argument" - sounds like 
the guest side (or echoing the host side, vague) was unable to find the slip 
interface.

                                          
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to