Light in the outside to allocate the hard disk space to the virtual machine is not, but also to go into operation, here the next graphical interface tools, easy to operate.
sudo apt-get install gparted
When the error starts, say a start job is running for dev-disk .... And then to wait a minute and a half, in the inside running the program, also a word to me kill. Because there is no change to the UUID of the swap, resulting in the following image error.
This shows that the swap partition is not active, so a large code is running, and it explodes.
This solution was referenced:
Https://blog.csdn.net/qq_33528164/article/details/76725439?locationNum=9&fps=1
sudo vim/etc/fstab
There is a mismatch in the UUID of the swap, so just replace the file.
Later
Here is the use of Python running a tensorflow training program, always killed, should be out of memory, suspect that the swap space is too small caused by the problem ...
This swappiness value is 60, which means actively using 60% of the swap space when memory.
I decided to set the swap a bit larger to avoid being killed.