-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The box does not start in gui mode after changing corresponding configuration in Vagrantfile #4
Comments
Which box are you having problem with? I've tested the Oracle Linux 6.5 x86_64 and it works fine. Extract from the config.vm.provider :virtualbox do |vb|
# Don't boot with headless mode
vb.gui = true
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", 2]
# vb.customize ["modifyvm", :id, "--vram", 16]
# vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end Take a close look at your BTW: VirtualBox 4.3.6 + Vagrant 1.4.1 |
Hi! Have added the lines with memory and cpu modification without success. All other configurations and the software versions are the same. What is your host os? Kind regards Torsten From: Terry Wang [mailto:notifications@github.com] Which box are you having problem with? I've tested the Oracle Linux 6.5 x86_64 and it works fine. Extract from the Vagrantfile config.vm.provider :virtualbox do |vb|
end Take a close look at your Vagrantfile and make sure this is no broken code block. Also try to halt before up instead of reload. BTW: VirtualBox 4.3.6 + Vagrant 1.4.1 — |
Host OS: Ubuntu 13.10 x86_64 and 12.04.3 x86_64 + saucy (3.11 HWE) kernel Please ignore those vbox customizations, it is NOT related to the GUI issue anyway. Just upgraded to Vagrant 1.4.2 and it works as good as before. I recommend enabling Vagrant debugging log to troubleshoot further. VAGRANT_LOG=debug vagrant up > debug.log 2>&1 Look into the INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::B
oot:0x000000027b9268>
INFO interface: info: Booting VM...
[default] Booting VM...
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "startvm", "50716c94-825b-42a0-878c-3e0a4e284048", "--type", "gui"]
|
Host OS: Windows 7:
But the started machine shows only a terminal not an OEL gui: |
Now I understand you mean by "GUI". You are actually after X Window System and Desktop Environment inside the vagrant box. NOT the VirtualBox GUI. Vagrant boxes are minimal base Linux installations without X (Desktop Environment), this is because
Anyway, you can install GNOME Desktop within the box, do the following within the box ( # Get root
sudo -i
# Install X Window System and GNOME
yum groupinstall "X Window System" Desktop Once done, execute |
The easiest way is to modify the inittab file on the linux machine. cd /etc/ Change the “id:3:initdefault:” line to “id:5:initdefault:” This will then boot Linux into X11 mode. |
Just wanted to note that the info about changing the init level above is outdated for Oracle Linux 7. $ sudo systemctl set-default graphical.target |
"On servers, we DO NOT need Desktop Environment (minimize system as a general security best practice)" |
Hi!
I have modified my Vagrantfile and uncomment following lines for booting with gui:
config.vm.provider :virtualbox do |vb|
# Don't boot with headless mode
vb.gui = true
end
But the box starts every time in headless mode?
Kind regards
Torsten Kleiber
The text was updated successfully, but these errors were encountered: