2015-03-25 59 views
-1

我對vagrant和virtualbox有問題(virtualbox-qt 4.3.10-dfsg-1ubuntu2)。當我在做的命令:vagrant up,我得到這個消息:VirtualBox不想打開虛擬機的會話

Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Checking if box 'ubuntu/trusty32' 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: Forwarding ports... 
    default: 8080 => 6389 (adapter 1) 
    default: 22 => 2222 (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. 

當我在啓動時運行的虛擬機,我得到這個錯誤:

Failed to open a session for the virtual machine booklock_server_default_1427275442366_68003. 

VT-x is not available. (VERR_VMX_NO_VMX). 

Result code (RC): NS_ERROR_FAILURE (0x80004005) 
Component: Console 
Interface: IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6} 
+1

這似乎不是一個編程問題。 – 2015-03-25 10:18:02

回答

0

VirtualBox是試圖利用硬件虛擬化。檢查您的硬件是否支持vt-x,然後確保它在BIOS中啓用。如果您沒有硬件虛擬化或無法在您的計算機上啓用它,您將不幸無法在VirtualBox中運行64位來賓操作系統,請參閱:https://www.virtualbox.org/manual/ch03.html#intro-64bitguests

+0

謝謝你的回覆。我使用了這個命令:egrep -c'(vmx | svm)'/ proc/cpuinfo,我得到了0.這意味着我的機器不支持虛擬化,那麼呢? – mark 2015-03-25 11:29:15

+0

沒有硬件虛擬化,您只能使用帶有一個CPU的32位來賓操作系統運行虛擬機,請參閱https://www.virtualbox.org/ticket/11659 – Jaco 2015-03-25 11:37:49

+0

在Virtualbox中,我已將Ubuntu 32位 – mark 2015-03-25 11:43:21