Problem:
As stated in the subject. I have setup several virtual machines. One hyper-v Server 2016 Gen 1, one Gen2 and a VMWare player system. None if them do boot with different behavours. Expected outcome:
VMs should boot Foreman and Proxy versions:
1.20.1 Foreman and Proxy plugin versions:
not sure Other relevant data:
OK, let me explain a bit more in prosa. I have two HP Proliant DL380 Gen8 Servers that I use for educational purposes. At the moment I’m trying to learn “unatendend provisioning”. Until now I’ve always installed the VMs using iso images (dvd). I’ve setup Foreman according to the installation guide. I’ve read quite a bit in the documentation.
/etc/xinetd.d/tftp is running over xinet.d config:
I disabled firewalld and selinux for now. There is no hardware firewall in the LAN.
logs
All I really see when booting the GEN 2 vm (svmqhub3.md80.ch) is in the /var/log/messages
Jan 31 19:28:59 satellite dhcpd: DHCPDISCOVER from 00:15:5d:01:27:0d via eth0
Jan 31 19:28:59 satellite dhcpd: DHCPOFFER on 192.168.178.88 to 00:15:5d:01:27:0d via eth0
Jan 31 19:29:03 satellite dhcpd: DHCPREQUEST for 192.168.178.88 (192.168.178.86) from 00:15:5d:01:27:0d via eth0
Jan 31 19:29:03 satellite dhcpd: DHCPACK on 192.168.178.88 to 00:15:5d:01:27:0d via eth0
Jan 31 19:29:03 satellite systemd: Started Tftp Server.
Jan 31 19:29:03 satellite systemd: Starting Tftp Server...
Jan 31 19:29:03 satellite in.tftpd[55265]: Error code 8: User aborted the transfer
Jan 31 19:29:03 satellite in.tftpd[55266]: Client ::ffff:192.168.178.88 finished pxelinux.0
When I start the Gen1 server or the VMWare player system nothing is entered in the /var/log/message log. On the hyper-v console of the Gen 2 System I only see “There was an unexpected network error”.
I’ve been googling “Error code 8: User aborted the transfer” and other tfpt dhcpd related topics for days now without any luck.
I can iso boot the GEN 2 VM and change the ks to my satellite.md80.ch… config and it will then install as expected. But the boot part just won’t work.
The rest worked. Although so far only with a virtualbox VM running on my main PC. Hyper-v still reports same issue. I then changed tftp to point to my “foreman tftp” directory and the virtualbox vm pxe boots and installes the system that I created in Foreman. I guess that I have to continue on the tftp side to findout why the Hyper-v VMs don’t boot. I did find a bugreport on tfpt 2.21 so I tried downgrading to 2.13. But that just gave me a different error. “tftp: client does not accept options”. So back to previously installed 5.22.
Hey man, I am actually building something very similar. I’m using Hyper-V and running Foreman/Katello as well as Foreman-discovery and remote-command-execution. One thing different for me is that I’m running BIND and DHCPD as docker containers (host is a server running Win10Pro). I should have everything configured over the next 2 days and I’ll share my configs w/you if you’re still having probs.
Hello,
greatly appreciated. I just checked my virtual switch. Since I wasn’t 100% sure if it’s not a NAT. But it appears to be external. Also, if I boot off an iso and change the ks to point to the Foreman URL it’ll install fine.
Now my Gen2 system (svmqhub3) reads the grub2/grubx64.efi file over tftp and continues with grub2/grub.cfg-01-00-15-5d-01-27-0d
From the /var/log/messages
Feb 1 08:32:52 satellite dhcpd: DHCPDISCOVER from 00:15:5d:01:27:0d via eth0
Feb 1 08:32:52 satellite dhcpd: DHCPOFFER on 192.168.178.88 to 00:15:5d:01:27:0d via eth0
Feb 1 08:32:56 satellite dhcpd: DHCPREQUEST for 192.168.178.88 (192.168.178.86) from 00:15:5d:01:27:0d via eth0
Feb 1 08:32:56 satellite dhcpd: DHCPACK on 192.168.178.88 to 00:15:5d:01:27:0d via eth0
Feb 1 08:32:56 satellite in.tftpd[89332]: Error code 8: User aborted the transfer
Feb 1 08:32:57 satellite in.tftpd[89333]: Client 192.168.178.88 finished grub2/grubx64.efi
Feb 1 08:32:57 satellite in.tftpd[89334]: Client 192.168.178.88 finished /grub2/grub.cfg-01-00-15-5d-01-27-0d
Feb 1 08:32:57 satellite in.tftpd[89339]: Client 192.168.178.88 finished /grub2/grub.cfg-01-00-15-5d-01-27-0d
It displays the boot menu:
Chainload Grub2 EFI from ESP <-
Chainload into BIOS bootloader on first disk
Chainload into BIO bootloader on second disk
It then fails with:
Chainloading Grub2 EFI from ESP, available devices:
(hd0) error: failure reading sector 0x0 from 'hd0'.
probing ESP partition ... error: failure reading sector 0x0 from 'hd0'.
error no such device: /EFI/BOOT/BOOTX64.EFI.
found
File grubx64.efi not found on ESP
Update pxegrub2_chainload path array with:
error : disk `' not found.
the system wil halt in 2 minutes or press ESC to halt immediately.
so, during try and error i changed the tftp config to /tftpboot where I had mounted an Centos 7 iso. Now changed back tftp config in /etc/xinetd/tftp to :
server_args = -s /var/lib/tftpboot
After the installation of my first VM I had to run this manually for Foreman to understand that the install was complete. Otherwise it would have remained in state pending installation.
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server satellite.md80.ch --no-daemonize
Hi,
I’m not shure if I really solved that. This menu appeared during try and error when I had pointed my tfpt to an Centos iso mount. I then changed it back to the directory where I have the foreman files deployed. There I got the expected installation menu.
Cheers
(thank you for fixing the formatting. I was rushing it a bit and have to get used to his editor.)
I would love to help but this report is a mess. Try to isolate separate problems and provide useful information. I understand that Foreman is a complex project, you need to spend time with it unfortunately. There are companies providing consultancy and there are several commercial products if you don’t have time however.