我似乎无法让我的 VM 在启动时运行。
我尝试了“启动应用程序”和 update-rc.d 没有运气。
sudo update-rc.d startvms defaults 99 10
Run Code Online (Sandbox Code Playgroud)
这为不同的运行级别创建了所有适当的符号链接,但 VM 仍未启动。
这是我的 startvms 脚本:
#!/bin/bash
### BEGIN INIT INFO
# Provides: startvms
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start my VMs at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
case "$1" in
start)
echo "Starting"
nohup VBoxHeadless --startvm "UbuntuServer" &
;;
stop)
echo "Stopping $DESC" …Run Code Online (Sandbox Code Playgroud) 我可以在统一侧边栏中创建一个指向 virtualbox 操作系统的快捷方式,而不是在桌面上。我尝试右键单击 virtualbox 并在桌面上创建快捷方式然后移动它。但是如果我这样做然后删除桌面快捷方式它会使统一快捷方式无用。
有任何想法吗?