
前提・実現したいこと
VScodeのRemote Developmentを使って仮想環境内のコードを編集したく、
ssh接続を試みているのですがうまくいきません。
ローカル環境
・macOS Catalina バージョン10.15.6
仮想環境
・VirtualBox上のCentOS6.8
・Vagrantで構築
■.ssh/configの内容
Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/<ユーザ名>/MyVagrant/MyCentOS/.vagrant/machines/default/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL
上記は、仮想環境構築後に以下のコマンドで反映しました。
vagrant ssh-config >> ~/.ssh/config
■Vagrantfileの内容
# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| ・ ・ ・ config.vm.box = "bento/centos-6.8" ・ ・ ・ config.vm.network "private_network", ip: "192.168.33.10" ・ ・ ・ end
ちなみに、VirtualBoxやvagrantのインストール、仮想環境の構築・設定などはすべて
ドットインストールさんを参考に行いました。
ローカル開発環境の構築 [macOS版]
ドットインストールさんの手順では192.168.33.10に関する設定をしましたが、
.ssh/configの127.0.0.1の設定はしませんでした。コイツは何者なんでしょうか・・・?
発生している問題・エラーメッセージ
Could not establish connection to "default". The VS Code Server failed to start.
[21:59:10.929] Log Level: 2 [21:59:10.931] remote-ssh@0.51.0 [21:59:10.931] darwin x64 [21:59:10.932] SSH Resolver called for "ssh-remote+default", attempt 1 [21:59:10.932] SSH Resolver called for host: default [21:59:10.932] Setting up SSH remote "default" [21:59:10.935] Acquiring local install lock: /var/folders/78/7ccbsr5n18ndwyb2g0wl8vf40000gp/T/vscode-remote-ssh-default-install.lock [21:59:10.946] Looking for existing server data file at /Users/takutoyonezawa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-default-db40434f562994116e5b21c24015a2e40b2504e6-0.51.0/data.json [21:59:10.948] Using commit id "db40434f562994116e5b21c24015a2e40b2504e6" and quality "stable" for server [21:59:10.949] Install and start server if needed [21:59:10.953] Checking ssh with "ssh -V" [21:59:10.966] > OpenSSH_8.1p1, LibreSSL 2.7.3 [21:59:10.969] askpass server listening on /var/folders/78/7ccbsr5n18ndwyb2g0wl8vf40000gp/T/vscode-ssh-askpass-25f0e4f1b9dc6edcba02635317211f94662bb72d.sock [21:59:10.970] Spawning local server with {"ipcHandlePath":"/var/folders/78/7ccbsr5n18ndwyb2g0wl8vf40000gp/T/vscode-ssh-askpass-fd2128b7eee5c83f32da6ddc2269b45e04c287e9.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","54685","-o","ConnectTimeout=15","default"],"dataFilePath":"/Users/takutoyonezawa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-default-db40434f562994116e5b21c24015a2e40b2504e6-0.51.0/data.json"} [21:59:10.970] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/takutoyonezawa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/takutoyonezawa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/78/7ccbsr5n18ndwyb2g0wl8vf40000gp/T/vscode-ssh-askpass-25f0e4f1b9dc6edcba02635317211f94662bb72d.sock"} [21:59:10.972] Spawned 6015 [21:59:11.067] > local-server> Spawned ssh: 6016 [21:59:11.070] stderr> OpenSSH_8.1p1, LibreSSL 2.7.3 [21:59:11.106] stderr> debug1: Server host key: ssh-rsa SHA256:nGWUJ4ZS3c0AbkYVr9Nrny/CNRuXO+6ybztG6esiZjQ [21:59:11.106] stderr> Warning: Permanently added '[127.0.0.1]:2222' (RSA) to the list of known hosts. [21:59:11.128] stderr> Authenticated to 127.0.0.1 ([127.0.0.1]:2222). [21:59:11.498] > ready: 43aaf1f99d2f [21:59:11.499] > Linux 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 [21:59:11.500] Platform: linux [21:59:11.505] > 43aaf1f99d2f: running [21:59:11.523] > Missing GLIBCXX >= 3.4.18! > Found versions 3.4.1 > 3.4.2 > 3.4.3 > 3.4.4 > 3.4.5 > 3.4.6 > 3.4.7 > 3.4.8 > 3.4.9 > 3.4.10 > 3.4.11 > 3.4.12 [21:59:11.523] > 3.4.13 [21:59:11.527] > Missing GLIBC >= 2.17! > Found version ldd (GNU libc) 2.12 > 43aaf1f99d2f$$1$$ [21:59:11.527] > Acquiring lock on /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/vscode-remote-lock.vagrant.db40434f562994116e5b21c24015a2e40b2504e6 [21:59:11.529] > \ln /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/vscode-remote-lock.vagrant.db40434f562994116e5b21c24015a2e40b2504e6.target /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/vscode-remote-lock.vagrant.db40434f562994116e5b21c24015a2e40b2504e6 [21:59:11.531] > Found existing installation at /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6... [21:59:11.541] > HOSTNAME=localhost.localdomain > SELINUX_ROLE_REQUESTED= > PYENV_ROOT=/home/vagrant/.pyenv > SHELL=/bin/bash > HISTSIZE=1000 > SSH_CLIENT=10.0.2.2 54687 22 > SELINUX_USE_CURRENT_RANGE= > USER=vagrant > PYENV_VIRTUALENV_INIT=1 > VSCODE_AGENT_FOLDER=/home/vagrant/.vscode-server > PATH=/home/vagrant/.pyenv/plugins/pyenv-virtualenv/shims:/home/vagrant/.pyenv/shims:/home/vagrant/.pyenv/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/vagrant/bin > MAIL=/var/spool/mail/vagrant > PWD=/home/vagrant > LANG=ja_JP.UTF-8 > SELINUX_LEVEL_REQUESTED= > RBENV_SHELL=bash > HISTCONTROL=ignoredups > HOME=/home/vagrant > SHLVL=2 > PYENV_SHELL=bash > LOGNAME=vagrant > SSH_CONNECTION=10.0.2.2 54687 10.0.2.15 22 > LESSOPEN=||/usr/bin/lesspipe.sh %s > G_BROKEN_FILENAMES=1 > _=/usr/bin/printenv [21:59:11.541] > Starting server with command... /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/server.sh --host=127.0.0.1 --enable-remote-auto-shutdown --port=0 &> "/home/vagrant/.vscode-server/.db40434f562994116e5b21c24015a2e40b2504e6.log" < /dev/null [21:59:11.555] > Waiting for server log... [21:59:12.063] > Waiting for server log... [21:59:12.571] > Waiting for server log... [21:59:13.079] > Waiting for server log... [21:59:13.584] > Waiting for server log... [21:59:14.090] > Waiting for server log... [21:59:14.597] > Waiting for server log... [21:59:15.098] > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [21:59:15.106] > Server did not start successfully. Full server log at /home/vagrant/.vscode-server/.db40434f562994116e5b21c24015a2e40b2504e6.log >>> [21:59:15.107] > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) > /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/node) [21:59:15.107] > <<< End of server log > 43aaf1f99d2f##32## [21:59:15.108] Received install output: 43aaf1f99d2f##32## [21:59:15.108] Terminating local server [21:59:15.109] Resolver error: The VS Code Server failed to start [21:59:15.112] ------ [21:59:15.114] Local server exit: 15
画面ハードコピー
試したこと
同じ症状の方がいないかなど色々調べてみて、以下のサイトなど参考にしましたが、
解消しなかったり、若干症状が異なるようで、解決には至りませんでした。
https://qiita.com/hppRC/items/9a46fdb4af792a454921
https://wynn-blog.com/vscode-remotedevelopment-for-mac
https://teratail.com/questions/248941
長くなり申し訳ありません。
初めての質問投稿なので、足りない情報などあればお申し付けください。
よろしくおねがいします。


回答2件
あなたの回答
tips
プレビュー