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 Then you can use networking. Please not that slirp does not have a performance. Depending on your slirp package you can tweak it. Thanks, //richard ------------------------------------------------------------------------------ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user