Fórum Root.cz
Hlavní témata => Distribuce => Téma založeno: otomanfirst2 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
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
-
dpkg -l | grep linux-image
?
-
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.
-
Ahojte
k3dAR, tu je vystup
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...
-
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.
-
Ahoj,
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...
root@aaa:~# cat etc/lilo.conf
cat: etc/lilo.conf: No such file or directory
-
[...] skusal som ci nemam nahodou Lilo...
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:
cat /boot/grub/menu.lst
pripadne vypis balicku:
dpkg -l | grep -e grub -e lilo
-
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.
-
ahojte
k3dAR,
bohuzial nevypise nic a cestou to nie je. kontroloval som to preistotu manualne.
root@aaa:~# dpkg -l | grep -e grub -e lilo
root@mvc:~#
_Jenda,
extlinux som nasiel.
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 ?
-
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
-
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.
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
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
-
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 ;-)
-
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:
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... :/
-
error 23 ti to pise nez zobrazi grub2 menu, nebo az po vybrani? grub.cfg si vytvarel sam, nebo pres update-grub?