Hi all -
I've been struggling to get sysupgrade working on x86 and was hoping someone here could share some insight. Please read the details below...
Issue
When upgrading either via sysupgrade or via Luci, OS seems to process the update and reboots, but upon further inspection, the new OS image doesn't appear to have been installed. I've tried my custom images from my own image builder as well as the public images on the OpenWRT mirror.
Steps to reproduce
Tested with both openwrt-18.06.2-x86-64-combined-ext4 & openwrt-18.06.2-x86-64-combined-squashfs
- Use image builder to produce VDI and gunzipped IMG files
- Use VDI as the boot disk for a VM on virtual box
- Boot VM, login either via SSH, local console, or Luci
- for CLI, wget the image to /tmp and then run sysupgrade -v -n /tmp/openwrt-18.06.2-x86-64-combined-XXXX.img.gz
for Luci, upload the image through the UI, opt not to save settings, and then flash the image - In both cases, the VM reboots after a few seconds
- In both cases, the OS does not update (indicated by a file written to the overlay with the epoch time as a build marker as well as other additions to the overlay not making it on to the filesystem such as updated config files)
Config / Environment
Built using openwrt-imagebuilder-18.06.2-x86-64.Linux-x86_64 on Debian 8
Build config: CONFIG_TARGET_IMAGES_PAD=y CONFIG_TARGET_ROOTFS_PARTSIZE=64 CONFIG_VDI_IMAGES=y PACKAGES="nano htop curl gzip" PROFILE=Generic FILES=someCustomOverlayPath
Overlay contents:
├── etc
│ ├── banner
│ ├── config
│ │ ├── firewall
│ │ ├── network
│ │ └── system
│ ├── dropbear
│ │ ├── authorized_keys
│ │ └── dropbear_rsa_host_key
│ ├── hosts
│ ├── opkg
│ │ └── distfeeds.conf
│ ├── rc.local
│ └── shadow
VM / Host Info:
Virtual Box Version 5.2.18 r124319
macOS 10.14.4 (18E226)
1x CPU, 128mb RAM
boot disk is setup with an IDE controller (tried SATA as well)
dual ethernet interfaces (e1000)
Other
Any thoughts? From what I've seen from a few posts on this site and the documentation, this method should work but no matter what I try, I seem to get the same results.
As a side note, I'll be trying to setup a serial console so I have some output independent of SSH or the VM console. The reboot is too quick to catch any meaningful output.
Here are the other threads and documentation that I've come across:
https://openwrt.org/docs/guide-user/installation/generic.sysupgrade
https://openwrt.org/docs/guide-user/installation/sysupgrade.cli
Cheers