pxe + TFTP
https://www.centos.org/forums
http://www.linuxquestions.org/ I use VMware work station 10 & centos 6.4 I want to install centos on new virtual machine with raw hard disk I stopped iptables & selinux I set up local yum repository using file:///softwares, but i coludn't use it by http or ftp I installed tftp & tftp-server & syslinux I started httpd & xinetd services /etc/dhcp/dhcpd.conf in subnet options, I added next-server IP of DHCP server (local server I use "centos") filename ”pxelinux.0”; /etc/xinetd.d/tftp server_args = -svv /var/lib/tftpboot disable = no I copied pxelinux.0 & menu.c32 & initrd.img & vmlinuz to /var/lob/tfpboot/ /var/lib/tftpboot/pxelinux.cfg/default PROMPT 0 DEFAULT menu.c32 TIMEOUT .... ONTIMEOUT localdisk MENU TITLE ..... LABEL ..... KERNEL vmlinuz APPEND initrd=initrd.img ks=http://IP of DHCP server/kickstart file name.cfg (I created in /var/www/html) /var/www/html/kickstart file name.cfg install url --url=”http://IP of DHCP server/centosdvd/” bootloader --location=mbr zerombr clearpart --all --initlabel part / --asprimary --fstype=”ext4” --size=..... part swap --asprimary --fstype=”swap” --size=..... reboot graphical firstboot --disable keyboard us lang en_US logging --level=info timezone Egypt firewall --disabled selinux --disabled network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6 #(grub-crypt --sha-512 #enter new root password twice) rootpw --iscrypted ….. authconfig --enableshadow --passalgo=sha512 --enableldap --enableldapauth --ldapserver=ldap://IP of this ldap server --ldapbasedn=”dc=.....,dc=.....” #(I use openldap) repo –name=”.....” --baseurl=http://IP of DHCP server/centosdvd/ %packages …... %end I changed permissions of /var/lib/tftpboot/ directory & /var/www/html/kickstart file to 775 in the new virtual machine, when I boot it it it shows error message that it's unable to download kickstart file |
Thanks for sharing. Did you have a question or anything?
|
I use VMware Workstation 10 & centos 6.4 system
I try to use PXE + TFTP to install centos on new virtual machine with raw hard disk I stopped firewall (iptables) & selinux I installed tftp & tftp-server & syslinux I started httpd & xinetd services in /etc/dhcp/dhcpd.conf in subnet options, I added 2 lines: next-server 192.168.2.1 # IP of DHCP server (centos) filename "pxelinux.0" /etc/xinetd.d/tftp contains the following lines server_args = -svv /var/lib/tftpboot disable = no I changed permissions of /var/lib/tftpboot to 775 I copied pxelinux.0 & menu.c32 & initrd.img & vmlinux from centos dvd to /var/lib/tftpboot /var/lib/tftpboot/pxelinux.cfg/default ------------------------------------------------ PROMPT 0 DEFAULT menu.c32 TIMEOUT 300 ONTIMEOUT localdisk MENU TITLE ..... LABEL ..... KERNEL vmlinuz APPEND initrd=initrd.img ks=http://192.168.2.1/kickstart1.cfg (I created kickstart1.cfg file in /var/www/html) /var/www/html/kickstart1.cfg -------------------------------------- install url --url=”http://192.168.2.1/centosdvd/” (this folder contains installation files and I created local yum repository in it using yum and I tested it with file:///softwares, but it didn't work with http or ftp) bootloader --location=mbr zerombr clearpart --all --initlabel part / --asprimary --fstype=”ext4” --size=5120 part swap --asprimary --fstype=”swap” --size=1024 reboot graphical firstboot --disable keyboard us lang en_US logging --level=info timezone Egypt firewall --disabled selinuxspace--disabled network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6 in another terminal grub-crypt --sha-512 enter new root password twice in current terminal rootpw --iscrypted ..... authconfig --enableshadow --passalgo=sha512 --enableldap --enableldapauth --ldapserver=ldap://192.168.2.1 --ldapbasedn=”dc=.....,dc=.....” repo --name=”server netbios name” --baseurl=http://192.168.2.1/centosdvd/ %packages .......... %endEnter I changed permissions of kickstart file to 775 in the new virtual machine, when I boot it it it shows error message that it's unable to download kickstart file |
I have vmware workstation 10 and I heard that vmware has default network adapter type that has problems
if this is right, how can I change it |
Quote:
|
1 Attachment(s)
I attached a pic for error message
|
3 Attachment(s)
/var/lib/tftpboot/pxelinux.cfg/default file has owner "root" with permissions 777
and both kickstart1 file and centosdvd directory are in /var/www/html with owner "apache" and permissions 777 |
there is no relative errors in http logs to pxe or tftp
also local yum repository failed using http I think there is a problem in http network sharing, but I can't realize it |
All times are GMT -5. The time now is 09:39 PM. |