LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2018, 01:09 AM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Rep: Reputation: 0
Angry Unable to install OS from PXEBoot server - TFTP aborted


Hi Guys,

I created a PXEBoot server and trying to install CentOS 7 off the network from this server.

I observed that on this PXE Boot server which is essentially a CENTOS 7 I get an error like below when another server is booted off the network.

Jul 10 15:20:50 PXEBOOT1 in.tftpd[3811]: Error code 0: TFTP Aborted

Note that the new server to be installed has a configuration to boot from the network. PXE Boot server and new server to be commisioned are in Bridged Adapter network configuration.

The server I am commissioning also fails with the below error:

Warning: Can't mount the root filesystem.
Warning: /dev/root does not exist

/lib/dracut-lib.sh line 1049: echo : write error : No space left on device.


Any help would be greatly appreciated.
 
Old 07-10-2018, 08:58 AM   #2
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
/var/log/messages gives me the below information

Jul 10 23:55:48 PXEBOOT1 xinetd[829]: START: tftp pid=1009 from=192.168.1.207
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1010]: RRQ from 192.168.1.207 filename pxelinux.0
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1010]: Error code 0: TFTP Aborted
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1011]: RRQ from 192.168.1.207 filename pxelinux.0
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1011]: Client 192.168.1.207 finished pxelinux.0
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1012]: RRQ from 192.168.1.207 filename pxelinux.cfg/54fc700f-5f6b-483a-85a4-876c8176b0d7
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1012]: Client 192.168.1.207 File not found pxelinux.cfg/54fc700f-5f6b-483a-85a4-876c8176b0d7
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1013]: RRQ from 192.168.1.207 filename pxelinux.cfg/01-08-00-27-5a-9c-31
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1013]: Client 192.168.1.207 File not found pxelinux.cfg/01-08-00-27-5a-9c-31
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1014]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A801CF
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1014]: Client 192.168.1.207 File not found pxelinux.cfg/C0A801CF
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1015]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A801C
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1015]: Client 192.168.1.207 File not found pxelinux.cfg/C0A801C
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1016]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A801
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1016]: Client 192.168.1.207 File not found pxelinux.cfg/C0A801
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1017]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A80
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1017]: Client 192.168.1.207 File not found pxelinux.cfg/C0A80
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1018]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A8
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1018]: Client 192.168.1.207 File not found pxelinux.cfg/C0A8
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1019]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0A
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1019]: Client 192.168.1.207 File not found pxelinux.cfg/C0A
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1020]: RRQ from 192.168.1.207 filename pxelinux.cfg/C0
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1020]: Client 192.168.1.207 File not found pxelinux.cfg/C0
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1021]: RRQ from 192.168.1.207 filename pxelinux.cfg/C
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1021]: Client 192.168.1.207 File not found pxelinux.cfg/C
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1022]: RRQ from 192.168.1.207 filename pxelinux.cfg/default
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1022]: Client 192.168.1.207 finished pxelinux.cfg/default
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1023]: RRQ from 192.168.1.207 filename menu.c32
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1023]: Client 192.168.1.207 finished menu.c32
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1024]: RRQ from 192.168.1.207 filename pxelinux.cfg/default
Jul 10 23:55:48 PXEBOOT1 in.tftpd[1024]: Client 192.168.1.207 finished pxelinux.cfg/default
Jul 10 23:55:51 PXEBOOT1 in.tftpd[1025]: RRQ from 192.168.1.207 filename netboot/vmlinuz
Jul 10 23:55:52 PXEBOOT1 in.tftpd[1025]: Client 192.168.1.207 finished netboot/vmlinuz
Jul 10 23:55:52 PXEBOOT1 in.tftpd[1026]: RRQ from 192.168.1.207 filename netboot/initrd.img
Jul 10 23:56:01 PXEBOOT1 in.tftpd[1026]: Client 192.168.1.207 finished netboot/initrd.img
Jul 10 23:56:18 PXEBOOT1 dhcpd: DHCPDISCOVER from 08:00:27:5a:9c:31 via enp0s3
Jul 10 23:56:18 PXEBOOT1 dhcpd: DHCPOFFER on 192.168.1.207 to 08:00:27:5a:9c:31 via enp0s3
Jul 10 23:56:18 PXEBOOT1 dhcpd: DHCPREQUEST for 192.168.1.207 (192.168.1.101) from 08:00:27:5a:9c:31 via enp0s3
Jul 10 23:56:18 PXEBOOT1 dhcpd: DHCPACK on 192.168.1.207 to 08:00:27:5a:9c:31 via enp0s3
 
