I'm fairly new to the Xen capabilities added to Solaris.
In trying to get a Fedora Core 8 guest up under Nevada 83,
I built a 64-bit Fedora Xen kernel over on a Fedora Linux
machine, using the latest Xen 3.2.0 sources.  It nicely built
a Fedora "vmlinuz-2.6.18.8-xen" kernel.

        When I took that over to a Solaris Nevada 83 machine to run,
it failed, but the sole output from "xm start" was

# xm create fedora.fc8.64.xen3.cfg -c
Using config file "./fedora.fc8.64.xen3.cfg".
Error:
#

which wasn't too helpful.  /var/log/xen/xend.log was a little more
helpful:

[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:94) 
XendDomainInfo.create(['vm', ['name', 'fedora.fc8.64'], ['memory', 256], 
['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'shutdown'], 
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18.8-xen'], ['ip', 
':1.2.3.4::::eth0:dhcp'], ['root', '/dev/sda1'], ['args', 'fastboot']]], 
['device', ['vbd', ['uname', 'file:/export/home/xfc/fedora.fc8.64.img'], 
['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 
'file:/export/home/xfc/fedora.swap'], ['dev', 'sda2'], ['mode', 'w']]], 
['device', ['vif']]])
[2008-03-24 17:50:36 xend.XendConfig 388] WARNING (XendConfig:612) Unconverted 
key: cpus
[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:1320) 
XendDomainInfo.constructDomain
[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:1366) 
XendDomainInfo.initDomain: 4 256
[2008-03-24 17:50:36 xend 388] DEBUG (balloon:116) Balloon: 262924 KiB free; 
need 262144; done.
[2008-03-24 17:50:36 xend 388] INFO (image:129) buildDomain os=linux dom=4 
vcpus=1
[2008-03-24 17:50:36 xend 388] DEBUG (image:198) domid          = 4
[2008-03-24 17:50:36 xend 388] DEBUG (image:199) memsize        = 256
[2008-03-24 17:50:36 xend 388] DEBUG (image:200) image          = 
/boot/vmlinuz-2.6.18.8-xen
[2008-03-24 17:50:36 xend 388] DEBUG (image:201) store_evtchn   = 1
[2008-03-24 17:50:36 xend 388] DEBUG (image:202) console_evtchn = 2
[2008-03-24 17:50:36 xend 388] DEBUG (image:203) cmdline        = 
root=/dev/sda1 ip=:1.2.3.4::::eth0:dhcp fastboot
[2008-03-24 17:50:36 xend 388] DEBUG (image:204) ramdisk        = 
[2008-03-24 17:50:36 xend 388] DEBUG (image:205) vcpus          = 1
[2008-03-24 17:50:36 xend 388] DEBUG (image:206) features       = 
[2008-03-24 17:50:36 xend.XendDomainInfo 388] INFO (XendDomainInfo:1230) 
createDevice: vbd : {'uname': 'file:/export/home/xfc/fedora.fc8.64.img', 
'driver': 'paravirtualised', 'mode': 'w', 'dev': 'sda1', 'uuid': 
'791a60c3-1c1e-831d-81fd-0a003a52aa8c'}
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:116) DevController: writing 
{'backend-id': '0', 'virtual-device': '2049', 'device-type': 'disk', 'state': 
'1', 'backend': '/local/domain/0/backend/vbd/4/2049'} to 
/local/domain/4/device/vbd/2049.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:118) DevController: writing 
{'domain': 'fedora.fc8.64', 'frontend': '/local/domain/4/device/vbd/2049', 
'uuid': '791a60c3-1c1e-831d-81fd-0a003a52aa8c', 'dev': 'sda1', 'state': '1', 
'params': '/export/home/xfc/fedora.fc8.64.img', 'mode': 'w', 'online': '1', 
'frontend-id': '4', 'type': 'file'} to /local/domain/0/backend/vbd/4/2049.
[2008-03-24 17:50:36 xend.XendDomainInfo 388] INFO (XendDomainInfo:1230) 
createDevice: vbd : {'uname': 'file:/export/home/xfc/fedora.swap', 'driver': 
'paravirtualised', 'mode': 'w', 'dev': 'sda2', 'uuid': 
'40bd6243-a337-6675-de19-9a3e987c2386'}
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:116) DevController: writing 
{'backend-id': '0', 'virtual-device': '2050', 'device-type': 'disk', 'state': 
'1', 'backend': '/local/domain/0/backend/vbd/4/2050'} to 
/local/domain/4/device/vbd/2050.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:118) DevController: writing 
{'domain': 'fedora.fc8.64', 'frontend': '/local/domain/4/device/vbd/2050', 
'uuid': '40bd6243-a337-6675-de19-9a3e987c2386', 'dev': 'sda2', 'state': '1', 
'params': '/export/home/xfc/fedora.swap', 'mode': 'w', 'online': '1', 
'frontend-id': '4', 'type': 'file'} to /local/domain/0/backend/vbd/4/2050.
[2008-03-24 17:50:36 xend.XendDomainInfo 388] INFO (XendDomainInfo:1230) 
createDevice: vif : {'mac': '00:16:3e:2b:79:2d', 'uuid': 
'00b9aa77-43a1-d6fa-070c-92b76c4ae077'}
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:116) DevController: writing 
{'backend-id': '0', 'mac': '00:16:3e:2b:79:2d', 'handle': '0', 'state': '1', 
'backend': '/local/domain/0/backend/vif/4/0'} to /local/domain/4/device/vif/0.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:118) DevController: writing 
{'domain': 'fedora.fc8.64', 'handle': '0', 'uuid': 
'00b9aa77-43a1-d6fa-070c-92b76c4ae077', 'script': 
'/usr/lib/xen/scripts/vif-vnic', 'state': '1', 'frontend': 
'/local/domain/4/device/vif/0', 'mac': '00:16:3e:2b:79:2d', 'online': '1', 
'frontend-id': '4', 'type': 'SUNW_mac'} to /local/domain/0/backend/vif/4/0.
[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:1750) 
Storing VM details: {'on_xend_stop': 'shutdown', 'shadow_memory': '0', 'uuid': 
'978ea67c-44e0-f9c6-8d6f-6bf24befebde', 'name': 'fedora.fc8.64', 'on_reboot': 
'restart', 'start_time': '1206406236.58', 'on_poweroff': 'destroy', 
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 
'vcpus': '1', 'vcpu_avail': '1', 'memory': '256', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.18.8-xen) (args 'root=/dev/sda1 ip=:1.2.3.4::::eth0:dhcp 
fastboot') (root /dev/sda1) (ip :1.2.3.4::::eth0:dhcp))", 'maxmem': '256'}
[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:757) 
Storing domain details: {'console/ring-ref': '8387243', 'console/port': '2', 
'name': 'fedora.fc8.64', 'console/limit': '1048576', 'vm': 
'/vm/978ea67c-44e0-f9c6-8d6f-6bf24befebde', 'domid': '4', 'cpu/0/availability': 
'online', 'memory/target': '262144', 'store/ring-ref': '8387244', 'store/port': 
'1'}
[2008-03-24 17:50:36 xend 388] DEBUG (XendDomain:431) Adding Domain: 4
[2008-03-24 17:50:36 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:824) 
XendDomainInfo.handleShutdownWatch
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:149) Waiting for devices 
vif.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:154) Waiting for 0.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:561) hotplugStatusCallback 
/local/domain/0/backend/vif/4/0/hotplug-status.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:561) hotplugStatusCallback 
/local/domain/0/backend/vif/4/0/hotplug-status.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:575) hotplugStatusCallback 
1.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:149) Waiting for devices 
usb.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:149) Waiting for devices 
vbd.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:154) Waiting for 2049.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:561) hotplugStatusCallback 
/local/domain/0/backend/vbd/4/2049/hotplug-status.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:575) hotplugStatusCallback 
2.
[2008-03-24 17:50:36 xend 388] DEBUG (DevController:549) destroyCallback 
/local/domain/4/device/vbd/2049.
[2008-03-24 17:50:46 xend 388] ERROR (xmlrpclib2:218) 
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 197, in 
_marshaled_dispatch
  File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
    return func(*params)
  File "<string>", line 1, in <lambda>
  File "/usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py", line 
