亲测真实有效。
If the last command doesn't work for you,you can go back to ubuntu display gui setting and can chose the display you have added just now.For me the option was 1904 x 1070 (16:9)
However if you are fine with this experiment and have found the desired screen resolution and to make that permanent,write the all the last 3 commands starting from xrandr --newmode command in your .xprofile file using following command and then save,exit and restart your ubuntu vm and you will get your desired resolution permanently.
(如果上一个命令不为你工作,你可以回到Ubuntu显示界面设置,可以选择你刚才添加的显示。我选择1904×1070(16:9)
但是如果你是好的这个实验和发现所需的屏幕分辨率,使永久的,写的所有的最后3个命令从xrandr --在你的指挥方式。xprofile文件使用下面的命令,然后保存,退出并重新启动你的Ubuntu的虚拟机,你会得到你想要的分辨率永久。)
$ gedit ~/.xprofile