Loading, please wait... Debian Lenny

Bonjour à tous.

J’ai une debian Lenny virtualisée sur Hyper-V.

Afin de pouvoir changer le nombre de processeur attribué à la machine, j’ai mis à jour le kernel en 2.6.36 avec les services d’intégrations d’hyper-v activés dans ce kernel.

Au démarrage je me trouve avec un “Loading, please wait…” qui n’en finit plus alors qu’en sélectionnant un autre kernel la vm démarre.

Qu’est il poossible de faire pour remédier à ce problème ? Ou alors, quelqu’un connaitrait il une solution pour changer le nombre de coeurs attribués à la vm directement sans passer par ce noyau ?

Merci pour vos indications.

Cordialement.

Tu étais obligé de passer par la mise à jour du kernel? Une simple modification des paramètres de la machine (à froid) n’est pas faisable?

Hélas non, la modification du nombre de coeurs attribués à la vm n’est pas prise en compte par debian.

Même si je met la valeur à deux ou a trois lorsque je fais un

il ne retourne qu’un seul coeur.

J’ai eut un message d’erreur à un moment qui me disait

et le boot s’arrêtait la.

J’ai essayé un ACPI=off, sans succès :confused:

suspect : grub

Vérifie que l’entrée de grub soit réaliste , touche “e” comme edit au démarrage.

grub(legacy)

root (hd?,?)
kernel /boot/vmlinuz-2.6.?? root=/dev/hd??
initrd /boot/init-rd.imag-2.6.??

Ce que linux-2.6.26 considérait comme /dev/hda* devrait être requalifié en /dev/sda* à la ligne kernel.

Merci de t’attarder sur le sujet.

J’ai fais un screen qui te parlera plus, dis moi ce que tu en penses et qu’il y aurait à modifier si c’est le cas.

Merci.

root=/dev/sda1 pour le noyau 2.6.36
tu laisses root=/dev/hda1 pour linux-2.6.26.

Encore mieux, UUID=???

De même, inspecte le fichier /etc/fstab et définis la racine par UUID=??? au lieu de /dev/hda1.

J’ai bien essayé ta de remplacer hda1 par sda1 mais toujours rien, le serveur reste bloqué sur “Loading please wait au démarrage…”

Pour le /etc/fstab, je poste un nouveau screen car je ne vois pas ce dont tu parles quand tu parles d’UUID :confused:

Par contre quand je vire le “ro quiet” à la fin de la ligne, tout ce que charge la machine est affiché et il apparait que le boot stop net sur :

Puis après plus rien.
Hors sur un autre noyau sans les services d’intégration, aucuns soucis de boot, je suspecte donc cette ligne d’être la cause de mes soucis mais je ne vois pas comment y remédier :confused:

Éditer /boot/grub/menu.lst et /etc/fstab.
La définition root=/dev/sda1 dans grub doit aller de pair avec la définition de la racine /dev/sda1 en /etc/fstab pour pouvoir conclure le démarrage de linux-2.6.36.
(présentement, la swap est aussi à redéfinir en /dev/sda5)

Problèmes : linux-2.6.26 ne saurait retrouver /dev/sda1 défini en /etc/fstab, il ne détecte que /dev/hda1.
Un changement dans le BIOS, un disque en plus et voilà /dev/hda devenu /dev/hdc, /dev/sda devenu /dev/sdb …

Solution : UUID
Universally Unique IDentifier

Un identifiant attaché à la partition indépendamment de la dénomination /dev/sda ou /dev/hda.

Pour le connaître :

$ ls -l /dev/disk/by-uuid

Dans /boot/grub/menu.lst tu remplaces root=/dev/hda1 par root=UUID=XXXXX

Dans /etc/fstab tu remplaces /dev/hda1 (sda1) par UUID=XXXXX pour la racine et /dev/hda5 (sda5) par UUID=YYYYY pour la swap.
cdrom /dev/hdc -> /dev/sr0

Démarre sur linux-2.6.26 pour opérer les changements sur les fichiers puis redémarre sur 2.6.36 lorsque ces retouches sont faites.

En fait je ne pense pas que grub soit en lien avec mon problème, le système en lui même démarre bien.

