WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] OSerror [err no 5] while booting

To: "xen_users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] OSerror [err no 5] while booting
From: "AMIT KUMAR" <amitkpce@xxxxxxxxxxxxxx>
Date: 18 Nov 2005 09:53:19 -0000
Delivery-date: Fri, 18 Nov 2005 16:55:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: AMIT KUMAR <amitkpce@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

  hi ,
            I have invoked  xm commands(create, shutdown,pause...) inside C programs(fork/exec),
But, while connecting to console when creating a domain it gives following error:



Traceback (most recent call last):
  File "/usr/sbin/xm", line 9, in ?
    main.main(sys.argv)
  File "/usr/lib/python/xen/xm/main.py", line 808, in main
    xm.main(args)
  File "/usr/lib/python/xen/xm/main.py", line 106, in main
    self.main_call(args)
  File "/usr/lib/python/xen/xm/main.py", line 124, in main_call
    p.main(args[1:])
  File "/usr/lib/python/xen/xm/main.py", line 259, in main
    create.main(args)
  File "/usr/lib/python/xen/xm/create.py", line 550, in main
    console_client.connect('localhost', console)
  File "/usr/lib/python/xen/util/console_client.py", line 77, in connect
    tcsetattr(0, TCSAFLUSH, nattrs)
termios.error: (5, 'Input/output error')
Traceback (most recent call last):
  File "/usr/sbin/xm", line 9, in ?
    main.main(sys.argv)
  File "/usr/lib/python/xen/xm/main.py", line 808, in main
    xm.main(args)
  File "/usr/lib/python/xen/xm/main.py", line 106, in main
    self.main_call(args)
  File "/usr/lib/python/xen/xm/main.py", line 124, in main_call
    p.main(args[1:])
  File "/usr/lib/python/xen/xm/main.py", line 259, in main
    create.main(args)
  File "/usr/lib/python/xen/xm/create.py", line 550, in main
    console_client.connect('localhost', console)
  File "/usr/lib/python/xen/util/console_client.py", line 86, in connect
    __send_to_sock(sock)
  File "/usr/lib/python/xen/util/console_client.py", line 44, in __send_to_sock
    data = ""> OSError: [Errno 5] Input/output error

Body of code:
.....
pid = fork();
  if(pid == 0)
{      execl("/usr/sbin/xm","xm","create","xmexample1","-c",NULL) ;
  }
.....


there is no waitpid() called,
When I invoke waitpid() call, this error goes away.

Kindly advise me on this.

Thanks and Regards,
Amit Kumar



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>