The answer is far simpler .... I'm not sure how I missed this, but I neglected to compare the boot params that are auto used in the KVM VM to those booting via the grub.cfg in iohyve.
A quick check of dmesg output of the rancheros VM booted in KVM shows the "persitent storage partition" is passed as a boot param.
I changed my grub.cfg for iohyve to this:
[
Code:
root@freenas] /mnt/iohyve/rancheros# cat grub.cfg
set root=(hd0,msdos1)
linux /boot/vmlinuz-4.9.21-rancher rancher.password=rancher printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0
initrd /boot/initrd-v1.0.0
boot
[root@freenas] /mnt/iohyve/rancheros#
And you can see the virtual disk is mounted in ranchos as /dev/sda1:
Code:
[rancher@rancher ~]$ mount | grep sda1
/dev/sda1 on /home type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /mnt type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /media type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /opt type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /usr/lib/firmware type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/selinux type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /usr/sbin/iptables type ext4 (ro,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/docker type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /usr/lib/modules type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/log type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /usr/share/ros type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /usr/bin/ros type ext4 (ro,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/lib/docker type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/lib/rancher type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/ssl/certs/ca-certificates.crt.rancher type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/lib/rancher/cache type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/lib/rancher/conf type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/resolv.conf type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/hostname type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /etc/hosts type ext4 (rw,relatime,stripe=2,data=ordered)
/dev/sda1 on /var/lib/docker/overlay type ext4 (rw,relatime,stripe=2,data=ordered)