So when I ran
vm template show
I recieved this msg.
Code:
/usr/local/sbin/vm: WARNING: $vm_enable is not set properly - see rc.conf(5).
/usr/local/sbin/vm: ERROR: $vm_enable is not enabled in /etc/rc.conf!
So the ENV variables for the vm isn't set up correctly. Now I'm not too sure how to set this up but then I found this
thread - the vars I've tried to export i.e.
sysrc ENVVAR=VALUE
- (this was not maintained durring reboot.)
Code:
vm_enable=”YES”
vm_dir=”zfs:/dev/zvol/volume1/ubuntuVM-storage”
vm_list=””
vm_delay=”5″
What I'm not sure of is what my vm_dir would be - I've created a zvol in my volume - its path in /dev is
/dev/zvol/volume1/ubuntuVM-storage
(just a thought could the '-' be causing some sort of parsing issue) - Would this be my vm_dir path ? I doubt it as I recieve this error.
Code:
/usr/local/sbin/vm: ERROR: unable to locate mountpoint for ZFS dataset /dev/zvol/volume1/ubuntuVM-storage
Which makes sense as it not mounted - Im not really sure what I should do here - should my zvol be mounted ? Below is my current setup within the Freenas GUI for my storage.
Is this look ok ?
Anyway to the root of the problem (as per the thread above)- tuneables I've set this to be automatically generated by freenas (maybe not the best idea but wouldn't this be considered a bug ?) I haven't tried to disable it and all the tuneable variables - I thought maybe we should try and figure out why this is occurring. Below is a pic of the tunables that are there.
Also below is my rc.conf file - from what I can tell its basically the same as the original.
Github Raw Code
example is that file above.
Code:
diff example /etc/rc.conf
43c43
< # We run savecore in middleware. The rc script
---
> # We run savecore in ix-fstab manually. The rc script
46a47,49
> # compress coredumps and keep a max of 5 around
> savecore_flags="-z -m 5"
>
75d77
< nginx_login_class="nginx"
88c90
< consul_alerts_args="--alert-addr=localhost:8542 --watch-events --watch-checks --log-level=warn"
---
> consul_alerts_args="--alert-addr=localhost:8542 --watch-events --watch-checks --log-level=info"
90d91
< consul_dir="/var/db/system/consul"
93c94
< consul_args="-server -bootstrap-expect=1 -ui -bind=127.0.0.1 -enable-script-checks=true -log-level=warn"
---
> consul_args="-server -bootstrap-expect=1 -ui"
97,99c98,101
<
< # Enable iocage jails to autoboot if enabled in the GUI
< iocage_enable="YES"
---