L’idée serait d’empêcher le démarrage de certains modules, tu saurais ou je peux désactiver les modules du démarrage ?

Merci.

Pas de conclusions hâtives :
les modules sont stockés dans /lib/modules. Pas de / pas de /lib/modules, pas de modules …

Il est possible de démarrer un noyau appelé par grub sans monter la racine du système défini de manière erronée, sans modules s’il comporte le minimum nécessaire en dur.

Que rapportent

$ df
et
$ lsmod
lors du démarrage “semi-raté”.

Hello.

Quand tu parles de démarrage semi-raté c’est en bootant sur le noyau 2.6.36 ?

Si oui, je n’ai aucune possibilité de taper une commande, le boot en reste là et la machine bloquée :confused:

Démarre bien = grub démarre bien, le système plante en linux-2.6.36.

Il ne s’agit pas d’un “dysfonctionnement” de grub, il ne fait que ce qu’on lui ordonne.
Grub devrait passer les paramètres
root=/dev/hda1 (tel que défini présentement)
ou
root=/dev/sda1
selon que tu démarres linux-2.6.26 ou linux-2.6.36.
root=/dev/hda1 ne peut pas marcher avec linux-2.6.36.
De même pour monter la racine en vertu du contenu de /etc/fstab, /dev/hda1 est ignoré de linux-2.6.36.
Je te l’ai déjà expliqué,pour éviter ces problèmes, on a recours aux UUID qui restent invariables. Les UUID ne pénaliseront ni linux-2.6.26 ni linux-2.6.36, les deux les géreront.

Tu n’as toujours pas édité /boot/grub/menu.lst ni /etc/fstab sur la base des UUID.
Si tu ne sais pas comment faire, démarre sur linux-2.6.26 avec grub et /etc/fstab intacts. Envoie nous les retours des commandes

$ ls -l /dev/disk/by-uuid

$ cat /etc/fstab

et

$ cat /boot/grub/menu.lst

Sur la base de ces renseignements quelqu’un (moi ou un autre forumeur bienveillant) éditera menu.lst et fstab à ta place. Il ne te restera plus qu’à sauvegarder les anciens fichiers et les remplacer par les nouveaux sur le système.

Merci pour ta réponse, voici les commandes que tu m’as demandé

$ ls -l /dev/disk/by-uuid

ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 jan 6 12:27 70c6922c-c325-4fc8-b832-f481eb2d0c8b -> ../../hda1

$ cat /etc/fstab

[code]cat /etc/fstab

/etc/fstab: static file system information.

proc /proc proc defaults 0 0
/dev/hda1 / ext3 errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0[/code]

$ cat /boot/grub/menu.lst

[code]cat /boot/grub/menu.lst

menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-legacy-doc/.

default num

Set the default entry to the entry number NUM. Numbering starts from 0, and

the entry number 0 is the default if the command is not used.

You can specify ‘saved’ instead of a number. In this case, the default entry

is the entry saved with the command ‘savedefault’.

WARNING: If you are using dmraid do not change this entry to ‘saved’ or your

array will desync and will not let you boot your system.

default 0

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 5

Pretty colours

color cyan/blue white/blue

password [’–md5’] passwd

If used in the first section of a menu file, disable all interactive editing

control (menu entry editor and command-line) and entries protected by the

command ‘lock’

e.g. password topsecret

password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/

password topsecret

examples

title Windows 95/98/NT/2000

root (hd0,0)

makeactive

chainloader +1

title Linux

root (hd0,1)

kernel /vmlinuz root=/dev/hda2 ro

Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

BEGIN AUTOMAGIC KERNELS LIST

lines between the AUTOMAGIC KERNELS LIST markers will be modified

by the debian update-grub script except for the default options below

DO NOT UNCOMMENT THEM, Just edit them to your needs

## Start Default Options

default kernel options

default kernel options for automagic boot options

If you want special options for specific kernels use kopt_x_y_z

where x.y.z is kernel version. Minor versions can be omitted.

e.g. kopt=root=/dev/hda1 ro

kopt_2_6_8=root=/dev/hdc1 ro

kopt_2_6_8_2_686=root=/dev/hdc2 ro

kopt=root=/dev/hda1 ro

default grub root device

e.g. groot=(hd0,0)

