Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
2022
views
PXE boot times out after initial set up
When i boot my RHL vm into pxe mode by changing it to boot from the network, the connection times out From the sequence i read of the PXE process described [here]https://docs.oracle.com/cd/E24628_01/em.121/e27046/appdx_pxeboot.htm#EMLCM12199[4] it seems the dhcp server is not replying to the request...
When i boot my RHL vm into pxe mode by changing it to boot from the network, the connection times out
From the sequence i read of the PXE process described [here]https://docs.oracle.com/cd/E24628_01/em.121/e27046/appdx_pxeboot.htm#EMLCM12199
it seems the dhcp server is not replying to the request.
The DHCP server is on the same instance as the TFTP service and the DHCP service works to provide IPs to the VM's themselves. TFTP service wasnt running but i started it and got the same error.
Is there any other information i might provide to get an answer?
here is a screenshot of the first error and also the dhcp reference when i tried to use the dhcp command in the pxe menu:
Update:
the dhcp server is assigning an IP now. I know this because the net0: IP is in the range of the DHCP service.
So, the error is referencing nothing to boot but i have the pxelinux.0 file in the correct location and the DHCP tftp configuration is set to. Not sure what the problem is now.
Update 2 This continues to evolve as i apply different solutions. I found other users with the same error had applied the Oracle Virtualbox extension pack because this is required for the PXE usage. I think this resolved one issue and exposed another. After installing that extension pack to my Virtualbox install i now get a TFTP open Timeout:
i checked the status of the tftp server with systemctl status tftp.socket and it shows active.
Not sure where the disconnect is now.





