記一次 vagrant up 報(bào)錯(cuò)解決

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> 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) => 2200 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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
'poweroff' 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.

vargant up啟動(dòng)的時(shí)候遇到上述報(bào)錯(cuò),無法啟動(dòng)虛擬機(jī)筒捺。

報(bào)錯(cuò)了咋辦呢司浪,按照提示去解決唄……

Valid states are 'starting, running'. The machine is in the 'poweroff' state.

If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine微饥。

The primary issue for this error is that the provider you're using is not properly configured. This

VirtualBox是Vagrant默認(rèn)的Provider遂庄,提示信息是讓打開Vagrant的GUI排查看看,為啥虛擬機(jī)一直處于‘關(guān)機(jī)狀態(tài)’塔拳。原因八九成就是VirtualBox設(shè)置不正確鼠证。

那就打開VirtualBox唄,找到對(duì)應(yīng)的虛擬機(jī)靠抑,在GUI界面上點(diǎn)啟動(dòng)看看量九。

image.png

點(diǎn)啟動(dòng),看到上述警告颂碧,出了個(gè)警告娩鹉,說沒有找到USB 2.0控制器,以及2個(gè)解決問題的方法(據(jù)說USB 2.0組件不開源稚伍,所以必須從完全開源的VirtualBox主體中分離):

  1. 安裝‘Oracle VM VirtualBox Extension Pack’
  2. 在虛擬機(jī)設(shè)置中禁用USB 2.0 (只能用USB 1.1)

這就好辦了,這里我使用的是第二種方法戚宦。找到

image.png

再回到終端个曙,執(zhí)行 vagrant up,發(fā)現(xiàn)ok了受楼。

總結(jié):很多時(shí)候垦搬,遇到問題不必馬上借助搜索引擎,照著報(bào)錯(cuò)信息提示試試艳汽,說不定很簡單就解決了猴贰。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市河狐,隨后出現(xiàn)的幾起案子米绕,更是在濱河造成了極大的恐慌瑟捣,老刑警劉巖,帶你破解...
    沈念sama閱讀 218,386評(píng)論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件栅干,死亡現(xiàn)場離奇詭異迈套,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)碱鳞,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,142評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門桑李,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人窿给,你說我怎么就攤上這事贵白。” “怎么了崩泡?”我有些...
    開封第一講書人閱讀 164,704評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵禁荒,是天一觀的道長。 經(jīng)常有香客問我允华,道長圈浇,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,702評(píng)論 1 294
  • 正文 為了忘掉前任靴寂,我火速辦了婚禮磷蜀,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘百炬。我一直安慰自己褐隆,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,716評(píng)論 6 392
  • 文/花漫 我一把揭開白布剖踊。 她就那樣靜靜地躺著庶弃,像睡著了一般。 火紅的嫁衣襯著肌膚如雪德澈。 梳的紋絲不亂的頭發(fā)上歇攻,一...
    開封第一講書人閱讀 51,573評(píng)論 1 305
  • 那天,我揣著相機(jī)與錄音梆造,去河邊找鬼缴守。 笑死,一個(gè)胖子當(dāng)著我的面吹牛镇辉,可吹牛的內(nèi)容都是我干的屡穗。 我是一名探鬼主播,決...
    沈念sama閱讀 40,314評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼忽肛,長吁一口氣:“原來是場噩夢啊……” “哼村砂!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起屹逛,我...
    開封第一講書人閱讀 39,230評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤础废,失蹤者是張志新(化名)和其女友劉穎汛骂,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體色迂,經(jīng)...
    沈念sama閱讀 45,680評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡香缺,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,873評(píng)論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了歇僧。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片图张。...
    茶點(diǎn)故事閱讀 39,991評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖诈悍,靈堂內(nèi)的尸體忽然破棺而出祸轮,到底是詐尸還是另有隱情,我是刑警寧澤侥钳,帶...
    沈念sama閱讀 35,706評(píng)論 5 346
  • 正文 年R本政府宣布适袜,位于F島的核電站,受9級(jí)特大地震影響舷夺,放射性物質(zhì)發(fā)生泄漏苦酱。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,329評(píng)論 3 330
  • 文/蒙蒙 一给猾、第九天 我趴在偏房一處隱蔽的房頂上張望疫萤。 院中可真熱鬧,春花似錦敢伸、人聲如沸扯饶。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,910評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽尾序。三九已至,卻和暖如春躯砰,著一層夾襖步出監(jiān)牢的瞬間每币,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,038評(píng)論 1 270
  • 我被黑心中介騙來泰國打工琢歇, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留脯爪,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,158評(píng)論 3 370
  • 正文 我出身青樓矿微,卻偏偏與公主長得像,于是被迫代替她去往敵國和親尚揣。 傳聞我的和親對(duì)象是個(gè)殘疾皇子涌矢,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,941評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容