From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?iso-8859-1?Q?Jordi_Borr=E0s?=" Subject: Unexpected error: exceptions.OSError Date: Mon, 22 May 2006 20:26:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0356692796==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --===============0356692796== Content-Type: multipart/alternative; boundary="=_sva02-17267-1148322019-0001-2" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_sva02-17267-1148322019-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit [root@SardanaLi Jordi]# /usr/sbin/xm top Unexpected error: exceptions.OSError Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in ? main.main(sys.argv) File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 1021, in main rc = cmd(args) File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 654, in xm_top os.execvp('xentop', ['xentop']) File "/usr/lib/python2.4/os.py", line 341, in execvp _execvpe(file, args) File "/usr/lib/python2.4/os.py", line 379, in _execvpe func(fullname, *argrest) OSError: [Errno 2] No such file or directory [root@SardanaLi Jordi]# --=_sva02-17267-1148322019-0001-2 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

[root@SardanaLi Jordi]# /usr/sbin/xm = top

Unexpected error: = exceptions.OSError

 

Please report to = xen-devel@lists.xensource.com

Traceback (most recent call = last):

=A0 File "/usr/sbin/xm", line 10, in = ?

=A0=A0=A0 = main.main(sys.argv)

=A0 File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 1021, = in main

=A0=A0=A0 rc =3D = cmd(args)

=A0 File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 654, = in xm_top

=A0=A0=A0 os.execvp('xentop', = ['xentop'])

=A0 File "/usr/lib/python2.4/os.py", = line 341, in execvp

=A0=A0=A0 _execvpe(file, = args)

=A0 File "/usr/lib/python2.4/os.py", = line 379, in _execvpe

=A0=A0=A0 func(fullname, = *argrest)

OSError: [Errno 2] No such file or = directory

[root@SardanaLi Jordi]#

--=_sva02-17267-1148322019-0001-2-- --===============0356692796== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0356692796==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Phil Winterfield (winterfi)" Subject: Unexpected error: exceptions.OSError Date: Thu, 13 Mar 2008 15:45:03 -0700 Message-ID: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0999729294==" Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0999729294== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8855B.D3D03784" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8855B.D3D03784 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The 'xm create' python script is taking an exception before ever launching the domU guest. After looking at the archives, this seems to occur frequently enough but for obscure and unexplained reasons. In the cases where a resolution was found, it was usually by removing some option, e.g. vncviewer=3D1, in the config script. My script is very simple and I don't see much of anything to remove. =20 =20 Is there anyone who can shed some light on how to go about debugging these sorts of errors =20 Thanks, Phil =20 =20 [root@localhost ios]# xm create -c domain_config=20 Using config file "./domain_config". Started domain IOSonXEN Unexpected error: exceptions.OSError =20 Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in ? main.main(sys.argv) File "//usr/lib/python/xen/xm/main.py", line 2595, in main _, rc =3D _run_cmd(cmd, cmd_name, args) File "//usr/lib/python/xen/xm/main.py", line 2619, in _run_cmd return True, cmd(args) File "", line 1, in File "//usr/lib/python/xen/xm/main.py", line 1315, in xm_importcommand cmd.main([command] + args) File "//usr/lib/python/xen/xm/create.py", line 1197, in main do_console(sxp.child_value(config, 'name', -1)) File "//usr/lib/python/xen/xm/create.py", line 1219, in do_console (p, rv) =3D os.waitpid(cpid, os.WNOHANG) OSError: [Errno 10] No child processes [root@localhost ios]# cat domain_config=20 # -*- mode: python; -*- #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or=20 # you can set the parameters for the domain on the xm command line. #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D =20 #----------------------------------------------------------------------- ----- # Kernel image file. kernel =3D "i86linux-i-m" =20 # Initial memory allocation (in megabytes) for the new domain. memory =3D512=20 =20 # A name for your domain. All domains must have different names. name =3D "IOSonXEN" =20 on_crash =3D 'destroy' ------_=_NextPart_001_01C8855B.D3D03784 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

The ‘xm create’ python script is taking = an exception before ever = launching the domU guest.  After looking at the archives, this seems to occur = frequently enough but for obscure and unexplained reasons.  In the cases where = a resolution was found, it was usually by removing = some option, e.g. vncviewer=3D1, in the config = script.  My script is very simple and I don’t see much of anything to remove. =  

 

Is there anyone who can shed some light on how to go = about debugging these sorts of errors

 

