Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
ponsuke0531 / file0.txt
Created July 30, 2017 00:10
VBoxLinuxAdditions.run を実行して Could not find the X.Org or XFree86 Window System, skipping. になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/1f6aa0d4be1dd35c82a5
$ sudo sh mnt/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.26 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.22 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Could not find the X.Org or XFree86 Window System, skipping.
@ponsuke0531
ponsuke0531 / file0.txt
Created July 23, 2017 14:05
VirtualBoxにあるCentOS7で[Insert Guest Additions CD image...]を押下したら Unable to insert the virtual optical disk となった時の確認方法 ref: http://qiita.com/ponsuke0531/items/7f4c45947366faaaf6a5
Unable to insert the virtual optical disk /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the machine CentOS7.
Could not mount the media/drive '/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).
@ponsuke0531
ponsuke0531 / file0.txt
Created July 23, 2017 09:17
VBoxLinuxAdditions.run を実行して Unit vboxadd.service not loaded. になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/886d4295a9088de25145
$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
You appear to have a version of the VirtualBox Guest Additions
on your system which was installed from a different source or using a
different type of installer. If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version. If this is simply an older or a damaged
@ponsuke0531
ponsuke0531 / file0.txt
Last active July 23, 2017 09:13
VBoxLinuxAdditions.run を実行して This program must be run with administrator privileges. になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/1d44aae6452699e7fb79
$ 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
@ponsuke0531
ponsuke0531 / file0.txt
Created July 23, 2017 09:07
VBoxLinuxAdditions.run を実行して ./install.sh: 行 365: bzip2: コマンドが見つかりません になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/4d19644de63cd81444a0
$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Copying additional installer modules ...
./install.sh: 行 365: bzip2: コマンドが見つかりません
tar: これは tar アーカイブではないようです
tar: 前のエラーにより失敗ステータスで終了します
./install.sh: 行 378: bzip2: コマンドが見つかりません
tar: これは tar アーカイブではないようです
@ponsuke0531
ponsuke0531 / file0.txt
Last active July 23, 2017 08:07
VBoxLinuxAdditions.run を実行して gcc: コマンドが見つかりませんでした になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/6c530591b5b9ffe04f88
$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.22 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
@ponsuke0531
ponsuke0531 / file0.txt
Created July 23, 2017 07:54
VBoxLinuxAdditions.run を実行して unable to find the sources of your current Linux kernel になった時の対応方法 ref: http://qiita.com/ponsuke0531/items/795102fa6d65a51e32ba
$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.22 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
@ponsuke0531
ponsuke0531 / file0.txt
Created July 17, 2017 14:28
VirtualBoxのCentOS7で yum install したら Could not retrieve mirrorlist となった時の対応方法 ref: http://qiita.com/ponsuke0531/items/e036dfa4dd1e69086e13
$ sudo yum install bzip2
[sudo] password for mana:
読み込んだプラグイン:fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 不明なエラー"
One of the configured repositories failed (不明),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
@ponsuke0531
ponsuke0531 / file0.txt
Created July 17, 2017 11:25
VirtualBoxのCentOS7(CUI)でブリッジ接続でインターネットに繋がらない時の対応 ref: http://qiita.com/ponsuke0531/items/7e69155e1a2258d444c9
$ ls /etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network-scripts/ifcfg-enp0s3 /etc/sysconfig/network-scripts/ifcfg-lo
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
------▼設定ファイルの中身▼-----------------------
BOOTPROTO=none
DEVICE=enp0s3
DNS=8.8.8.8 <<<<<<<<<<<<<< 追記
GATEWAY=192.168.0.1 <<<<<<< 追記
IPADDR=192.168.0.6
NAME=enp0s3
@ponsuke0531
ponsuke0531 / file0.txt
Created July 15, 2017 09:37
Macで自分のゲートウェイを確認する方法 ref: http://qiita.com/ponsuke0531/items/3a559ffc08aed8b19281
$ route <-------------- 使えない
usage: route [-dnqtv] command [[modifiers] args]
$ route -n <-------------- 使えない
usage: route [-dnqtv] command [[modifiers] args]
$ route -n get 0.0.0.0
route to: default
destination: default
mask: default
gateway: 192.168.0.1
<省略>