Hi,
As per subject I'm (still) trying to do a headless boot of a diskless
node. I have created an image of an installed SmartOS and am sharing it
via iSCSI. Running a virtualbox VM that has the iSCSI share as a
'device' and smartos-iso as an optical drive it boots just fine.
However, when booting off iPxe it doesn't seem to 'see' the iSCSI device
and hence starts up in the installer.
iSCSI configuration (FreeBSD):
portal-group pg0 {
discovery-auth-group no-authentication
listen 0.0.0.0
}
target iqn.2015-12.nz.20ft:smart {
auth-group no-authentication
portal-group pg0
lun 0 {
path /iscsi/root
size 4G
}
}
target iqn.2015-12.nz.20ft:boot {
auth-group no-authentication
portal-group pg0
lun 0 {
path /iscsi/smartos-latest-USB.img
}
}
and
root@lenovo:/tftp # ll /iscsi/
total 193941
-rw-r--r-- 1 root wheel 4214884864 Sep 27 00:22 root
-rw-r--r-- 1 root wheel 2000000000 Sep 27 01:37 smartos-latest-USB.img
DHCP looks like this:
listen-address=10.99.0.1
port=0
interface=ue0
bind-interfaces
log-dhcp
dhcp-range=10.99.0.2,10.99.0.250,12h
dhcp-authoritative
dhcp-option=option:router,10.99.0.1
dhcp-option=option:dns-server,8.8.8.8
dhcp-option=option:tftp-server,10.99.0.1
dhcp-option=option:bootfile-name,undionly.kpxe
# iPXE sends a 175 option, we use this to know which stage is asking
dhcp-match=set:ipxe,175
dhcp-boot=tag:!ipxe,undionly.kpxe
dhcp-boot=tag:ipxe,ipxe_script
enable-tftp
tftp-root=/tftp
The ipxe_script looks like this:
#!ipxe
set keep-san 1
set base-url http://10.99.0.1:8080
sanhook iscsi:10.99.0.1::::iqn.2015-12.nz.20ft:smart
kernel ${base-url}/platform/i86pc/kernel/amd64/unix -B smartos=true
initrd ${base-url}/platform/i86pc/amd64/boot_archive
boot
(smartos=true /is/ on the same line but word wrapping won)
Sanhook reports it found the drive and gives it ref 0x80. I also tried
booting directly off an iSCSI share:
#!ipxe
set keep-san 1
sanhook --drive 0x81 iscsi:10.99.0.1::::iqn.2015-12.nz.20ft:smart
sanboot --no-describe iscsi:10.99.0.1::::iqn.2015-12.nz.20ft:boot
With the same result - i.e. boot, but it goes straight to the setup script.
Any ideas?
Cheers,
Dave
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com