Thanks,

Phil

 

 

[root@localhost ios]# xm create -c domain_config =

Using config file = "./domain_config".

Started domain IOSonXEN

Unexpected error: exceptions.OSError

 

Please report to xen-devel@lists.xensource.com

Traceback (most recent call = last):

  File "/usr/sbin/xm", line 10, in = ?

    = main.main(sys.argv)

  File = "//usr/lib/python/xen/xm/main.py", line 2595, in main

    _, rc =3D _run_cmd(cmd, cmd_name, = args)

  File = "//usr/lib/python/xen/xm/main.py", line 2619, in _run_cmd

    return True, = cmd(args)

  File "<string>", line 1, in = <lambda>

  File = "//usr/lib/python/xen/xm/main.py", line 1315, in xm_importcommand

    cmd.main([command] + = args)

  File = "//usr/lib/python/xen/xm/create.py", line 1197, in main

    do_console(sxp.child_value(config, = 'name', -1))

  File = "//usr/lib/python/xen/xm/create.py", line 1219, in do_console

    (p, rv) =3D os.waitpid(cpid, = os.WNOHANG)

OSError: [Errno 10] No child = processes

[root@localhost ios]# cat domain_config =

#  -*- mode: python; = -*-

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

# Python configuration setup for 'xm create'.

# This script sets the parameters used when a domain = is created using 'xm create'.

# You use a separate script for each domain you want = to create, or

# you can set the parameters for the domain on the xm command line.

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

 

#-----------------------------------------------------= -----------------------

# Kernel image file.

kernel =3D "i86linux-i-m"

 

# Initial memory allocation (in megabytes) for the new domain.

memory =3D512

 

# A name for your domain. All domains must have = different names.

name =3D = "IOSonXEN"

 

on_crash =3D 'destroy'

------_=_NextPart_001_01C8855B.D3D03784-- --===============0999729294== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0999729294==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Unexpected error: exceptions.OSError Date: Fri, 14 Mar 2008 09:02:54 +0000 Message-ID: References: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1305626866==" Return-path: In-Reply-To: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Phil Winterfield (winterfi)" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1305626866== Content-type: multipart/alternative; boundary="B_3288330178_3854755" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3288330178_3854755 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Have a look in /var/log/xen/xend.log and there=B9ll probably be something useful printed there. -- Keir On 13/3/08 22:45, "Phil Winterfield (winterfi)" wrote: > The =8Cxm create=B9 python script is taking an exception before ever launchin= g the > domU guest. After looking at the archives, this seems to occur frequentl= y > enough but for obscure and unexplained reasons. In the cases where a > resolution was found, it was usually by removing some option, e.g. > vncviewer=3D1, in the config script. My script is very simple and I don=B9t = see > much of anything to remove. > =20 > Is there anyone who can shed some light on how to go about debugging thes= e > sorts of errors > =20 > Thanks, > Phil > =20 > =20 > [root@localhost ios]# xm create -c domain_config > Using config file "./domain_config". > Started domain IOSonXEN > Unexpected error: exceptions.OSError > =20 > Please report to xen-devel@lists.xensource.com > Traceback (most recent call last): > File "/usr/sbin/xm", line 10, in ? > main.main(sys.argv) > File "//usr/lib/python/xen/xm/main.py", line 2595, in main > _, rc =3D _run_cmd(cmd, cmd_name, args) > File "//usr/lib/python/xen/xm/main.py", line 2619, in _run_cmd > return True, cmd(args) > File "", line 1, in > File "//usr/lib/python/xen/xm/main.py", line 1315, in xm_importcommand > cmd.main([command] + args) > File "//usr/lib/python/xen/xm/create.py", line 1197, in main > do_console(sxp.child_value(config, 'name', -1)) > File "//usr/lib/python/xen/xm/create.py", line 1219, in do_console > (p, rv) =3D os.waitpid(cpid, os.WNOHANG) > OSError: [Errno 10] No child processes > [root@localhost ios]# cat domain_config > # -*- mode: python; -*- > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > # Python configuration setup for 'xm create'. > # This script sets the parameters used when a domain is created using 'xm > create'. > # You use a separate script for each domain you want to create, or > # you can set the parameters for the domain on the xm command line. > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > =20 > #------------------------------------------------------------------------= ---- > # Kernel image file. > kernel =3D "i86linux-i-m" > =20 > # Initial memory allocation (in megabytes) for the new domain. > memory =3D512=20 > =20 > # A name for your domain. All domains must have different names. > name =3D "IOSonXEN" > =20 > on_crash =3D 'destroy' >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3288330178_3854755 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Unexpected error: exceptions.OSError Have = a look in /var/log/xen/xend.log and there’ll probably be something use= ful printed there.

 -- Keir

