From: Balaco B. <bal...@im...> - 2015-11-22 15:39:16
|
On Fri, Nov 13, 2015, at 18:15, Richard Weinberger wrote: > Am 12.11.2015 um 14:22 schrieb Balaco Baco: > > On Thu, Nov 12, 2015, at 10:00, Richard Weinberger wrote: > >> Am 12.11.2015 um 02:57 schrieb Balaco Baco: > >>> On Wed, Nov 11, 2015, at 17:34, Richard Weinberger wrote: > >>>> Am 11.11.2015 um 18:57 schrieb Balaco Baco: > >>>>> Since I have no root access in the host machine, I must use 'slirp'. > >>>>> Right? Now I'll install it (https://en.wikipedia.org/wiki/Slirp) from > >>>>> source and pass the full path to UML in the command line, e.g.: > >>>> > >>>> Yes. > >>>> > >>>>> eth0=slirp,,/home/me/bin/ > >>>> > >>>> Documentation says: ethn=slirp,ethernet address,slirp path > >>>> > >>>> That said, the slirp tool is old and AFIAK unmaintained. > >>>> qemu forked it a long time ago and has it integrated into its > >>>> source. > >>>> > >>> > >>> Documentation of UML also said that ethernet address is optional. I did > >>> both ways, none worked (and it took me a few minutes and tries to find > >>> out that not all MAC addresses are possible to use for a virtual machine > >>> like UML; is this at least mentioned in some UML doc? It shouls, IMHO). > >>> > >>> So, is it possible that I run an UML with full Internet access, and > >>> without having root access in the host machine? Or am I trying something > >>> that from the start was not possible? > >>> > >>> If it is not possible, is it easy to set up some form of file sharing > >>> between the host and UML machine? (again, this must *not* depend on host > >>> root access!) > >> > >> As I said, if you don't have root on the host, you have to use slirp. > >> > > > > And I am using slirp. But it do not work yet. I'm not sure what is > > wrong. May you help me? > > Just gave it a try. Works here. > > ./linux ubda=../Downloads/Debian-Squeeze-AMD64-root_fs mem=1G > eth0=slirp,FE:FD:01:02:03:04,/home/rw/work/slirp/slirp-1.0.17/src/slirp > > root@uml:~# ifconfig eth0 10.0.2.15 up > root@uml:~# route add default gw 10.0.2.15 Do not work for me. And to point directly to the slirp program instead of its folder (which is understood by many as the *path* for anything, not the things themselves, with full path) is news for me, and something that should be pointed in the docs. I think many others will understand it as I did before you said this. Now there is a few lines about slirt and ETH0: ======================= [autodetect SLIP/CSLIP, MTU 1500, MRU 1500, 115200 baud] SLiRP Ready ... Unsupported device type 256 for "eth0" Failed to bring up eth0. done. ======================== What can I do? > Then you can use networking. Please not that slirp does not have a > performance. > Depending on your slirp package you can tweak it. I have compiled it from source. Do you know exactly where and how I can tweak it? If so, please say how, so I don't have to search and find what is already known. Thank you -- http://www.fastmail.com - Email service worth paying for. Try it for free |