On Thursday 19 May 2005 08:26, Yi Shu LIU wrote: > Hi, > > I tried to connect a UML with the host linux machine through tty and > succeed, but then when I tried to boot another UML to play as the slave > end, I failed. I hope some of you could give me some guide. > > I used the following command line to boot up the first UML (let's say > UML1): host# ./linux umid=rh9 ubd0=rh9_cow1,rh9 root=/dev/ubd0 ubd7-swapfs > mem=128m eth0=tuntap,,,192.169.1.251 con=pty con0=fd:0,fd:1 > con7=tty:/dev/ptyp7 Ok, here you're connecting to the master. > then in UML1: > UML1# cat /dev/vc/7 > > in host: > host# (sleep 5; echo hello; sleep 1) > /dev/ttyp7 > > Everything works fine, I can get the "hello" in UML1's terminal, and then > the commanded is finished. > > But if I try to let another UML (UML2) to play the host's role and booted > it using: > host# ./linux umid=rh9 ubd0=rh9_cow2,rh9 root=/dev/ubd0 ubd7-swapfs > mem=128m eth0=tuntap,,,192.169.1.252 con=pty con0=fd:0,fd:1 > con7=tty:/dev/ttyp7 With this assignment you redirect /dev/vc/7 from UML2 to /dev/ttyp7 (the slave side) on the host. > and in UML1 still: > UML1# cat /dev/vc/7 Ok > then in UML2: > UML2# (sleep 5; echo hello; sleep 1) > /dev/ttyp7 No, in UML2 you should use /dev/vc/7.
> I get an error: > -bash: /dev/ttyp7: Input/output error > I appreciate your help!! Thanks, and HTH! -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
