shutdown VM via commend

Status
Not open for further replies.

brainbuddy

Dabbler
Joined
Nov 30, 2016
Messages
33
Hallo

I have some problems with shuttingdown a VM in freenas.
When a VM crashes it's not possible to shut it down or stop the VM from the GUI.
So me question is:
Is there a qay to shut it down from a CLI commend?

And yes I have tried googling it for the last 4 days without any luck
 

blaco

Explorer
Joined
Apr 28, 2015
Messages
53
When a VM crashes it's not possible to shut it down or stop the VM from the GUI.
Maybe you should find the reason for crashing your VMs ;)
What OS do you use in the VM?
In Corral there was a bug with Windows and the E1000 Network card (and I believe that this still might be an issue), I think you should give the VIRTIO-Nic a try! (You have to install the driver for it, virtio-win-0.1.96.iso is working for me.)

I mention this, because this was the only crash I have had with bhyve VMs in Freenas and I'm using it already for 4 months 24/7.
 

Allan Wilmath

Explorer
Joined
Nov 26, 2015
Messages
99
To kill a process it is the command kill. You have to find the number for the process and that can be done with ps.

I think the command go like this

as admin 'ps -a', then use the number from that list to fill in number in this command 'kill -p number'.
 

brainbuddy

Dabbler
Joined
Nov 30, 2016
Messages
33
Maybe you should find the reason for crashing your VMs ;)
What OS do you use in the VM?
In Corral there was a bug with Windows and the E1000 Network card (and I believe that this still might be an issue), I think you should give the VIRTIO-Nic a try! (You have to install the driver for it, virtio-win-0.1.96.iso is working for me.)

I mention this, because this was the only crash I have had with bhyve VMs in Freenas and I'm using it already for 4 months 24/7.
yea I know this bug and I'm not sure why it is crashing and yes I should find it out but I don't want to restart me whole server everytime it crashes

I used command kill -9 "pid ID" to force shutdown it because the normal kill command didn't work
 
Status
Not open for further replies.
Top