Re: [uml-user] Detail with one config warning

2015-11-29 Thread Balaco Baco
On Mon, Nov 23, 2015, at 19:15, Balaco Baco wrote:
> On Mon, Nov 23, 2015, at 18:32, Richard Weinberger wrote:
> > Am 23.11.2015 um 22:31 schrieb Balaco Baco:
> > > I skimmed though it. To use ping to test if Internet connections are
> > > working or not is one the most basic things everybody does and learn.
> > > If, in some exotic setup (like UML's) makes this different, it should
> > > say so, clearly (and not "indirectly obvious"). There are more than 15
> > > years I have done and seen ping being used to test connections.
> > > 
> > > ... now I must do this! I'm barely believing it... BRB... - if it does
> > > not work only! :P hahaha
> > > 
> > 
> > Again, this has 0 to do with UML, with qemu's user networking, which is
> > based
> > on SLIRP, it is the same...
> 
> I don't understand these things much more than knowing their names and
> what it does.
> 
> (...)
> 
> :(
> 
> Believe it or not, It still does not work: 
> 
> ==
> $ apt-get download vim
> Err Downloading vim 2:7.3.547-7 
>   Temporary failure resolving 'ftp.fr.debian.org'
> ==
> 
> And /etc/resolv.conf has the same contents of the host's file.
> 
> The command ifconfig gives:
> 
> $ ifconfig
> eth0  Link encap:Serial Line IP  
>   inet addr:10.0.2.15  Mask:255.0.0.0
>   UP RUNNING NOARP  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:256 
>   RX bytes:0 (0.0 B)  TX bytes:10296 (10.0 KiB)
>   Interrupt:5 
> 
> loLink encap:Local Loopback  
>   inet addr:127.0.0.1  Mask:255.0.0.0
>   UP LOOPBACK RUNNING  MTU:65536  Metric:1
>   RX packets:26 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0 
>   RX bytes:2004 (1.9 KiB)  TX bytes:2004 (1.9 KiB)
> 
> 
> Makeing a wget with IPs (I copied manually) also don't work:
> 
> ===
> $  wget ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
> --2015-11-23 22:10:02-- 
> ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
>=> `bison-1.25.tar.gz'
> Connecting to 208.118.235.20:21... failed: Connection timed out.
> Retrying.
> 
> --2015-11-23 22:12:11-- 
> ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
>   (try: 2) => `bison-1.25.tar.gz'
> Connecting to 208.118.235.20:21... 
> 
> # Minutes pass without any better output. The file is just 280KiB, it
> could have
> # been downloaded with a dial up connection (so the slowness of Slirp
> surely is
> # not the case here).
> ===
> 
> I don't know what else would be useful for you. I would try SSH but it's
> not installed now in the my Debian.
> 
> How can I make DNS work, then?
> 
> 

I still cannot make it run with network fully working (for programs like
apt-get, ssh, links, ...). What do I need to do now?


-- 
  Balaco




-- 
http://www.fastmail.com - mmm... Fastmail...


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 18:32, Richard Weinberger wrote:
> Am 23.11.2015 um 22:31 schrieb Balaco Baco:
> > I skimmed though it. To use ping to test if Internet connections are
> > working or not is one the most basic things everybody does and learn.
> > If, in some exotic setup (like UML's) makes this different, it should
> > say so, clearly (and not "indirectly obvious"). There are more than 15
> > years I have done and seen ping being used to test connections.
> > 
> > ... now I must do this! I'm barely believing it... BRB... - if it does
> > not work only! :P hahaha
> > 
> 
> Again, this has 0 to do with UML, with qemu's user networking, which is
> based
> on SLIRP, it is the same...

I don't understand these things much more than knowing their names and
what it does.

(...)

:(

Believe it or not, It still does not work: 

==
$ apt-get download vim
Err Downloading vim 2:7.3.547-7 
  Temporary failure resolving 'ftp.fr.debian.org'
==

And /etc/resolv.conf has the same contents of the host's file.

The command ifconfig gives:

$ ifconfig
eth0  Link encap:Serial Line IP  
  inet addr:10.0.2.15  Mask:255.0.0.0
  UP RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:256 
  RX bytes:0 (0.0 B)  TX bytes:10296 (10.0 KiB)
  Interrupt:5 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:26 errors:0 dropped:0 overruns:0 frame:0
  TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:2004 (1.9 KiB)  TX bytes:2004 (1.9 KiB)


Makeing a wget with IPs (I copied manually) also don't work:

===
$  wget ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
--2015-11-23 22:10:02-- 
ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
   => `bison-1.25.tar.gz'
Connecting to 208.118.235.20:21... failed: Connection timed out.
Retrying.

--2015-11-23 22:12:11-- 
ftp://208.118.235.20/gnu/bison/bison-1.25.tar.gz
  (try: 2) => `bison-1.25.tar.gz'
Connecting to 208.118.235.20:21... 

# Minutes pass without any better output. The file is just 280KiB, it
could have
# been downloaded with a dial up connection (so the slowness of Slirp
surely is
# not the case here).
===

I don't know what else would be useful for you. I would try SSH but it's
not installed now in the my Debian.

How can I make DNS work, then?


-- 
http://www.fastmail.com - Same, same, but different...


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 22:31 schrieb Balaco Baco:
> I skimmed though it. To use ping to test if Internet connections are
> working or not is one the most basic things everybody does and learn.
> If, in some exotic setup (like UML's) makes this different, it should
> say so, clearly (and not "indirectly obvious"). There are more than 15
> years I have done and seen ping being used to test connections.
> 
> ... now I must do this! I'm barely believing it... BRB... - if it does
> not work only! :P hahaha
> 

Again, this has 0 to do with UML, with qemu's user networking, which is based
on SLIRP, it is the same...

Thanks,
//richard

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 17:57, Richard Weinberger wrote:
> Am 23.11.2015 um 21:55 schrieb Balaco Baco:
> > On Mon, Nov 23, 2015, at 17:50, Richard Weinberger wrote:
> >> Am 23.11.2015 um 21:48 schrieb Balaco Baco:
> >>> Please be clearer.
> >>>
> >>> You said "you can also use the Internet". But after that you repeat "As
> >>> I wrote ICMP is not supported on SLIRP." So what do I have here? What
> >>> are the practical ways to use the Internet within UML machine? The
> >>> things want to do is to download packages, open websites, and other
> >>> common Internet uses from most computers.
> >>
> >> Please read on ICMP. You don't need it to view porn.
> >> TCP is what you need. :-)
> >>
> > 
> > :-/
> > 
> > I really don't understand why you insist on repeating what I already
> > showed that does not help me. I need more details.
> > 
> > https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
> > 
> > So? What can I do with it? Can you make a drawing, please?
> 
> Did you read the article?
> 
> It will tell you that ping is using it. So, no ping for you.
> But as TCP and UDP are fully supported the web will work.
> 

I skimmed though it. To use ping to test if Internet connections are
working or not is one the most basic things everybody does and learn.
If, in some exotic setup (like UML's) makes this different, it should
say so, clearly (and not "indirectly obvious"). There are more than 15
years I have done and seen ping being used to test connections.

... now I must do this! I'm barely believing it... BRB... - if it does
not work only! :P hahaha


-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
  unladen european swallow


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:55 schrieb Balaco Baco:
> On Mon, Nov 23, 2015, at 17:50, Richard Weinberger wrote:
>> Am 23.11.2015 um 21:48 schrieb Balaco Baco:
>>> Please be clearer.
>>>
>>> You said "you can also use the Internet". But after that you repeat "As
>>> I wrote ICMP is not supported on SLIRP." So what do I have here? What
>>> are the practical ways to use the Internet within UML machine? The
>>> things want to do is to download packages, open websites, and other
>>> common Internet uses from most computers.
>>
>> Please read on ICMP. You don't need it to view porn.
>> TCP is what you need. :-)
>>
> 
> :-/
> 
> I really don't understand why you insist on repeating what I already
> showed that does not help me. I need more details.
> 
> https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
> 
> So? What can I do with it? Can you make a drawing, please?

Did you read the article?

It will tell you that ping is using it. So, no ping for you.
But as TCP and UDP are fully supported the web will work.

Thanks,
//richard

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 17:50, Richard Weinberger wrote:
> Am 23.11.2015 um 21:48 schrieb Balaco Baco:
> > Please be clearer.
> > 
> > You said "you can also use the Internet". But after that you repeat "As
> > I wrote ICMP is not supported on SLIRP." So what do I have here? What
> > are the practical ways to use the Internet within UML machine? The
> > things want to do is to download packages, open websites, and other
> > common Internet uses from most computers.
> 
> Please read on ICMP. You don't need it to view porn.
> TCP is what you need. :-)
> 

:-/

I really don't understand why you insist on repeating what I already
showed that does not help me. I need more details.

https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol

So? What can I do with it? Can you make a drawing, please?


-- 
http://www.fastmail.com - mmm... Fastmail...


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:48 schrieb Balaco Baco:
> Please be clearer.
> 
> You said "you can also use the Internet". But after that you repeat "As
> I wrote ICMP is not supported on SLIRP." So what do I have here? What
> are the practical ways to use the Internet within UML machine? The
> things want to do is to download packages, open websites, and other
> common Internet uses from most computers.

Please read on ICMP. You don't need it to view porn.
TCP is what you need. :-)

Thanks,
//richard

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 17:32, Richard Weinberger wrote:
> Am 23.11.2015 um 21:31 schrieb Balaco Baco:
> > On Mon, Nov 23, 2015, at 17:07, Richard Weinberger wrote:
> >> Am 23.11.2015 um 21:04 schrieb Balaco Baco:
> >>> On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote:
>  Am 23.11.2015 um 20:04 schrieb Balaco Baco:
> > On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
> >> Am 22.11.2015 um 16:39 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.
> >>
> >> "Does not work" is not a valid error description.
> >> Please find out what exactly does not work.
> >
> > There is no clear error. In this paragraph I just pointed to something
> > in the instructions that mislead me to give the path to the folder
> > *where* slirp was, instead of the slip program itself, its file. The
> > most I could see that did not work I said right after, below in the
> > previous message. Please assume and try to see that I'm trying my best
> > to follow your directions, but I still could not do it although you just
> > said you did.
> >
> > You may also ask me to directly do things or steps that you do (maybe
> > it's something I don't know or do that make it don't work).
> >
> >
> >>> 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.
> >>>
> >>> 
> >>
> >> DHCP cannot work on SLIRP.
> >> That's why you have to configure the interface manually.
> >>
> >>> What can I do?
> >>>
> >
> > If configure the interface manually is to type the commands (inside UML)
> >  below, that I did before:
> >
> > root@uml:~# ifconfig eth0 10.0.2.15 up
> > root@uml:~# route add default gw 10.0.2.15
> >
> > It did not work.
> >
> > What information is useful for you? I don't know. So, since you seem to
> > have thought I did not try enough before, now I'm sending the whole boot
> > log, and each step I did before and repeated right now, after I read
> > your message.
> >
> >
>  Then you can use networking. Please not that slirp does not have a
>  performance.
>  Depending on yo

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:31 schrieb Balaco Baco:
> On Mon, Nov 23, 2015, at 17:07, Richard Weinberger wrote:
>> Am 23.11.2015 um 21:04 schrieb Balaco Baco:
>>> On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote:
 Am 23.11.2015 um 20:04 schrieb Balaco Baco:
> On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
>> Am 22.11.2015 um 16:39 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.
>>
>> "Does not work" is not a valid error description.
>> Please find out what exactly does not work.
>
> There is no clear error. In this paragraph I just pointed to something
> in the instructions that mislead me to give the path to the folder
> *where* slirp was, instead of the slip program itself, its file. The
> most I could see that did not work I said right after, below in the
> previous message. Please assume and try to see that I'm trying my best
> to follow your directions, but I still could not do it although you just
> said you did.
>
> You may also ask me to directly do things or steps that you do (maybe
> it's something I don't know or do that make it don't work).
>
>
>>> 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.
>>>
>>> 
>>
>> DHCP cannot work on SLIRP.
>> That's why you have to configure the interface manually.
>>
>>> What can I do?
>>>
>
> If configure the interface manually is to type the commands (inside UML)
>  below, that I did before:
>
> root@uml:~# ifconfig eth0 10.0.2.15 up
> root@uml:~# route add default gw 10.0.2.15
>
> It did not work.
>
> What information is useful for you? I don't know. So, since you seem to
> have thought I did not try enough before, now I'm sending the whole boot
> log, and each step I did before and repeated right now, after I read
> your message.
>
>
 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.
>>
>> AFAIK Debian folks have some patches in their package.
>
> I choose the best distro I

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 17:07, Richard Weinberger wrote:
> Am 23.11.2015 um 21:04 schrieb Balaco Baco:
> > On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote:
> >> Am 23.11.2015 um 20:04 schrieb Balaco Baco:
> >>> On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
>  Am 22.11.2015 um 16:39 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.
> 
>  "Does not work" is not a valid error description.
>  Please find out what exactly does not work.
> >>>
> >>> There is no clear error. In this paragraph I just pointed to something
> >>> in the instructions that mislead me to give the path to the folder
> >>> *where* slirp was, instead of the slip program itself, its file. The
> >>> most I could see that did not work I said right after, below in the
> >>> previous message. Please assume and try to see that I'm trying my best
> >>> to follow your directions, but I still could not do it although you just
> >>> said you did.
> >>>
> >>> You may also ask me to directly do things or steps that you do (maybe
> >>> it's something I don't know or do that make it don't work).
> >>>
> >>>
> > 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.
> >
> > 
> 
>  DHCP cannot work on SLIRP.
>  That's why you have to configure the interface manually.
> 
> > What can I do?
> >
> >>>
> >>> If configure the interface manually is to type the commands (inside UML)
> >>>  below, that I did before:
> >>>
> >>> root@uml:~# ifconfig eth0 10.0.2.15 up
> >>> root@uml:~# route add default gw 10.0.2.15
> >>>
> >>> It did not work.
> >>>
> >>> What information is useful for you? I don't know. So, since you seem to
> >>> have thought I did not try enough before, now I'm sending the whole boot
> >>> log, and each step I did before and repeated right now, after I read
> >>> your message.
> >>>
> >>>
> >> 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.
> 
>  AFAIK Debian folks have some patches in their package.
> >>>
> >>> I choose the best distro I know for the intended uses (RedHat and sister

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:04 schrieb Balaco Baco:
> On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote:
>> Am 23.11.2015 um 20:04 schrieb Balaco Baco:
>>> On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
 Am 22.11.2015 um 16:39 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.

 "Does not work" is not a valid error description.
 Please find out what exactly does not work.
>>>
>>> There is no clear error. In this paragraph I just pointed to something
>>> in the instructions that mislead me to give the path to the folder
>>> *where* slirp was, instead of the slip program itself, its file. The
>>> most I could see that did not work I said right after, below in the
>>> previous message. Please assume and try to see that I'm trying my best
>>> to follow your directions, but I still could not do it although you just
>>> said you did.
>>>
>>> You may also ask me to directly do things or steps that you do (maybe
>>> it's something I don't know or do that make it don't work).
>>>
>>>
> 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.
>
> 

 DHCP cannot work on SLIRP.
 That's why you have to configure the interface manually.

> What can I do?
>
>>>
>>> If configure the interface manually is to type the commands (inside UML)
>>>  below, that I did before:
>>>
>>> root@uml:~# ifconfig eth0 10.0.2.15 up
>>> root@uml:~# route add default gw 10.0.2.15
>>>
>>> It did not work.
>>>
>>> What information is useful for you? I don't know. So, since you seem to
>>> have thought I did not try enough before, now I'm sending the whole boot
>>> log, and each step I did before and repeated right now, after I read
>>> your message.
>>>
>>>
>> 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.

 AFAIK Debian folks have some patches in their package.
>>>
>>> I choose the best distro I know for the intended uses (RedHat and sister
>>> is usually not that good, but I don't discard using them to start). I
>>> did not use Fedora or RedHat that even the blog shows because I don't
>>> want and don't need graphical interface. Just CLI is perfect, just fine.
>>>
>>> If you can point which patch or which feature Debian patched I can work
>>> around it. Right now I k

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote:
> Am 23.11.2015 um 20:04 schrieb Balaco Baco:
> > On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
> >> Am 22.11.2015 um 16:39 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.
> >>
> >> "Does not work" is not a valid error description.
> >> Please find out what exactly does not work.
> > 
> > There is no clear error. In this paragraph I just pointed to something
> > in the instructions that mislead me to give the path to the folder
> > *where* slirp was, instead of the slip program itself, its file. The
> > most I could see that did not work I said right after, below in the
> > previous message. Please assume and try to see that I'm trying my best
> > to follow your directions, but I still could not do it although you just
> > said you did.
> > 
> > You may also ask me to directly do things or steps that you do (maybe
> > it's something I don't know or do that make it don't work).
> > 
> > 
> >>> 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.
> >>>
> >>> 
> >>
> >> DHCP cannot work on SLIRP.
> >> That's why you have to configure the interface manually.
> >>
> >>> What can I do?
> >>>
> > 
> > If configure the interface manually is to type the commands (inside UML)
> >  below, that I did before:
> > 
> > root@uml:~# ifconfig eth0 10.0.2.15 up
> > root@uml:~# route add default gw 10.0.2.15
> > 
> > It did not work.
> > 
> > What information is useful for you? I don't know. So, since you seem to
> > have thought I did not try enough before, now I'm sending the whole boot
> > log, and each step I did before and repeated right now, after I read
> > your message.
> > 
> > 
>  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.
> >>
> >> AFAIK Debian folks have some patches in their package.
> > 
> > I choose the best distro I know for the intended uses (RedHat and sister
> > is usually not that good, but I don't discard using them to start). I
> > did not use Fedora or RedHat that even the blog shows because I don't
> > want and don't need graphical interface. Just CLI is perfect, just fine.
> > 
> > If you can point which patch or which feature Debian patched I can work
> > around it. Right now I know that it may have some problem, 

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 20:04 schrieb Balaco Baco:
> On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
>> Am 22.11.2015 um 16:39 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.
>>
>> "Does not work" is not a valid error description.
>> Please find out what exactly does not work.
> 
> There is no clear error. In this paragraph I just pointed to something
> in the instructions that mislead me to give the path to the folder
> *where* slirp was, instead of the slip program itself, its file. The
> most I could see that did not work I said right after, below in the
> previous message. Please assume and try to see that I'm trying my best
> to follow your directions, but I still could not do it although you just
> said you did.
> 
> You may also ask me to directly do things or steps that you do (maybe
> it's something I don't know or do that make it don't work).
> 
> 
>>> 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.
>>>
>>> 
>>
>> DHCP cannot work on SLIRP.
>> That's why you have to configure the interface manually.
>>
>>> What can I do?
>>>
> 
> If configure the interface manually is to type the commands (inside UML)
>  below, that I did before:
> 
> root@uml:~# ifconfig eth0 10.0.2.15 up
> root@uml:~# route add default gw 10.0.2.15
> 
> It did not work.
> 
> What information is useful for you? I don't know. So, since you seem to
> have thought I did not try enough before, now I'm sending the whole boot
> log, and each step I did before and repeated right now, after I read
> your message.
> 
> 
 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.
>>
>> AFAIK Debian folks have some patches in their package.
> 
> I choose the best distro I know for the intended uses (RedHat and sister
> is usually not that good, but I don't discard using them to start). I
> did not use Fedora or RedHat that even the blog shows because I don't
> want and don't need graphical interface. Just CLI is perfect, just fine.
> 
> If you can point which patch or which feature Debian patched I can work
> around it. Right now I know that it may have some problem, but I can
> even look for help my self or anywhere else because I don't know what it
> is - not much clues I can tell.
> 
>> Thanks,
>> //richard
> 
> Ironically, doing the same steps I did before it seemed to work today.
> :-/ I hate when this happens... hopefully it won't stop tomorrow, with
> another ironic happening.
> 
> Now, with a close to work si

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Balaco Baco
On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote:
> Am 22.11.2015 um 16:39 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.
> 
> "Does not work" is not a valid error description.
> Please find out what exactly does not work.

There is no clear error. In this paragraph I just pointed to something
in the instructions that mislead me to give the path to the folder
*where* slirp was, instead of the slip program itself, its file. The
most I could see that did not work I said right after, below in the
previous message. Please assume and try to see that I'm trying my best
to follow your directions, but I still could not do it although you just
said you did.

You may also ask me to directly do things or steps that you do (maybe
it's something I don't know or do that make it don't work).


> > 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.
> > 
> > 
> 
> DHCP cannot work on SLIRP.
> That's why you have to configure the interface manually.
> 
> > What can I do?
> > 

If configure the interface manually is to type the commands (inside UML)
 below, that I did before:

root@uml:~# ifconfig eth0 10.0.2.15 up
root@uml:~# route add default gw 10.0.2.15

It did not work.

What information is useful for you? I don't know. So, since you seem to
have thought I did not try enough before, now I'm sending the whole boot
log, and each step I did before and repeated right now, after I read
your message.


> >> 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.
> 
> AFAIK Debian folks have some patches in their package.

I choose the best distro I know for the intended uses (RedHat and sister
is usually not that good, but I don't discard using them to start). I
did not use Fedora or RedHat that even the blog shows because I don't
want and don't need graphical interface. Just CLI is perfect, just fine.

If you can point which patch or which feature Debian patched I can work
around it. Right now I know that it may have some problem, but I can
even look for help my self or anywhere else because I don't know what it
is - not much clues I can tell.

> Thanks,
> //richard

Ironically, doing the same steps I did before it seemed to work today.
:-/ I hate when this happens... hopefully it won't stop tomorrow, with
another ironic happening.

Now, with a close to work situaton, I guessed that it just needed to
find the DNS the host uses (easy, fine), and then I repeat the route add
command. But this is not

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 22.11.2015 um 16:39 schrieb Balaco Baco:
> 
> 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.

"Does not work" is not a valid error description.
Please find out what exactly does not work.

> 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.
> 
> 

DHCP cannot work on SLIRP.
That's why you have to configure the interface manually.

> 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.

AFAIK Debian folks have some patches in their package.

Thanks,
//richard

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-22 Thread Balaco Baco

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


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-13 Thread Richard Weinberger
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


Re: [uml-user] Detail with one config warning

2015-11-12 Thread 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?

I have said what I tried and do to use slirp. If needed, I can say it
again with more details, just ask.


-- 
http://www.fastmail.com - Same, same, but different...


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-12 Thread Richard Weinberger
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.

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


Re: [uml-user] Detail with one config warning

2015-11-11 Thread 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!)

-- 
http://www.fastmail.com - Same, same, but different...


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread 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.
> 

Slirp seems good enough. I have downloaded, compiled and installed it.
And as detailed in the other message, now I'm stuck on how to use it to
run with UML.

If Qemu did this, why not doing it with UML too? Since the network setup
may depend on it for many users (with use cases similar to mine, without
root access in the host).


-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
  unladen european swallow


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
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.

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


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Balaco Baco
On Wed, Nov 11, 2015, at 15:42, Balaco Baco wrote:
> On Wed, Nov 11, 2015, at 14:57, Balaco Baco wrote:
> > On Wed, Nov 11, 2015, at 14:29, Richard Weinberger wrote:
> > > Am 11.11.2015 um 18:21 schrieb Balaco Baco:
> > > > On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote:
> > > >> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  
> > > >> wrote:
> > > >>> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
> > >  On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  
> > >  wrote:
> > > > There is one details that did not work for me, but it was easy to 
> > > > "fix"
> > > > (quotes because I'm not sure it is the best fix). But someone else 
> > > > may
> > > > find it useful.
> > > >
> > > > Detailed steps so everyone can compare doing it, if needed:
> > > >
> > > >>  1. get one kernel source package from https://cdn.kernel.org/
> > > >>  (I tried these steps with more than one option, searching for the 
> > > >> older and more stable
> > > >>  version; if the results are different for you, try another one; 
> > > >> below I copied my 4.2.6 try; 3.18 does not have this problem)
> > > >
> > > >>  2. extract it.
> > > > $ tar xJf ...
> > > > $ cd lin
> > > >
> > > >>  3. first step...
> > > > $ make defconfig ARCH=um #uml1
> > > >
> > > > *** Default configuration is based on 'x86_64_defconfig'
> > > > kernel/time/Kconfig:157:warning: range is invalid
> > > > #
> > > > # configuration written to .config
> > > > #
> > > >
> > > >> That warning is strange. I did not like it. So I just edited that 
> > > >> file, and changed it! :D hehehe
> > > >
> > > > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> > > > -range 1 NR_CPUS
> > > > +   range 1 1
> > > >
> > > >> So, again...
> > > > # make defconfig ARCH=um #uml1
> > > > *** Default configuration is based on 'x86_64_defconfig'
> > > > #
> > > > # configuration written to .config
> > > > #
> > > >
> > > >> So, assume the next steps have no problem, except that I don't know
> > > >> how to make my UML access the Internet... this is in another
> > > >> discussion, though
> > > >
> > > >> ... ?
> > > > $ make menuconfig ARCH=um #uml2
> > > >
> > > >> Build it
> > > > $ make ARCH=um #uml3 uml4 uml5
> > > >
> > > >> Run it now... but where is my Internet? :( hehehehe
> > > 
> > >  You did not configure a connection.
> > >  tuntap is a common method.
> > > 
> > > >>>
> > > >>> To add something like 'eth0=tuntap,,,192.168.1.100' to the command 
> > > >>> line
> > > >>> is enough? Or I must change some config step that is not the default?
> > > >>
> > > >> Depends on your setup.
> > > >> A common setup is " eth0=tuntap,tap0".
> > > >> i.e. create a tap0 in your host and setup routing/ips.
> > > >>
> > > > 
> > > > I (yet) have no clue what a tap is. Searches¹ did not ring many clear
> > > > bells for me.
> > > > 
> > > > ¹https://duckduckgo.com/html/?q=uml+user+mode+linux+tuntap
> > > > 
> > > > My setup is what I have showed here. I have a AMD64 Debian image
> > > > (Debian-Wheezy-AMD64-root_fs). The compile config I have showed here (I
> > > > did not change anything besides a few options of the given default, and
> > > > most of the tries I did not do these changes).
> > > > 
> > > > 
> > > 
> > > http://user-mode-linux.sourceforge.net/old/networking.html
> > > https://en.wikipedia.org/wiki/TUN/TAP
> > > 
> > 
> > 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.:
> > 
> > eth0=slirp,,/home/me/bin/
> > 
> > 
> 
> Compiled slirp from source, installed it locally.
> 
> Now I have two SSH sessions with the host. In the first one I run slirp
> without arguments. I keep it running, its output is:
> 
> =
> $slirp 
> Slirp v1.0.16 (BETA)
> 
> [...] 
> 
> IP address of Slirp host: 127.0.1.1
> IP address of your DNS(s): 999.888.7.66, 555.444.3.22 # the real DNS the
> host uses
> Your address is 10.0.2.15
> (or anything else you want)
> 
> Type five zeroes (0) to exit.
> 
> [autodetect SLIP/CSLIP, MTU 1500, MRU 1500, 115200 baud]
> 
> SLiRP Ready ...
> =
> 
> In the other session, I boot the UML with:
> 
> ./linux4.2.6 ubda=Debian-Wheezy-AMD64-root_fs mem=128M
> eth0=slirp,,~/root/bin/slirp #uml6
> 
> But the network still don't work:
> 
> 
> $ping 123.122.1.21
> connect: Network is unreachable
> $route add default dev eth0 #rede1 # taken from
> http://user-mode-linux.sourceforge.net/old/networking.html Slirp section
> SIOCADDRT: Network is down
> $
> 
> 
> I also tried it without running the slirp before, same result. I don't
> know what to do here.
> 
> 

Blindly tried:

root@uml: ~$ ifup -a
Internet Systems Consort

Re: [uml-user] Detail with one config warning

2015-11-11 Thread Balaco Baco
On Wed, Nov 11, 2015, at 14:57, Balaco Baco wrote:
> On Wed, Nov 11, 2015, at 14:29, Richard Weinberger wrote:
> > Am 11.11.2015 um 18:21 schrieb Balaco Baco:
> > > On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote:
> > >> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  wrote:
> > >>> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
> >  On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  
> >  wrote:
> > > There is one details that did not work for me, but it was easy to 
> > > "fix"
> > > (quotes because I'm not sure it is the best fix). But someone else may
> > > find it useful.
> > >
> > > Detailed steps so everyone can compare doing it, if needed:
> > >
> > >>  1. get one kernel source package from https://cdn.kernel.org/
> > >>  (I tried these steps with more than one option, searching for the 
> > >> older and more stable
> > >>  version; if the results are different for you, try another one; 
> > >> below I copied my 4.2.6 try; 3.18 does not have this problem)
> > >
> > >>  2. extract it.
> > > $ tar xJf ...
> > > $ cd lin
> > >
> > >>  3. first step...
> > > $ make defconfig ARCH=um #uml1
> > >
> > > *** Default configuration is based on 'x86_64_defconfig'
> > > kernel/time/Kconfig:157:warning: range is invalid
> > > #
> > > # configuration written to .config
> > > #
> > >
> > >> That warning is strange. I did not like it. So I just edited that 
> > >> file, and changed it! :D hehehe
> > >
> > > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> > > -range 1 NR_CPUS
> > > +   range 1 1
> > >
> > >> So, again...
> > > # make defconfig ARCH=um #uml1
> > > *** Default configuration is based on 'x86_64_defconfig'
> > > #
> > > # configuration written to .config
> > > #
> > >
> > >> So, assume the next steps have no problem, except that I don't know
> > >> how to make my UML access the Internet... this is in another
> > >> discussion, though
> > >
> > >> ... ?
> > > $ make menuconfig ARCH=um #uml2
> > >
> > >> Build it
> > > $ make ARCH=um #uml3 uml4 uml5
> > >
> > >> Run it now... but where is my Internet? :( hehehehe
> > 
> >  You did not configure a connection.
> >  tuntap is a common method.
> > 
> > >>>
> > >>> To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
> > >>> is enough? Or I must change some config step that is not the default?
> > >>
> > >> Depends on your setup.
> > >> A common setup is " eth0=tuntap,tap0".
> > >> i.e. create a tap0 in your host and setup routing/ips.
> > >>
> > > 
> > > I (yet) have no clue what a tap is. Searches¹ did not ring many clear
> > > bells for me.
> > > 
> > > ¹https://duckduckgo.com/html/?q=uml+user+mode+linux+tuntap
> > > 
> > > My setup is what I have showed here. I have a AMD64 Debian image
> > > (Debian-Wheezy-AMD64-root_fs). The compile config I have showed here (I
> > > did not change anything besides a few options of the given default, and
> > > most of the tries I did not do these changes).
> > > 
> > > 
> > 
> > http://user-mode-linux.sourceforge.net/old/networking.html
> > https://en.wikipedia.org/wiki/TUN/TAP
> > 
> 
> 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.:
> 
> eth0=slirp,,/home/me/bin/
> 
> 

Compiled slirp from source, installed it locally.

Now I have two SSH sessions with the host. In the first one I run slirp
without arguments. I keep it running, its output is:

=
$slirp 
Slirp v1.0.16 (BETA)

[...] 

IP address of Slirp host: 127.0.1.1
IP address of your DNS(s): 999.888.7.66, 555.444.3.22 # the real DNS the
host uses
Your address is 10.0.2.15
(or anything else you want)

Type five zeroes (0) to exit.

[autodetect SLIP/CSLIP, MTU 1500, MRU 1500, 115200 baud]

SLiRP Ready ...
=

In the other session, I boot the UML with:

./linux4.2.6 ubda=Debian-Wheezy-AMD64-root_fs mem=128M
eth0=slirp,,~/root/bin/slirp #uml6

But the network still don't work:


$ping 123.122.1.21
connect: Network is unreachable
$route add default dev eth0 #rede1 # taken from
http://user-mode-linux.sourceforge.net/old/networking.html Slirp section
SIOCADDRT: Network is down
$


I also tried it without running the slirp before, same result. I don't
know what to do here.


-- 
http://www.fastmail.com - Does exactly what it says on the tin


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Balaco Baco
On Wed, Nov 11, 2015, at 14:29, Richard Weinberger wrote:
> Am 11.11.2015 um 18:21 schrieb Balaco Baco:
> > On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote:
> >> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  wrote:
> >>> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
>  On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
> > There is one details that did not work for me, but it was easy to "fix"
> > (quotes because I'm not sure it is the best fix). But someone else may
> > find it useful.
> >
> > Detailed steps so everyone can compare doing it, if needed:
> >
> >>  1. get one kernel source package from https://cdn.kernel.org/
> >>  (I tried these steps with more than one option, searching for the 
> >> older and more stable
> >>  version; if the results are different for you, try another one; below 
> >> I copied my 4.2.6 try; 3.18 does not have this problem)
> >
> >>  2. extract it.
> > $ tar xJf ...
> > $ cd lin
> >
> >>  3. first step...
> > $ make defconfig ARCH=um #uml1
> >
> > *** Default configuration is based on 'x86_64_defconfig'
> > kernel/time/Kconfig:157:warning: range is invalid
> > #
> > # configuration written to .config
> > #
> >
> >> That warning is strange. I did not like it. So I just edited that 
> >> file, and changed it! :D hehehe
> >
> > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> > -range 1 NR_CPUS
> > +   range 1 1
> >
> >> So, again...
> > # make defconfig ARCH=um #uml1
> > *** Default configuration is based on 'x86_64_defconfig'
> > #
> > # configuration written to .config
> > #
> >
> >> So, assume the next steps have no problem, except that I don't know
> >> how to make my UML access the Internet... this is in another
> >> discussion, though
> >
> >> ... ?
> > $ make menuconfig ARCH=um #uml2
> >
> >> Build it
> > $ make ARCH=um #uml3 uml4 uml5
> >
> >> Run it now... but where is my Internet? :( hehehehe
> 
>  You did not configure a connection.
>  tuntap is a common method.
> 
> >>>
> >>> To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
> >>> is enough? Or I must change some config step that is not the default?
> >>
> >> Depends on your setup.
> >> A common setup is " eth0=tuntap,tap0".
> >> i.e. create a tap0 in your host and setup routing/ips.
> >>
> > 
> > I (yet) have no clue what a tap is. Searches¹ did not ring many clear
> > bells for me.
> > 
> > ¹https://duckduckgo.com/html/?q=uml+user+mode+linux+tuntap
> > 
> > My setup is what I have showed here. I have a AMD64 Debian image
> > (Debian-Wheezy-AMD64-root_fs). The compile config I have showed here (I
> > did not change anything besides a few options of the given default, and
> > most of the tries I did not do these changes).
> > 
> > 
> 
> http://user-mode-linux.sourceforge.net/old/networking.html
> https://en.wikipedia.org/wiki/TUN/TAP
> 

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.:

eth0=slirp,,/home/me/bin/


-- 
http://www.fastmail.com - IMAP accessible web-mail


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
Am 11.11.2015 um 18:21 schrieb Balaco Baco:
> On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote:
>> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  wrote:
>>> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
 On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
> There is one details that did not work for me, but it was easy to "fix"
> (quotes because I'm not sure it is the best fix). But someone else may
> find it useful.
>
> Detailed steps so everyone can compare doing it, if needed:
>
>>  1. get one kernel source package from https://cdn.kernel.org/
>>  (I tried these steps with more than one option, searching for the older 
>> and more stable
>>  version; if the results are different for you, try another one; below I 
>> copied my 4.2.6 try; 3.18 does not have this problem)
>
>>  2. extract it.
> $ tar xJf ...
> $ cd lin
>
>>  3. first step...
> $ make defconfig ARCH=um #uml1
>
> *** Default configuration is based on 'x86_64_defconfig'
> kernel/time/Kconfig:157:warning: range is invalid
> #
> # configuration written to .config
> #
>
>> That warning is strange. I did not like it. So I just edited that file, 
>> and changed it! :D hehehe
>
> $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> -range 1 NR_CPUS
> +   range 1 1
>
>> So, again...
> # make defconfig ARCH=um #uml1
> *** Default configuration is based on 'x86_64_defconfig'
> #
> # configuration written to .config
> #
>
>> So, assume the next steps have no problem, except that I don't know
>> how to make my UML access the Internet... this is in another
>> discussion, though
>
>> ... ?
> $ make menuconfig ARCH=um #uml2
>
>> Build it
> $ make ARCH=um #uml3 uml4 uml5
>
>> Run it now... but where is my Internet? :( hehehehe

 You did not configure a connection.
 tuntap is a common method.

>>>
>>> To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
>>> is enough? Or I must change some config step that is not the default?
>>
>> Depends on your setup.
>> A common setup is " eth0=tuntap,tap0".
>> i.e. create a tap0 in your host and setup routing/ips.
>>
> 
> I (yet) have no clue what a tap is. Searches¹ did not ring many clear
> bells for me.
> 
> ¹https://duckduckgo.com/html/?q=uml+user+mode+linux+tuntap
> 
> My setup is what I have showed here. I have a AMD64 Debian image
> (Debian-Wheezy-AMD64-root_fs). The compile config I have showed here (I
> did not change anything besides a few options of the given default, and
> most of the tries I did not do these changes).
> 
> 

http://user-mode-linux.sourceforge.net/old/networking.html
https://en.wikipedia.org/wiki/TUN/TAP

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


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Balaco Baco
On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote:
> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  wrote:
> > On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
> >> On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
> >> > There is one details that did not work for me, but it was easy to "fix"
> >> > (quotes because I'm not sure it is the best fix). But someone else may
> >> > find it useful.
> >> >
> >> > Detailed steps so everyone can compare doing it, if needed:
> >> >
> >> >>  1. get one kernel source package from https://cdn.kernel.org/
> >> >>  (I tried these steps with more than one option, searching for the 
> >> >> older and more stable
> >> >>  version; if the results are different for you, try another one; below 
> >> >> I copied my 4.2.6 try; 3.18 does not have this problem)
> >> >
> >> >>  2. extract it.
> >> > $ tar xJf ...
> >> > $ cd lin
> >> >
> >> >>  3. first step...
> >> > $ make defconfig ARCH=um #uml1
> >> >
> >> > *** Default configuration is based on 'x86_64_defconfig'
> >> > kernel/time/Kconfig:157:warning: range is invalid
> >> > #
> >> > # configuration written to .config
> >> > #
> >> >
> >> >> That warning is strange. I did not like it. So I just edited that file, 
> >> >> and changed it! :D hehehe
> >> >
> >> > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> >> > -range 1 NR_CPUS
> >> > +   range 1 1
> >> >
> >> >> So, again...
> >> > # make defconfig ARCH=um #uml1
> >> > *** Default configuration is based on 'x86_64_defconfig'
> >> > #
> >> > # configuration written to .config
> >> > #
> >> >
> >> >> So, assume the next steps have no problem, except that I don't know
> >> >> how to make my UML access the Internet... this is in another
> >> >> discussion, though
> >> >
> >> >> ... ?
> >> > $ make menuconfig ARCH=um #uml2
> >> >
> >> >> Build it
> >> > $ make ARCH=um #uml3 uml4 uml5
> >> >
> >> >> Run it now... but where is my Internet? :( hehehehe
> >>
> >> You did not configure a connection.
> >> tuntap is a common method.
> >>
> >
> > To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
> > is enough? Or I must change some config step that is not the default?
> 
> Depends on your setup.
> A common setup is " eth0=tuntap,tap0".
> i.e. create a tap0 in your host and setup routing/ips.
> 

I (yet) have no clue what a tap is. Searches¹ did not ring many clear
bells for me.

¹https://duckduckgo.com/html/?q=uml+user+mode+linux+tuntap

My setup is what I have showed here. I have a AMD64 Debian image
(Debian-Wheezy-AMD64-root_fs). The compile config I have showed here (I
did not change anything besides a few options of the given default, and
most of the tries I did not do these changes).


-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
  unladen european swallow


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco  wrote:
> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
>> On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
>> > There is one details that did not work for me, but it was easy to "fix"
>> > (quotes because I'm not sure it is the best fix). But someone else may
>> > find it useful.
>> >
>> > Detailed steps so everyone can compare doing it, if needed:
>> >
>> >>  1. get one kernel source package from https://cdn.kernel.org/
>> >>  (I tried these steps with more than one option, searching for the older 
>> >> and more stable
>> >>  version; if the results are different for you, try another one; below I 
>> >> copied my 4.2.6 try; 3.18 does not have this problem)
>> >
>> >>  2. extract it.
>> > $ tar xJf ...
>> > $ cd lin
>> >
>> >>  3. first step...
>> > $ make defconfig ARCH=um #uml1
>> >
>> > *** Default configuration is based on 'x86_64_defconfig'
>> > kernel/time/Kconfig:157:warning: range is invalid
>> > #
>> > # configuration written to .config
>> > #
>> >
>> >> That warning is strange. I did not like it. So I just edited that file, 
>> >> and changed it! :D hehehe
>> >
>> > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
>> > -range 1 NR_CPUS
>> > +   range 1 1
>> >
>> >> So, again...
>> > # make defconfig ARCH=um #uml1
>> > *** Default configuration is based on 'x86_64_defconfig'
>> > #
>> > # configuration written to .config
>> > #
>> >
>> >> So, assume the next steps have no problem, except that I don't know
>> >> how to make my UML access the Internet... this is in another
>> >> discussion, though
>> >
>> >> ... ?
>> > $ make menuconfig ARCH=um #uml2
>> >
>> >> Build it
>> > $ make ARCH=um #uml3 uml4 uml5
>> >
>> >> Run it now... but where is my Internet? :( hehehehe
>>
>> You did not configure a connection.
>> tuntap is a common method.
>>
>
> To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
> is enough? Or I must change some config step that is not the default?

Depends on your setup.
A common setup is " eth0=tuntap,tap0".
i.e. create a tap0 in your host and setup routing/ips.

-- 
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


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Balaco Baco
On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote:
> On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
> > There is one details that did not work for me, but it was easy to "fix"
> > (quotes because I'm not sure it is the best fix). But someone else may
> > find it useful.
> >
> > Detailed steps so everyone can compare doing it, if needed:
> >
> >>  1. get one kernel source package from https://cdn.kernel.org/
> >>  (I tried these steps with more than one option, searching for the older 
> >> and more stable
> >>  version; if the results are different for you, try another one; below I 
> >> copied my 4.2.6 try; 3.18 does not have this problem)
> >
> >>  2. extract it.
> > $ tar xJf ...
> > $ cd lin
> >
> >>  3. first step...
> > $ make defconfig ARCH=um #uml1
> >
> > *** Default configuration is based on 'x86_64_defconfig'
> > kernel/time/Kconfig:157:warning: range is invalid
> > #
> > # configuration written to .config
> > #
> >
> >> That warning is strange. I did not like it. So I just edited that file, 
> >> and changed it! :D hehehe
> >
> > $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> > -range 1 NR_CPUS
> > +   range 1 1
> >
> >> So, again...
> > # make defconfig ARCH=um #uml1
> > *** Default configuration is based on 'x86_64_defconfig'
> > #
> > # configuration written to .config
> > #
> >
> >> So, assume the next steps have no problem, except that I don't know
> >> how to make my UML access the Internet... this is in another
> >> discussion, though
> >
> >> ... ?
> > $ make menuconfig ARCH=um #uml2
> >
> >> Build it
> > $ make ARCH=um #uml3 uml4 uml5
> >
> >> Run it now... but where is my Internet? :( hehehehe
> 
> You did not configure a connection.
> tuntap is a common method.
> 

To add something like 'eth0=tuntap,,,192.168.1.100' to the command line
is enough? Or I must change some config step that is not the default?


-- 
http://www.fastmail.com - A fast, anti-spam email service.


--
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco  wrote:
> There is one details that did not work for me, but it was easy to "fix"
> (quotes because I'm not sure it is the best fix). But someone else may
> find it useful.
>
> Detailed steps so everyone can compare doing it, if needed:
>
>>  1. get one kernel source package from https://cdn.kernel.org/
>>  (I tried these steps with more than one option, searching for the older and 
>> more stable
>>  version; if the results are different for you, try another one; below I 
>> copied my 4.2.6 try; 3.18 does not have this problem)
>
>>  2. extract it.
> $ tar xJf ...
> $ cd lin
>
>>  3. first step...
> $ make defconfig ARCH=um #uml1
>
> *** Default configuration is based on 'x86_64_defconfig'
> kernel/time/Kconfig:157:warning: range is invalid
> #
> # configuration written to .config
> #
>
>> That warning is strange. I did not like it. So I just edited that file, and 
>> changed it! :D hehehe
>
> $ vim kernel/time/Kconfig  # if it spitted a diff for line 157:
> -range 1 NR_CPUS
> +   range 1 1
>
>> So, again...
> # make defconfig ARCH=um #uml1
> *** Default configuration is based on 'x86_64_defconfig'
> #
> # configuration written to .config
> #
>
>> So, assume the next steps have no problem, except that I don't know
>> how to make my UML access the Internet... this is in another
>> discussion, though
>
>> ... ?
> $ make menuconfig ARCH=um #uml2
>
>> Build it
> $ make ARCH=um #uml3 uml4 uml5
>
>> Run it now... but where is my Internet? :( hehehehe

You did not configure a connection.
tuntap is a common method.

> $ ./vmlinux # the output name changed!? :P

You can use both "linux" and "vmlinux". They are hard linked.

-- 
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