You are using a modular kernel but you haven't added the modules to the 
filesystem image.
Your options:
* use a static kernel (like the ones on my site - let me know if these 
do not work for you)
* loop mount the image and add the modules

Maren Peasley wrote:
> Hello,
> 
> I am attempting to setup several Damn Small Linux (DSL) instances to
> run within a DSL host.  I am successful in launching and running
> instances (guests) of DSL, but I cannot bring an Ethernet interface up
> on the guest.
> 
> My procedure follows:
> 
> 1) Download current.iso from one of DSL's mirrors (this was not more
> than a week ago - I don't have an exact date),
> 2) Install this to a spare machine via hd-install script,
> 3) Download DSL from Antoine Martin's page (http://uml.nagafix.co.uk/):
> http://uml.nagafix.co.uk/DSL-2.2/
> 4) Unpack, then copy this to the system running DSL,
> 5) Run this command-line in the host DSL to start UML:
> /linux-2.6.19-rc5 ubda=DSL-2.2-root_fs mem=128M 
> eth0=ethertap,tap0,,10.11.12.13
> 6) Receive the following output (ends with "END OF UML OUTPUT") (I ran
> this script to trim shell control characters:
> cat output.txt | sed 's/^[[^m]*m//g' | sed 's/^H//g' > out2.txt
> ):
> 
> 
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...missing
> Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm
> Checking PROT_EXEC mmap in /tmp/...OK
> Checking if syscall restart handling in host can be skipped...OK
> Checking for the skas3 patch in the host:
>   - /proc/mm...not found
>   - PTRACE_FAULTINFO...not found
>   - PTRACE_LDT...not found
> UML running in SKAS0 mode
> Linux version 2.6.19-rc5 ([EMAIL PROTECTED]) (gcc version
> 4.1.1 20060525 (Red Hat 4.1.1-1)) #24 Wed Nov 8 12:05:48 EST 2006
> Built 1 zonelists.  Total pages: 32512
> Kernel command line: ubda=DSL-2.2-root_fs mem=128M
> eth0=ethertap,tap0,,10.11.12.13 root=98:0
> PID hash table entries: 512 (order: 9, 2048 bytes)
> Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
> Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Memory: 126720k available
> Mount-cache hash table entries: 512
> Checking for host processor cmov support...Yes
> Checking for host processor xmm support...No
> Checking that host ptys support output SIGIO...Yes
> Checking that host ptys support SIGIO on close...No, enabling workaround
> aio_thread failed to initialize context, err = 38
> 2.6 AIO not supported on the host - reverting to 2.4 AIO
> 2.6 host AIO support not used - falling back to I/O thread
> NET: Registered protocol family 16
> NET: Registered protocol family 2
> IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
> TCP established hash table entries: 4096 (order: 2, 16384 bytes)
> TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
> TCP: Hash tables configured (established 4096 bind 2048)
> TCP reno registered
> Checking host MADV_REMOVE support...MADV_REMOVE failed, err = -22
> Can't release memory to the host - memory hotplug won't be supported
> mconsole (version 2) initialized on /home/dsl/.uml/2LJCKB/mconsole
> Netdevice 0 (2a:93:e5:15:4e:b9) : ethertap backend - tap0, IP = 10.11.12.13
>   Host TLS support NOT detected! TLS support inside UML will not work
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> io scheduler noop registered
> io scheduler anticipatory registered (default)
> io scheduler deadline registered
> io scheduler cfq registered
> mice: PS/2 mouse device common for all mice
> TCP cubic registered
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> Initialized stdio console driver
> Console initialized on /dev/tty0
> Initializing software serial port version 1
>  ubda: unknown partition table
> kjournald starting.  Commit interval 5 seconds
> EXT3-fs: mounted filesystem with ordered data mode.
> VFS: Mounted root (ext3 filesystem) readonly.
> line_ioctl: tty0: ioctl KDSIGACCEPT called
> 
> INIT: version 2.78-knoppix booting
> 
> 
> modprobe: FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep:
> No such file or directory
> 
> 
> 
> 
> hwclock: Could not access RTC: No such file or directory
> 
>  Running Linux Kernel 2.6.19-rc5.
> 
> Running from HD, checking filesystems...
> 
> Activating swap...
> 
> Checking root file system...
> 
> fsck 1.34-WIP (21-May-2003)
> 
> /dev/ubda: clean, 11449/51200 files, 127248/204800 blocks
> 
> EXT3 FS on ubda, internal journal
> Checking all file systems...
> 
> fsck 1.34-WIP (21-May-2003)
> 
> Running from HD, regenerate ld.so.cache and modules.dep...
> 
>  Processor 0 is  UML
> 
> Autoconfiguring devices... /-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\
> |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\
> |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\
> |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\ |/-\|/-\
> |/-\|/-\ |/modprobe: FATAL: Could not load
> /lib/modules/2.6.19-rc5/modules.dep: No such file or directory
> 
> 
> 
> 
> modprobe: FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep:
> No such file or directory
> 
> 
> 
> 
> modprobe: FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep:
> No such file or directory
> 
> 
> 
> 
> modprobe: FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep:
> No such file or directory
> 
> 
> 
> 
>  Done.
> 
>  Mouse is Generic PS/2 Wheel Mouse at /dev/psaux
> 
> Couldnt get a file descriptor referring to the console
> 
>  Skipping DMA accelleration as requested on boot commandline.
> 
> Scanning for Harddisk partitions and creating /etc/fstab... Done.
> 
>  Network device eth0 detected, DHCP broadcasting for IP. (Backgrounding)
> 
>  Automounter started for: floppy cdrom.
> 
> pcilib: Cannot open /sys/bus/pci/devices
> 
> pcilib: Cannot open /proc/bus/pci
> 
> lspci: Cannot find any working access method.
> 
> 
> INIT: Entering runlevel: 5
> 
> 
> FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep: No such
> file or directory
> 
> FATAL: Could not load /lib/modules/2.6.19-rc5/modules.dep: No such
> file or directory
> 
> bash-2.05b# /sbin/ifconfig
> 
> lo        Link encap:Local Loopback
> 
>           inet addr:127.0.0.1  Mask:255.0.0.0
> 
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
> 
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
> 
>           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
> 
>           collisions:0 txqueuelen:0
> 
>           RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)
> 
> 
> 
> bash-2.05b# /sbin/ifconfig eth0
> 
> eth0      Link encap:Ethernet  HWaddr 2A:93:E5:15:4E:B9
> 
>           BROADCAST MULTICAST  MTU:1484  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:1000
> 
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> 
>           Interrupt:4
> 
> 
> 
> bash-2.05b# /sbin/ifconfig eth0 up
> 
> etap_tramp : uml_net failed
> * modprobe netlink_dev
> * modprobe ethertap unit=0 -o ethertap0
> modprobe: invalid option -- o
> modprobe 2.4.21
> Load/Unload modules with dependencies
> 
> Load module(s):
>   modprobe [-a -n -v ] [-C config ] [ -t type ] pattern OR module1 module2 ...
> List modules:
>   modprobe [-l ] [-C config ] [ -t type ] pattern
>    note: wildcard patterns should be escaped
> Show configuration:
>   modprobe [-C config ] -c
> Remove module(s) or autoclean:
>   modprobe [-C config ] -r [ module ...]
> 
> options:
>       -a, --all                  Load _all_ matching modules
>       -c, --showconfig           Show current configuration
>       -d, --debug                Print debugging information
>       -h, --help                 Print this message
>       -k, --autoclean            Set 'autoclean' on loaded modules
>       -l, --list                 List matching modules
>       -n, --show                 Don't actually perform the action
>       -q, --quiet                Quiet operation
>       -r, --remove               Remove module (stacks) or do autoclean
>       -s, --syslog               Use syslog to retap_tramp failed - err = 22
> SIOCSIFFLAGS: Invalid argument
> 
> bash-2.05b# halt
> 
> bash-2.05b#
> INIT: Switching to runlevel: 0
> 
> 
> 
> INIT: Sending processes the TERM signal
> 
> 
> 
> INIT: Sending processes the KILL signal
> 
> 
> Sent all processes the TERM signal...........................................
> 
> Sent all processes the KILL signal...........................................
> 
> Shutting down network device eth0
> 
> Unmounting file systems.
> 
> /dev/pts umounted
> 
> /dev/ubda umounted
> 
> 
> 
> DSL halted.
> 
> 
> END OF UML OUTPUT
> 
> 7) I'm not sure how to approach this - download gcc and recompile a
> new kernel for DSL?  Is there a much simpler way to approach this - I
> feel like I am missing something...
> 
> Thank you!
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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