kb84tkhrのブログ

何を書こうか考え中です あ、あと組織とは関係ないってやつです 個人的なやつ

PPP3: Ubuntuデスクトップの構築(横道・続き6)

さてこれでやっとスタート地点
PPP3のAppendixから
VirtualBoxVMの中でVirtualBoxは動いてくれるんだろうか

何はともあれインストール
VirtualBoxはsnapになってないのかな

vagrant@vagrant:/snap/bin$ snap find virtualbox
No matching snaps for "virtualbox"

なかった
VirtualBoxのサイトでUbuntu 18.04のインストーラをダウンロードしたら
そのままインストールしてくれそうだったのでそのままGUIでインストール
Firefoxの画面にいかにもバイナリな文字の羅列が表示されたときには
だまされたかと思ったけど
GUI画面で「インストール」をクリックするだけで無事完了
virtualboxGUIが起動した
Linuxのデスクトップってこれが初めてなんだけど、こうやってGUI
インストールするのがなんか新鮮

vagrantもsnapはなかった
VagrantのページでDebianインストーラをダウンロードして
やっぱりGUIでインストール
普通に入る

vagrant@vagrant:~$ vagrant -v
Vagrant 2.2.4

でboxをダウンロードしてupしてみたんだけどどうもうまくいかない
“Waiting for machine to boot. This may take a few minutes…”のあと
タイムアウトになってしまう
ssh用のポートフォワーディングが2222だからかぶっちゃってるのかと思ったけど
変えてみてもダメだった

  config.vm.network "forwarded_port", guest: 22, host: 2223, id: "ssh"

こんなログが出ている

vagrant@vagrant:~/study/PPP3/work$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-18.04' version '201812.27.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2223 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2223
    default: SSH username: vagrant
    default: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

それ以前にやたらと動作が重くなっている
なんなのこれは