LoginSignup
1
3

More than 3 years have passed since last update.

VirtualBoxでクリップボードの共有ができない

Posted at

現象

2020/04/02現在、以下の構成でクリップボード共有ができなかった

構成 OS バージョン
VirtualBox - 6.1.4.r136177
Host OS Windows 10
Guest OS Ubuntu 18.0.4.4LTS
  • Guest Additionインストール済
  • 対象のvmで[一般] -> [高度] の [クリップボードの共有][ドラッグ & ドロップ]が "双方向"

ドラッグ & ドロップや画面のリサイズは機能するが、クリップボード共有のみ機能しない

原因

最新版のGuest Addition(6.1.4)で正常に動作していない1

clipboardのプロセスがない

pldb@pldb-vm:~$ ps aux | grep '/usr/bin/VBoxClient'
pldb     1505  0.0  0.0  60760   380 ?        S    08:55   0:00 /usr/bin/VBoxClient --seamless
pldb     1506  0.0  0.0  60760   380 ?        S    08:55   0:00 /usr/bin/VBoxClient --display
pldb     1507  0.0  0.0  60892  2908 ?        S    08:55   0:00 /usr/bin/VBoxClient --display
pldb     1509  0.0  0.0 192996  2928 ?        Sl   08:55   0:00 /usr/bin/VBoxClient --seamless
pldb     1519  0.0  0.0  60760   376 ?        S    08:55   0:00 /usr/bin/VBoxClient --draganddrop
pldb     1521  0.2  0.0 193512  2884 ?        Sl   08:55   0:17 /usr/bin/VBoxClient --draganddrop
pldb     3104  0.0  0.0  22556  1028 pts/0    S+   11:13   0:00 grep --color=auto /usr/bin/VBoxClient
pldb@pldb-vm:~$ ps aux | grep '/usr/bin/VBoxClient --clipboard'
pldb     5362  0.0  0.0  22556  1028 pts/0    S+   11:28   0:00 grep --color=auto /usr/bin/VBoxClient --clipboard

以下のように起動させてもコピペはできない

pldb@pldb-vm:~$ /usr/bin/VBoxClient --clipboard

pldb@pldb-vm:~$ ps aux | grep '/usr/bin/VBoxClient --clipboard'
pldb     5659  0.0  0.0  60760   380 ?        S    11:33   0:00 /usr/bin/VBoxClient --clipboard
pldb     5660  0.0  0.0  60760   380 ?        S    11:33   0:00 /usr/bin/VBoxClient --clipboard
pldb     5663  0.0  0.0  22556  1036 pts/0    S+   11:33   0:00 grep --color=auto /usr/bin/VBoxClient --clipboard

解決

1つ前のバージョン(6.1.2)に落とすことで暫定的に回避できる

http://download.virtualbox.org/virtualbox/6.1.2/
VBoxGuestAdditions_6.1.2.iso

ubuntuをインストールした時と同様に、isoファイルをダウンロードして光学ドライブに入れれば良い
表示されたデスクトップ上のCDアイコンを開き、[ソフトウェアの実行]すればインストールできる

残念ながら次バージョンが出るまではこのような対応になってしまう

1
3
1

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
3