如何将用户添加到vboxusers

所以我想在Windows XP中使用我的flashdrive,我目前在Virtualbox中运行,但是当我打开设置以启用usb时,我收到一个错误:

Failed to access the USB subsystem. VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to the 'vboxusers' group. Please see the user manual for a more detailed explanation Result Code: NS_ERROR_FAILURE (0x00004005) Component: Host Interface: IHost {30678943-32df-4830-b413-931b25ac86a0} Callee: IMachine {22781af3-1c96-4126-9edf-67a020e0e858} 

有谁知道如何解决这一问题!? 请帮忙! :S

在主机中,运行以下命令:

 sudo usermod -a -G vboxusers $USER 

现在执行注销(在将当前用户添加到组之后始终需要)。

登录后,使用此命令检查您是否在vboxusers组中,确保vboxusers位于显示的列表中:

 groups $USER 

这对我有用,我的问题用VirtualBox解决了

 sudo usermod -a -G vboxsf your_user_name 
  1. 使用usermod命令按照其他答案的建议添加用户。
  2. 运行命令id 。 您应该在列表中看到vboxusers
  3. 如果您没有看到,可以重新启动计算机并再次尝试id

当您因运行id而列出vboxusers时,您最好将USB与虚拟盒一起使用。

  • id这将给你uid = 1000([用户名])gid = 1000([用户名])groups = 1000([用户名]),10(轮),18(拨出),497(plugdev)如果缺少vboxusers然后加
  • usermod -a -G vboxusers [用户名]

这应该解决