Re: [uml-user] how to build programs for running in UML

2013-08-06 Thread Michael Richardson
Han wrote: > I am trying to build and run some of my C programs in UML.  One way I tried is > to build (i.e. compile) the program on the host,  then run it in UML.  The > problem is that the UML rootfs I used lacks many of the /usr/lib/ shared > libraries, hence the program faile

[uml-user] how to build programs for running in UML

2013-08-06 Thread Han
Hi, I am trying to build and run some of my C programs in UML. One way I tried is to build (i.e. compile) the program on the host, then run it in UML. The problem is that the UML rootfs I used lacks many of the /usr/lib/ shared libraries, hence the program failed to run. My question is: what

Re: [uml-user] self-built root filesystem failed to boot

2013-08-06 Thread Han
thanks Steliosm. I tried with "init=/bin/bash" but still same error. It seems that not anything wrong with "init" process itself, but some error happened before that. I just tried to build the rootfs without "--variant=buildd". And this time it worked. Not sure what changed. Will play around

Re: [uml-user] self-built root filesystem failed to boot

2013-08-06 Thread Michael Richardson
Han wrote: > I've built a root filesystem based off Debian Squeeze because I wanted to > include all built (e.g. gcc) tools in.  However,  i was not able to boot the > UML with this rootfs due to this error: > > Kernel panic - not syncing: No init found.  Try passing init=

Re: [uml-user] self-built root filesystem failed to boot

2013-08-06 Thread Stelios M.
Hello. You could try to loop mount the root fs and check if there is an init there. You could also boot it with bash as init (init=/bin/bash) and check things. Regards, Steliosm On Aug 6, 2013 9:30 PM, "Han" wrote: > Hi, > > I've built a root filesystem based off Debian Squeeze because I wanted

[uml-user] self-built root filesystem failed to boot

2013-08-06 Thread Han
Hi, I've built a root filesystem based off Debian Squeeze because I wanted to include all built (e.g. gcc) tools in. However, i was not able to boot the UML with this rootfs due to this error: Kernel panic - not syncing: No init found. Try passing init= option to kernel. here is how I ran t