Guest Posted March 8, 2015 Report Posted March 8, 2015 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 /bootwget http://ftp.ines.lug.ro/centos/6/os/x86_64/images/pxeboot/initrd.img -O pxe-initrd.imgwget http://ftp.ines.lug.ro/centos/6/os/x86_64/images/pxeboot/vmlinuz -O pxe-vmlinuzApoi, daca aveti deja instalat un sistem CentOS, editati /boot/grub/menu.lst si adaugatititle 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.imgSau, daca aveti debian/ubuntu, editati /boot/grub/grub.cfg si adaugatimenuentry '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. Quote
dark-angel Posted March 8, 2015 Report Posted March 8, 2015 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 Quote
Guest Posted March 8, 2015 Report Posted March 8, 2015 (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.pngCe 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 March 8, 2015 by AGSQ Quote
dark-angel Posted March 8, 2015 Report Posted March 8, 2015 ## Hetzner Online AG - installimage# GRUB bootloader configuration file#timeout 5default 0title 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=deinitrd /initramfs-2.6.32-504.8.1.el6.x86_64.imgtitle 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 nomodesetinitrd /boot/initramfs-2.6.32-504.3.3.el6.x86_64.img Quote
Guest Posted March 8, 2015 Report Posted March 8, 2015 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 5default 0title Centox-vnc-installroot (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_GBinitrd /pxe-initrd.imgtitle 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=deinitrd /initramfs-2.6.32-504.8.1.el6.x86_64.imgtitle 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 nomodesetinitrd /boot/initramfs-2.6.32-504.3.3.el6.x86_64.img Quote