Update z Debian 8 na 9 - starý kernel

Update z Debian 8 na 9 - starý kernel
« kdy: 23. 06. 2019, 23:11:05 »
Ahojte,

na KVM mi bezi moje VPS. Updatoval som z jessie na stretch a vsimol som si,ze stale bezim na starom kernely. 3.16.0-4-amd64. Pozeral som rozne navody. Bohuzial nie som schopny updatnut kernel.

toto je moj /etc/apt/souces.list
Kód: [Vybrat]
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main

deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

neviete preco sa mi neupdatuje kernel?
Dakujem
« Poslední změna: 24. 06. 2019, 08:11:53 od Petr Krčmář »


k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:update z debian 8 na 9 - stary kernel
« Odpověď #1 kdy: 23. 06. 2019, 23:37:16 »
Kód: [Vybrat]
dpkg -l | grep linux-image?

_Jenda

  • *****
  • 1 550
    • Zobrazit profil
    • https://jenda.hrach.eu/
    • E-mail
Re:update z debian 8 na 9 - stary kernel
« Odpověď #2 kdy: 24. 06. 2019, 00:05:15 »
Tipoval bych (i podle toho, že už předtím jsi měl starý kernel, aktuální verze v Jessie je 3.16.0-7-amd64), že nemáš nainstalovaný metabalík linux-image-amd64, ale jen konkrétní balíček s jádrem.

Re:update z debian 8 na 9 - stary kernel
« Odpověď #3 kdy: 24. 06. 2019, 19:13:00 »
Ahojte
k3dAR, tu je vystup
Kód: [Vybrat]
ii  linux-image-3.16.0-4-amd64     3.16.51-2                          amd64        Linux 3.16 for 64-bit PCs
rc  linux-image-3.16.0-6-amd64     3.16.57-2                          amd64        Linux 3.16 for 64-bit PCs
rc  linux-image-3.16.0-7-amd64     3.16.59-1                          amd64        Linux 3.16 for 64-bit PCs
rc  linux-image-3.16.0-8-amd64     3.16.64-2                          amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-3.16.0-9-amd64     3.16.68-1                          amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-4.9.0-9-amd64      4.9.168-1+deb9u3                   amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-amd64              4.9+80+deb9u7                      amd64        Linux for 64-bit PCs (meta-package)

_Jenda,
vo vystupe mam linux-image-amd64...

_Jenda

  • *****
  • 1 550
    • Zobrazit profil
    • https://jenda.hrach.eu/
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #4 kdy: 24. 06. 2019, 21:26:57 »
Takže nový kernel máš nainstalovaný, ale nebootuje se.

Zkus udělat update-grub a pošli /etc/default/grub a /boot/grub/grub.cfg.


Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #5 kdy: 24. 06. 2019, 22:30:02 »
Ahoj,

Kód: [Vybrat]
root@aaa:~# update-grub
-bash: update-grub: command not found
root@aaa:~# cat /etc/default/grub
cat: /etc/default/grub: No such file or directory
root@aaa:~# cat cat /boot/grub/grub.cfg
cat: cat: No such file or directory
cat: /boot/grub/grub.cfg: No such file or directory

skusal som ci nemam nahodou Lilo...
Kód: [Vybrat]
root@aaa:~# cat etc/lilo.conf
cat: etc/lilo.conf: No such file or directory

k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #6 kdy: 24. 06. 2019, 23:38:36 »
[...] skusal som ci nemam nahodou Lilo...
Kód: [Vybrat]
root@aaa:~# cat etc/lilo.conf
cat: etc/lilo.conf: No such file or directory
schazi ti / pred etc... nicmene pokud nevis jestli mas lilo, tak spis budes mit grub1:
Kód: [Vybrat]
cat /boot/grub/menu.lstpripadne vypis balicku:
Kód: [Vybrat]
dpkg -l | grep -e grub -e lilo

_Jenda

  • *****
  • 1 550
    • Zobrazit profil
    • https://jenda.hrach.eu/
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #7 kdy: 25. 06. 2019, 03:23:55 »
update-grub je i v grub-legacy. Ještě může mít extlinux. A nebo nemá bootloader vůbec a ta VPS se bootuje nějak jinak.

Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #8 kdy: 25. 06. 2019, 07:52:27 »
ahojte
k3dAR,
bohuzial nevypise nic a cestou to nie je. kontroloval som to preistotu manualne.

Kód: [Vybrat]
root@aaa:~# dpkg -l | grep -e grub -e lilo
root@mvc:~#

