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

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

and in UML1 still:
UML1# cat /dev/vc/7

then in UML2:
UML2# (sleep 5; echo hello; sleep 1) > /dev/ttyp7

I get an error:
-bash: /dev/ttyp7: Input/output error

What's going on? Where did I make mistakes? I make sure UML1 booted up
before UML2, and the ptyp7 was already opened when I try to echo things to
its corresponding tty.

I appreciate your help!!


vilda



-------------------------------------------------------
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_idt12&alloc_id344&op=click
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to