Wednesday, 15 August 2012

Ubuntu via vagrant with GUI -



Ubuntu via vagrant with GUI -

i need create virtual machine installed packages. virtual machine shoud provide gui. tried described there.

but accomplish unusual result. see plain console window in virtualbox application when opens.

my vagragantfile simple:

# -*- mode: ruby -*- # vi: set ft=ruby : # vagrantfile api/syntax version. don't touch unless know you're doing! vagrantfile_api_version = "2" vagrant.configure("2") |config| # utilize basic trusty desktop image git://github.com/zyga/vagrant-destop-images.git config.vm.box = "trusty-desktop-i386" # todo: offer premade images download config.vm.box_url = "" # tweak virtualbox configuration gui applications config.vm.provider :virtualbox |vb| vb.gui = true vb.customize ["modifyvm", :id, "--memory", 1024] vb.customize ["modifyvm", :id, "--vram", 64] vb.customize ["modifyvm", :id, "--accelerate3d", "on"] end # automatically utilize local apt-cacher-ng if available if file.exists? "/etc/apt-cacher-ng" # if apt-cacher-ng installed on machine utilize it. require 'socket' guessed_address = socket.ip_address_list.detect{|intf| !intf.ipv4_loopback?} if guessed_address config.vm.provision :shell, :inline => "echo 'acquire::http { proxy \"http://#{guessed_address.ip_address}:3142\"; };' > /etc/apt/apt.conf.d/00proxy" end end # update have latest packages, remove if don't need config.vm.provision :shell, :inline => "apt-get update" config.vm.provision :shell, :inline => "debian_frontend=noninteractive apt-get dist-upgrade --yes" # ready :-) end

can provide working illustration of using vagrant ui?

you need install desktop environment, such xfce or alike this post explains more or less how it.

vagrant

No comments:

Post a Comment