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

[Xen-fr] probleme xm create



    Bonjour,

Je rencontre un petit probleme avec une toute premiere mise en oeuvre
de XEN. 

Je pensais mettre toutes les chances de mon cote en utilisant les
packages XEN Mandriva 2007.0 (version x86_64) qui contien d'origine
des noyaux xen0 et xenU. 

J'ai reussit grace a la doc concernant Mandriva 2006 sur xenfr.org et
en completant avec quelques details pris ca et la sur internet a
demarer ma machine avec le noyau 2.6.17-5mdvxen0 . J'y ai demarre les
services xend et xendomains.

J'ai mis en place le disque d'une machine virtuelle en creant un
fichier contenant un file-system ext3, et en recopiant/adaptant les
fichiers de ma machine de base (suivant les indications des docs).

J'ai ensuite fait une config en partant de  xmexample1, en pointant
mon "file:/..." au lieu d'une partition pysique, et j'ai simplifie
pour commencer, entre autre en ne prenant pas le reseau (je ne met pas
l'integralite de cette config ici dans la mesure ou elle apparait
clairement dans les logs ci-joints).

Apres de nombreuses tentatives et variantes j'en arrive toujours au
meme point :

quand je tente de creer cette machine virtuelle, je n'obtient que les
deux lignes suivantes : 

# xm create x1
Using config file "/etc/xen/x1".
Started domain ExampleDomain
#

Et je recupere la main alors que, suivant certaines traces trouvees
sur internet il devrait y avoir a la suite le boot de la machine
virtuelle.  

J'ai aussi fait des essais avec "-c" , avec le reseau, et meme des essais
avec une machine "ramdisk" (indiquee pour un test) sans plus de succes.

xm create /dev/null ramdisk=/boot/initrd.img \
      kernel=/boot/vmlinuz-2.6.17-5mdvxenU \
      name=ramdisk nics=0 vcpus=1 \
      memory=64 root=/dev/ram0

D'autre part le xend.log contient les logs mis a la fin. Je n'y vois
pas grand chose hormis que la machine virtuelle est indiquee comme
"crashed" deux fois de suite (alors qu'aucun boot ne semble avoir
commence).


Donc si l'une des personnes ayant plus la maitrise de xen que moi (ce
n'est pas difficile car je suis completement novice) pouvait regarder
mes logs et me mettre sur une piste pour comprendre le probleme je lui
en serais infiniment reconnaissant. Je suis pret a faie tous les tests
que vous ne conseillerez. Enfin, si necessaire, je resumerai le probleme
et sa solution ici meme.


Merci d'avance,

    Roland Touchais

