From: Samir K. <sam...@gm...> - 2007-09-04 04:18:51
|
Hi all, I have a colinux installation on windows xp. However I am thinking of moving it to my usb hard-disk so that I am able to run my colinux either in office or home. My only problem is that I use linux (ubuntu) at home. I was wondering if anyone has any pointers on getting colinux to work with a linux host system. I guess it should be possible but am a little stuck on how to go about it. Thanks Samir |
From: Eric D. <eri...@iu...> - 2007-09-04 07:30:33
|
Le mardi 4 septembre 2007 06:18, Samir Kuthiala a =C3=A9crit=C2=A0: > Hi all, > I have a colinux installation on windows xp. However I am thinking of > moving it to my usb hard-disk so that I am able to run my colinux either = in > office or home. My only problem is that I use linux (ubuntu) at home. I w= as > wondering if anyone has any pointers on getting colinux to work with a > linux host system. I guess it should be possible but am a little stuck on > how to go about it. > Thanks Samir IMHO, you should be able to run your partitions under kvm in a similar way = as=20 in coLinux. (but only if you own a recent processor with some virtual tech.= =20 inside otherwise it's like qemu : slow). An other clue, would be linux vserver. It may be even a better solution as= =20 it's more like a super-chroot. Precompiled kernels exists under Debian, so it should be easy under ubuntu. PS: if you're skilled, you may write udev scripts to start the stuff on dev= ice=20 plug. PPS: it may be difficult to specify your devices names in coLinux config, I= 've=20 never tried to host colinux partitions on an USB device. Cheers, =2D-=20 Eric D=C3=89CORNOD Ing=C3=A9nieur d'=C3=89tudes SCICS - Facult=C3=A9 des Sciences Universit=C3=A9 Henri Poincar=C3=A9 |
From: Samir K. <sam...@gm...> - 2007-09-04 08:26:55
|
So I guess there is no way of using co-linux on linux? I like the idea of using vserver but can vserver run colinux images directly? ~Samir On 9/4/07, Eric DECORNOD <eri...@iu...> wrote: > > Le mardi 4 septembre 2007 06:18, Samir Kuthiala a =E9crit: > > Hi all, > > I have a colinux installation on windows xp. However I am thinking of > > moving it to my usb hard-disk so that I am able to run my colinux eithe= r > in > > office or home. My only problem is that I use linux (ubuntu) at home. I > was > > wondering if anyone has any pointers on getting colinux to work with a > > linux host system. I guess it should be possible but am a little stuck > on > > how to go about it. > > Thanks Samir > IMHO, you should be able to run your partitions under kvm in a similar wa= y > as > in coLinux. (but only if you own a recent processor with some virtual > tech. > inside otherwise it's like qemu : slow). > > An other clue, would be linux vserver. It may be even a better solution a= s > it's more like a super-chroot. > Precompiled kernels exists under Debian, so it should be easy under > ubuntu. > > PS: if you're skilled, you may write udev scripts to start the stuff on > device > plug. > > PPS: it may be difficult to specify your devices names in coLinux config, > I've > never tried to host colinux partitions on an USB device. > > Cheers, > -- > Eric D=C9CORNOD > Ing=E9nieur d'=C9tudes > SCICS - Facult=E9 des Sciences > Universit=E9 Henri Poincar=E9 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > coLinux-users mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-users > |
From: Henry N. <Hen...@Ar...> - 2007-09-04 09:02:50
|
Samir Kuthiala wrote: > So I guess there is no way of using co-linux on linux? I like the idea > of using vserver but can vserver run colinux images directly? Read this "5.3. For Linux as host": http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/doc/building You need to compile the module colinux.ko from source. Kernels with REGPARM enabled dosn't work as host. Current kernel 2.6.22 does only work, if you remove the regparm parameter from host kernel Makefile (and recompile the host kernel!). -- Henry |
From: Samir K. <sam...@gm...> - 2007-09-04 09:14:30
|
Thanks. This looks promising. Will try it out. ~Samir On 9/4/07, Henry Nestler <Hen...@ar...> wrote: > > Samir Kuthiala wrote: > > So I guess there is no way of using co-linux on linux? I like the idea > > of using vserver but can vserver run colinux images directly? > > Read this "5.3. For Linux as host": > > http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/doc/building > > You need to compile the module colinux.ko from source. > Kernels with REGPARM enabled dosn't work as host. Current kernel 2.6.22 > does only work, if you remove the regparm parameter from host kernel > Makefile (and recompile the host kernel!). > > -- > Henry > |
From: Samir K. <sam...@gm...> - 2007-09-10 16:10:11
|
Hi Henry, I am having some trouble following the guide. I installed fltk-1.1.6 from source into ~/i686-pc-linux-local. After that I ran the following commands: ==================================================================================== > export PATH=$HOME/i686-linux-local/bin:$PATH > ./configure --target=i686-pc-linux-local --targetkerneldir=~/Downloads/devel-colinux-20070819 --hostkerneldir=/lib/modules/2.6.20-16-generic/build > export COLINUX_TARGET_KERNEL_PATH=~/Downloads/devel-colinux-20070819 > export COLINUX_HOST_KERNEL_DIR=/lib/modules/2.6.20-16-generic/build > export COLINUX_HOST_OS=linux > export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" > export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" > make HOSTOS=linux colinux ==================================================================================== I have attached the error I get. Do you have any ideas as to what I am doing wrong? I am running ubuntu 7.0.4 as my host system. Thanks. ================================================================================================================ make[2]: Entering directory `/home/samir/Downloads/devel-colinux-20070819/src' python ../bin/make.py colinux /home/samir/Downloads/devel-colinux-20070819/bin/comake/lib.py:1: DeprecationWarning: The sre module is deprecated, please import re. import sre, os Analyzing target tree... Target architecture not specified, defaulting to i386 Starting build [colinux] [src/build] [src/colinux/os/linux/build/executables] [src/colinux/os/linux/build/colinux-daemon] [src/colinux/os/linux/user/daemon/daemon.o] [src/colinux/os/linux/user/daemon/main.o] Building: target requires creation gcc -Isrc -I~/Downloads/devel-colinux-20070819/include -I~/Downloads/devel-colinux-20070819/include2 -I~/Downloads/devel-colinux-20070819/include -Wno-trigraphs -fno-strict-aliasing -Wall -I/home/samir/i686-pc-linux-local/include -O2 -DCOLINUX -DCOLINUX_ARCH=linux -DCOLINUX_DEBUG -DCOLINUX_FILE_ID=0 -DCO_HOST_API -c src/colinux/os/linux/user/daemon/main.c -o src/colinux/os/linux/user/daemon/main.o In file included from src/colinux/common/config.h:13, from src/colinux/user/daemon.h:14, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/common.h:28:31: error: linux/cooperative.h: No such file or directory In file included from src/colinux/user/daemon.h:14, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/config.h:178: error: 'CO_MODULE_MAX_COBD' undeclared here (not in a function) src/colinux/common/config.h:184: error: 'CO_MODULE_MAX_CONET' undeclared here (not in a function) src/colinux/common/config.h:189: error: 'CO_MODULE_MAX_COFS' undeclared here (not in a function) src/colinux/common/config.h:194: error: 'CO_MODULE_MAX_SERIAL' undeclared here (not in a function) src/colinux/common/config.h:204: error: 'CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) In file included from src/colinux/user/daemon.h:15, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/messages.h:17: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:26: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:44: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:49: error: expected specifier-qualifier-list before 'co_message_t' src/colinux/common/messages.h:53: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:59: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:60: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:62: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:62: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:63: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:64: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:65: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:66: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:67: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:69: error: expected ')' before '*' token src/colinux/common/messages.h:70: error: expected ')' before '*' token src/colinux/common/messages.h:74: error: expected ')' before 'module' In file included from src/colinux/user/daemon.h:16, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/console.h:51: error: expected specifier-qualifier-list before 'co_cursor_pos_t' src/colinux/common/console.h:58: error: expected declaration specifiers or '...' before 'co_console_message_t' In file included from src/colinux/user/monitor.h:16, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/ioctl.h:45: error: expected specifier-qualifier-list before 'co_info_t' src/colinux/common/ioctl.h:96: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/ioctl.h:157: error: expected specifier-qualifier-list before 'co_termination_reason_t' src/colinux/common/ioctl.h:176: error: expected specifier-qualifier-list before 'co_termination_reason_t' In file included from src/colinux/os/kernel/manager.h:13, from src/colinux/os/user/manager.h:15, from src/colinux/user/monitor.h:17, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/kernel/manager.h:89: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/os/user/manager.h:15, from src/colinux/user/monitor.h:17, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/os/kernel/manager.h:27: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/user/monitor.h:29: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/user/monitor.h:47: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/os/linux/user/daemon/main.c:21: src/colinux/user/debug.h:16: error: expected ')' before '*' token Error: Target not build (TargetNotBuildError) make[1]: *** [colinux] Error 1 make[1]: Leaving directory `/home/samir/Downloads/devel-colinux-20070819/src' make: *** [colinux] Error 2 =================================================================================================== Regards Samir On 9/4/07, Henry Nestler <Hen...@ar...> wrote: > > Samir Kuthiala wrote: > > So I guess there is no way of using co-linux on linux? I like the idea > > of using vserver but can vserver run colinux images directly? > > Read this "5.3. For Linux as host": > > http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/doc/building > > You need to compile the module colinux.ko from source. > Kernels with REGPARM enabled dosn't work as host. Current kernel 2.6.22 > does only work, if you remove the regparm parameter from host kernel > Makefile (and recompile the host kernel!). > > -- > Henry > |
From: Henry N. <Hen...@Ar...> - 2007-09-10 17:06:15
|
Samir Kuthiala wrote: > I am having some trouble following the guide. I installed fltk-1.1.6 > from source into ~/i686-pc-linux-local. After that I ran the following > commands: > >> export PATH=$HOME/i686-linux-local/bin:$PATH >> ./configure --target=i686-pc-linux-local > --targetkerneldir=~/Downloads/devel-colinux-20070819 > --hostkerneldir=/lib/modules/2.6.20-16-generic/build 'targetkerneldir' should point to patched and configured kernel source for colinux guest (kernel 2.6.22 for snapshot 20070819) Check that there exist the file $HOME/Downloads/devel-colinux-20070819/include/linux/cooperative.h (and mutch more kernel headers) Replace the '~' with '$HOME', im not shure working with '~'. After give configure a new (empty) path to targetkerneldir, you can get the patched kernel source by: "make kernel" in source of coLinux. You can break (CTRL-C) the build after you see the message "Configuring Kernel 2.6.22" - if you not need the kernel build self. But in normal case, you need the kernel for running coLinux later. So, let the kernel build, before build the daemons for linux host. Kernel build and damons build use the same config. So, it should work. >> export COLINUX_TARGET_KERNEL_PATH=~/Downloads/devel-colinux-20070819 >> export COLINUX_HOST_KERNEL_DIR=/lib/modules/2.6.20-16-generic/build >> export COLINUX_HOST_OS=linux >> export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" >> export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" >> make HOSTOS=linux colinux You stay in the directory where Makefile.linux exist? If yes, you not need the follows: COLINUX_TARGET_KERNEL_PATH, COLINUX_HOST_KERNEL_DIR, COLINUX_HOST_OS. This all comes from config file, you find in bin/user-build.cfg (created by coLinux 'configure'). This lines should be enouth: export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" make HOSTOS=linux colinux > [...] > In file included from src/colinux/common/config.h:13, > from src/colinux/user/daemon.h:14, > from src/colinux/os/linux/user/daemon/main.c:18: > src/colinux/common/common.h:28:31: error: linux/cooperative.h: No such The daemon don't find the colinux kernel headers. PS: I'm not know your gcc version from your distro. The snapshot you use, only works with gcc 4.1.x - If your local gcc is not 4.1.x, you need to use the more complicated parameter '--gcc-guest-build'. Or use latest source, there have opened for more gcc versions. http://www.henrynestler.com/colinux/autobuild/devel-20070909/colinux-0.8.0-20070909.src.tgz -- Henry |
From: Eric D. <eri...@iu...> - 2007-09-04 09:18:16
|
Le mardi 4 septembre 2007 10:26, Samir Kuthiala a =C3=A9crit=C2=A0: > So I guess there is no way of using co-linux on linux? I didn't know it was possible. Thanks Henry. > I like the idea of using vserver but can vserver run > colinux images directly?=20 If you can mount (either loopback or directly) you should be able to run an= y=20 linux bin. hold on the mount point. As a quick test, you can try to mount your colinux images, chroot inside (a= s=20 root) and run some applications : ls, man, ... If you can do that, running vserver shouldn't be very difficult. > ~Samir =2D-=20 Eric D=C3=89CORNOD Ing=C3=A9nieur d'=C3=89tudes SCICS - Facult=C3=A9 des Sciences Universit=C3=A9 Henri Poincar=C3=A9 |
From: Henry N. <Hen...@Ar...> - 2007-09-04 10:11:38
|
Eric DECORNOD wrote: > Le mardi 4 septembre 2007 10:26, Samir Kuthiala a écrit : >> So I guess there is no way of using co-linux on linux? > I didn't know it was possible. Thanks Henry. > >> I like the idea of using vserver but can vserver run >> colinux images directly? > If you can mount (either loopback or directly) you should be able to run any > linux bin. hold on the mount point. > > As a quick test, you can try to mount your colinux images, chroot inside (as > root) and run some applications : ls, man, ... Yes loop mount and chroot works also very good. For example: mkdir /mnt/colinux mount rootfs.img /mnt/colinux -o loop,rw,exec,dev mount --bind /proc /mnt/colinux/proc mount --bind /dev /mnt/colinux/proc chroot /mnt/colinux /bin/sh inside chroot colinux switch to your coLinuxUser: cd /home/coLinuxUser su coLinuxUser Without the bind mount for /dev, you need to create some basic devices (null, zero, tty1, tty2...) This way I use to create and check coLinux image files. -- Henry |
From: Henry N. <Hen...@Ar...> - 2007-09-11 08:40:31
Attachments:
arch-i368-Makefile-noregparm.diff
|
Samir, host kernel 2.6.20 and later uses hard coded regparms. You need to patch and recompile the host kernel, before you can run colinux there, see attachment. Disable regparms makes the host a lidle slower. But currently no other way is usabable to run coLinux with Linux as host there. The problem are the prelinked components for the module colinux.ko . Problems comes from coLinux build system. If all kernel files (for colinux.ko) would build with the host-kernel build system, then regparms can enable... -- Henry |
From: Samir K. <sam...@gm...> - 2007-09-11 09:01:53
|
Thanks Henry. Will try it out tonight. ~Samir On 9/11/07, Henry Nestler <Hen...@ar...> wrote: > > Samir, > > host kernel 2.6.20 and later uses hard coded regparms. > You need to patch and recompile the host kernel, before you can run > colinux there, see attachment. > > Disable regparms makes the host a lidle slower. > > But currently no other way is usabable to run coLinux with Linux as host > there. The problem are the prelinked components for the module > colinux.ko . Problems comes from coLinux build system. If all kernel > files (for colinux.ko) would build with the host-kernel build system, > then regparms can enable... > > -- > Henry > > |