Virtual 4.2.0 版本後適用,測試環境是 CentOS 6.4:
- Edit virtualbox config
# vi /etc/default/virtualbox
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg
- Edit auto start config
# vi /etc/vbox/autostart.cfg
default_policy = allow
- Set auto start DB path
# VBoxManage setproperty autostartdbpath /etc/vbox
- Create a userid.start file in /etc/vbox directory
# VBoxManage modifyvm --autostart-enabled on
- Restart the vboxautostart-service
# /etc/init.d/vboxautostart-service stop
# /etc/init.d/vboxautostart-service start
- Reboot PC for test
沒有留言:
張貼留言