This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Headless install issues
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Headless install issues
I'm trying to install the current release from a LiveUSB image onto a headless system (no ability to add a graphics card, and with soldered-in SSD). I've read various other posts from people on trying to deal with this but the suggested solution of either dropping in a graphics card or installing on another system and moving the install media across aren't an option.
Is there any way to perform an embedded install from the WebGUI or SSH command prompt? Presumably the standard console config menu is driven from the command prompt, can that be triggered over SSH?
Is there any way to perform an embedded install from the WebGUI or SSH command prompt? Presumably the standard console config menu is driven from the command prompt, can that be triggered over SSH?
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Headless install issues
YES.hastdotwhat wrote:Is there any way to perform an embedded install from the WebGUI or SSH command prompt? Presumably the standard console config menu is driven from the command prompt, can that be triggered over SSH?
you need 2 USB Key, one clean and other with N4FXXX.USB.live version
put both USB keys on any machine ( your laptop or any machine with monitor and keyboard), boot from usb live.
use menu to install embeded version on clean USB ( Please be carefull DO NOT install embeded on any HD of your PC,because you lost data).
Once done, you have a new USB with embeded install on it, you can use this USB to boot your NAS.
PD: To upgrade this embeded version in the future, you can do it by WebGUI.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Re: Headless install issues
Uhh, see my original message, I want to install to the SSD that's part of the headless system. While in theory it would be possible to run from an external USB key, it'd be pretty messy, and at some point someone will unplug it or bump into it and break it or something similar. So what I'm after is a way to get to the install menu via either SSH or the serial port, without needing to have a monitor and keyboard connected.
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: Headless install issues
use something like this and no one will bump into it and break it:
http://www.amazon.com/SanDisk-Cruzer-Lo ... B005FYNSZA
once you have installes it, you can enable the serial console through the webgui at System | Advanced
similar problem reported here:
https://forums.freenas.org/index.php?th ... -how.7487/
http://www.amazon.com/SanDisk-Cruzer-Lo ... B005FYNSZA
once you have installes it, you can enable the serial console through the webgui at System | Advanced
similar problem reported here:
https://forums.freenas.org/index.php?th ... -how.7487/
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
armandh
- Advanced User

- Posts: 398
- Joined: 23 Jun 2012 04:15
- Location: St Louis County Missouri USA
- Status: Offline
Re: Headless install issues
two USB flash install is good practice for one and internal flash
write down each choice each step and give it a try blind.
it may or may not work
also there is the option of live USB option using internal FAT formatted flash for the config.
write down each choice each step and give it a try blind.
it may or may not work
also there is the option of live USB option using internal FAT formatted flash for the config.
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Re: Headless install issues
That was one of the threads I'd read, but he doesn't really describe a solution. He reports that the install option is missing from the console menu and that he'll post something to the Wiki, but that's all. I can't even enable the serial console, I get "Error: The changes could not be applied (error code 1)" when I try and enable it from the WebGUI. I'm guessing it's because it wants some writeable location for its config, this comment:crowi wrote:once you have installes it, you can enable the serial console through the webgui at System | Advanced
similar problem reported here:
https://forums.freenas.org/index.php?th ... -how.7487/
http://wiki.nas4free.org/doku.php?id=do ... ivecd_mode
indicates that you need to provide a second USB key for the LiveUSB image on the first USB key to save its config to, but providing an MSDOS-formatted (presumably meaning FAT32) key doesn't fix things, and the disk management page reports the FS as "Unknown or unformatted".
So I formatted the key FAT32 (which it was already formatted anyway) via the "Format" menu, but it hasn't resolved the problem, I still get the same "Error: The changes could not be applied (error code 1)". In any case rebooting resets the status to "Unknown or unformatted". Formatting to UFS instead of FAT32 doesn't change things either.
I tried to bypass the problem by adding 'console="comconsole"' to /boot/loader.conf, but predictably that failed with an error, "Warning: fopen(/cf/boot/loader.conf.local.4972): failed to open stream: No such file or directory in /etc/inc/util.inc on line 2735 Error: Failed to write configuration file '/cf/boot/loader.conf.local'".
Another option, will FreeBSD (via Nas4Free) recognise and work with a USB VGA adapter? If it really does need a physical console attached then that might be a way of providing one, assuming it'll also work through a USB hub (for the LiveUSB key, the config storage key, a USB keyboard, and a USB VGA adapter).
- ChriZathens
- Forum Moderator

- Posts: 758
- Joined: 23 Jun 2012 09:14
- Location: Athens, Greece
- Contact:
- Status: Offline
Re: Headless install issues
You could try the embedded install on a usb key.
Once up and running, and having access to the gui, perhaps you can then use dd to write the embedded install to the internal ssd, afterwards remove the usb and let it boot from the ssd...
Just an idea, perhaps it will work.
Once up and running, and having access to the gui, perhaps you can then use dd to write the embedded install to the internal ssd, afterwards remove the usb and let it boot from the ssd...
Just an idea, perhaps it will work.
My Nas
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- Case: Fractal Design Define R2
- M/B: Supermicro x9scl-f
- CPU: Intel Celeron G1620
- RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
- PSU: Chieftec 850w 80+ modular
- Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
- O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
- Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Re: Headless install issues
Yeah, that was another option, use another machine to install from LiveUSB to another USB key, then create a third USB key to boot something like BusyBox and boot that so I can dd the installed image over to the SSD. The reason why I hadn't done that already is that I was a bit nervous about moving an installed image over to a completely different architecture (different CPU family, chipset, video, storage, everything is different), I know that FreeBSD reconfigures itself as required on boot but it felt like I'd be pushing things a bit. A second consideration was that I'll be throwing away most of the capacity of the SSD by dd'ing over the USB-installed image unless I hack around with partition resizing, which presumably means booting back into the LiveUSB and running gpart on the SSD image and sacrificing a goat or something to get it right.
I can't believe it's this hard to do a simple headless install. The underlying FreeBSD allows it with a bit of hackery (adding 'console="comconsole"' to loader.conf) but it seems to be almost impossible with Nas4Free. I'll post a wishlist for this in a separate message...
I can't believe it's this hard to do a simple headless install. The underlying FreeBSD allows it with a bit of hackery (adding 'console="comconsole"' to loader.conf) but it seems to be almost impossible with Nas4Free. I'll post a wishlist for this in a separate message...
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Re: Headless install issues
So my wishlist for Nas4Free to allow headless installs:
https://forums.freenas.org/index.php?th ... post-29663
and then /etc/rc.initial.install chaining to /etc/rc.initial.install2 does the actual install, but before I potentially create a system that only half works I thought I'd see if anyone has any comments on running this manually from an SSH login.
- Enable the serial console by default. It's kinda painful to watch the full boot process nicely displayed on the serial console and then just before the FreeBSD prompt is about to come up it goes catatonic as the serial console is disabled. If this is seen for some reason to be a security issue then at least enable it for LiveUSB/LiveCD even if it's disabled when the final install is done.
- Document how the install is triggered so it can be initiated from the serial console or via SSH. Presumably there's some setup script somewhere that gets run, but I haven't been able to find it.
https://forums.freenas.org/index.php?th ... post-29663
and then /etc/rc.initial.install chaining to /etc/rc.initial.install2 does the actual install, but before I potentially create a system that only half works I thought I'd see if anyone has any comments on running this manually from an SSH login.
-
hastdotwhat
- Starter

- Posts: 45
- Joined: 17 Jul 2013 09:39
- Status: Offline
Re: Headless install issues
OK, I've figured out how to do it, I'll post details to a separate thread under the "SOLVED" tag.