[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



  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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.