Jump to content
Guest

Instalare CentOS via VNC

Recommended Posts

Posted

Salutare,

Pentru ca de multe ori aveti nevoie sa reinstalati OS-ul din motive diverse (ex. Partitionarea custom pe serverele de la Hetzner), iar providerul nu va poate pune la dispozitie un IPMI/KVM, am sa va arat cum puteti reinstala CentOS prin internet via VNC.

Intrati in /boot si downloadati urmatoarele:


cd /boot
wget http://ftp.ines.lug.ro/centos/6/os/x86_64/images/pxeboot/initrd.img -O pxe-initrd.img
wget http://ftp.ines.lug.ro/centos/6/os/x86_64/images/pxeboot/vmlinuz -O pxe-vmlinuz

Apoi, daca aveti deja instalat un sistem CentOS, editati /boot/grub/menu.lst si adaugati


title Centox-vnc-install
*[B]root (hd0,0)[/B]*
kernel /boot/pxe-vmlinuz vnc vncpassword=rstforums headless ip=10.0.0.2 netmask=255.255.255.0 gateway=10.0.0.1 dns=8.8.8.8 hostname=serverulmeu.rstforums.com ksdevice=eth0 method=http://ftp.lug.ro/centos/6/os/x86_64/ keymap=uk lang=en_GB
initrd /boot/pxe-initrd.img

Sau, daca aveti debian/ubuntu, editati /boot/grub/grub.cfg si adaugati


menuentry 'CentOS Installer' {
*[B]set root='(hd0,gpt2)'[/B]*
echo 'Loading'
linux /pxe-vmlinuz vnc vncpassword=rstforums headless ip=10.0.0.2 netmask=255.255.255.0 gateway=10.0.0.1 dns=8.8.8.8 hostname=serverulmeu.rstforums.com ksdevice=eth0 method=http://ftp.lug.ro/centos/6/os/x86_64/ keymap=us lang=en_US
echo 'Loading Installdrom'
initrd /pxe-initrd.img
}

Dupa care, dati un reboot la server si "panditi-l" cu un ping. Cand incepe sa raspunda, va puteti conecta cu VNC-Viewer scriind IP-ul pe care l-ati declarat in config.

O mica observatie: Incercati sa scrieti doar IP-ul, fara nici un port, iar daca nu se conecteaza, incercati sa puneti si port :1 (ex. 10.0.0.2:1) la VNC. Are goange, niciodata nu stii cum o ia.

Fiti foarte atenti la linia marcata cu stelute, este necesar ca baseroot-ul sa fie exact la fel ca la kernelul ce ruleaza deja pe serverul vostru.

Daca sunt probleme, postati aici.

Posted (edited)
Sunt putin | |, bine... mai mult ||.

La ce te referi cu *root (hd0,0)*?

Siiiiiiiiiiiiiiiiiii, din cate am vazut, din curiozitate pe robot.your-server.de e ceva gen vKVM la rescue.

http://i.imgur.com/dh4zaIO.png

Ce sistem ai acum instalat ?

Posteaza aici /boot/grub/menu.lst (pentru CentOS) sau /boot/grub/grub.cfg (pentru Debian).

Baga-l intre [code ][/ code]

Edited by AGSQ
Posted
#
# Hetzner Online AG - installimage
# GRUB bootloader configuration file
#

timeout 5
default 0

title CentOS (2.6.32-504.8.1.el6.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.32-504.8.1.el6.x86_64 ro root=/dev/md2 rd_NO_LUKS rd_NO_DM nomodeset crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=de
initrd /initramfs-2.6.32-504.8.1.el6.x86_64.img

title CentOS (2.6.32-504.3.3.el6.x86_64)
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-504.3.3.el6.x86_64 ro root=/dev/md2 rd_NO_LUKS rd_NO_DM nomodeset
initrd /boot/initramfs-2.6.32-504.3.3.el6.x86_64.img

Posted

Da-i replace cu asta de mai jos si inlocuieste datele de conectare cu IP-ul, MASK-ul si Gateway-ul tau.

#
# Hetzner Online AG - installimage
# GRUB bootloader configuration file
#

timeout 5
default 0

title Centox-vnc-install
root (hd0,1)
kernel /pxe-vmlinuz vnc vncpassword=rstforums headless ip=10.0.0.2 netmask=255.255.255.0 gateway=10.0.0.1 dns=8.8.8.8 hostname=serverulmeu.rstforums.com ksdevice=eth0 method=http://ftp.lug.ro/centos/6/os/x86_64/ keymap=uk lang=en_GB
initrd /pxe-initrd.img

title CentOS (2.6.32-504.8.1.el6.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.32-504.8.1.el6.x86_64 ro root=/dev/md2 rd_NO_LUKS rd_NO_DM nomodeset crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=de
initrd /initramfs-2.6.32-504.8.1.el6.x86_64.img

title CentOS (2.6.32-504.3.3.el6.x86_64)
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-504.3.3.el6.x86_64 ro root=/dev/md2 rd_NO_LUKS rd_NO_DM nomodeset
initrd /boot/initramfs-2.6.32-504.3.3.el6.x86_64.img

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...