On 13/3/08 22:45, "Phil Winterfield (winterfi)" <winterfi@cisc= o.com> wrote:

The ‘xm create’ python script is taking an excep= tion before ever launching the domU guest.  After looking at the archiv= es, this seems to occur frequently enough but for obscure and unexplained re= asons.  In the cases where a resolution was found, it was usually by re= moving some option, e.g. vncviewer=3D1, in the config script.  My script = is very simple and I don’t see much of anything to remove.  
 
Is there anyone who can shed some light on how to go about debugging these = sorts of errors
 
Thanks,
Phil
 
 
[root@localhost ios]# xm create -c domain_config
Using config file "./domain_config".
Started domain IOSonXEN
Unexpected error: exceptions.OSError
 
Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "//usr/lib/python/xen/xm/main.py", line 2595, in= main
    _, rc =3D _run_cmd(cmd, cmd_name, args)
  File "//usr/lib/python/xen/xm/main.py", line 2619, in= _run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
  File "//usr/lib/python/xen/xm/main.py", line 1315, in= xm_importcommand
    cmd.main([command] + args)
  File "//usr/lib/python/xen/xm/create.py", line 1197, = in main
    do_console(sxp.child_value(config, 'name', -1))
  File "//usr/lib/python/xen/xm/create.py", line 1219, = in do_console
    (p, rv) =3D os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes
[root@localhost ios]# cat domain_config
#  -*- mode: python; -*-
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm c= reate'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
 
#--------------------------------------------------------------------------= --
# Kernel image file.
kernel =3D "i86linux-i-m"
 
# Initial memory allocation (in megabytes) for the new domain.
memory =3D512
 
# A name for your domain. All domains must have different names.
name =3D "IOSonXEN"
 
on_crash =3D 'destroy'


