###前提・実現したいこと
vagrant+virtualbox内に構築したcentos+php+gulpなどの環境とhtmlなどの静的ファイルを抽出したいです。
前提としてvagrant up, vagrant packageができない状態で
virtualboxもアイコンをクリックしても起動しない状態です。
windows10上に環境を構築しています。
###発生している問題・エラーメッセージ
vagrant upでは以下のように出ます。
vagrant halt → vagrant upでも同様です。
vagrant reloadも同様でした。
vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.7' is up to date... ==> default: A newer version of the box 'bento/centos-6.7' is available! You currently ==> default: have version '2.2.3'. The latest is version '2.2.7'. Run ==> default: `vagrant box update` to update. ==> 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) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'aborted' state. Please verify everything is configured properly and try again. If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox GUI is open. The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.
vagrant suspend → vagrant resumeでは以下のように出ます。
vagrant resume ==> default: Waiting for machine to boot. This may take a few minutes... The guest machine entered an invalid state while waiting for it to boot. Valid states are 'restoring, running'. The machine is in the 'aborted' state. Please verify everything is configured properly and try again. If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox GUI is open. The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.
vagrant packageでは以下のように出ます。
==> default: Clearing any previously set forwarded ports... The Vagrant virtual environment you are trying to package must be powered off.
vagrant statusでは以下のように出ています。
Current machine states: default aborted (virtualbox) The VM is in an aborted state. This means that it was abruptly stopped without properly closing the session. Run `vagrant up` to resume this virtual machine. If any problems persist, you may have to destroy and restart the virtual machine.
vagrant halt、vagrant suspendでは
何も表示されずプロンプトがでます。
###試したこと
vagrantfileと.vagrantディレクトリをmac(もう一台のPC)に移動。(こちらでもvagrant+virtualboxで環境を構築している。)
C:\Users\usa\VirtualBox VMsディレクトリもmacに移動。
その後ターミナルでvagrantfileを置いたディレクトリでvagrantupするもエラー発生。
The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue. The UID used to create the VM was: 0 Your UID is: 501
###色々検索したり調査して出てきた疑問(実行してこじれると困るので実行していないもの)
・vagrantもvirtualboxもディレクトリは残っているのでその中にデータはないのか。(最悪静的ファイルのみだけでも抽出したい)
・virtualboxのディレクトリ内にexeファイルがたくさんあるがこれのどれかで解決する方法はないものか。
・プログラムのアンインストールまたは変更でvirtualboxを右クリックすると「アンインストール」「変更」「修復」と出るがこれはどのような処理をするのか。
わかりずらい部分がありましたら修正させていただきます。
よろしくお願いいたします。
回答3件
あなたの回答
tips
プレビュー