[Fedora-xen] Error creating Domain

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

 



Hi,

Need help please

XEN 3.0.1 on FC4 is domain 0.

Installed FC4 on /dev/hda8 separate installation.

When trying to 'xm create ' fails with error 0
There does not seem to be a Xen 3 User kernel. Can one create it ?

Attached please find the xend logs and configuration file

Thanks in advance for your help.

Regards
Shyamal

Nothing to flush.
ERROR: Will only load images built for Xen v3.0
ERROR: Actually saw: 'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000,LOADER=generic'
ERROR: Error constructing guest OS
Traceback (most recent call last):
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 77, in op_create
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/XendDomain.py", line 226, in domain_create
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/XendDomainInfo.py", line 182, in create
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/XendDomainInfo.py", line 1212, in initDomain
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 116, in createImage
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 135, in createDomain
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 184, in buildDomain
error: (0, 'Error')
[2006-04-11 12:36:52 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-04-11 12:36:52 xend] INFO (SrvDaemon:282) Xend changeset: Wed Mar 15 03:53:53 2006 +0100 .
[2006-04-11 12:36:52 xend.XendDomainInfo] DEBUG (XendDomainInfo:199) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 21480730345L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 717000, 'maxmem_kb': -4, 'max_vcpu_id': 0, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 1, 'blocked': 0})
[2006-04-11 12:36:52 xend.XendDomainInfo] INFO (XendDomainInfo:211) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2006-04-11 12:36:52 xend.XendDomainInfo] WARNING (XendDomainInfo:233) No vm path in store for existing domain 0
[2006-04-11 12:36:52 xend.XendDomainInfo] DEBUG (XendDomainInfo:666) Storing VM details: {'ssidref': '0', 'uuid': '00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'vcpus': '1', 'vcpu_avail': '3', 'memory': '701', 'on_crash': 'restart', 'maxmem': '701'}
[2006-04-11 12:36:52 xend.XendDomainInfo] DEBUG (XendDomainInfo:691) Storing domain details: {'cpu/0/availability': 'online', 'memory/target': '717824', 'name': 'Domain-0', 'console/limit': '1048576', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0'}
[2006-04-11 12:36:52 xend] DEBUG (XendDomain:151) number of vcpus to use is 0
[2006-04-11 12:36:52 xend.XendDomainInfo] DEBUG (XendDomainInfo:864) XendDomainInfo.handleShutdownWatch
[2006-04-11 12:36:52 xend] INFO (SrvServer:114) unix path=/var/lib/xend/xend-socket
[2006-04-11 12:39:01 xend.XendDomainInfo] DEBUG (XendDomainInfo:932) Setting memory target of domain Domain-0 (0) to 256 MiB.
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create(['vm', ['name', 'Oratest'], ['memory', '64'], ['vcpus', '1'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12-1.1390_FC4xenU'], ['root', '/dev/hda8 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'phy:hda6'], ['dev', 'hda6'], ['mode', 'w']]], ['device', ['vif']]])
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:282) parseConfig: config is ['vm', ['name', 'Oratest'], ['memory', '64'], ['vcpus', '1'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12-1.1390_FC4xenU'], ['root', '/dev/hda8 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'phy:hda6'], ['dev', 'hda6'], ['mode', 'w']]], ['device', ['vif']]]
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:376) parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.12-1.1390_FC4xenU'], ['root', '/dev/hda8 ro'], ['args', '4']], 'on_poweroff': None, 'cpus': None, 'name': 'Oratest', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 'phy:hda6'], ['dev', 'hda6'], ['mode', 'w']]), ('vif', ['vif'])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:1151) XendDomainInfo.construct: None 0
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:1183) XendDomainInfo.initDomain: 1 1.0
[2006-04-11 12:39:43 xend] DEBUG (balloon:84) Balloon: free 491; need 65; done.
[2006-04-11 12:39:43 xend] INFO (image:133) buildDomain os=linux dom=1 vcpus=1
[2006-04-11 12:39:43 xend] DEBUG (image:171) dom            = 1
[2006-04-11 12:39:43 xend] DEBUG (image:172) image          = /boot/vmlinuz-2.6.12-1.1390_FC4xenU
[2006-04-11 12:39:43 xend] DEBUG (image:173) store_evtchn   = 1
[2006-04-11 12:39:43 xend] DEBUG (image:174) console_evtchn = 2
[2006-04-11 12:39:43 xend] DEBUG (image:175) cmdline        =  root=/dev/hda8 ro 4
[2006-04-11 12:39:43 xend] DEBUG (image:176) ramdisk        = 
[2006-04-11 12:39:43 xend] DEBUG (image:177) vcpus          = 1
[2006-04-11 12:39:43 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed
Traceback (most recent call last):
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/XendDomainInfo.py", line 182, in create
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/XendDomainInfo.py", line 1212, in initDomain
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 116, in createImage
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 135, in createDomain
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/image.py", line 184, in buildDomain
error: (0, 'Error')
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:1309) XendDomainInfo.destroy: domid=1
[2006-04-11 12:39:43 xend.XendDomainInfo] DEBUG (XendDomainInfo:1317) XendDomainInfo.destroyDomain(1)
[2006-04-11 12:39:43 xend] ERROR (SrvBase:87) Request create failed.
Traceback (most recent call last):
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/web/SrvBase.py", line 85, in perform
  File "/var/tmp/xen-3.0.1-64.1_fc4-root/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 82, in op_create
