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.