colonuts panics
(13 rep)
Dec 21, 2018, 08:15 PM
• Last activity: Jun 21, 2025, 04:06 PM
2
votes
1
answers
2080
views
Setup of TFTP to boot OS from PXE
I am trying to network system from network using PXE. I almost done, but have some problem. When I boot my client from PXE I got this on clients' screen: PXE-E11: ARP timeout PXE-E38: TFTP cannot open connection There are some attempts on the Internet to fix it, but nothing concrete, so I will descr...
I am trying to network system from network using PXE. I almost done, but have some problem.
When I boot my client from PXE I got this on clients' screen:
PXE-E11: ARP timeout
PXE-E38: TFTP cannot open connection
There are some attempts on the Internet to fix it, but nothing concrete, so I will describe my case in details.
in this file /etc/default/atftpd I changed
**USE_INETD=true**
to
**USE_INETD=false**
then in the file
/etc/default/tftpd-hpa
I put TFTP_DIRECTORY="/srv/tftp", because srv/tftp was in the end of file /etc/default/atftpd
.
Then I run sudo /etc/init.d/atftpd start
and few last things I typped sudo mount -o loop /home/tux/ubuntu16-Desktop.iso /srv/tftp/ubuntu/
and done with tftp, but it does not work.
Do you have ideas to fix it?
John
(297 rep)
Nov 15, 2016, 08:20 PM
• Last activity: May 7, 2025, 09:02 PM
0
votes
1
answers
6229
views
TFTP: cannot send/recive file, showing Error: TFTP, Opcode: Error Code(5)
I am trying to send/receive a file using TFTP from the network switch to ubuntu(VirtualBox on Windows 10 Pro), but getting an error code 5 By following the steps mentioned below it seems like my localhost is working with TFTP server, I can send and receive the file using localhost: /home/abc# tftp l...
I am trying to send/receive a file using TFTP from the network switch to ubuntu(VirtualBox on Windows 10 Pro), but getting an error code 5
By following the steps mentioned below it seems like my localhost is working with TFTP server, I can send and receive the file using localhost:
/home/abc# tftp localhost
tftp> put test
Sent 16 bytes in 0.0 seconds
tftp> get test
Received 16 bytes in 0.0 seconds
root@abc:/home/abc# ls -l /var/lib/tftpboot/
total 4
-rwxrwxrwx 1 root root 14 Sep 6 18:03 test
***When I used the command in the switch to send/receive the file then I get the error message:***
***Trivial File Transfer Protocol***
***Opcode: Error Code (5)***
***[Destination File: test]***
***Error code: Access violation (2)***
***Error message: Access violation***
***[Expert Info (Warning/Response): TFTP ERROR packet]***
***[TFTP ERROR packet]***
***[Severity level: Warning]***
***[Group: Response]***
***Would you please guide me on how to fix this issue?***
**https://icesquare.com/wordpress/how-to-setup-tftp-on-ubuntu/**
First, let’s install all the necessary packages:
sudo apt-get install xinetd tftpd tftp -y
Next, we need to create a configuration file:
sudo nano /etc/xinetd.d/tftp
Put the following content into the file.
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = var/lib/tftpboot -s
disable = no
}
In the server_args, I have var/lib/tftpboot, which represents the location of the tftp root, i.e., /var/lib/tftpboot. Notice that I skip the root /.
Now let’s change the ownership of the directory:
sudo mkdir /var/lib/tftpboot
sudo chown -R nobody:nobody /var/lib/tftpboot
sudo chmod -R 777 /var/lib/tftpboot
and start the TFTP service:
sudo service xinetd stop
sudo service xinetd start
Verify the TFTP is running correctly or not:
netstat -na | grep LIST | grep 69
You should see something like this:
tcp 0 0 0.0.0.0:69 0.0.0.0:* LISTEN
Test: Upload a file to TFTP Server
Now let’s test the TFTP server by logging into the server first:
tftp localhost
and upload a file:
tftp> put myfile.jpg
Sent 56733279 bytes in 5.7 seconds
Quit:
q
Make sure that file has been uploaded:
ls -l /var/lib/tftpboot
Test: Download a file from TFTP Server
Now, let’s go to a different directory and download the file we just upload.
cd some_other_directory
and log in to the tftp server again:
tftp localhost
and get the file:
tftp> get myfile.jpg
Received 56733279 bytes in 5.7 seconds
Passionate
(1 rep)
Sep 7, 2019, 01:25 AM
• Last activity: Apr 13, 2025, 04:00 PM
1
votes
0
answers
1137
views
Alpine linux how to load system into RAM
I need advice if possible to load entire system into RAM. Let's imagine following situation: Booting LIVE OS from DVD and login as root lsblk shows ``` NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 2.9G 1 loop sda 8:0 0 19.1G 0 disk |-sda1 8:1 0 1G 0 part `-sda2 8:2 0 18.1G 0 part sr0 11:0 1...
I need advice if possible to load entire system into RAM.
Let's imagine following situation:
Booting LIVE OS from DVD and login as root
lsblk shows
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 2.9G 1 loop
sda 8:0 0 19.1G 0 disk
|-sda1 8:1 0 1G 0 part
`-sda2 8:2 0 18.1G 0 part
sr0 11:0 1 1024M 0 rom
I cannot do netboot with ipxe because I will need to have VPN.
The only option here is to use DD and overwrite existing /dev/sda with my custom alpine.img
I will use qemu and apline linux virt image.
Here are the steps I have done so far:
- Booted Alpine linux from iso and created /dev/sda
- sda will bave only boot partition as mounting point as following:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 1G 0 disk
├─sda1 8:1 0 300M 0 part /boot
- in /boot directory I have copied following:
/boot/
├── alpine-rootfs.tar.gz
├── System.map-virt
├── boot -> .
├── config-virt
├── extlinux.conf
├── initramfs-virt
├── ldlinux.c32
├── ldlinux.sys
├── libcom32.c32
├── libutil.c32
├── lost+found
├── mboot.c32
├── menu.c32
├── vesamenu.c32
└── vmlinuz-virt
extlinux.conf contains
# Generated by update-extlinux 6.04_pre1-r15
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
TIMEOUT 10
LABEL virt
MENU LABEL Linux virt
LINUX vmlinuz-virt
INITRD initramfs-virt
APPEND root=/dev/ram0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4
In the initramfs-virt I have added following code:
# Create a RAM disk with a filesystem (adjust the size as needed)
mkdir -p /sysroot
mount -t tmpfs -o size=512M tmpfs /sysroot
# Extract the contents of your root filesystem (e.g., Alpine Linux) to the RAM disk
tar -xzvf /path/to/your/alpine-rootfs.tar.gz -C /sysroot
# Pivot to the RAM disk as the new root filesystem
exec switch_root /sysroot /sbin/init
Unfortunately boot process fails,
Can someone advice what am I doing wrong here
The whole point here is to have following solution:
- Once rescue DVD is booted use dd to overwrite existing /dev/sda with my custom alpine.img
- next boot from custom alpine.img and load system into RAM
- once you login to shell create ssh tunnelling and deploy final operating system
Rafal Niznik
(333 rep)
Oct 15, 2023, 01:46 PM
1
votes
0
answers
103
views
Problem with device, can ping, but not tftp to get from server
On a Ubuntu GNS3 VM, I am trying to setup an active online-device. Here is the sketch of the Ifconfig on this GNS3 VM host: docker0: flags=4099 mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:7f:07:8c:49 txqueuelen 0 (Ethernet) ... ens160: flags=4163 mtu 1500 inet 1...
On a Ubuntu GNS3 VM, I am trying to setup an active online-device.
Here is the sketch of the Ifconfig on this GNS3 VM host:
docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:7f:07:8c:49 txqueuelen 0 (Ethernet)
...
ens160: flags=4163 mtu 1500
inet 10.31.1.116 netmask 255.255.240.0 broadcast 10.31.15.255
...
gns3tap0-1: flags=4163 mtu 1500
inet6 fe80::60a2:8ff:fe4d:5672 prefixlen 64 scopeid 0x20
ether 62:a2:08:4d:56:72 txqueuelen 1000 (Ethernet)
...
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
...
virbr0: flags=4163 mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
...
And also on this VM, I have a tftp service started, that will provides the device license files for the incoming requests. I have double-checked and this tftp service is up and working OK.
And here is the diagram of my GNS3 Project that has been setup on this GNS3 VM.
As you may find out, there is connection sequence as: **cloud Cisco Router Switch -> X-1, which is my device at the end**.
From my device console, I was able to ping outside network and VM, but somehow, I could not tftp the license file from it.
here is my device console log:
#
# execute ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=115 time=16.352 ms
64 bytes from 8.8.8.8: seq=1 ttl=115 time=12.175 ms
64 bytes from 8.8.8.8: seq=2 ttl=115 time=18.031 ms
64 bytes from 8.8.8.8: seq=3 ttl=115 time=14.223 ms
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 12.175/15.195/18.031 ms
# execute ping 10.31.1.116
PING 10.31.1.116 (10.31.1.116): 56 data bytes
64 bytes from 10.31.1.116: seq=0 ttl=63 time=11.037 ms
64 bytes from 10.31.1.116: seq=1 ttl=63 time=17.924 ms
64 bytes from 10.31.1.116: seq=2 ttl=63 time=14.249 ms
--- 10.31.1.116 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 11.037/14.403/17.924 ms
# execute bios get 10.31.1.116 FX200FTQ2109C0PU.rom
tftp: timeout
Get BIOS file failed...
Any idea what could be wrong ? This is the first time I am trying to setup the devices in such environment. Thanks for the help.

user3595231
(181 rep)
Mar 29, 2022, 10:33 PM
• Last activity: Mar 29, 2022, 10:43 PM
0
votes
1
answers
1119
views
VirtualBox VM PXE boot install fails with err:3c092003
I am using VirtualBox and have two VMs VM A: - NAT networking adapter - Host-only networking adapter - Internal Network adapter (network is called "test") and VM B: - Internal Network adapter (network is called "test") I am following that article: https://wiki.debian.org/PXEBootInstall to learn how...
I am using VirtualBox and have two VMs
VM A:
- NAT networking adapter
- Host-only networking adapter
- Internal Network adapter (network is called "test")
and VM B:
- Internal Network adapter (network is called "test")
I am following that article: https://wiki.debian.org/PXEBootInstall to learn how to boot a client VM (VM B) using a network boot server (VM A)
I "manually" assigned the internal adapter network card of VM A with IP
eth2 192.168.0.1 netmask 255.255.255.0 up
I then started the dhcp and tftp servers on VM A using the following configurations:
/etc/dhcp/dhcpd.conf
:
default-lease-time 600;
max-lease-time 7200;
allow booting;
option architecture-type code 93 = unsigned integer 16;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.253;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
filename "pxelinux.0";
}
group {
next-server 192.168.0.1;
host tftpclient {
if option architecture-type = 00:07 {
filename "debian-installer/amd64/bootnetx64.efi";
} else {
filename "pxelinux.0";
}
}
}
/etc/default/tftpd-hpa
:
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
When I power-on VM B, I see
Waiting for link-up on net0... ok
DHCP (net0 08:00:27:3a:f4:34)...... ok
net0: 192.168.0.2/255.255.255.0 gw 192.168.0.1
Filename: pxelinux.0
Could not start download: Operation not supported (http://ipxe.org/3c092003)
No more network devices
I tried googling for the err:3c092003 and saw articles suggesting:
- that I might be running VirtualBox which doesn't support HTTP (https://forum.ipxe.org/showthread.php?tid=7068) - however on iPXE welcome message I see Features: DNS TFTP HTTP PXE PXEXT Menu
so that shouldn't be the case (HTTP is in the list)
- that I am trying to open a URI using a protocol that is not supported by my current build of iPXE (https://ipxe.org/err/3c0920) , however, looking at the suggestions steps there I can't seem to find a way to fix it
Any help would be greatly appreciated!
Update:
I am on macOS Big Sur
VirtualBox version 6.1.28 r147628 (Qt5.6.3)
VM A and B are with Debian 3.16.7-ckt20-1+deb8u3
festiv
(123 rep)
Nov 4, 2021, 10:12 PM
• Last activity: Nov 5, 2021, 10:48 PM
5
votes
2
answers
13968
views
How does the tftpd-hpa --verbosity option work?
I'm trying to set up a TFTP server using tftp-hpa, and according to [the manpage](https://linux.die.net/man/8/in.tftpd) I can use the `--verbosity` option to get more output. Unfortunately I can't find anything that explains what I should pass to this option. How do I use it? * `--verbosity loud` *...
I'm trying to set up a TFTP server using tftp-hpa, and according to [the manpage](https://linux.die.net/man/8/in.tftpd) I can use the
--verbosity
option to get more output.
Unfortunately I can't find anything that explains what I should pass to this option. How do I use it?
* --verbosity loud
* --verbosity 5
* --verbosity 255
* --verbosity DEBUG
Is this documented anywhere? Nothing I have tried so far produces any messages on stdout.
Malvineous
(7395 rep)
Jan 15, 2020, 11:19 AM
• Last activity: Jul 3, 2021, 09:44 AM
1
votes
2
answers
23591
views
The tftpd-hpa doesn't start after update
I have tftpd-hpa installed(Ubuntu 16.04 LTS). Recently, maybe after getting some updates (or uninstalling some application with vaste dependencies) the tftpd-hpa doesn't start anymore. The tftpd-hpa settings are: TFTP_USERNAME="tftp" TFTP_DIRECTORY="/var/lib/tftpboot" TFTP_ADDRESS=":69" TFTP_OPTIONS...
I have tftpd-hpa installed(Ubuntu 16.04 LTS). Recently, maybe after getting some updates (or uninstalling some application with vaste dependencies) the tftpd-hpa doesn't start anymore. The tftpd-hpa settings are:
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure --create"
The default root directory is
/var/lib/tftpboot
.
Output of systemctl status tftpd-hpa.service
and journalctl -xe
commands:
testlab@Amtek:~$ systemctl status tftpd-hpa.service
● tftpd-hpa.service - LSB: HPA's tftp server
Loaded: loaded (/etc/init.d/tftpd-hpa; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2017-04-18 01:47:32 EEST; 2min 8
Docs: man:systemd-sysv-generator(8)
Process: 4764 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=71)
Apr 18 01:47:32 Amtek systemd: Stopped LSB: HPA's tftp server.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Addre
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited,
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed stat
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit
lines 1-14/14 (END)
---------------------
testlab@Amtek:~$ journalctl -xe
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Addre
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited,
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed stat
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authenticat
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atom
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Addres
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, c
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authenticati
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomi
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Address already in use
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, code=exited status=71
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-code'.
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authentication Agent for unix-process:4752:17293
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=58
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Address already in use
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, code=exited status=71
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-code'.
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authentication Agent for unix-process:4752:172933
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=585
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Address already in use
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, code=exited status=71
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-code'.
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authentication Agent for unix-process:4752:1729339 (system
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=585206 end=5
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Address already in use
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, code=exited status=71
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-code'.
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authentication Agent for unix-process:4752:1729339 (system
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=585206 end=58
lines 1276-1298/1298 (END)
--
-- Unit tftpd-hpa.service has finished shutting down.
Apr 18 01:47:32 Amtek systemd: Starting LSB: HPA's tftp server...
-- Subject: Unit tftpd-hpa.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has begun starting up.
Apr 18 01:47:32 Amtek tftpd-hpa: * Starting HPA's tftpd in.tftpd
Apr 18 01:47:32 Amtek in.tftpd: cannot bind to local IPv4 socket: Address already in use
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Control process exited, code=exited status=71
Apr 18 01:47:32 Amtek systemd: Failed to start LSB: HPA's tftp server.
-- Subject: Unit tftpd-hpa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftpd-hpa.service has failed.
--
-- The result is failed.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Unit entered failed state.
Apr 18 01:47:32 Amtek systemd: tftpd-hpa.service: Failed with result 'exit-code'.
Apr 18 01:47:32 Amtek polkitd(authority=local): Unregistered Authentication Agent for unix-process:4752:1729339 (system bus name :1.
Apr 18 01:48:46 Amtek kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=585206 end=585207) time 9
lines 1276-1298/1298 (END)
EDIT: below is sudo netstat -lnp | grep 69
output
udp 0 0 0.0.0.0:69 0.0.0.0:* 851/inetd
unix 2 [ ACC ] STREAM LISTENING 20940 1069/Xorg @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 20941 1069/Xorg /tmp/.X11-unix/X0
sonex
(45 rep)
Apr 18, 2017, 08:36 AM
• Last activity: Oct 27, 2019, 09:41 PM
1
votes
0
answers
506
views
Why Tftp won't work globally?
I have `tftpd-hpa` with `inetd` installed. Locally (`tftp `) works fine. Port 69 is opened and worked both on input and output. Using ``` netcat -ul -p 69 ``` I can track incoming file, and yes - incoming file is correct both with size and name. Configuration is default from every manual ``` tftp dg...
I have
tftpd-hpa
with inetd
installed.
Locally (tftp
) works fine.
Port 69 is opened and worked both on input and output.
Using
netcat -ul -p 69
I can track incoming file, and yes - incoming file is correct both with size and name.
Configuration is default from every manual
tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tftpboot
Mode 777
and owner is nobody
, while tftpd-hpa
and openbsd
both are root
.
Thx
Damien
(11 rep)
Aug 12, 2019, 12:11 PM
• Last activity: Aug 12, 2019, 01:24 PM
-1
votes
3
answers
1403
views
where can I find the source code for tftp (Trivial File Transfer Protocol)?
where can I find the source code for tftp (Trivial File Transfer Protocol) ?
where can I find the source code for tftp (Trivial File Transfer Protocol) ?
Sanji Apollo
(1 rep)
May 2, 2019, 04:00 AM
• Last activity: May 2, 2019, 09:03 AM
0
votes
2
answers
772
views
firewall not working as expected in kickstart
I have following line in kickstart for firewall firewall --enabled --service=ssh,glusterfs,tftp,ntp I am expecting tftp server should be accessible from other system, but it was only accessible from local server. firewall-cmd --list-services ssh dhcpv6-client i did following steps and it start worki...
I have following line in kickstart for firewall
firewall --enabled --service=ssh,glusterfs,tftp,ntp
I am expecting tftp server should be accessible from other system, but it was only accessible from local server.
firewall-cmd --list-services
ssh dhcpv6-client
i did following steps and it start working
firewall-cmd --permanent --zone=public --add-service=tftp
firewall-cmd --reload
Why kickstart firewall command not working neither throwing any error
**Update1:** After reply of @Gracefulrestart
I tried following options and still no success
firewall --enabled --service=ssh --service=glusterfs --service=tftp --service=ntp
firewall --enabled --service={ssh,glusterfs,tftp,ntp}
Output of list services is
firewall-cmd --list-services
ssh dhcpv6-client
After adding manually
firewall-cmd --permanent --zone=public --add-service=tftp
firewall-cmd --list-services
ssh dhcpv6-client tftp
Following are logs excerpt from
/var/log/anaconda/journal.log
Apr 23 10:48:10 localhost program: Running... /usr/bin/firewall-offline-cmd --enabled --port=30083:tcp --port=9090:tcp --port=8080:tcp --service=tftp --service=ssh --service=glusterfs --service=ntp
Apr 23 10:48:10 localhost systemd: Started Locale Service.
Apr 23 10:48:10 localhost program: INVALID_SERVICE: 'glusterfs' not among existing services
Apr 23 10:48:10 localhost program: Adding service 'tftp' to default zone.
Apr 23 10:48:10 localhost program: Adding service 'ssh' to default zone.
Apr 23 10:48:10 localhost program: ALREADY_ENABLED: ssh
Apr 23 10:48:10 localhost program: Adding service 'glusterfs' to default zone.
Apr 23 10:48:10 localhost program: Adding service 'ntp' to default zone.
Apr 23 10:48:10 localhost program: Adding port '30083/tcp' to default zone.
Apr 23 10:48:10 localhost program: Adding port '9090/tcp' to default zone.
Apr 23 10:48:10 localhost program: Adding port '8080/tcp' to default zone.
Apr 23 10:48:10 localhost program: Return code: 2
ImranRazaKhan
(181 rep)
Apr 18, 2019, 02:47 PM
• Last activity: Apr 23, 2019, 12:04 PM
0
votes
1
answers
20492
views
tftp - Error code 1: File not found
I need the correct syntax of tftp to get and put file. My ultimate goal is using busybox tftp (this should be second question), but it failed even trying to test with local Ubuntu tftp client. As you can see below, `ftp` no issue, only `tftp` has issue. And this is loopback ip so shouldn't related t...
I need the correct syntax of tftp to get and put file. My ultimate goal is using busybox tftp (this should be second question), but it failed even trying to test with local Ubuntu tftp client.
As you can see below,
ftp
no issue, only tftp
has issue. And this is loopback ip so shouldn't related to iptables (Again, ftp
no issue). To prevent potential long path issue, I test with only home directory.
xb@dnxb:/tmp$ grep anon_root /etc/vsftpd.conf
anon_root=/home/xiaobai/
xb@dnxb:/tmp$ cat /home/xiaobai/haha
7
xb@dnxb:/tmp$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 3.0.3)
Name (127.0.0.1:xiaobai): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> get haha
local: haha remote: haha
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for haha (2 bytes).
226 Transfer complete.
2 bytes received in 0.00 secs (6.5541 kB/s)
ftp> 221 Goodbye.
xb@dnxb:/tmp$ tftp 127.0.0.1
tftp> get haha
Error code 1: File not found
tftp> get /home/xiaobai/haha
Error code 1: File not found
tftp> get /home/xiaobai/haha output
Error code 1: File not found
tftp> put /home/xiaobai/haha
Error code 1: File not found
tftp> put haha
Error code 1: File not found
tftp> xb@dnxb:/tmp$ dpkg-query -W -f='${Description}\n\n${Homepage}\nMaintainer: ${Maintainer}\n\n' tftp
Trivial file transfer protocol client
Tftp is the user interface to the Internet TFTP (Trivial File Transfer
Protocol), which allows users to transfer files to and from a remote machine.
The remote host may be specified on the command line, in which case tftp uses
host as the default host for future transfers.
http://www.hcs.harvard.edu/~dholland/computers/netkit.html
Maintainer: Ubuntu Developers
xb@dnxb:/tmp$
Then I folllow this answer :
xb@dnxb:/tmp$ tftp -v 127.0.0.1 -c get haha
usage: tftp host-name [port]
tftp> xb@dnxb:/tmp$
xb@dnxb:/tmp$ tftp -v 127.0.0.1 -c get /home/xiaobai/haha
usage: tftp host-name [port]
tftp> xb@dnxb:/tmp$
xb@dnxb:/tmp$ tftp -v 127.0.0.1 -c put haha
usage: tftp host-name [port]
tftp> xb@dnxb:/tmp$ tftp -v 127.0.0.1 -c put /home/xiaobai/haha
usage: tftp host-name [port]
tftp> ^F
?Invalid command
tftp> xb@dnxb:/tmp$
xb@dnxb:/tmp$
And also this answer (comment out or not seems not effect, I did do service vsftpd restart
after edited):
xb@dnxb:/tmp$ grep server_args /etc/xinetd.conf
# server_args = -c -s /tftpboot
xb@dnxb:/tmp$
It could better if someone can give answer about busybox tftp which has different option:
# busybox tftp
BusyBox v1.22.1 bionic (2017-11-04 12:54 +0800) multi-call binary.
Usage: tftp [OPTIONS] HOST [PORT]
Transfer a file from/to tftp server
-l FILE Local FILE
-r FILE Remote FILE
-g Get file
-p Put file
林果皞
(5546 rep)
Mar 7, 2019, 08:54 PM
• Last activity: Mar 8, 2019, 02:08 AM
0
votes
1
answers
4950
views
Boot custom Linux image using PXE
Is it possible to boot a client over PXE using custom Linux image using PXELINUX? **Background** > We use various IoT devices (Intel based processor) that use Linux as OS (Ubuntu to be > specific). But we have customized OS based on our need (for example by > adding our own applications, system conf...
Is it possible to boot a client over PXE using custom Linux image using PXELINUX?
**Background**
> We use various IoT devices (Intel based processor) that use Linux as OS (Ubuntu to be
> specific). But we have customized OS based on our need (for example by
> adding our own applications, system configuration etc). Now, we are
> looking into possibility if we can boot off these devices using PXE as
> a fail-safe for local storage corruption (or just get away from that).
>
> I am able to achieve this using standard Ubuntu images using TFTPD64
> (on Windows) and PXELINUX. And I can selectively boot image for
> different devices based on their MAC IDs. But I am having hard time
> make it work for our image.
So my question is, how can I create custom image (or use any other mean) to boot our Linux system using PXE?
I created ISO using DD utility (over 4GB in size). But PXELINUX bootloader fails to even download that ISO.
JackLock
(101 rep)
Apr 2, 2018, 05:55 PM
• Last activity: Apr 2, 2018, 06:58 PM
7
votes
1
answers
13160
views
systemd vs xinetd
I have a CentOS 7 system which uses systemd, and I want to start a tftp server. I'm confused about the right way to do this. I've seen some posts that say install xinetd and launch it from there (like pre-systemd), and other posts that say enable tftp.socket Is xinetd just a bridge to systemctl sock...
I have a CentOS 7 system which uses systemd, and I want to start a tftp server. I'm confused about the right way to do this. I've seen some posts that say install xinetd and launch it from there (like pre-systemd), and other posts that say enable tftp.socket
Is xinetd just a bridge to systemctl socket which will eventually go away?
If so, where would I place my tftp configuration settings (since the xinetd tftp file would not be used)
TSG
(1983 rep)
Feb 29, 2016, 11:46 AM
• Last activity: Dec 8, 2016, 04:21 PM
1
votes
1
answers
610
views
Why tftp direct access request to different folders with different network interfaces
Here's my `/etc/xinetd.d/tftp` service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } I have two interfaces on my host: 1. lo: 127.0.0.1 2. virbr1: 192.168.122.1 And I con...
Here's my
/etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
I have two interfaces on my host:
1. lo: 127.0.0.1
2. virbr1: 192.168.122.1
And I connect the tftp server via the 2 interfaces respectively.
tftp 127.0.0.1
get somefile
The file is fetched from /tftpboot
tftp 192.168.122.1
get somefile
The file is fetched from /var/lib/tftp
I have no idea where this /var/lib/tftp
configuration comes from.
Or maybe via 192.168.122.1, tftp servers fall back to some default
configuration?
---
Mention that I didn't modify /etc/xinetd.conf either:
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
wuyihao
(168 rep)
Nov 29, 2016, 12:38 PM
• Last activity: Nov 29, 2016, 01:38 PM
1
votes
0
answers
506
views
What can be the reason notebook does not load with PXE?
I made TFTP boot share and it works for virtual machine and desktop computer (menu appears). But on notebook Dell Inspiron 7720 it shows few lines [![enter image description here][1]][1] and turns black. Syslinux config is follows: $ cat pxelinux.cfg/default DEFAULT menu.c32 PROMPT 0 #MENU BACKGROUN...
I made TFTP boot share and it works for virtual machine and desktop computer (menu appears). But on notebook Dell Inspiron 7720 it shows few lines
and turns black.
Syslinux config is follows:
$ cat pxelinux.cfg/default
DEFAULT menu.c32
PROMPT 0
#MENU BACKGROUND moon800.jpg
#MENU RESOLUTION 800 600
#MENU MARGIN 20
MENU TITLE In The Moon Network
LABEL kaspersky
MENU LABEL Kaspersky Rescue Disk (WAIT!)
KERNEL memdisk
INITRD /iso/kav_rescue_10.iso
APPEND harddisk raw
LABEL rescue
MENU LABEL SystemRescueCd x86 4.7.1 (WAIT!)
KERNEL memdisk
INITRD /iso/systemrescuecd-x86-4.7.1.iso
APPEND iso raw
LABEL ubuntudesktop
MENU LABEL Run Ubuntu Desktop 14.04.1 LTS (WAIT!)
KERNEL memdisk
INITRD http://sagittarius-a/boot/ubuntu-14.04.4-desktop-amd64.iso
APPEND harddisk raw
LABEL ubuntu-installer-amd64-desktop-16.04-lts
MENU LABEL Install Ubuntu 16.04 LTS Desktop AMD64
KERNEL ubuntu-installer/16.04LTS/amd64/boot-screens/vesamenu.c32
APPEND ubuntu-installer/16.04LTS/amd64/boot-screens/menu.cfg
Content of TFTP directory is follows:
/var/lib/tftpboot$ ls
iso libutil.c32 menu.c32 netboot ubuntu-installer
ldlinux.c32 lpxelinux.0 moon640.jpg pxelinux.cfg vesamenu.c32
libcom32.c32 memdisk moon800.jpg sagittarius-a.jpg
The problem it doesn't show any menu at all.
**UPDATE**
I have replaced

lpxelinux.0
for pxelinux.0
and revised all c32
to have them from single distribution of syslinux, but finally got the same result.
Why is it loading NBP
file several (two) times?
Dims
(3425 rep)
Oct 25, 2016, 10:02 AM
• Last activity: Oct 26, 2016, 09:29 AM
0
votes
1
answers
799
views
Using TFTP on Fedora 22
I am trying to troubleshoot tftp on my Fedora 22 to see if it is working or not. All I want to do is transfer a file between two systems. The commands I am finding online are not working. All I need is the command and the directory where the files will go on both ends. I get a connection established...
I am trying to troubleshoot tftp on my Fedora 22 to see if it is working or not. All I want to do is transfer a file between two systems. The commands I am finding online are not working. All I need is the command and the directory where the files will go on both ends. I get a connection established to the tftp but when I do a
get
it times out.
LinuxLearner
(459 rep)
May 26, 2016, 09:08 PM
• Last activity: May 26, 2016, 11:18 PM
4
votes
1
answers
3317
views
tftp startup problem: recvfrom: Socket operation on non-socket
I am trying to start `tftpd` (on arch without `inetd`) for a simple (or so I thought) operation (nothing permanent). However, starting `tftpd ` as advised in the manual fails with this comment in syslog: tftpd[PID]: recvfrom: Socket operation on non-socket `strace tftpd` says: (...) geteuid() = 0 se...
I am trying to start
tftpd
(on arch without inetd
) for a simple (or so I thought) operation (nothing permanent).
However, starting tftpd
as advised in the manual fails with this comment in syslog:
tftpd[PID]: recvfrom: Socket operation on non-socket
strace tftpd
says:
(...)
geteuid() = 0
setgid(65534) = 0
setuid(65534) = 0
ioctl(0, FIONBIO, ) = 0
recvfrom(0, 0x603600, 516, 0, 0x6035d0, 0x603828) = -1 ENOTSOCK (Socket operation on non-socket)
brk(0) = 0xbe9000
brk(0xc0a000) = 0xc0a000
(...)
So, what is going on? No-one is using UDP port 69 yet, and I have temporarily disabled the firewall.
Ned64
(9256 rep)
Oct 2, 2015, 06:04 PM
• Last activity: Oct 2, 2015, 09:04 PM
Showing page 1 of 18 total questions