groot=(hd0,0)

should update-grub create alternative automagic boot options

e.g. alternative=true

alternative=false

alternative=true

should update-grub lock alternative automagic boot options

e.g. lockalternative=true

lockalternative=false

lockalternative=false

additional options to use with the default boot option, but not with the

alternatives

e.g. defoptions=vga=791 resume=/dev/hda5

defoptions=quiet

should update-grub lock old automagic boot options

e.g. lockold=false

lockold=true

lockold=false

Xen hypervisor options to use with the default Xen boot option

xenhopt=

Xen Linux kernel options to use with the default Xen boot option

xenkopt=console=tty0

altoption boot targets option

multiple altoptions lines are allowed

e.g. altoptions=(extra menu suffix) extra boot options

altoptions=(single-user) single

altoptions=(single-user mode) single

controls how many kernels should be put into the menu.lst

only counts the first occurence of a kernel, not the

alternative kernel options

e.g. howmany=all

howmany=7

howmany=all

should update-grub create memtest86 boot option

e.g. memtest86=true

memtest86=false

memtest86=true

should update-grub adjust the value of the default booted system

can be true or false

updatedefaultentry=false

should update-grub add savedefault to the default options

can be true or false

savedefault=false

## End Default Options

title Debian GNU/Linux, kernel 2.6.36-hyperv
root (hd0,0)
kernel /boot/vmlinuz-2.6.36-hyperv root=/dev/hda1 ro quiet
initrd /boot/initrd.img-2.6.36-hyperv