____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3288330178_3854755-- --===============1305626866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1305626866==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: Unexpected error: exceptions.OSError Date: Fri, 14 Mar 2008 14:45:56 +0000 Message-ID: <20080314144556.GU4358@implementation.uk.xensource.com> References: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Phil Winterfield (winterfi)" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, Phil Winterfield (winterfi), le Thu 13 Mar 2008 15:45:03 -0700, a écrit : > (p, rv) = os.waitpid(cpid, os.WNOHANG) > > OSError: [Errno 10] No child processes Mmm, I think that may happen e.g. if the creation doesn't exit but gets a signal, because in the loop we only test WIFEXITED(). If think maybe we should rather if os.WIFEXITED(): if os.WEXITSTATUS(rv) != 0: sys.exit(os.WEXITSTATUS(rv)) elif os.WIFSIGNALED(status): print ("got signal %d" % os.WTERMSIG(rv)) sys.exit(1) elif os.WIFSTOPPED(status): print ("got stopped with signal %d" % os.WSTOPSIG(rv)) sys.exit(1) elif os.WIFCONTINUED(status): print ("continued") sys.exit(1) To make sure that we properly exit() and return appropriate error message. Samuel From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Ferm=EDn_Gal=E1n_M=E1rquez?= Subject: Unexpected error: exceptions.OSError Date: Sat, 29 Mar 2008 21:17:47 +0100 Message-ID: <47EEA3EB.4080006@tid.es> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, Following the indications in the bug error message itself :), I'm= =20 reporting to the list: bud:/usr/local/inteco# xm create vm2.cfg Using config file "vm2.cfg". VNC=3D 1 Unexpected error: exceptions.OSError Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/lib/xen-3.0.3-1/bin/xm", line 7, in ? main.main(sys.argv) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/main.py", line 1446, = in main rc =3D cmd(args) File "", line 1, in File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/main.py", line 751, i= n=20 xm_importcommand cmd.main([command] + args) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/create.py", line 1191= ,=20 in main dom =3D make_domain(opts, config) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/create.py", line 982,= in=20 make_domain os.kill(vncpid, signal.SIGKILL) OSError: [Errno 3] No such process vm2.cfg ------- kernel =3D '/usr/lib/xen-3.0.3-1/boot/hvmloader' builder =3D 'hvm' memory =3D '256' device_model =3D'/usr/lib/xen-3.0.3-1/bin/qemu-dm' disk =3D [ 'file:/data/vms/vm2.img,ioemu:hda,w', 'file:/data/iso/WinxpSP1.iso,ioemu:hdb:cdrom,r' ] name =3D 'win01' vif =3D ['type=3Dioemu, bridge=3Dxenbr1'] boot =3D 'b' vnc =3D 1 vncviewer =3D 1 sdl =3D 0 usbdevice =3D 'tablet' Some hint regarding the cause of the problem and possible solution? T= hanks! Best regards ------ Ferm=EDn From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Yann_D=C3=ACnendal?= Subject: Re: Unexpected error: exceptions.OSError Date: Thu, 15 May 2008 05:23:05 -0700 (PDT) Message-ID: <17252007.post@talk.nabble.com> References: <47EEA3EB.4080006@tid.es> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <47EEA3EB.4080006@tid.es> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ferm=C3=ADn Gal=C3=A1n M=C3=A1rquez-2 wrote: >=20 > Hi, >=20 > Following the indications in the bug error message itself :), I'm=20 > reporting to the list: > [...] > Some hint regarding the cause of the problem and possible solution? > Thanks! >=20 > Best regards >=20 > ------ > Ferm=C3=ADn >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20 Hi,=20 I have the same problem (xen-3.0.3-1 on Debian Etch) :=20 root@MVDS2:~# xm create /etc/xen/VDS02.hvm Using config file "/etc/xen/VDS02.hvm". VNC=3D 1 Unexpected error: exceptions.OSError Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/lib/xen-3.0.3-1/bin/xm", line 7, in ? main.main(sys.argv) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/main.py", line 1446, in main rc =3D cmd(args) File "", line 1, in File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/main.py", line 751, in xm_importcommand cmd.main([command] + args) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/create.py", line 1191, in main dom =3D make_domain(opts, config) File "/usr/lib/xen-3.0.3-1/lib/python/xen/xm/create.py", line 982, in make_domain os.kill(vncpid, signal.SIGKILL) OSError: [Errno 3] No such process root@MVDS2:~#=20 my config file /etc/xen/VDS02.hvm : #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D import os, re arch =3D os.uname()[4] if re.search('64', arch): arch_libdir =3D 'lib64' else: arch_libdir =3D 'lib' #--------------------------------------------------------------------------= -- # Kernel image file. kernel =3D '/usr/lib/xen-3.0.3-1/boot/hvmloader' # The domain build function. HVM domain uses 'hvm'. builder=3D'hvm' # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory =3D 512 # Shadow pagetable memory for the domain, in MB. # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. shadow_memory =3D 8 # A name for your domain. All domains must have different names. name =3D 'VDS02' # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. #uuid =3D "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9" #--------------------------------------------------------------------------= --- # the number of cpus guest platform has, default=3D1 vcpus=3D2 # enable/disable HVM guest PAE, default=3D0 (disabled) pae=3D1 # enable/disable HVM guest ACPI, default=3D0 (disabled) acpi=3D1 # enable/disable HVM guest APIC, default=3D0 (disabled) apic=3D1 # List of which CPUS this domain is allowed to use, default Xen picks #cpus =3D "" # leave to Xen to pick #cpus =3D "0" # all vcpus run on CPU0 #cpus =3D "0-3,5,^1" # run on cpus 0,2,3,5 # # Networking # vif =3D [ 'ip=3D10.1.20.102' ] # Optionally define mac and/or bridge for the network interfaces. # Random MACs are assigned if not given. vif =3D [ 'type=3Dioemu' ] #vif =3D [ 'type=3Dioemu,mac=3D00:bb:cc:dd:ee:ff' ] #--------------------------------------------------------------------------= -- # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. #disk =3D [ 'file:/export/home/mydisk.raw,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ] #disk =3D [ 'phy:/dev/dsk/c1d0p0,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ] #disk =3D [ 'phy:/dev/zvol/dsk/mypool/mydisk,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ] #disk =3D [ 'file:/var/lib/xen/images/windisk.img,ioemu:hda,w', 'file:/home/xen/iso/vista-pro.iso,hdc:cdrom,r' ] #disk =3D [ 'file:/var/lib/xen/images/windisk.img,ioemu:hda,w', 'phy:/dev/cdrom,hdc:cdrom,r' ] disk =3D [ 'file:/home/xen/domains/VDS02/disk.img,ioemu:hda,w', 'file:/home/xen/iso/CentOS-5.1-i386-LiveCD.iso,ioemu:hdb:cdrom,r' ] #--------------------------------------------------------------------------= -- # Configure the behaviour when a domain exits. There are three 'reasons' # for a domain to stop: poweroff, reboot, and crash. For each of these you # may specify: # # "destroy", meaning that the domain is cleaned up as normal; # "restart", meaning that a new domain is started in place of the old # one; # "preserve", meaning that no clean-up is done until the domain is # manually destroyed (using xm destroy, for example); o= r # "rename-restart", meaning that the old domain is not cleaned up, but is # renamed and a new domain started in its place. # # The default is # # on_poweroff =3D 'destroy' # on_reboot =3D 'restart' # on_crash =3D 'restart' # # For backwards compatibility we also support the deprecated option restart # # restart =3D 'onreboot' means on_poweroff =3D 'destroy' # on_reboot =3D 'restart' # on_crash =3D 'destroy' # # restart =3D 'always' means on_poweroff =3D 'restart' # on_reboot =3D 'restart' # on_crash =3D 'restart' # # restart =3D 'never' means on_poweroff =3D 'destroy' # on_reboot =3D 'destroy' # on_crash =3D 'destroy' on_poweroff =3D 'destroy' on_reboot =3D 'restart' on_crash =3D 'restart' #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D # New stuff #device_model =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm' device_model =3D '/usr/lib/xen-3.0.3-1/bin/qemu-dm' #--------------------------------------------------------------------------= --- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy #boot=3D"cda" boot=3D'dc' #--------------------------------------------------------------------------= --- # write to temporary files instead of disk image files #snapshot=3D1 #--------------------------------------------------------------------------= -- # enable SDL library for graphics, default =3D 0 sdl=3D0 #--------------------------------------------------------------------------= -- # enable VNC library for graphics, default =3D 1 vnc=3D1 vncviewer=3D1 #--------------------------------------------------------------------------= -- # address that should be listened on for the VNC server if vnc is set. # default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp vnclisten=3D"0.0.0.0" #--------------------------------------------------------------------------= -- # set VNC display number, default =3D domid vncdisplay=3D2 #--------------------------------------------------------------------------= -- # try to find an unused port for the VNC server, default =3D 1 vncunused=3D0 #--------------------------------------------------------------------------= -- # enable spawning vncviewer for domain's console # (only valid when vnc=3D1), default =3D 0 #vncconsole=3D1 #vncpasswd=3D'' #--------------------------------------------------------------------------= -- # no graphics, use serial port nographic=3D0 #--------------------------------------------------------------------------= -- # enable stdvga, default =3D 0 (use cirrus logic device model) stdvga=3D0 #--------------------------------------------------------------------------= --- # serial port re-direct to pty deivce, /dev/pts/n # then xm console or minicom can connect #serial=3D'pty' #serial=3D'stdio' #serial=3D'file:/tmp/blah' #serial=3D'/dev/pts/0' serial=3D'null' #--------------------------------------------------------------------------= --- # enable sound card support, [sb16|es1370|all|..,..], default none #soundhw=3D'sb16' #--------------------------------------------------------------------------= --- # set the real time clock to local time [default=3D0 i.e. set to utc] #localtime=3D1 #--------------------------------------------------------------------------= --- # start in full screen #full-screen=3D1 #--------------------------------------------------------------------------= --- # Enable USB support (specific devices specified at runtime through the # monitor window) usb=3D1 # Enable USB mouse support (only enable one of the following, `mouse' for # PS/2 protocol relative mouse, `tablet' for # absolute mouse) #usbdevice=3D'mouse' #usbdevice=3D'tablet' If I set sdl=3D1 and vnc=3D0, I get another error... root@MVDS2:~# xm create /etc/xen/VDS02.hvm Using config file "/etc/xen/VDS02.hvm". Error: name 'VDS02' is not defined root@MVDS2:~# Anyone have an idea ? What can I do to try and debug this ? ----- Yann D=C3=ACnendal --=20 View this message in context: http://www.nabble.com/Unexpected-error%3A-exc= eptions.OSError-tp16374042p17252007.html Sent from the Xen - Dev mailing list archive at Nabble.com.