We have created a new bootdisk for Ubuntu but the boot variables are not
correct in it.
We mounted the iso image and found that the kernel and initrd filenames are
not matching the filenames in syslinux.cfg
-------------------------------------------------------------
root@rsiwal:~# mount -oloop /data/vboxubuntu.vbox.local_20160729_1200.iso
/tmp/bootdisk/
root@rsiwal:~# cat /tmp/bootdisk/isolinux.cfg
default linux
label linux
kernel BOOT/UBUNTU16_04_16_04_X86_64_LINUX
append initrd=BOOT/UBUNTU16_04_16_04_X86_64_INITRD_GZ interface=auto
url=http://foreman-aws.example.com/unattended/provision?token=a0b1896f-1176-4d30-8b74-7bb1391a4e42
ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=vboxubuntu.vbox.local
console-setup/ask_detect=false console-setup/layout=USA
console-setup/variant=USA keyboard-configuration/layoutcode=us
localechooser/translation/warn-light=true
localechooser/translation/warn-severe=true locale=en_US
#Disabling IPAPPEND as not suppoerted by Ubuntu 16.04
# IPAPPEND 2
root@rsiwal:~# ls -R /tmp/bootdisk/boot
/tmp/bootdisk/boot:
ubuntu16_04_16_04_x86_64_initr ubuntu16_04_16_04_x86_64_linu
root@rsiwal:~# ls -R /tmp/bootdisk/boot
-----------------------------------------------------------------------------------------------------------
Here are the foreman logs:-
2016-07-29 06:00:30 [app] [I] Rendered hosts/_nics.html.erb (53.5ms)
2016-07-29 06:00:30 [app] [I] Completed 200 OK in 61ms (Views: 53.0ms |
ActiveRecord: 3.4ms)
2016-07-29 06:00:41 [app] [I] Started GET
"/bootdisk/disks/full_hosts/vboxubuntu.vbox.local" for 14.142.72.154 at
2016-07-29 06:00:41 +0000
2016-07-29 06:00:41 [app] [I] Processing by
ForemanBootdisk::DisksController#full_host as HTML
2016-07-29 06:00:41 [app] [I] Parameters: {"id"=>"vboxubuntu.vbox.local"}
2016-07-29 06:00:41 [foreman_bootdisk] [I] Retrieved
http://archive.ubuntu.com/ubuntu//dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux
from local cache (use foreman-rake tmp:cache:clear to empty)
2016-07-29 06:00:41 [foreman_bootdisk] [I] Retrieved
http://archive.ubuntu.com/ubuntu//dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
from local cache (use foreman-rake tmp:cache:clear to empty)
2016-07-29 06:00:42 [app] [I] Rendered text template (0.0ms)
2016-07-29 06:00:42 [app] [I] Sent data
vboxubuntu.vbox.local_20160729_1200.iso (3.8ms)
2016-07-29 06:00:42 [app] [I] Completed 200 OK in 521ms (Views: 3.6ms |
ActiveRecord: 19.5ms)
------------------------------------------------------------------
Foreman Version : 1.12.1
Foreman Installed on CentOS 7.2
Host being created : Ubuntu 16.04
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.