I need to debug an application running inside a UML kernel. Now to do gdb to the running process in side UML. My application has its own shell (CLI) and I need to debug events caused by the CLI.  So I need to start a xterm inside UML kernel to start gdb and attach to my application. How do I do that? When I do xterm in UML, it says can't do display. How to I configure xterm in UML?
If there is another process to debug such applications in UML?