XendError: Error creating domain: (0, 'Error')
#  -*- mode: python; -*-
#============================================================================
# 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.
#============================================================================

#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6.12-1.1390_FC4xenU"

# Optional ramdisk.
#ramdisk = "/boot/initrd-2.6.12-1.1390_FC4xenU.img"

# The domain build function. Default is 'linux'.
#builder='linux'

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

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

# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = ""         # leave to Xen to pick
#cpus = "0"        # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5

# Number of Virtual CPUS to use, default is 1
#vcpus = 1

#----------------------------------------------------------------------------
# Define network interfaces.

# By default, no network interfaces are configured.  You may have one created
# with sensible defaults using an empty vif clause:
#
# vif = [ '' ]
#
# or optionally override backend, bridge, ip, mac, script, type, or vifname:
#
# vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
#
# or more than one interface may be configured:
#
# vif = [ '', 'bridge=xenbr1' ]

vif = [ '' ]

#----------------------------------------------------------------------------
# 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 = [ 'phy:hda8,hda8,w' ]
disk = [ 'phy:hda6,hda6,w' ]

#----------------------------------------------------------------------------
# Define to which TPM instance the user domain should communicate.
# The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
# where INSTANCE indicates the instance number of the TPM the VM
# should be talking to and DOM provides the domain where the backend
# is located.
# Note that no two virtual machines should try to connect to the same
# TPM instance. The handling of all TPM instances does require
# some management effort in so far that VM configration files (and thus
# a VM) should be associated with a TPM instance throughout the lifetime
# of the VM / VM configuration file. The instance number must be
# greater or equal to 1.
#vtpm = [ 'instance=1,backend=0' ]

#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
# You only need to define the IP parameters and hostname if the domain's
# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
# You can use 'extra' to set the runlevel and custom environment
# variables used by custom rc scripts (e.g. VMID=, usr= ).

# Set if you want dhcp to allocate the IP address.
#dhcp="dhcp"
# Set netmask.
#netmask=255.255.255.0
# Set default gateway.
#gateway=192.168.5.7
# Set the hostname.
#hostname= "vm%d" % vmid
#hostname= "oratest" 
vmid=1
# Set root device.
root = "/dev/hda8 ro"

# Root device for nfs.
#root = "/dev/nfs"
# The nfs server.
#nfs_server = '169.254.1.0'  
# Root directory on the nfs server.
#nfs_root   = '/full/path/to/root/directory'

# Sets runlevel 4.
extra = "4"

#----------------------------------------------------------------------------
# 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); or
#   "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 = 'destroy'
#   on_reboot   = 'restart'
#   on_crash    = 'restart'
#
# For backwards compatibility we also support the deprecated option restart
#
# restart = 'onreboot' means on_poweroff = 'destroy'
#                            on_reboot   = 'restart'
#                            on_crash    = 'destroy'
#
# restart = 'always'   means on_poweroff = 'restart'
#                            on_reboot   = 'restart'
#                            on_crash    = 'restart'
#
# restart = 'never'    means on_poweroff = 'destroy'
#                            on_reboot   = 'destroy'
#                            on_crash    = 'destroy'

#on_poweroff = 'destroy'
#on_reboot   = 'restart'
#on_crash    = 'restart'

#============================================================================

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux