Port-xen archive

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

Re: problem starting domU





hmm RedHat enterprise like Xen kernels, like Fedora, Scientific Linux, CentOS, are all PAE enabled kernels, and it is not easy to build a PAE not enabled kernel to be used in a install environment... because
I just took hte initrd and vmlinuz  from the install images since
initrd has inside the install facility...
thanks though

Rick



On Fri, 8 Jun 2007, Manuel Bouyer wrote:

On Fri, Jun 08, 2007 at 10:55:32AM -0600, RJ45 wrote:


Hello,
I could finally start a XEN3 DOM0

I rebuilt the whole system:

NetBSD xenbsd.domain.it 4.0_BETA2 NetBSD 4.0_BETA2 (XEN3_DOM0) #0:
Thu Jun  7 21:16:11 CEST 2007
root%xenbsd.domain.it@localhost:/usr/obj/sys/arch/i386/compile/XEN3_DOM0 i386

I started xend and xenbackendd

root      14  0.0  2.3    0 24528 ?     DK    6:06PM 0:00.00 [xenwatch]
root      15  0.0  2.3    0 24528 ?     DK    6:06PM 0:00.00 [xenbus]
root     481  0.0  0.1  300   848 ?     I     6:10PM 0:00.00 xenstored
--pid-file /var/run/xenstore.pid
root    1048  0.0  0.0 5172     4 ?     IW    6:10PM 0:00.00
/usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
root    1310  0.0  0.0 2084   132 ?     IWa   6:10PM 0:00.00 xenconsoled
root    1817  0.0  0.0 5576  5388 ?     IWa   6:10PM 0:00.00
/usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
root    1885  0.0  0.0 2084   132 ?     IWsa  6:10PM 0:00.00
/usr/pkg/sbin/xenbackendd

Now I Wanted to start a RedHat 5.0 domU

so I tok hte domU kernels and tryed to boot them:

xm create /usr/pkg/etc/xen/sl50 -c kernel=/root/SL50XEN/vmlinuz
ramdisk=/root/SL50XEN/initrd.img
extra="method=http://os-server.domain.it/distro/SL/50/i386/ skipddc
text"

and here is my configuration for Xen domU

name = "sl50"
memory = 512
#vcpus = 2
disk = [ 'file:/domU/SL50/sl50,0x301,w' ]
#vif = [ 'mac=00:16:3E:11:22:33' ]
# wn-04-04-27-a --> MAC address
#vif = [ 'mac=00:06:5B:19:9A:2B','bridge=bridge0' ]
#bootloader="/usr/bin/pygrub"
on_reboot   = 'destroy'
on_crash    = 'destroy'
on_poweroff = 'destroy'

I tried bot with and without NIC

but it does not work and I have this error

Using config file "/usr/pkg/etc/xen/sl50".
Error: (22, 'Invalid argument')


looing at xend logs:

[2007-06-08 18:49:13 xend 1817] DEBUG (image:198) features       =
[2007-06-08 18:49:13 xend.XendDomainInfo 1817] ERROR (XendDomainInfo:202)
Domain construction failed
Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 195, in create
    vm.initDomain()
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1363, in initDomain
    raise VmError(str(exn))
VmError: (22, 'Invalid argument')
[2007-06-08 18:49:13 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1449)
XendDomainInfo.destroy: domid=6
[2007-06-08 18:49:13 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1457)
XendDomainInfo.destroyDomain(6)
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:190)
XendDomainInfo.create(['vm', ['name', 'sl50'], ['memory', 512],
['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash',
'destroy'], ['vcpus', 1], ['image', ['linux', ['kernel',
'/root/SL50XEN/vmlinuz'], ['ramdisk', '/root/SL50XEN/initrd.img'],
['args', 'method=http://os-server.cnaf.infn.it/distro/SL/50/i386/ skipddc
text']]], ['device', ['vbd', ['uname', 'file:/domU/SL50/sl50'], ['dev',
'0x301'], ['mode', 'w']]]])
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:296)
parseConfig: config is ['vm', ['name', 'sl50'], ['memory', 512],
['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash',
'destroy'], ['vcpus', 1], ['image', ['linux', ['kernel',
'/root/SL50XEN/vmlinuz'], ['ramdisk', '/root/SL50XEN/initrd.img'],
['args', 'method=http://os-server.cnaf.infn.it/distro/SL/50/i386/ skipddc
text']]], ['device', ['vbd', ['uname', 'file:/domU/SL50/sl50'], ['dev',
'0x301'], ['mode', 'w']]]]
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:395)
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash':
'destroy', 'on_reboot': 'destroy', 'localtime': None, 'image': ['linux',
['kernel', '/root/SL50XEN/vmlinuz'], ['ramdisk',
'/root/SL50XEN/initrd.img'], ['args',
'method=http://os-server.cnaf.infn.it/distro/SL/50/i386/ skipddc text']],
'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name':
'sl50', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None,
'vcpu_avail': None, 'memory': 512, 'device': [('vbd', ['vbd', ['uname',
'file:/domU/SL50/sl50'], ['dev', '0x301'], ['mode', 'w']])], 'bootloader':
None, 'cpu': None, 'maxmem': None}
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1253)
XendDomainInfo.construct: None
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1285)
XendDomainInfo.initDomain: 7 1.0
[2007-06-08 18:49:43 xend 1817] DEBUG (balloon:127) Balloon: 2583496 KiB
free; need 524288; done.
[2007-06-08 18:49:43 xend 1817] INFO (image:136) buildDomain os=linux
dom=7 vcpus=1
[2007-06-08 18:49:43 xend 1817] DEBUG (image:191) dom            = 7
[2007-06-08 18:49:43 xend 1817] DEBUG (image:192) image          =
/root/SL50XEN/vmlinuz
[2007-06-08 18:49:43 xend 1817] DEBUG (image:193) store_evtchn   = 1
[2007-06-08 18:49:43 xend 1817] DEBUG (image:194) console_evtchn = 2
[2007-06-08 18:49:43 xend 1817] DEBUG (image:195) cmdline        =
method=http://os-server.cnaf.infn.it/distro/SL/50/i386/ skipddc text
[2007-06-08 18:49:43 xend 1817] DEBUG (image:196) ramdisk        =
/root/SL50XEN/initrd.img
[2007-06-08 18:49:43 xend 1817] DEBUG (image:197) vcpus          = 1
[2007-06-08 18:49:43 xend 1817] DEBUG (image:198) features       =
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] ERROR (XendDomainInfo:202)
Domain construction failed
Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 195, in create
    vm.initDomain()
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1363, in initDomain
    raise VmError(str(exn))
VmError: (22, 'Invalid argument')
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1449)
XendDomainInfo.destroy: domid=7
[2007-06-08 18:49:43 xend.XendDomainInfo 1817] DEBUG (XendDomainInfo:1457)
XendDomainInfo.destroyDomain(7)

What's wrong ?

Make sure the kernel is plain 32bit kernel, not 32bit-PAE.
the output of xm dmesg may also have a hint.

--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
    NetBSD: 26 ans d'experience feront toujours la difference
--




Home | Main Index | Thread Index | Old Index