Hi, When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a weird problem: every time I move cursor up and down, I will see my original characters are replaced with some strange characters "[?0c [?8c". Why did this happen? This problem makes me hard to edit any file in domain1. Any solution on this? Thanks, Xin ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Mon, 13 Sep 2004, Xin Zhao wrote:> When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > weird problem: every time I move cursor up and down, I will see my > original characters are replaced with some strange characters "[?0c [?8c".interesting. Function keys send sequences of characters. There''s an old question: how do I tell if you typed the individual characters for the key, or you hit the key? curses has a test for distinguishing a function key (e.g. up arrow) from the characters typed individually, which boils down to ''what''s the inter-character delay''. If the delay is small, then it''s the function key, else it''s the human typing. Wonder if that test is failing somehow ... ron ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Mon, Sep 13, 2004 at 09:26:41PM -0400, Xin Zhao wrote:> When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > weird problem: every time I move cursor up and down, I will see my > original characters are replaced with some strange characters "[?0c [?8c". > Why did this happen? This problem makes me hard to edit any file in > domain1. Any solution on this?How do you connect to domain1? What''s the TERM setting in the terminal you connect from and in domain1? What version of vi? Are you in insert or command mode in vi? Does cursor up/down work in the shell or other programs? christian ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Just a random stab here - what are you using to connect to the domain? If you''re currently using telnet, you should try "xm console domid" instead. HTH, Mark On Tuesday 14 September 2004 02:26, Xin Zhao wrote:> Hi, > > When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > weird problem: every time I move cursor up and down, I will see my > original characters are replaced with some strange characters "[?0c [?8c". > Why did this happen? This problem makes me hard to edit any file in > domain1. Any solution on this? > > Thanks, > > Xin > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
I will try to make the situation clearer here: I have two machines: earth and shanghai. Xen is running on earth. Because I cannot start X in "earth", I have to use "shanghai" to ssh to "earth". I then start gnome-terminal from the ssh sesstion and do vi. My vi version is 6.2.457. I can certainly use "xm console domid" to control domain1 and as my second email said, I don''t have any problem if I access domain1 directly at the machine "earth". What I was wondering is why it doesn''t work well if I start domain1 and edit files from a remote ssh session. Xin On Tue, 14 Sep 2004, Mark A. Williamson wrote:> Just a random stab here - what are you using to connect to the domain? If > you''re currently using telnet, you should try "xm console domid" instead. > > HTH, > Mark > > On Tuesday 14 September 2004 02:26, Xin Zhao wrote: > > Hi, > > > > When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > > weird problem: every time I move cursor up and down, I will see my > > original characters are replaced with some strange characters "[?0c [?8c". > > Why did this happen? This problem makes me hard to edit any file in > > domain1. Any solution on this? > > > > Thanks, > > > > Xin > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE for your judgement on > > who ports your project to Linux PPC the best. Sponsored by IBM. > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
When you say it works when you access dom1 dirsctly on ''earth'' , do you mean that you use ''xm console domid'' from dom0''s text console? And when it doesn''t work from shanghai, do you mean that you ''xm console domid'' from an ssh session to dom0? Or do you ssh directly to dom1? If you ssh to dom1 instead of using ''xm console'' does teh weirdness still happen? If you don''t use Xen at all and boot your dom1 rootfs using a native Linux kernel, does the weirdness still happen? -- Keir> I will try to make the situation clearer here: > > I have two machines: earth and shanghai. > > Xen is running on earth. Because I cannot start X in "earth", I have to > use "shanghai" to ssh to "earth". I then start gnome-terminal from the ssh > sesstion and do vi. My vi version is 6.2.457. > > I can certainly use "xm console domid" to control domain1 and as my second > email said, I don''t have any problem if I access domain1 directly at the > machine "earth". What I was wondering is why it doesn''t work well if I > start domain1 and edit files from a remote ssh session. > > Xin > > > On Tue, 14 Sep 2004, Mark A. Williamson wrote: > > > Just a random stab here - what are you using to connect to the domain? If > > you''re currently using telnet, you should try "xm console domid" instead. > > > > HTH, > > Mark > > > > On Tuesday 14 September 2004 02:26, Xin Zhao wrote: > > > Hi, > > > > > > When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > > > weird problem: every time I move cursor up and down, I will see my > > > original characters are replaced with some strange characters "[?0c [?8c". > > > Why did this happen? This problem makes me hard to edit any file in > > > domain1. Any solution on this? > > > > > > Thanks, > > > > > > Xin > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > > Project Admins to receive an Apple iPod Mini FREE for your judgement on > > > who ports your project to Linux PPC the best. Sponsored by IBM. > > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
When I said "access dom1 directly on ''earth''", I mean, I did "xm console dom1-id" on the console of ''earth''. The wierd characters occurred under the following condition: 1. ssh from ''shanghai'' to ''earth'' 2. in the ssh session, do "xm create -c vmid=1 -f xxx" 3. because of the ''-c'' switch, I will end up with a console in the ssh session. 4. do "vi /etc/hosts" in this console When I use function keys like up/down/left/right arrows, I will see those weird characters. So I thought that TERM key mapping could be the reason. But I have no idea on how to fix the problem. So far, I cannot even make network in dom1 work for me, although I can see that the network interface was activated in dom1 and got the assigned IP. But neither can I connect outside from dom1, nor connect to dom1 from dom0. So I didn''t ssh to dom1. Xin On Tue, 14 Sep 2004, Keir Fraser wrote:> > When you say it works when you access dom1 dirsctly on ''earth'' , do > you mean that you use ''xm console domid'' from dom0''s text console? > > And when it doesn''t work from shanghai, do you mean that you ''xm > console domid'' from an ssh session to dom0? Or do you ssh directly to > dom1? > > If you ssh to dom1 instead of using ''xm console'' does teh weirdness > still happen? > > If you don''t use Xen at all and boot your dom1 rootfs using a native > Linux kernel, does the weirdness still happen? > > -- Keir > > > I will try to make the situation clearer here: > > > > I have two machines: earth and shanghai. > > > > Xen is running on earth. Because I cannot start X in "earth", I have to > > use "shanghai" to ssh to "earth". I then start gnome-terminal from the ssh > > sesstion and do vi. My vi version is 6.2.457. > > > > I can certainly use "xm console domid" to control domain1 and as my second > > email said, I don''t have any problem if I access domain1 directly at the > > machine "earth". What I was wondering is why it doesn''t work well if I > > start domain1 and edit files from a remote ssh session. > > > > Xin > > > > > > On Tue, 14 Sep 2004, Mark A. Williamson wrote: > > > > > Just a random stab here - what are you using to connect to the domain? If > > > you''re currently using telnet, you should try "xm console domid" instead. > > > > > > HTH, > > > Mark > > > > > > On Tuesday 14 September 2004 02:26, Xin Zhao wrote: > > > > Hi, > > > > > > > > When I used vi in domain 1 (running vmlinuz-2.6.8.1-xenU), I ran into a > > > > weird problem: every time I move cursor up and down, I will see my > > > > original characters are replaced with some strange characters "[?0c [?8c". > > > > Why did this happen? This problem makes me hard to edit any file in > > > > domain1. Any solution on this? > > > > > > > > Thanks, > > > > > > > > Xin > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > > > Project Admins to receive an Apple iPod Mini FREE for your judgement on > > > > who ports your project to Linux PPC the best. Sponsored by IBM. > > > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > > > _______________________________________________ > > > > Xen-devel mailing list > > > > Xen-devel@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl > > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > > Camcorder. More prizes in the weekly Lunch Hour Challenge. > > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> So far, I cannot even make network in dom1 work for me, although I can see > that the network interface was activated in dom1 and got the assigned IP. > But neither can I connect outside from dom1, nor connect to dom1 from > dom0. So I didn''t ssh to dom1.Did yoiu install bridge-utils in domain 0? If the ''brctl'' util isn''t available then a network bridge won''t have been set up and no packets will travel between domain 1''s virtual interface and your real Ethernet interface. Just one possibility... -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Thanks for your kind reply. I do have ''brctl'' from ''bridge-util'' package in dom0. But dom1 says ''Error initialising bridge communication: Package not installed'' when I tried to run brctl in dom1. Is this the reason? That''s kind of weird because I installed bridge-util package in dom0 first and then I copied the root filesystem of dom0 to dom1. I don''t know why dom1 still complaint that brctl is not available. Thanks, Xin On Tue, 14 Sep 2004, Keir Fraser wrote:> > So far, I cannot even make network in dom1 work for me, although I can see > > that the network interface was activated in dom1 and got the assigned IP. > > But neither can I connect outside from dom1, nor connect to dom1 from > > dom0. So I didn''t ssh to dom1. > > Did yoiu install bridge-utils in domain 0? > > If the ''brctl'' util isn''t available then a network bridge won''t have > been set up and no packets will travel between domain 1''s virtual > interface and your real Ethernet interface. > > Just one possibility... > > -- Keir > > > ------------------------------------------------------- > This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
No, see my previous reply about your ifcg-eth0 file. You do not need brctl in dom1. -- Keir> Thanks for your kind reply. > > I do have ''brctl'' from ''bridge-util'' package in dom0. But dom1 says ''Error > initialising bridge communication: Package not installed'' when I tried to > run brctl in dom1. Is this the reason? That''s kind of weird because I > installed bridge-util package in dom0 first and then I copied the root > filesystem of dom0 to dom1. I don''t know why dom1 still complaint that > brctl is not available. > > Thanks, > Xin > > On Tue, 14 Sep 2004, Keir Fraser wrote: > > > > So far, I cannot even make network in dom1 work for me, although I can see > > > that the network interface was activated in dom1 and got the assigned IP. > > > But neither can I connect outside from dom1, nor connect to dom1 from > > > dom0. So I didn''t ssh to dom1. > > > > Did yoiu install bridge-utils in domain 0? > > > > If the ''brctl'' util isn''t available then a network bridge won''t have > > been set up and no packets will travel between domain 1''s virtual > > interface and your real Ethernet interface. > > > > Just one possibility... > > > > -- Keir > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl > > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > > Camcorder. More prizes in the weekly Lunch Hour Challenge. > > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xen-devel > >------------------------------------------------------- This SF.Net email is sponsored by: thawte''s Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel