Cron 无法启动 VirtualBox

Cron 无法启动 VirtualBox

时髦大猩猩

回显 $DISPLAY
:0

我想从 cron 启动 virtualbox 并且 ROOT 的 crontab 条目是:

mm hh * * * 导出 DISPLAY=:0; /usr/bin/virtualbox

我收到了这个错误:

Qt WARNING: could not connect to display 
Qt FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the
application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

什么地方错了?我应该改变什么?

从 cli 启动工作正常 谢谢!

相关内容