Stop VM before deleting it
BOARD: Supermicro X10SL7-F; BIOS v3.0; LSI 2308 f/w v 20.00.04
CPU: Pentium G3260
RAM: Crucial 16GB Kit (2x 8Gb) PC3-12800 ECC UDIMM [Model: CT102472BD160B]
HDD: vdev1: 2 x WD Red 1.0Tb [Mirror]
vdev2: 8 x WD Red 3.0Tb [RaidZ2]
PSU: Corsair 550W [Model: RM550x]
CASE: Fractal Design R4
FANS: 4 x Noctua NF-A14 PWM 140mm
2 x Fractal Define R3
Boot: 2 x Corsair 16Gb USB [Mirror]
If a User deletes a VM whilst it is running and tries to recreate the VM with the same name, the NIC and VM devices are either not automatically added or are not shown in the Devices list. Attempts to add additional devices are either not successful or not shown in the device list. However, if one deletes the VM again, the warning message would suggest that the devices have been created but are not shown in the device list.To recreate:
- Create a VM [assume called "Trial"];
- Start the VM;
- Delete the VM without Stopping;
- Attempt to create another VM with the same name [in this case "Trial"]
- Review existing Devices and attempt to add additional Devices.
I have felt the need to delete a few running VM's as the message from Linux "... Press Enter to Continue:" would not accept a Enter key and did not appear to be able to continue loading the OS.
fix(middlewared/vm): We need to stop the guest vm prior to delete it.