52, in dispatch
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 518, 
in waitForDevices
  File "/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py", 
line 150, in waitForDevices
  File "/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py", 
line 165, in waitForDevice
  File "/usr/lib/python2.4/site-packages/xen/xend/server/blkif.py", line 146, 
in destroyDevice
  File "/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py", 
line 237, in destroyDevice
EnvironmentError
[2008-03-24 17:50:46 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:1519) 
XendDomainInfo.destroy: domid=4
[2008-03-24 17:50:46 xend.XendDomainInfo 388] DEBUG (XendDomainInfo:1527) 
XendDomainInfo.destroyDomain(4)
[2008-03-24 17:50:47 xend 388] DEBUG (DevController:549) destroyCallback 
/local/domain/4/device/vbd/2049.
[2008-03-24 17:50:47 xend 388] DEBUG (DevController:557) destroyCallback 
/local/domain/4/device/vbd/2049 is destroyed

        Is the problem that I should be building against some earlier
version of Xen?  If I move from Solaris Nevada 83 to Nevada 85, that's
Xen 3.1.2 as nearly as I can tell, but the sources from xen.org
are 3.1.3.  Will the tarballs from the same page on xen.org
(http://www.xen.org/download/dl_31tarballs.html) work under Nevada 85?

        Any wisdom would be appreciated.

Mike O'Brien
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to