# Forcing an LLM into the Real World

> Source: <https://blog.lewman.com/forcing-an-llm-into-the-real-world.html>
> Published: 2026-11-23 05:09:25+00:00

**Recommendation:** Give the agent a machine-readable install config to pass to the booting OS rather than having it scrape a browser console; console scraping failed across 8 attempts before the model switch.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

# Forcing an LLM into the Real World

### Table of Contents

In the past few months, I've really tried to push the limits of what LLMs can do in the real world in loosely defined scenarios. I use LLMs in virtual machines because I still don't trust them on my main development machine. However, that doesn't mean I can't let it loose on other hardware.

## Fresh Install of a Remote Server

Now that [Oryxen](https://blog.lewman.com/under-construction-oryxen.html) is on the production hardware, the old dev server was sitting idle. I purposely gave the model minimal instructions and let it figure everything out through trial and error. The old server was wiped and had no operating system. I then pointed the model at the console server, gave it a read-only login, and some minimal pointers to the documentation and the goal of getting an operating system installed onto the old server. The model with [hermes](https://www.oryxen.ai/hermes/) really struggled with the console server. It's a browser window based console, so trying to scrape the screen met with limited success. I ended up having to mount the iso image of the operating system so at least when the hardware booted, it was at some sort of installation prompt. After 8 attempts, the LLM (NVIDIA-Nemotron-3.5-Lightning in this case) finally managed to "read" the console and get the installation going. However, the model constantly made mistakes on the installation choices and got into a non-recoverable state. I had to reboot the server to get back to fresh boot. Eventually, after switching models to moonshotai/Kimi-K3, the base OS was installed. In retrospect, I should've had the model write an install config and pass that to the booting OS to automate the installation.

On first boot, the model correctly logged in using the root/password it set during installation (after I told it what they were) and promptly locked itself out of the system. I then helped it along and did the base OS install, set the root password and gave it ssh access. Once the model had access to the system via ssh, things went well. I told it to run the correct script for the installed OS from [https://code.lewman.com/random-configs/](https://code.lewman.com/random-configs/).  It correctly matched the OS to the script, ran the script, and rebooted. Once ssh returned, it logged in and checked the script actually ran correctly and the OS was setup the way we needed. 

### Self-replication

I then instructed to migrate from the virtual machine into the live server it just configured. It correctly created a bunch of tarballs of itself, rsync'd it over to the new server, un-tarred and created the matching users on the remote system. In one way I primed it for success, because the OS in the VM was the same on the server. I then asked it to secure the system and make sure the firewall, internal permissions, and such were secure and correct. After about 15 minutes of watching endless commands run, it was done and rebooted. Amazingly, the server came back up and secure boot was correctly configured. The hardware doesn't support some of the needed features for [HSI Level 4](https://fwupd.github.io/hsi.html#hsi-runtime-suffix) but it did pretty good for a first attempt at a one-shot config. The model even correctly suggested some UEFI firmware changes to get us to the current state:

```
sudo fwupdmgr security
Host Security ID: HSI:1! (v2.1.6)

HSI-1
✔ SMM locked down:               Locked
✔ BIOS firmware updates:         Enabled
✔ Fused platform:                Locked
✔ Supported CPU:                 Valid
✔ TPM empty PCRs:                Valid
✔ TPM v2.0:                      Found
✔ UEFI bootservice variables:    Locked
✔ UEFI platform key:             Valid
✔ UEFI secure boot:              Enabled

HSI-2
✔ SPI write protection:          Enabled
✔ IOMMU:                         Enabled
✔ Platform debugging:            Locked
✔ TPM PCR0 reconstruction:       Valid
✘ Platform secure boot:          Unknown

HSI-3
✔ CET Platform:                  Supported
✘ SPI replay protection:         Not supported
✘ Pre-boot DMA protection:       Disabled
✘ Suspend-to-idle:               Disabled
✘ Suspend-to-ram:                Enabled
✘ UEFI memory protection:        Unlocked

HSI-4
✔ SMAP:                          Enabled
✘ Processor rollback protection: Disabled
✘ Encrypted RAM:                 Not supported

Runtime Suffix -!
✔ CET OS Support:                Supported
✔ fwupd plugins:                 Untainted
✔ Linux kernel lockdown:         Enabled
✔ Linux kernel:                  Untainted
✔ UEFI db:                       Valid
✘ Linux swap:                    Unencrypted
✘ UEFI NX protection:            Disabled

This system has HSI runtime issues.
 » https://fwupd.github.io/hsi.html#hsi-runtime-suffix

Host Security Events
  2026-11-14 08:13:09:  ✘ UEFI memory protection changed: Disabled → Unlocked
  2026-11-14 01:18:23:  ✘ Linux swap changed: Invalid → Unencrypted
```

It even correctly put the LUKS passphrase into TPM for non-interactive boots. I'm still working on improving the HSI level to see how far I can push the hardware, but most it just isn't supported in hardware.

# Troubleshooting Slow WiFi

I exposed the raw wifi adapter on my dev laptop to the virtual machine and complained the wifi was slower than expected. After NVIDIA-Nemotron-3.5-Lightning ran for about 3 minutes, it suspected one of the wifi antennas wasn't working properly. It ran a bunch of tests, but highlighted that given the PCI info about the wifi card, "iw dev wlan0 link" appears to be running on one antenna.

```
freq: 5520.0
RX: xx bytes (xx packets)
TX: xx bytes (xx packets)
signal: -63 dBm
rx bitrate: 576.4 MBit/s 160MHz HE-MCS 5 HE-NSS 1 HE-GI 0 HE-DCM 0
tx bitrate: 29.2 MBit/s   HE-MCS 3 HE-NSS 1 HE-GI 2 HE-DCM 0
bss flags: short-slot-time
dtim period: 2
beacon int: 100
```

After more testing, including being right next to the wifi AP, it insisted the wifi card was missing one antenna.

It turns out, it was correct. Upon physical inspection, after disassembling parts of the laptop, one of the antennas had become disconnected indeed. After reattaching it, even without re-assembling the whole laptop, we now have this result from "iw dev wlan0 link":

```
freq: 5520.0
RX: xx bytes (xx packets)
TX: xx bytes (xx packets)
signal: -63 dBm
rx bitrate: 720.6 MBit/s 80MHz HE-MCS 7 HE-NSS 2 HE-GI 0 HE-DCM 0
tx bitrate: 1152.8 MBit/s 160MHz HE-MCS 5 HE-NSS 2 HE-GI 0 HE-DCM 0
bss flags: short-slot-time
dtim period: 2
beacon int: 100
```

The laptop is in the same physical location, same wifi. Only thing that changed was re-attaching the wifi antenna. The key there is not just that the bitrate jumped, that's a condition of the "HE-NSS 2" connection. Nice job Nemotron.

As a breakdown, Nemotron further explained why HE-NSS 1 was the issue when we should be seeing HE-NSS 2 for this card:

- 160 MHz channel bandwidth

- HE‑MCS index 5 (the 6th MCS scheme in 802.11ax — maps to ~576 Mbps with the right PHY parameters)

- HE‑NSS 1 (1 spatial stream — "Network Spatial Streams")

- HE‑GI 0 (short guard interval = 800 ns; GI = 1 would be the long 3.2 µs GI)

- HE‑DCM 0 (Dual Common Mode disabled; DCM = 1 enables it for certain LDPC decoding modes)

## Bonus WiFI Access Point Configuration

After some more confirmation and re-testing everything, Nemotron even confirmed the WiFI access point is optimally configured. I walked around the house with the laptop while Nemotron ran various tests and took measurements to confirm everything is optimally placed and configured for the 5 GHz band. The 2.4 GHz band is a mess of wifi from all the neighbors networks. In testing, there is no good 2.4 GHz band nor configuration.

# Reverse Engineering a Bluetooth Speaker with USB Power

I passed an old portable speaker on USB and bluetooth (BT) to the VM. I bought this speaker a few years ago for $150. The seller said the speaker didn't charge and just stopped working altogether. The vendor sold the speaker for $750 new. After taking it apart, I replaced the dead battery and it would charge via USB but not actually play music. In my experience, and paranoia, wired connections are always superior to wireless (BT).

Once again, I asked NVIDIA-Nemotron-3.5-Lightning to figure out what it was, how it worked, and could we turn it into a USB audio device. In about 15 minutes, it correctly identified the speaker, realized someone had logically disabled the USB port and after reverse engineering the Android APK from the vendor, it unlocked the USB audio functionality via BT. It even reverse engineered the proprietary communications protocol to get the battery percentage and to control the volume and pause functionality via command line (or prompt).

Further, it setup the udev device for linux to use it as USB audio. So now I have a great USB audio speaker which sounds amazing, frankly.

# Faster Backups over USB

I noticed the backup drive was slower than usual. After exposing the drive over USB to the VM, the model got to work. In doing some tests, it determined the cable was the limiting factor as it was appearing at USB 2.0 (480 Mbps), not USB 3.2 (5 Gbps). I swapped a few cables and it didn't get any better. I dug out my old USB cable tester, which confirmed the cable is a USB2 cable. After trying a few cables, we ended up with a working USB 3.2 cable. This dramatically decreased the time of backup. Further, the model tested various rsync options and eventually arrived at a final command line that further cut the backup time by another 15%. Between the cable swap and rsync options, the backup time was reduced by 47%. It further tested rclone vs rsync and found that parallel rclones overwhelmed the drive which made the total backup slower than rsync.

# Conclusion

In all of these situations, I would've come to the same conclusions in time, but letting the automation work on it, it confirms my suspicions and also does it quicker. I can do something else while letting the model work.

Next time, I'll tell you about my dev team of agents running in the GPU.
