On Thursday 08 March 2007 16:16, Ramanujam Parthasarathi-A19423 wrote: > Hi, > > I am trying to compile UML from scratch on a Debian Sarge (2.6.18-3-686) > system. After some preliminary hiccups, I managed to compile the UML, > but have an issue booting the UML. > > Following are the steps I followed to build uml "linux" binary: > * tar xjvf linux-source-2.6.18.tar.bz2 > * cd linux-source-2.6.18/ > * /usr/src/kernel-patches/all/2.6.18/apply/debian 2.6.18-3 > * 04_include_PAGESHIFT_definition.patch > * make defconfig ARCH=um > * make menuconfig ARCH=um > * make ARCH=um > > I downloaded the Debian root-fs from > http://prdownloads.sourceforge.net/user-mode-linux/Debian-3.0r0.ext2.bz2 > > I tried running the uml using: > * linux ubd0=debian-3.0r0.ext2 > > I get the following error: > 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/...failed: Operation not permitted > /dev/shm/ must be not mounted noexec > > Can someone help me understand this?
The simple fix is to remove noexec from mount options for /dev/shm in /etc/fstab. I haven't time right now to discuss this issue but it was discussed time ago, in this ML (see archives), with no final solution. Basically, using a different tmpfs location (writable only by the UML user) is a satisfying (but annoying for the sysadmin) solution. Sorry for the hurry! -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user