LoginSignup
1

More than 5 years have passed since last update.

VBoxLinuxAdditions.run を実行して This program must be run with administrator privileges. になった時の対応方法

Last updated at Posted at 2017-07-23

MacのVirtualBoxに作った仮想マシンへGuest Additionsをインストールする をしていた時のしくじりです。

環境

  • ホストOS : macOS Sierra Virsion 10.12.5
  • VirtualBox : Version 5.1.22 r115126 (Qt5.6.2)
    • ゲストOS : CentOS Linux 7.3.1611(Core)
    • 接続 : ブリッジ接続
    • Yum version : 3.4.3

事象 : VBoxLinuxAdditions.run を実行したらThis program must be run with administrator privileges.と言われた

$ sh /mnt/cdrom/VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
This program must be run with administrator privileges.  Aborting

原因 : sudo を使っていないから

対応 : sudo を使う:flushed::flushed::flushed:

$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1