Silvan Burch
Explorer
- Joined
- May 1, 2016
- Messages
- 65
Hey guys
I'm tinkering around with VMs, trying to setup Ubuntu / Docker together. Actually no problems so far with that.
What I noticed tough after adding my Samba/CIFS shares in the VM is that the VM didnt shutdown anymore when I press the switch in the VM menu of FreeNAS. (What happens is that it cannot umount the Samba shares, tries it for about 90 seconds and then is basically shutdown, except that the VM is not turned off ... I tried a lot of the common solutions found via google but I think this really is a problem with a wrong way of sending the 'shutdown' command)
I saw that it has a problem with umount of the Samba shares so naturally my first reaction was to search for a reason there.
However, at one point I used the 'halt'-command in the console of the VM rather than the switch of the FreeNAS UI and it worked.
So my question is: does anybody know which command exactly is sent to the VM when pressing the "state" switch in the FreeNAS UI to turn off a VM and further, is there a possiblity to change the shutdown procedure to use the 'halt'-command instead?
Edit:
I just checked through the commands: shutdown, poweroff, halt, reboot from within the VM, no problem at all. Just happens when the command is issued from outside, i.e. using the FreeNAS UI buttons.
Edit 2:
I tried now using NFS and the exact same thing happens, too
Edit 3:
well, I tried whatever I found on the net:
* different mounting options in fstab for CIFS and NFS3/4
* using systemd scripts (in /lib/systemd/system and /etc/systemd/system) for CIFS and NFS3/4
* my own scripts that should independently from systemd start and stop CIFS and NFS
whatever I do, in the end while shutting down Ubuntu VM over the FreeNAS switch/stop, it is not properly unmounting or trying it again...
my wild guess is that FreeNAS kills the network adapter before it can close the connections to the mounts properly...
any suggestions are welcome, thanks! :)
Thanks and best regards
I'm tinkering around with VMs, trying to setup Ubuntu / Docker together. Actually no problems so far with that.
What I noticed tough after adding my Samba/CIFS shares in the VM is that the VM didnt shutdown anymore when I press the switch in the VM menu of FreeNAS. (What happens is that it cannot umount the Samba shares, tries it for about 90 seconds and then is basically shutdown, except that the VM is not turned off ... I tried a lot of the common solutions found via google but I think this really is a problem with a wrong way of sending the 'shutdown' command)
I saw that it has a problem with umount of the Samba shares so naturally my first reaction was to search for a reason there.
However, at one point I used the 'halt'-command in the console of the VM rather than the switch of the FreeNAS UI and it worked.
So my question is: does anybody know which command exactly is sent to the VM when pressing the "state" switch in the FreeNAS UI to turn off a VM and further, is there a possiblity to change the shutdown procedure to use the 'halt'-command instead?
Edit:
I just checked through the commands: shutdown, poweroff, halt, reboot from within the VM, no problem at all. Just happens when the command is issued from outside, i.e. using the FreeNAS UI buttons.
Edit 2:
I tried now using NFS and the exact same thing happens, too
Edit 3:
well, I tried whatever I found on the net:
* different mounting options in fstab for CIFS and NFS3/4
* using systemd scripts (in /lib/systemd/system and /etc/systemd/system) for CIFS and NFS3/4
* my own scripts that should independently from systemd start and stop CIFS and NFS
whatever I do, in the end while shutting down Ubuntu VM over the FreeNAS switch/stop, it is not properly unmounting or trying it again...
my wild guess is that FreeNAS kills the network adapter before it can close the connections to the mounts properly...
any suggestions are welcome, thanks! :)
Thanks and best regards
Last edited: