From: Jimmy P. <jp...@de...> - 2004-10-29 17:50:11
|
Hi, when i tried to add the line to my run_uml script like the following: (check the last line) #!/bin/bash let gw=255-$1 #echo "tap$1" tunctl -t tap$1 -u root ifconfig tap$1 192.168.0.$gw up route del -net 192.168.0.0 netmask 255.255.255.0 route add -host 192.168.0.$1 dev tap$1 echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/conf/tap$1/proxy_arp arp -Ds 192.168.0.$1 eth0 pub chmod 666 /dev/net/tun linux ubd0=cow_$1,fs_deb3C_2.ex2 \ ubd2=varfs_$1 \ ubd1=swapfs_$1 \ eth0=tuntap,tap$1 \ mem=64M \ xterm=none \ con0=fd:3 3>>/var/log/kernel.dump it runs like: root@main:/umls/test_v24# ./run_uml 105 Set 'tap105' persistent and owned by uid 0 SIOCDELRT: No such process SIOCADDRT: File exists Checking for the skas3 patch in the host...found Checking for /proc/mm...found .............................................. ................................................. ........................................... SGI XFS with ACLs, no debug enabled SGI XFS Quota Management subsystem aio_thread failed to initialize context, err = 38 2.6 AIO not supported on the host - reverting to 2.4 AIO pty: 256 Unix98 ptys configured RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Initializing Cryptographic API Initializing software serial port version 1 mconsole (version 2) initialized on /root/.uml/UDKXrN/mconsole Partition check: ubda: unknown partition table ubdb: unknown partition table ubdc: unknown partition table Initializing stdio console driver then , it was stuck here.... is there any problems in my script? Jimmy Blaisorblade wrote: >On Wednesday 27 October 2004 23:58, Jimmy Pan wrote: > > >>Hi....if i don't use any console/x-term for UML, is there a way that i >>can keep the error messages >>in a log file? (My UMLs crashes very often....) >> >> > >A stable setup can be achieved, even if it is not that easy (UML is very >dependant on a number of factors; as kernels often do not compile with some >gcc version, UML depends also onto glibc / binutils / NPTL support / host >kernel). > > >>Jimmy >> >> >If you mean messages from the main console, use: >con0=fd:3 3>>LogFile > >Which will append the console output to LogFile. But the early output will not >be saved... > >Bye > > |