David Becker wrote:
How do you setup Solaris to run on a linux dom0?  Is there a Solaris
builder function?

I copied the files (boot_archive  mydomU.py  root.file  unix)
from Solaris to my linux domU and gave xm create a whirl to see what
would happen.

I'm assuming these were setup from vbdcfg? Did you
run this domU on a solaris dom0 without any problems?

i.e.
    http://www.opensolaris.org/os/community/xen/How-To-07-2006/Solaris-domU/



xend-debug.log says:
    ERROR: Initial guest OS requires too much space
    (1748MB is greater than 400MB limit)
     (0 = Success)
     ERROR: Error constructing guest OS

xm crate itself said:
# xm create -f mydomU.py Using config file "mydomU.py".
    Error: (9, 'Bad file descriptor')

Could you double check that these are valid.. Does
the size of each file make sense? i.e. how big
are the unix and boot_archive files?

# ls -l /vol/local/solaris/unix
# ls -l /vol/local/solaris/boot_archive
# ls -l /vol/local/solaris/root.file

The xend-debug.log is coming from setup_guest() in libxc.
it basically saying the the memory required by the kernel (unix),
the ramdisk (boot_archive), and some minor overhead pages are
more than the memory you allocated for the domU.

Off the top of my head, the only reason I could see that is if
one of those files was wrong?





MRJ



The xend.log recorded all this:

[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) XendDomainI
nfo.create(['vm', ['name', 'mydomU'], ['memory', '400'], ['on_reboot', 'restart'
], ['on_crash', 'destroy'], ['vcpus', 1], ['image', ['linux', ['kernel', '/vol/l
ocal/solaris/unix'], ['ramdisk', '/vol/local/solaris/boot_archive'], ['root', '/
dev/dsk/c0d0s0'], ['args', '/platform/i86xen/kernel/unix']]], ['device', ['vbd',
['uname', 'file:/vol/local/solaris/root.file'], ['dev', '0'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac', 'aa:00:ac:10:0c:09']]]])
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:284) parseConfig
: config is ['vm', ['name', 'mydomU'], ['memory', '400'], ['on_reboot', 'restart
'], ['on_crash', 'destroy'], ['vcpus', 1], ['image', ['linux', ['kernel', '/vol/
local/solaris/unix'], ['ramdisk', '/vol/local/solaris/boot_archive'], ['root', '
/dev/dsk/c0d0s0'], ['args', '/platform/i86xen/kernel/unix']]], ['device', ['vbd'
, ['uname', 'file:/vol/local/solaris/root.file'], ['dev', '0'], ['mode', 'w']]],
 ['device', ['vif', ['bridge', 'xenbr0'], ['mac', 'aa:00:ac:10:0c:09']]]]
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:380) parseConfig
: result is {'ssidref': None, 'uuid': None, 'on_crash': 'destroy', 'on_reboot': 'restart', 'image': ['linux', ['kernel', '/vol/local/solaris/unix'], ['ramdisk',
 '/vol/local/solaris/boot_archive'], ['root', '/dev/dsk/c0d0s0'], ['args', '/pla
tform/i86xen/kernel/unix']], 'on_poweroff': None, 'cpus': None, 'name': 'mydomU'
, 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 4
00, 'device': [('vbd', ['vbd', ['uname', 'file:/vol/local/solaris/root.file'], [
'dev', '0'], ['mode', 'w']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['mac', 'aa:
00:ac:10:0c:09']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendDomain
Info.construct: None 0
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:1198) XendDomain
Info.initDomain: 3 1.0 maxmem 400 memory 400
[2006-08-21 12:51:30 xend] DEBUG (balloon:128) Balloon: free 1971; need 401; don
e.
[2006-08-21 12:51:30 xend] INFO (image:135) buildDomain os=linux dom=3 vcpus=1
[2006-08-21 12:51:30 xend] DEBUG (image:173) dom            = 3
[2006-08-21 12:51:30 xend] DEBUG (image:174) image          = /vol/local/solaris
/unix
[2006-08-21 12:51:30 xend] DEBUG (image:175) store_evtchn   = 1
[2006-08-21 12:51:30 xend] DEBUG (image:176) console_evtchn = 2
[2006-08-21 12:51:30 xend] DEBUG (image:177) cmdline        =  root=/dev/dsk/c0d
0s0 /platform/i86xen/kernel/unix
[2006-08-21 12:51:30 xend] DEBUG (image:178) ramdisk        = /vol/local/solaris
/boot_archive
[2006-08-21 12:51:30 xend] DEBUG (image:179) vcpus          = 1
[2006-08-21 12:51:30 xend] DEBUG (image:180) features = [2006-08-21 12:51:30 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain cons
truction failed
Traceback (most recent call last):
  File "/usr/lib/python2.3/xen/xend/XendDomainInfo.py", line 183, in create
    vm.initDomain()
  File "/usr/lib/python2.3/xen/xend/XendDomainInfo.py", line 1227, in initDomain
    channel_details = self.image.createImage()
  File "/usr/lib/python2.3/xen/xend/image.py", line 118, in createImage
    return self.createDomain()
  File "/usr/lib/python2.3/xen/xend/image.py", line 137, in createDomain
    result = self.buildDomain()
  File "/usr/lib/python2.3/xen/xend/image.py", line 188, in buildDomain
    features       = self.features)
error: (9, 'Bad file descriptor')
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:1329) XendDomain
Info.destroy: domid=3
[2006-08-21 12:51:30 xend.XendDomainInfo] DEBUG (XendDomainInfo:1337) XendDomain
Info.destroyDomain(3)
[2006-08-21 12:51:30 xend] ERROR (xmlrpclib2:124) (9, 'Bad file descriptor')
Traceback (most recent call last):
  File "/usr/lib/python2.3/xen/util/xmlrpclib2.py", line 103, in _marshaled_disp
atch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch
    return func(*params)
  File "/usr/lib/python2.3/xen/xend/server/XMLRPCServer.py", line 63, in domain_
create
    info = XendDomain.instance().domain_create(config)
  File "/usr/lib/python2.3/xen/xend/XendDomain.py", line 227, in domain_create
    dominfo = XendDomainInfo.create(config)
  File "/usr/lib/python2.3/xen/xend/XendDomainInfo.py", line 183, in create
    vm.initDomain()
  File "/usr/lib/python2.3/xen/xend/XendDomainInfo.py", line 1227, in initDomain
    channel_details = self.image.createImage()
  File "/usr/lib/python2.3/xen/xend/image.py", line 118, in createImage
    return self.createDomain()
  File "/usr/lib/python2.3/xen/xend/image.py", line 137, in createDomain
    result = self.buildDomain()
  File "/usr/lib/python2.3/xen/xend/image.py", line 188, in buildDomain
    features       = self.features)
error: (9, 'Bad file descriptor')



xm info from linux dom0 says:
# xm info
host                   : sur84-xen
release                : 2.6.16.13-xen0
version                : #2 Thu Jul 6 12:57:36 EDT 2006
machine                : i686
nr_cpus                : 4
nr_nodes               : 1
sockets_per_node       : 2
cores_per_socket       : 1
threads_per_core       : 2
cpu_mhz                : 2790
hw_caps                : bfebfbff:00000000:00000000:00000080:00004400
total_memory           : 2048
free_memory            : 1971
xen_major              : 3
xen_minor              : 0
xen_extra              : .2-3
xen_caps               : xen-3.0-x86_32
platform_params        : virt_start=0xfc000000
xen_changeset          : Thu Jun 29 05:51:49 2006 
9762:1e225598ce827a8d810ad57e82547ad6e
cc_compiler            : gcc version 3.3.5 (Debian 1:3.3.5-13)
cc_compile_by          : becker
cc_compile_domain : cc_compile_date : Fri Jun 30 15:36:33 EDT 2006

_______________________________________________
xen-discuss mailing list
xen-discuss@opensolaris.org
_______________________________________________
xen-discuss mailing list
xen-discuss@opensolaris.org

Reply via email to