Old 07-10-2018, 10:05 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
So, you're saying, you can successfully boot a machine using PXE? While you're trying to install Centos via a PXE boot, you get the error that tftp aborted on the PXE server? Or what? On the server you're installing to, you get 'no root file system' type errors?

And the second post is from the PXE server? Are these VMs?
 
Old 07-10-2018, 01:04 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
What web page did you follow to make this configuration?
 
Old 07-10-2018, 07:37 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
https://access.redhat.com/documentat...allations.html
 
Old 07-10-2018, 10:49 PM   #6
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
@AwesomeMachne,

Yes, your understanding is correct.

So, you're saying, you can successfully boot a machine using PXE?
>> Yes

While you're trying to install Centos via a PXE boot, you get the error that tftp aborted on the PXE server?
>> Yes

On the server you're installing to, you get 'no root file system' type errors?
>> No, I get a message like
Warning: Can't mount the root filesystem.
Warning: /dev/root does not exist

/lib/dracut-lib.sh line 1049: echo : write error : No space left on device.


And the second post is from the PXE server?
>>Yes, correct.

Are these VMs?
>> Yes PXE Boot Server is VM and so is the new server which I am trying to commission a VM.

Kindly assist.
 
Old 07-10-2018, 10:49 PM   #7
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
@jefro

I'm following video nugget from LinuxAcademy. Thank you.
 
Old 07-10-2018, 11:44 PM   #8
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
Unhappy

@Ztcoracat

I shall look at it tonight. The steps I performed are below:

Code:
1. Install with Mimnum Install and choose Compatibility Libraries

2. Assign Static IP

3. Disable SELinux and Firewall

4. vim /etc/selinux/config
SELINUX=disabled

5. systemctl disable firewalld

systemctl stop firewalld

6. Install the following packages
yum install -y dhcp tftp-server syslinux wget vsftpd xinetd

7. # Configure dhcp
vim /etc/dhcp/dhcpd.conf

[root@PXEBOOT1 ~]# cat /etc/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#
ddns-update-style interim;
ignore client-updates
authoritative;
allow booting
allow bootp
allow-unknown-clients
#internal subnets
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.201 192.168.1.250;
option domain-name-servers 192.168.1.101
option domain-name "Bhagyasthaan";
option routers 192.168.1.101;
default-lease-time 600;
max-lease-time 7200;

#PXE Server IP
next-server 192.168.1.101;
filename "pxelinux.0";
}


8. # Setup TFTP Server Configuration

[root@PXEBOOT1 ~]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot # changed thsi from default to /tftpboot and we shall make a directory called as tftpboot
        disable                 = no # changed this from yes to no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
[root@PXEBOOT1 ~]#

9. Now copy syslinux files to tftpboot

[root@PXEBOOT1 ~]# cp -pavf /usr/share/syslinux/pxelinux.0 /tftpboot/
‘/usr/share/syslinux/pxelinux.0’ -> ‘/tftpboot/pxelinux.0’
[root@PXEBOOT1 ~]# cp -pavf /usr/share/syslinux/menu.c32 /tftpboot/
‘/usr/share/syslinux/menu.c32’ -> ‘/tftpboot/menu.c32’
[root@PXEBOOT1 ~]# cp -pavf /usr/share/syslinux/memdisk /tftpboot/
‘/usr/share/syslinux/memdisk’ -> ‘/tftpboot/memdisk’
[root@PXEBOOT1 ~]# cp -pavf /usr/share/syslinux/mboot.c32 /tftpboot/
‘/usr/share/syslinux/mboot.c32’ -> ‘/tftpboot/mboot.c32’
[root@PXEBOOT1 ~]# cp -pavf /usr/share/syslinux/chain.c32 /tftpboot/
‘/usr/share/syslinux/chain.c32’ -> ‘/tftpboot/chain.c32’
[root@PXEBOOT1 ~]#

10. Create a directory under /tftpboot

11. [root@PXEBOOT1 ~]# mkdir /tftpboot/pxelinux.cfg

12. Create a netboot folder and this needs to live under /tftpboot folder

mkdir /tftpboot/netboot

13. Now you need to do wget to download CentOS 7 image. You can ftp as well if you already have image.

