分页: 1 / 2

vbox开机自启谁会?

发表于 : 2014-09-14 16:15
一阶初学者
照网上的教程来弄最后一部出问题了
地址http://www.tuicool.com/articles/IFBrmy


hcng@hcng-A780VM-M2:/etc$ VBoxManage modifyvm winxp --autostart-enabled on
VBoxManage: error: Adding machine 'winxp' to the autostart database failed with VERR_ACCESS_DENIED
VBoxManage: error: Details: code NS_ERROR_UNEXPECTED (0x8000ffff), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "COMSETTER(AutostartEnabled)(ValueUnion.f)" at line 2616 of file VBoxManageModifyVM.cpp

Re: vbox开机自启谁会?

发表于 : 2014-09-14 17:50
astolia
你找的那个教程最后不都写了么?
如果最后一步出现以下类似的错误,那么需要用这个命令groups zhangnq确认zhangnq用户已经添加到vboxusers组中,而且zhangnq对/etc/vbox有写权限。

VBoxManage: error: Adding machine ‘win2003’ to the autostart database failed with VERR_ACCESS_DENIED
你的hcng用户没写权限

Re: vbox开机自启谁会?

发表于 : 2014-09-14 18:12
一阶初学者
第二步: 设置vbox目录的权限,添加zhangnq用户到vboxusers用户组

sudo chgrp vboxusers /etc/vbox

sudo chmod 1775 /etc/vbox

sudo adduser zhangnq vboxusers


我把1775改成777就可以了,不过我重启之后什么都没有启动怎么回事??

Re: vbox开机自启谁会?

发表于 : 2014-09-14 18:22
一阶初学者
重启后打开虚拟机就这样

Re: vbox开机自启谁会?

发表于 : 2014-09-14 20:03
poloshiao
VBoxManage modifyvm winxp --autostart-enabled on
還沒執行這個指令以前
虛擬機 winxp
可以手動啟動嗎

Re: vbox开机自启谁会?

发表于 : 2014-09-14 20:25
一阶初学者
poloshiao 写了:
VBoxManage modifyvm winxp --autostart-enabled on
還沒執行這個指令以前
虛擬機 winxp
可以手動啟動嗎
可以的,我执行了那个指令电脑重启后没有任何反应,打开虚拟机运行winxp的话就会出现那个警告,但不管它的话还是能够手动启动的

Re: vbox开机自启谁会?

发表于 : 2014-09-14 20:26
一阶初学者
poloshiao 写了:
VBoxManage modifyvm winxp --autostart-enabled on
還沒執行這個指令以前
虛擬機 winxp
可以手動啟動嗎
可以的,我执行了那个指令电脑重启后没有任何反应,打开虚拟机运行winxp的话就会出现那个警告,但不管它的话还是能够手动启动的

Re: vbox开机自启谁会?

发表于 : 2014-09-14 20:44
poloshiao
下載 virtualbox 使用說明書
以下是 4.3.14
P194
9.23.1 Linux: starting the autostart service via init
詳讀這一章節

例如
我把1775改成777就可以了
使用說明書說
the directory should have the sticky bit set.
表示你改成 777 可能是有問題的

Re: vbox开机自启谁会?

发表于 : 2014-09-15 18:06
一阶初学者
poloshiao 写了:下載 virtualbox 使用說明書
以下是 4.3.14
P194
9.23.1 Linux: starting the autostart service via init
詳讀這一章節

例如
我把1775改成777就可以了
使用說明書說
the directory should have the sticky bit set.
表示你改成 777 可能是有問題的
说明书百度没找到
777有问题那要怎么改呢?

Re: vbox开机自启谁会?

发表于 : 2014-09-15 18:44
stroller2008
这提示的意思,应该是你有分区未挂载啊,你虚拟机是不是不在家目录下?在别的分区?

Re: vbox开机自启谁会?

发表于 : 2014-09-15 20:37
poloshiao
说明书百度没找到
1. 最新版本 4.3.16 使用說明書
http://download.virtualbox.org/virtualb ... Manual.pdf
2. 其它版本 使用說明書
https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

Re: vbox开机自启谁会?

发表于 : 2014-09-15 20:44
photor
:em09

Re: vbox开机自启谁会?

发表于 : 2014-09-15 20:45
poloshiao
777有问题那要怎么改呢?
http://askubuntu.com/questions/432699/w ... mp-have-it
Numerical/octal way (1, sticky bit bit as value 1 in the first position)
1xxx
drwxrwxrwt

Re: vbox开机自启谁会?

发表于 : 2014-09-15 22:01
一阶初学者
stroller2008 写了:这提示的意思,应该是你有分区未挂载啊,你虚拟机是不是不在家目录下?在别的分区?
没有,都是在home下的

Re: vbox开机自启谁会?

发表于 : 2014-09-15 22:05
一阶初学者
poloshiao 写了:
777有问题那要怎么改呢?
http://askubuntu.com/questions/432699/w ... mp-have-it
Numerical/octal way (1, sticky bit bit as value 1 in the first position)
1xxx
drwxrwxrwt
改成1777后问题依旧,我再看看说明书