2009/9/30 Jay Shah <jay.shah...@gmail.com>: > Hi Flavio, Hi Jay, please remember to reply always to the list! :)
> > No worries. You help me get setup, so I'm hoping to help you fix this :) Thanks a lot! :) > > What user are you running UML as? If it's not root, can you try > setting it to 0777 and if that doesn't work just change the > permissions back. I run UML as root at the moment. No COW file are used now. > > Any errors on the UML boot command (if you can paste a full log right > up until the eth0 error, even if I cannot help it might help others > diagnose your problem)? Here's the complete boot log: Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking for new_mm and switch_mm support in the host: /proc/self/mm ... Failed - No such file or directory Checking for the skas3 patch in the host: - /proc/mm...not found: No such file or directory - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Linux version 2.6.24.2 (r...@gentoo) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #5 Mon Mar 24 16:46:45 CET 2008 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129280 Kernel command line: ubd0=rootfs.debian.etch ubd1=swapfs.debian eth0=tuntap,,,192.168.1.100 mem=512M root=98:0 PID hash table entries: 2048 (order: 11, 16384 bytes) Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) Inode-cache hash table entries: 32768 (order: 6, 262144 bytes) Memory: 505088k available Mount-cache hash table entries: 256 Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround net_namespace: 120 bytes Using 2.6 host AIO NET: Registered protocol family 16 NET: Registered protocol family 2 Time: itimer clocksource has been installed. IP route cache hash table entries: 4096 (order: 3, 32768 bytes) TCP established hash table entries: 16384 (order: 6, 262144 bytes) TCP bind hash table entries: 16384 (order: 5, 131072 bytes) TCP: Hash tables configured (established 16384 bind 16384) TCP reno registered Checking host MADV_REMOVE support...OK mconsole (version 2) initialized on /root/.uml/lG3vsa/mconsole VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Initialized stdio console driver Console initialized on /dev/tty0 console [tty0] enabled Initializing software serial port version 1 console [mc-1] enabled ubda: unknown partition table ubdb: unknown partition table Choosing a random ethernet address for device eth0 Netdevice 0 (9a:db:13:d7:25:c1) : TUN/TAP backend - IP = 192.168.1.100 kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. INIT: version 2.86 booting Starting the hotplug events dispatcher: udevd. Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...done. line_ioctl: tty0: unknown ioctl: 0x541e line_ioctl: tty0: unknown ioctl: 0x5603 Will now activate swap. swapon on /dev/ubd1 swapon: cannot stat /dev/ubd1: No such file or directory * Swap activation failed with error code 255. EXT3-fs warning: maximal mount count reached, running e2fsck is recommended EXT3 FS on ubda, internal journal Setting the system clock.. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. System Clock set. Local time: Wed Sep 30 20:43:39 CEST 2009. Cleaning up ifupdown...done. Setting the system clock again.. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. System Clock set. Local time: Wed Sep 30 20:43:39 CEST 2009. Loading device-mapper support. Will now check all file systems. fsck 1.39 (29-May-2006) Checking all file systems. Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable. Start setting kernel variables via /proc... Done setting kernel variables via /proc. Will now mount local filesystems. nothing was mounted Done mounting local filesystems. Will now activate swapfile swap. Done activating swapfile swap. Cleaning /tmp...done. Cleaning /var/run...done. Cleaning /var/lock...done. Running 0dns-down to make sure resolv.conf is ok...done. Setting up networking...done. Setting hostname to 'DebianUM'...done. Configuring network interfaces...SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device eth0: ERROR while getting interface flags: No such device eth0: ERROR while getting interface flags: No such device Failed to bring up eth0. done. Starting portmap daemon.... line_ioctl: tty0: unknown ioctl: 0x541e line_ioctl: tty0: unknown ioctl: 0x5603 Initializing random number generator...done. Recovering nvi editor sessions...none found. Setting up X server socket directory /tmp/.X11-unix.... Setting up ICE socket directory /tmp/.ICE-unix.... INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting portmap daemon...Already running.. Starting internet superserver: inetd. Starting OpenBSD Secure Shell server: sshd. Starting file alteration monitor: FAM. Starting deferred execution scheduler: atd. Starting periodic command scheduler.... > Can you try dropping the eth0= at the command > line then running a uml_mconsole then adding the config here and > seeing if there is any error if all else fails? If I drop the eth0= at the command line, I continue to receive the following messages: Configuring network interfaces...SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device eth0: ERROR while getting interface flags: No such device eth0: ERROR while getting interface flags: No such device Failed to bring up eth0. > > If everything else fails after that, perhaps you can try using tunctl > (this is the method I have used for years without issues) to create a > device (like tap0) then attaching it to UML plainly via > eth0=tuntap,tap0 > > This reason I prefer the 'creating a device method' is because you can > use tools like vnstat and bwm-ng to monitor live bandwidth. Thank you.. I hope the problem doesn't require these two last things. Flavio > > Jay > > 2009/9/30 Flavio <fbcyb...@gmail.com>: >> Hi Jay, >> >> Thank you for the reply. >> >> Here's the permissions: >> crw-rw-rw- 1 root root 10, 200 2009-09-30 18:02 /dev/net/tun >> >> Flavio >> >> 2009/9/30 Jay Shah <jay.shah...@gmail.com>: >>> Hi Flavio, >>> >>> How are the permissions of /dev/net/tun? >>> >>> Jay >>> >>> 2009/9/30 Flavio <fbcyb...@gmail.com>: >>>> Hi all, >>>> >>>> I have some networking problem. >>>> Networking inside UML is always worked, but today it suddenly stopped to >>>> work. >>>> >>>> The command line is the same I've always used: >>>> linux ubd0=rootfs.debian.etch ubd1=swapfs.debian >>>> eth0=tuntap,,,192.168.1.100 mem=512M >>>> >>>> During the boot of the virtual machine I get these messages: >>>> Configuring network interfaces...SIOCSIFADDR: No such device >>>> eth0: ERROR while getting interface flags: No such device >>>> SIOCSIFNETMASK: No such device >>>> SIOCSIFBRDADDR: No such device >>>> eth0: ERROR while getting interface flags: No such device >>>> eth0: ERROR while getting interface flags: No such device >>>> Failed to bring up eth0. >>>> >>>> What does it happen? >>>> >>>> Thank you, >>>> >>>> Flavio >>>> >>>> ------------------------------------------------------------------------------ >>>> Come build with us! The BlackBerry® Developer Conference in SF, CA >>>> is the only developer event you need to attend this year. Jumpstart your >>>> developing skills, take BlackBerry mobile applications to market and stay >>>> ahead of the curve. Join us from November 9-12, 2009. Register now! >>>> http://p.sf.net/sfu/devconf >>>> _______________________________________________ >>>> User-mode-linux-user mailing list >>>> User-mode-linux-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >>>> >>> >> > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user