title Debian GNU/Linux, kernel 2.6.36-hyperv (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.36-hyperv root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.36-hyperv

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro quiet
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.26-2-686

END DEBIAN AUTOMAGIC KERNELS LIST[/code]

Merci pour ta réponse :slightly_smiling:

/etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b       /               ext3    errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

Ne connaissant pas l’UUID de /dev/hda5, je me suis contenté de le modifier en /dev/sda5.
cdrom -> sr0

Menu.lst
Ai remplacé /dev/hda1 par UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b dans les définitions des racines et de
kopt , ajout d’une entrée /vmlinuz +UUID (“incassable”… ou presque ).

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title         Windows 95/98/NT/2000
# root          (hd0,0)
# makeactive
# chainloader   +1
#
# title         Linux
# root          (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title           Debian GNU/Linux, kernel 2.6.36-hyperv
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.36-hyperv root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro quiet
initrd          /boot/initrd.img-2.6.36-hyperv

title           Debian GNU/Linux, kernel 2.6.36-hyperv (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.36-hyperv root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro single
initrd          /boot/initrd.img-2.6.36-hyperv

title           Debian GNU/Linux, kernel 2.6.26-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro quiet
initrd          /boot/initrd.img-2.6.26-2-686

title           Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro single
initrd          /boot/initrd.img-2.6.26-2-686

# en bonus , ajout de /vmlinuz, lien vers le dernier noyau installé en date 

title vmlinuz 
root (hd0,0)
kernel /vmlinuz root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b 
initrd   /initrd.img
### END DEBIAN AUTOMAGIC KERNELS LIST

Merci pour ton aide.

Je ne peux pas tester ça avant deux semaines maintenant mais je te tiendrais au courant dès que je le pourrais.

Merci beaucoup.

Le symptôme ne ressemble pas du tout à un problème de définition de la racine, donc je doute fort que tout ça serve à quelque chose.

Bon réflexe d’avoir supprimé l’option “quiet” par contre, ça permet d’afficher des choses.
Note : les modules ne sont pas seulement sur la racine, il y en a aussi certains dans l’initramfs qui est chargé avant la racine. A ce propos, le démarrage parvient-il jusqu’au lancement de l’initramfs ou bien s’interrompt-il avant ?

Hello, désolé du retard, j’ai du m’absenter pendant les deux semaines précédentes.

Il y parvient apparament car c’est au chargement des modules inscrits dans l’initramfs que le démarrage se bloque.

Je vais essayer de booter en ajoutant les modules un par un pour tester.

[quote=“etxeberrizahar”]/etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b       /               ext3    errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

Ne connaissant pas l’UUID de /dev/hda5, je me suis contenté de le modifier en /dev/sda5.
cdrom -> sr0

Menu.lst
Ai remplacé /dev/hda1 par UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b dans les définitions des racines et de
kopt , ajout d’une entrée /vmlinuz +UUID (“incassable”… ou presque ).

[code]

menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-legacy-doc/.

default num

Set the default entry to the entry number NUM. Numbering starts from 0, and

the entry number 0 is the default if the command is not used.

You can specify ‘saved’ instead of a number. In this case, the default entry

is the entry saved with the command ‘savedefault’.

WARNING: If you are using dmraid do not change this entry to ‘saved’ or your

array will desync and will not let you boot your system.

default 0

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 5

Pretty colours

color cyan/blue white/blue

password [’–md5’] passwd

If used in the first section of a menu file, disable all interactive editing

control (menu entry editor and command-line) and entries protected by the

command ‘lock’

e.g. password topsecret

password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/

password topsecret

examples

title Windows 95/98/NT/2000

root (hd0,0)

makeactive

chainloader +1

title Linux

root (hd0,1)

kernel /vmlinuz root=/dev/hda2 ro

Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

BEGIN AUTOMAGIC KERNELS LIST

lines between the AUTOMAGIC KERNELS LIST markers will be modified

by the debian update-grub script except for the default options below

DO NOT UNCOMMENT THEM, Just edit them to your needs

## Start Default Options

default kernel options

default kernel options for automagic boot options

If you want special options for specific kernels use kopt_x_y_z

where x.y.z is kernel version. Minor versions can be omitted.

e.g. kopt=root=/dev/hda1 ro

kopt_2_6_8=root=/dev/hdc1 ro

kopt_2_6_8_2_686=root=/dev/hdc2 ro

kopt=root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro

default grub root device

e.g. groot=(hd0,0)

groot=(hd0,0)

should update-grub create alternative automagic boot options

e.g. alternative=true

alternative=false

alternative=true

should update-grub lock alternative automagic boot options

e.g. lockalternative=true

lockalternative=false

lockalternative=false

additional options to use with the default boot option, but not with the

alternatives

e.g. defoptions=vga=791 resume=/dev/hda5

defoptions=quiet

should update-grub lock old automagic boot options

e.g. lockold=false

lockold=true

lockold=false

Xen hypervisor options to use with the default Xen boot option

xenhopt=

Xen Linux kernel options to use with the default Xen boot option

xenkopt=console=tty0

altoption boot targets option

multiple altoptions lines are allowed

e.g. altoptions=(extra menu suffix) extra boot options

altoptions=(single-user) single

altoptions=(single-user mode) single

controls how many kernels should be put into the menu.lst

only counts the first occurence of a kernel, not the

alternative kernel options

e.g. howmany=all

howmany=7

howmany=all

should update-grub create memtest86 boot option

e.g. memtest86=true

memtest86=false

memtest86=true

should update-grub adjust the value of the default booted system

can be true or false

updatedefaultentry=false

should update-grub add savedefault to the default options

can be true or false

savedefault=false

## End Default Options

title Debian GNU/Linux, kernel 2.6.36-hyperv
root (hd0,0)
kernel /boot/vmlinuz-2.6.36-hyperv root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro quiet
initrd /boot/initrd.img-2.6.36-hyperv

title Debian GNU/Linux, kernel 2.6.36-hyperv (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.36-hyperv root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro single
initrd /boot/initrd.img-2.6.36-hyperv

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro quiet
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b ro single
initrd /boot/initrd.img-2.6.26-2-686

en bonus , ajout de /vmlinuz, lien vers le dernier noyau installé en date

title vmlinuz
root (hd0,0)
kernel /vmlinuz root=UUID=70c6922c-c325-4fc8-b832-f481eb2d0c8b
initrd /initrd.img

END DEBIAN AUTOMAGIC KERNELS LIST

[/code][/quote]

C’est good :smiley:

Merci pour ton aide, maintenant je boot bien sur le noyau souhaité :slightly_smiling:

Bon je bloque toujours sur la détection d’un second coeur par la vm mais j’avance.

Si d’ailleurs quelqu’un a des infos, je suis preneur :slightly_smiling:

Merci en tout cas à tous.