_Jenda,

extlinux som nasiel.
Kód: [Vybrat]
root@aaa:/boot/extlinux# cat extlinux.conf
default linux
timeout 1
label linux
kernel boot/vmlinuz-3.16.0-4-amd64
append initrd=boot/initrd.img-3.16.0-4-amd64 root=/dev/vda1 console=tty0 console=ttyS0,115200 ro quiet
staci ked nahradim vmlinuz-3.16.0-4-amd64 s linux-image-amd64 ?


k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #9 kdy: 25. 06. 2019, 12:53:15 »
staci ked nahradim vmlinuz-3.16.0-4-amd64 s linux-image-amd64 ?
nahradit za nazvy ktere mas v /boot pro 4.x
resp. Zkoukni zda mas primo v / symlinky vmlinuz a initrd, (smerujici na ty 5.x v boot) pak pouzij to a nebudes musey uptavovat po pristim update jadra
« Poslední změna: 25. 06. 2019, 12:55:38 od k3dAR »

Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #10 kdy: 29. 06. 2019, 12:32:56 »
staci ked nahradim vmlinuz-3.16.0-4-amd64 s linux-image-amd64 ?
nahradit za nazvy ktere mas v /boot pro 4.x
resp. Zkoukni zda mas primo v / symlinky vmlinuz a initrd, (smerujici na ty 5.x v boot) pak pouzij to a nebudes musey uptavovat po pristim update jadra


upravil som extlinux.conf, bohuzial stale bootujem so starym kernelom.
Kód: [Vybrat]
root@aaa:/boot/extlinux# cat extlinux.conf
default linux
timeout 1
label linux
kernel boot/vmlinuz-4.9.0-9-amd64
append initrd=boot/initrd.img-4.9.0-9-amd64 root=/dev/vda1 console=tty0 console=ttyS0,115200 ro quiet

Kód: [Vybrat]
root@aaa:/boot# ls
bzImage-4.9.179-xxxx-std-ipv6-64  initrd.img-4.9.0-9-amd64
config-3.16.0-4-amd64             System.map-3.16.0-4-amd64
config-3.16.0-7-amd64             System.map-3.16.0-7-amd64
config-3.16.0-8-amd64             System.map-3.16.0-8-amd64
config-3.16.0-9-amd64             System.map-3.16.0-9-amd64
config-4.9.0-9-amd64              System.map-4.9.0-9-amd64
extlinux                          vmlinuz-3.16.0-4-amd64
initrd.img-3.16.0-4-amd64         vmlinuz-3.16.0-7-amd64
initrd.img-3.16.0-7-amd64         vmlinuz-3.16.0-8-amd64
initrd.img-3.16.0-8-amd64         vmlinuz-3.16.0-9-amd64
initrd.img-3.16.0-9-amd64         vmlinuz-4.9.0-9-amd64


k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #11 kdy: 30. 06. 2019, 21:54:19 »
takze to tve "na KVM mi bezi moje VPS" je vlastne "na cizim VPS jim bezi jejich KVM a v nem mam pristupny rootfs", takze je opravdu mozne jak psal Jenda, ze nemas pod kontrolou bootloader+jadro, mozna je na case poslat dotaz na podporu te VPS ;-)

Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #12 kdy: 01. 07. 2019, 23:17:44 »
takze to tve "na KVM mi bezi moje VPS" je vlastne "na cizim VPS jim bezi jejich KVM a v nem mam pristupny rootfs", takze je opravdu mozne jak psal Jenda, ze nemas pod kontrolou bootloader+jadro, mozna je na case poslat dotaz na podporu te VPS ;-)

pisal som na ich podpodu... odpoved mi dosla:
Citace
We use OpenStack environment which means the VPS has its own kernel not like in OpenVZ where the kernel is shared. This means you have control over your own kernel.

You may upgrade your kernel any time, but unfortunately, it is not something we would be able to do for you. You may find this article useful: https://wiki.debian.org/HowToUpgradeKernel

a mna uz z mojich pokusov boli hlava... skusal som uz aj zmazat apt-get remove extlinux, nasledne nainstalovat grub a neskor aj grub2... bohuzial mi to s grub nenabootuje s hlaskou error 23... :/

k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Update z Debian 8 na 9 - starý kernel
« Odpověď #13 kdy: 07. 09. 2019, 06:03:55 »
error 23 ti to pise nez zobrazi grub2 menu, nebo az po vybrani? grub.cfg si vytvarel sam, nebo pres update-grub?