---------------------------------- xend.log -------------------------------
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:186) 
XendDomainInfo.create(['vm', ['name', 'ExampleDomain'], ['memory', 64], 
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.17-5mdvxenU'], 
['root', '/dev/sda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 
'file:/data/XEN/vm001.img'], ['dev', 'sda1'], ['mode', 'w']]]])
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:292) 
parseConfig: config is ['vm', ['name', 'ExampleDomain'], ['memory', 64], 
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.17-5mdvxenU'], 
['root', '/dev/sda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 
'file:/data/XEN/vm001.img'], ['dev', 'sda1'], ['mode', 'w']]]]
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:391) 
parseConfig: result is {'uuid': None, 'on_crash': None, 'on_reboot': None, 
'localtime': None, 'image': ['linux', ['kernel', 
'/boot/vmlinuz-2.6.17-5mdvxenU'], ['root', '/dev/sda1 ro'], ['args', '4']], 
'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 
'ExampleDomain', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': 
None, 'vcpu_avail': None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 
'file:/data/XEN/vm001.img'], ['dev', 'sda1'], ['mode', 'w']])], 'bootloader': 
None, 'cpu': None, 'maxmem': None}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1217) 
XendDomainInfo.construct: None
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1249) 
XendDomainInfo.initDomain: 47 1.0
[2006-11-28 13:25:17 xend 9918] DEBUG (balloon:127) Balloon: 5691844 KiB free; 
need 65536; done.
[2006-11-28 13:25:17 xend 9918] INFO (image:134) buildDomain os=linux dom=47 
vcpus=1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:177) dom            = 47
[2006-11-28 13:25:17 xend 9918] DEBUG (image:178) image          = 
/boot/vmlinuz-2.6.17-5mdvxenU
[2006-11-28 13:25:17 xend 9918] DEBUG (image:179) store_evtchn   = 1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:180) console_evtchn = 2
[2006-11-28 13:25:17 xend 9918] DEBUG (image:181) cmdline        =  
root=/dev/sda1 ro 4
[2006-11-28 13:25:17 xend 9918] DEBUG (image:182) ramdisk        = 
[2006-11-28 13:25:17 xend 9918] DEBUG (image:183) vcpus          = 1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:184) features       = 
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:110) DevController: 
writing {'virtual-device': '2049', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/47/2049'} to /local/domain/47/device/vbd/2049.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:112) DevController: 
writing {'domain': 'ExampleDomain', 'frontend': 
'/local/domain/47/device/vbd/2049', 'dev': 'sda1', 'state': '1', 'params': 
'/data/XEN/vm001.img', 'mode': 'w', 'frontend-id': '47', 'type': 'file'} to 
/local/domain/0/backend/vbd/47/2049.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:702) 
Storing VM details: {'uuid': '9e192d8c-809f-2200-72c0-7a323fce1440', 
'on_reboot': 'restart', 'start_time': '1164716717.22', 'on_poweroff': 
'destroy', 'name': 'ExampleDomain', 'vcpus': '1', 'vcpu_avail': '1', 'memory': 
'64', 'on_crash': 'restart', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.17-5mdvxenU) (root '/dev/sda1 ro') (args 4))", 'maxmem': '64'}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:737) 
Storing domain details: {'console/ring-ref': '1580321', 'console/port': '2', 
'name': 'ExampleDomain', 'console/limit': '1048576', 'vm': 
'/vm/9e192d8c-809f-2200-72c0-7a323fce1440', 'domid': '47', 
'cpu/0/availability': 'online', 'memory/target': '65536', 'store/ring-ref': 
'1580322', 'store/port': '1'}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:920) 
XendDomainInfo.handleShutdownWatch
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
vif.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
usb.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
vbd.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:149) Waiting for 2049.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:449) hotplugStatusCallback 
/local/domain/0/backend/vbd/47/2049/hotplug-status.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:449) hotplugStatusCallback 
/local/domain/0/backend/vbd/47/2049/hotplug-status.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:463) hotplugStatusCallback 
1.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
irq.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
pci.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
ioports.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:143) Waiting for devices 
vtpm.
[2006-11-28 13:25:17 xend 9918] INFO (XendDomain:365) Domain ExampleDomain (47) 
unpaused.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] WARNING (XendDomainInfo:862) 
Domain has crashed: name=ExampleDomain id=47.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1404) 
XendDomainInfo.destroyDomain(47)
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:186) 
XendDomainInfo.create(['domain', ['domid', 47], ['uuid', 
'9e192d8c-809f-2200-72c0-7a323fce1440'], ['vcpus', 1], ['vcpu_avail', 1], 
['cpu_weight', 1.0], ['memory', 64], ['maxmem', 64], ['features', ''], ['name', 
'ExampleDomain'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], 
['on_crash', 'restart'], ['image', ['linux', ['kernel', 
'/boot/vmlinuz-2.6.17-5mdvxenU'], ['root', '/dev/sda1 ro'], ['args', '4']]], 
['device', ['vbd', ['backend', 0], ['dev', 'sda1'], ['uname', 
'file:/data/XEN/vm001.img'], ['mode', 'w']]], ['state', '----c-'], 
['shutdown_reason', 'crash'], ['cpu_time', 0.102485558], ['online_vcpus', 1], 
['up_time', '0.299695968628'], ['start_time', '1164716717.22'], ['store_mfn', 
1580322], ['console_mfn', 1580321]])
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:292) 
parseConfig: config is ['domain', ['domid', 47], ['uuid', 
'9e192d8c-809f-2200-72c0-7a323fce1440'], ['vcpus', 1], ['vcpu_avail', 1], 
['cpu_weight', 1.0], ['memory', 64], ['maxmem', 64], ['features', ''], ['name', 
'ExampleDomain'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], 
['on_crash', 'restart'], ['image', ['linux', ['kernel', 
'/boot/vmlinuz-2.6.17-5mdvxenU'], ['root', '/dev/sda1 ro'], ['args', '4']]], 
['device', ['vbd', ['backend', 0], ['dev', 'sda1'], ['uname', 
'file:/data/XEN/vm001.img'], ['mode', 'w']]], ['state', '----c-'], 
['shutdown_reason', 'crash'], ['cpu_time', 0.102485558], ['online_vcpus', 1], 
['up_time', '0.299695968628'], ['start_time', '1164716717.22'], ['store_mfn', 
1580322], ['console_mfn', 1580321]]
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:391) 
parseConfig: result is {'uuid': '9e192d8c-809f-2200-72c0-7a323fce1440', 
'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 'image': 
['linux', ['kernel', '/boot/vmlinuz-2.6.17-5mdvxenU'], ['root', '/dev/sda1 
ro'], ['args', '4']], 'on_poweroff': 'destroy', 'bootloader_args': None, 
'cpus': None, 'name': 'ExampleDomain', 'backend': [], 'vcpus': 1, 'cpu_weight': 
1.0, 'features': '', 'vcpu_avail': 1, 'memory': 64, 'device': [('vbd', ['vbd', 
['backend', 0], ['dev', 'sda1'], ['uname', 'file:/data/XEN/vm001.img'], 
['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': 64}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1217) 
XendDomainInfo.construct: None
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1249) 
XendDomainInfo.initDomain: 48 1.0
[2006-11-28 13:25:17 xend 9918] DEBUG (balloon:127) Balloon: 5691844 KiB free; 
need 65536; done.
[2006-11-28 13:25:17 xend 9918] INFO (image:134) buildDomain os=linux dom=48 
vcpus=1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:177) dom            = 48
[2006-11-28 13:25:17 xend 9918] DEBUG (image:178) image          = 
/boot/vmlinuz-2.6.17-5mdvxenU
[2006-11-28 13:25:17 xend 9918] DEBUG (image:179) store_evtchn   = 1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:180) console_evtchn = 2
[2006-11-28 13:25:17 xend 9918] DEBUG (image:181) cmdline        =  
root=/dev/sda1 ro 4
[2006-11-28 13:25:17 xend 9918] DEBUG (image:182) ramdisk        = 
[2006-11-28 13:25:17 xend 9918] DEBUG (image:183) vcpus          = 1
[2006-11-28 13:25:17 xend 9918] DEBUG (image:184) features       = 
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:110) DevController: 
writing {'virtual-device': '2049', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/48/2049'} to /local/domain/48/device/vbd/2049.
[2006-11-28 13:25:17 xend 9918] DEBUG (DevController:112) DevController: 
writing {'domain': 'ExampleDomain', 'frontend': 
'/local/domain/48/device/vbd/2049', 'dev': 'sda1', 'state': '1', 'params': 
'/data/XEN/vm001.img', 'mode': 'w', 'frontend-id': '48', 'type': 'file'} to 
/local/domain/0/backend/vbd/48/2049.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:702) 
Storing VM details: {'uuid': '9e192d8c-809f-2200-72c0-7a323fce1440', 
'on_reboot': 'restart', 'start_time': '1164716717.77', 'on_poweroff': 
'destroy', 'name': 'ExampleDomain', 'vcpus': '1', 'vcpu_avail': '1', 'memory': 
'64', 'on_crash': 'restart', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.17-5mdvxenU) (root '/dev/sda1 ro') (args 4))", 'maxmem': '64'}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:737) 
Storing domain details: {'console/ring-ref': '1626401', 'console/port': '2', 
'name': 'ExampleDomain', 'console/limit': '1048576', 'vm': 
'/vm/9e192d8c-809f-2200-72c0-7a323fce1440', 'domid': '48', 
'cpu/0/availability': 'online', 'memory/target': '65536', 'store/ring-ref': 
'1626402', 'store/port': '1'}
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:920) 
XendDomainInfo.handleShutdownWatch
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] WARNING (XendDomainInfo:862) 
Domain has crashed: name=ExampleDomain id=48.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] ERROR (XendDomainInfo:1576) VM 
ExampleDomain restarting too fast (0.394213 seconds since the last restart).  
Refusing to restart to avoid loops.
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1396) 
XendDomainInfo.destroy: domid=48
[2006-11-28 13:25:17 xend.XendDomainInfo 9918] DEBUG (XendDomainInfo:1404) 
XendDomainInfo.destroyDomain(48)


_______________________________________________
Xen-fr mailing list
Xen-fr@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-fr

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.