UML Instalation in SuSE 9.0
Hi, I try to install UML in SuSE 9.0 with guide from: http://www.suse.com/~kraxel/uml/howto.html when I try to boot it up, it FREEZE. Below is what I did: romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm Checking for the skas3 patch in the host...found Checking for /proc/mm...found Linux version 2.4.21-99-um (root@um-i386.suse.de) (gcc version 3.3.1 (SuSE Linux)) #1 Wed Sep 24 13:26:14 UTC 2003 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Building zonelist for node : 0 Kernel command line: ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm root=/dev/ubd0 Calibrating delay loop... 1284.82 BogoMIPS Memory: 29176k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd bigpage subsystem: allocated 0 bigpages (=0MB). kinoded started VFS: Disk quotas vdquot_6.5.1 aio_setup: num_physpages = 1823 aio_setup: sizeof(struct page) = 44 pty: 256 Unix98 ptys configured NET4: Frame Diverter 0.46 RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize loop: loaded (max 16 devices) md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. Initializing software serial port version 1 mconsole (version 2) initialized on /home/romie/.uml/first/mconsole Partition check: ubda: unknown partition table ubdb: unknown partition table Initializing stdio console driver NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 4096) Linux IP multicast router 0.06 plus PIM-SM VFS: Mounted root (ext2 filesystem) readonly. And no action until here.... what wrong ? pls help. thanks. -- Best Regards, Romie Djapri
On Thu, Feb 05, 2004 at 10:38:05AM +0700, Romie Djapri wrote:
I try to install UML in SuSE 9.0 with guide from: http://www.suse.com/~kraxel/uml/howto.html
when I try to boot it up, it FREEZE. Below is what I did:
romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm [snip] VFS: Mounted root (ext2 filesystem) readonly.
And no action until here....
what wrong ? pls help.
Remove or rename /sbin/blogd in your root.img filesystem. UML kernel does not (unfortunately) support blogd. Regards, -Kastus
On Thursday 05 February 2004 11:25, Kastus wrote:
Remove or rename /sbin/blogd in your root.img filesystem.
I try as you suggested. This is what I did. I mount the root file system to uml_dir # mount root.img -o loop ../uml_dir/ I rename the file # mv ../uml_dir/sbin/blogd ../uml_dir/sbin/blogd.old I try boot it up again and still get the same result. Anything wrong ? this is the result from uname -a Linux romie 2.4.21-166-athlon #1 Thu Dec 18 18:24:05 UTC 2003 i686 athlon i386 GNU/Linux -- Best Regards, Romie Djapri
On Thu, Feb 05, 2004 at 02:49:37PM +0700, Romie Djapri wrote:
On Thursday 05 February 2004 11:25, Kastus wrote:
Remove or rename /sbin/blogd in your root.img filesystem.
I try as you suggested. This is what I did.
I mount the root file system to uml_dir # mount root.img -o loop ../uml_dir/
I rename the file # mv ../uml_dir/sbin/blogd ../uml_dir/sbin/blogd.old
I try boot it up again and still get the same result.
That's right, but you're not getting to the point of calling blogd in boot script yet.
Anything wrong ? this is the result from uname -a Linux romie 2.4.21-166-athlon #1 Thu Dec 18 18:24:05 UTC 2003 i686 athlon i386 GNU/Linux
The other thing to try is a different UML kernel. The one shipped with 9.0 never worked for me. Try one from kraxel page or compile your own. Please note you have to use O1 optimization in gcc to compile a UML kernel on a 9.0 system. But I think this is mentioned too on kraxel page. Regards, -Kastus
On Friday 06 February 2004 00:49, Kastus wrote:
That's right, but you're not getting to the point of calling blogd in boot script yet.
Ok.. I'll try again.
The other thing to try is a different UML kernel. The one shipped with 9.0 never worked for me. Try one from kraxel page or compile your own. Please note you have to use O1 optimization in gcc to compile a UML kernel on a 9.0 system. But I think this is mentioned too on kraxel page.
Do you mean compile a kernel for UML? can I compile the kernel at my host and then I copy it to /boot in uml root.img ? -- Best Regards, Romie Djapri
On Fri, Feb 06, 2004 at 08:50:42AM +0700, Romie Djapri wrote:
Do you mean compile a kernel for UML?
Yes
can I compile the kernel at my host and
Yes, you compile it on your host or any other place, all you have to remember is specify ARCH=um in all make commands. Actually it's make menuconfig ARCH=um; make dep ARCH=um ; make linux ARCH=um If it's on 9.0, don't forget to edit Makefile in src/linux directory and replace all (I have 2) occurances of -O2 with -O1
then I copy it to /boot in uml root.img ?
No, you don't need to copy it there, it's a binary you invoke from command line on your host when you start UML instance. Regards, -Kastus
On Friday 06 February 2004 10:20, Kastus wrote:
Yes, you compile it on your host or any other place, all you have to remember is specify ARCH=um in all make commands. Actually it's make menuconfig ARCH=um; make dep ARCH=um ; make linux ARCH=um
Usually I compile kernel like this: Make menuconfig dep clean bzImage modules modules_install install And now I have to change it like this ? Make menuconfig dep clean bzImage modules modules_install install ARCH=um
If it's on 9.0, don't forget to edit Makefile in src/linux directory and replace all (I have 2) occurances of -O2 with -O1
You mean like this: HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer and CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ -fno-strict-aliasing -fno-common change it to: HOSTCFLAGS = -Wall -Wstrict-prototypes -O1 -fomit-frame-pointer and CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O1 \ -fno-strict-aliasing -fno-common
No, you don't need to copy it there, it's a binary you invoke from command line on your host when you start UML instance.
How am I gonna invoke it? Could you please explain. Sorry, because I'm new in UML. -- Best Regards, Romie Djapri
On Fri, Feb 06, 2004 at 01:03:52PM +0700, Romie Djapri wrote:
And now I have to change it like this ? Make menuconfig dep clean bzImage modules modules_install install ARCH=um
make menuconfig dep linux modules modules_install ARCH=um The result of the build is a binary called linux and modules in /lib/modules/<kernel-version> directory. You'll have to copy modules manually to your root.img filesystem.
You mean like this: HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer and CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ -fno-strict-aliasing -fno-common change it to: HOSTCFLAGS = -Wall -Wstrict-prototypes -O1 -fomit-frame-pointer and CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O1 \ -fno-strict-aliasing -fno-common
Correct. The UML kernel compiled with O2 optimization on 9.0 system just freezes during the boot as you have seen.
How am I gonna invoke it? Could you please explain. Sorry, because I'm new in UML.
The way you did it: romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm Just supply full path to the linux binary you compiled. Regards, -Kastus
On Friday 06 February 2004 13:39, Kastus wrote:
make menuconfig dep linux modules modules_install ARCH=um
The result of the build is a binary called linux and modules in /lib/modules/<kernel-version> directory. You'll have to copy modules manually to your root.img filesystem.
Ok. I got it. I'm going to try it now.
The way you did it:
romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm
Just supply full path to the linux binary you compiled.
You mean like this: romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm /hostpc/path/to/binary/kernel/vmlinuz -- Best Regards, Romie Djapri
On Fri, Feb 06, 2004 at 02:19:59PM +0700, Romie Djapri wrote:
You mean like this: romie@romie:~/data/uml/test> linux ubd0=root.img ubd1=swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm /hostpc/path/to/binary/kernel/vmlinuz
No, it should be /hostpc/path/to/binary/kernel/linux ubd0=root.img ubd1=swap.img umid=first \ con=pty con0=fd:0,fd:1 con1=xterm UML kernel is the file named linux, not vmlinuz Regards, -Kastus
On Saturday 07 February 2004 00:27, Kastus wrote:
/hostpc/path/to/binary/kernel/linux ubd0=root.img ubd1=swap.img umid=first \ con=pty con0=fd:0,fd:1 con1=xterm
UML kernel is the file named linux, not vmlinuz
Ok.. Got it.. now compiling the kernel.. :) Thanks. -- Best Regards, Romie Djapri
On Saturday 07 February 2004 00:27, Kastus wrote:
UML kernel is the file named linux, not vmlinuz
Well, after I tried 3 times yesterday, the kernel compile process failed with error like bellow: In file included from /usr/src/linux-2.4.21-166/include/asm/ ptrace-generic.h:26, from /usr/src/linux-2.4.21-166/include/asm/ptrace.h:10, from /usr/src/linux-2.4.21-166/include/linux/ptrace.h:24, from /usr/src/linux-2.4.21-166/include/linux/binfmts.h:4, from /usr/src/linux-2.4.21-166/include/linux/sched.h:11, from mk_thread_kern.c:3: /usr/src/linux-2.4.21-166/arch/um/include/skas_ptrace.h:9: error: redefinition of `struct ptrace_faultinfo' /usr/src/linux-2.4.21-166/arch/um/include/skas_ptrace.h:14: error: redefinition of `struct ptrace_ldt' make[1]: *** [mk_thread_kern.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.21-166/arch/um/sys-i386/util' make: *** [arch/um/sys-i386/util/mk_thread] Error 2 Any clue ? -- Best Regards, Romie Djapri
On Tue, Feb 10, 2004 at 08:55:10AM +0700, Romie Djapri wrote:
Well, after I tried 3 times yesterday, the kernel compile process failed with error like bellow:
In file included from /usr/src/linux-2.4.21-166/include/asm/ ptrace-generic.h:26, from /usr/src/linux-2.4.21-166/include/asm/ptrace.h:10, from /usr/src/linux-2.4.21-166/include/linux/ptrace.h:24, from /usr/src/linux-2.4.21-166/include/linux/binfmts.h:4, from /usr/src/linux-2.4.21-166/include/linux/sched.h:11, from mk_thread_kern.c:3: /usr/src/linux-2.4.21-166/arch/um/include/skas_ptrace.h:9: error: redefinition of `struct ptrace_faultinfo' /usr/src/linux-2.4.21-166/arch/um/include/skas_ptrace.h:14: error: redefinition of `struct ptrace_ldt' make[1]: *** [mk_thread_kern.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.21-166/arch/um/sys-i386/util' make: *** [arch/um/sys-i386/util/mk_thread] Error 2
Any clue ?
You might have enabled something in the uml kernel configuration that is not working. Here is the .config that worked for me: CONFIG_USERMODE=y CONFIG_UID16=y CONFIG_EXPERIMENTAL=y CONFIG_MODE_SKAS=y CONFIG_MODE_TT=y CONFIG_NET=y CONFIG_SYSVIPC=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_SYSCTL=y CONFIG_MAX_USER_RT_PRIO=100 CONFIG_MAX_RT_PRIO=0 CONFIG_BINFMT_AOUT=y CONFIG_BINFMT_ELF=y CONFIG_BINFMT_MISC=y CONFIG_HOSTFS=y CONFIG_MCONSOLE=y CONFIG_MAGIC_SYSRQ=y CONFIG_NEST_LEVEL=0 CONFIG_KERNEL_HALF_GIGS=1 CONFIG_PROC_MM=y CONFIG_KERNEL_STACK_ORDER=2 CONFIG_MODULES=y CONFIG_KMOD=y CONFIG_STDIO_CONSOLE=y CONFIG_SSL=y CONFIG_FD_CHAN=y CONFIG_NULL_CHAN=y CONFIG_PORT_CHAN=y CONFIG_PTY_CHAN=y CONFIG_TTY_CHAN=y CONFIG_XTERM_CHAN=y CONFIG_CON_ZERO_CHAN="fd:0,fd:1" CONFIG_CON_CHAN="xterm" CONFIG_SSL_CHAN="pty" CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTY_COUNT=256 CONFIG_BLK_DEV_UBD=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_NBD=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_INITRD=y CONFIG_NETDEVICES=y CONFIG_UML_NET=y CONFIG_UML_NET_ETHERTAP=y CONFIG_UML_NET_TUNTAP=y CONFIG_UML_NET_SLIP=y CONFIG_UML_NET_SLIRP=y CONFIG_UML_NET_DAEMON=y CONFIG_UML_NET_MCAST=y CONFIG_DUMMY=y CONFIG_TUN=y CONFIG_PPP=y CONFIG_PACKET=y CONFIG_PACKET_MMAP=y CONFIG_NETFILTER=y CONFIG_UNIX=y CONFIG_INET=y CONFIG_IP_NF_CONNTRACK=m CONFIG_IP_NF_FTP=m CONFIG_IP_NF_AMANDA=m CONFIG_IP_NF_TFTP=m CONFIG_IP_NF_IRC=m CONFIG_IP_NF_IPTABLES=m CONFIG_IP_NF_MATCH_LIMIT=m CONFIG_IP_NF_MATCH_MAC=m CONFIG_IP_NF_MATCH_PKTTYPE=m CONFIG_IP_NF_MATCH_MARK=m CONFIG_IP_NF_MATCH_MULTIPORT=m CONFIG_IP_NF_MATCH_TOS=m CONFIG_IP_NF_MATCH_PSD=m CONFIG_IP_NF_MATCH_ECN=m CONFIG_IP_NF_MATCH_DSCP=m CONFIG_IP_NF_MATCH_AH_ESP=m CONFIG_IP_NF_MATCH_LENGTH=m CONFIG_IP_NF_MATCH_TTL=m CONFIG_IP_NF_MATCH_TCPMSS=m CONFIG_IP_NF_MATCH_HELPER=m CONFIG_IP_NF_MATCH_STATE=m CONFIG_IP_NF_MATCH_CONNTRACK=m CONFIG_IP_NF_MATCH_IPLIMIT=m CONFIG_IP_NF_MATCH_UNCLEAN=m CONFIG_IP_NF_MATCH_STRING=m CONFIG_IP_NF_MATCH_OWNER=m CONFIG_IP_NF_FILTER=m CONFIG_IP_NF_TARGET_REJECT=m CONFIG_IP_NF_TARGET_MIRROR=m CONFIG_IP_NF_NAT=m CONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_TARGET_MASQUERADE=m CONFIG_IP_NF_TARGET_REDIRECT=m CONFIG_IP_NF_NAT_AMANDA=m CONFIG_IP_NF_NAT_IRC=m CONFIG_IP_NF_NAT_FTP=m CONFIG_IP_NF_NAT_TFTP=m CONFIG_IP_NF_TARGET_LOG=m CONFIG_IP_NF_TARGET_ULOG=m CONFIG_IP_NF_TARGET_TCPMSS=m CONFIG_IP_NF_ARPTABLES=m CONFIG_IP_NF_ARPFILTER=m CONFIG_IP_NF_COMPAT_IPCHAINS=m CONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_COMPAT_IPFWADM=m CONFIG_IP_NF_NAT_NEEDED=y CONFIG_QUOTA=y CONFIG_AUTOFS_FS=y CONFIG_AUTOFS4_FS=y CONFIG_REISERFS_FS=y CONFIG_REISERFS_PROC_INFO=y CONFIG_EXT3_FS=y CONFIG_JBD=y CONFIG_FAT_FS=y CONFIG_MSDOS_FS=y CONFIG_UMSDOS_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y CONFIG_RAMFS=y CONFIG_ISO9660_FS=y CONFIG_MINIX_FS=y CONFIG_PROC_FS=y CONFIG_PROC_CONFIG=y CONFIG_DEVPTS_FS=y CONFIG_EXT2_FS=y CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_NFSD=m CONFIG_NFSD_V3=y CONFIG_SUNRPC=y CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_SMB_FS=m CONFIG_FS_MBCACHE=y CONFIG_MSDOS_PARTITION=y CONFIG_SMB_NLS=y CONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_UTF8=m CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y CONFIG_DEBUGSYM=y CONFIG_PT_PROXY=y CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y CONFIG_SUSE_KERNEL=y CONFIG_CFGNAME="um" CONFIG_RELEASE=2 Regards, -Kastus
On Tuesday 10 February 2004 11:32, Kastus wrote:
You might have enabled something in the uml kernel configuration that is not working. Here is the .config that worked for me:
<snip>
Tried too.. but it still at the same result ? :( I use kernel 2.4.21-166. Any clue again ? Hmm.. Now I'm gonna try to download from kernel.org and patch it. -- Best Regards, Romie Djapri
participants (2)
-
Kastus
-
Romie Djapri