Centos 6.x remote reinstall

Source: Internet
Author: User
Tags aliyun

Note:This article uses a public network source, so the reinstalled machine needs to be able to connect to the public network. If you cannot connect to the public network, you need to build a private source.

Log on to the centos to which you want to reinstall the system and download the Startup File.

This document installs centos6.5 to download different files based on different versions.

wget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/vmlinuzwget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/initrd.img


Copy the downloaded file to the/boot directory

cp vmlinuz /boot/vmlinuz.centos.pxecp initrd.img /boot/initrd.img.centos.pxe


Install grub
yum install grub -y


Add installation startup Item

Edit Startup Menu

vim /boot/grub/menu.lst

Add

title CentOS 6.5 VNC Installationroot (hd0,0)kernel /vmlinuz.centos.pxe vnc vncpassword=PASS headless ip=127.0.0.1 netmask=255.255.255.0 gateway=127.0.0.1 dns=114.114.114.114 ksdevice=eth0 method=http://mirrors.aliyun.com/centos/6.5/os/x86_64/ keymap=usinitrd /initrd.img.centos.pxe

Change pass to your VNC Password

Change 127.0.0.1 to the IP address of the System host.

Change the gateway 127.0.0.1 to the gateway that reinstalls the system host.

Edit startup sequence

Find

default=0

If the added title is the second title, change 0 to 1.

If the added title is the third title, change 0 to 2.

And so on

Attach my configuration

# Note that you do not have to rerun grub after making changes to this file# NOTICE:  You have a /boot partition.  This means that#          all kernel and initrd paths are relative to /boot/, eg.#          root (hd0,0)#          kernel /vmlinuz-version ro root=/dev/mapper/vg_openstack-lv_root#          initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=1timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (2.6.32-431.el6.x86_64)        root (hd0,0)        kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg_openstack-lv_root rd_LVM_LV=vg_openstack/lv_root rd_NO_LUKS.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_openstack/lv_swap rd_NO_DM rhgb quiet        initrd /initramfs-2.6.32-431.el6.x86_64.imgtitle CentOS 6.5 VNC Installationroot (hd0,0)kernel /vmlinuz.centos.pxe vnc vncpassword=PASS headless ip=192.168.2.254 netmask=255.255.255.0 gateway=192.168.2.1 dns=114.114.114.114 ksdevice=eth0 method=http://mirrors.aliyun.com/centos/6.5/os/x86_64/ keymap=us       initrd /initrd.img.centos.pxe

Check whether there are any errors.

Restart
reboot


Access IP address through VNC client: 1

Start Installation


Reference: http://www.centosx.com/install-centos-remotely-through-vnc/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.