Dear Nic, Paolo, My UML kernel is a 2.6.15.7 with the Blaisorblade's uml-2.6.15-bs3-tls.patch applied. This uml-2.6.15-bs3-tls.patch seems to have already included the mconsole exec support:
1. Trying to apply uml-mconsole on a uml-2.6.15-bs3-tls patched kernel lead to a "Reversed (or previously applied) patch detected!" message. 2. Looking in detail for mconsole exec support in the kernel configuration, it seems that it is already included: # ./linux --showconfig | grep -i mconsole CONFIG_MCONSOLE=y CONFIG_MCONSOLE_EXEC=y So it seems that the problem it wasn't the kernel support for mconsole exec (due to it was compiled with CONFIG_MCONSOLE_EXEC=y) However, playing a bit more with the exec mconsole command I found that: (/root/.vnum) exec "echo 1 > /tmp/foo" or (/root/.vnum) exec 'echo 1 > /tmp/foo' don't work but (/root/.vnum) exec echo 1 > /tmp/foo works! :) So, finally, the problem was quoting the command (" or '). I think that, in order to avoid this confusion, http://www.user-mode-linux.org/~blaisorblade/faq.html could be improved including some little example of utilization of mconsole exec command and maybe warn about using quotes to enclose the command. Thank again for your suggestions and support! Best regards, -------------------- Fermín Galán Márquez CTTC - Centre Tecnològic de Telecomunicacions de Catalunya Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860 Castelldefels, Spain Room 1.02 Tel : +34 93 645 29 12 Fax : +34 93 645 29 01 Email address: [EMAIL PROTECTED] -----Mensaje original----- De: Blaisorblade [mailto:[EMAIL PROTECTED] Enviado el: jueves, 05 de octubre de 2006 23:43 Para: user-mode-linux-user@lists.sourceforge.net CC: Nic James Ferrier; Fermín Galán Márquez Asunto: Re: [uml-user] uml_mconsole exec On Thursday 05 October 2006 20:51, Nic James Ferrier wrote: > =?iso-8859-1?Q?Ferm=EDn_Gal=E1n_M=E1rquez?= <[EMAIL PROTECTED]> > > writes: > > but, in spite of the message, it seems not being working because the > > file "foo" doesn't get created in the virtual machine filesystem. > > > > Googling for "uml_mconsole exec", I found the following at > > http://www.user-mode-linux.org/~blaisorblade/faq.html: > > > > "What's Mconsole exec? It adds the "exec" command to uml_mconsole; > > it allows you to start an arbitrary command through mconsole. It > > will be passed to /bin/sh -c, so you have all the shell power at > > hand. It must be enabled when compiling the kernel (because you > > might not want to allow this to the host admin)." > > You have to patch your kernel with one of blaisor's patches: > > >http://www.user-mode-linux.org/~blaisorblade/patches/guest/uml-VERSION- >XX/b >roken-out/uml-mconsole_exec > > After that it should work. Note that I forgot it in some recent -bb/-bs releases, so you'll maybe need to take it from older ones. > Thanks for pointing it out though. It's a really useful feature that > should help me overcome my IP problem. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". 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