wget http://centos.mirror.serversaustralia.com.au/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso

14. Mount CentOS image to /mnt
mount -o loop CentOS-7-x86_64-DVD-1804.iso /mnt

15. Copy Extracted files from CentOS 7 to /var/ftp/pub/

cp -r /mnt/* /var/ftp/pub/

16. Copy some files to /tftpboot/netboot location

[root@PXEBOOT1 ~]# cp -apvf /mnt/images/pxeboot/vmlinuz /tftpboot/netboot/
‘/mnt/images/pxeboot/vmlinuz’ -> ‘/tftpboot/netboot/vmlinuz’
[root@PXEBOOT1 ~]# cp -apvf /mnt/images/pxeboot/initrd.img /tftpboot/netboot/
‘/mnt/images/pxeboot/initrd.img’ -> ‘/tftpboot/netboot/initrd.img’
[root@PXEBOOT1 ~]

17. Now create the root password for the automated install

[root@PXEBOOT1 ~]# openssl passwd -1 jim
$1$hBplWl9M$drAkUSbJrtvrHCpAANflb1

18. Create your kickstart file.

[root@PXEBOOT1 ~]# cat /var/ftp/pub/ks.cfg
# Installation logging level
logging --level=debug
install

lang en_US.UTF-8

keyboard us

timezone  Australia/Melbourne

auth --useshadow --enablemd5

selinux --permissive

firewall --enabled

services --enabled=NetworkManager, sshd

eula --agreed

#Use FTP Location
url --url="ftp://192.168.1.101/pub/"

bootloader --location=mbr

# Clear the Master Boot Record
zerombr

clearpart --all --initlabel
part swap --asprimary --fstype="swap" --size=1024
part /boot --fstype xfs --size=50
part pv.01 --size=1 --grow
volgroup rootvg01 pv.01
logvol / --fstype xfs --name=lv01 --vgname=rootvg01 --size=1 --grow
rootpw --iscrypted $1$hBplWl9M$drAkUSbJrtvrHCpAANflb1

%packages
@base
@gnome-desktop
vim
vim-X11
wget
nmap
%end

reboot
[root@PXEBOOT1 ~]#

19. Validate your kickstart file
[root@PXEBOOT1 ~]# ksvalidator /var/ftp/pub/ks.cfg
[root@PXEBOOT1 ~]# ksvalidator /var/ftp/pub/ks.cfg
yum install pykickstart

20. 
Menu file!

[root@PXEBOOT1 ~]# cat /tftpboot/pxelinux.cfg/default
default menu.c32
prompt 0
timeout 300
MENU TITLE Ameya Agashe PXE Menu

LABEL CentOS7_X64
MENU LABEL CentOS 7 X64
KERNEL netboot/vmlinuz
APPEND initrd=netboot/initrd.img inst.repo=ftp://192.168.1.101/pub ks=ftp://192.168.1.101/pub/ks.cfg

Likewise you can create many labels for many other operating systems


21. Now enable and start essential services

systemctl enable dhcpd
systemctl enable xinetd
systemctl enable vsftpd

systemctl start dhcpd
systemctl start xinetd
systemctl start vsftpd

22. Commission  server, two important conditions
1. It should boot off network.
2. Should be in same network like Bridged Adapter
 
Old 07-12-2018, 10:14 AM   #9
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
Still not working, here is the attached screenshot[PXE-Boot-Error.jpg]. Need to understand why it always says no space left on device. df -Ph does not give me out so that is not helping.
Attached Thumbnails
Click image for larger version

Name:	PXE-Boot-Error.jpg
Views:	1719
Size:	70.6 KB
ID:	28086  
 
Old 07-21-2018, 05:12 AM   #10
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
What a simple solution! I increased RAM allocation for 1GB to 2GB and it worked perfectly fine!!!

Cannot believe it but its true it worked.

Thanks once again, Guys.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New guy studying for lpi 101 unable to get tftp running on Centos 7 server sumncguy Linux - Server 4 04-23-2015 07:54 AM
Unable to PXEboot Minimal CentOS via pxelinux joshualan Linux - Server 8 08-02-2012 02:09 PM
help placing driver module in initrd.img for remote tftp/nfs/pxeboot radiance29 Linux - Kernel 1 08-13-2008 01:07 PM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
Need tftp server with install script GUIPenguin Linux - Software 0 11-08-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration