added a hostname to the vm
This commit is contained in:
parent
748ce60773
commit
5545db5891
@ -26,6 +26,7 @@ Vagrant.configure("2") do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.vm.box = "debian/bullseye64"
|
config.vm.box = "debian/bullseye64"
|
||||||
|
config.vm.hostname = 'kaz-vm'
|
||||||
config.disksize.size = '32GB'
|
config.disksize.size = '32GB'
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
@ -66,7 +67,7 @@ Vagrant.configure("2") do |config|
|
|||||||
# # Customize the amount of memory on the VM:
|
# # Customize the amount of memory on the VM:
|
||||||
vb.memory = "4096"
|
vb.memory = "4096"
|
||||||
vb.cpus="2"
|
vb.cpus="2"
|
||||||
vb.name = "kaz-dev-amd64"
|
vb.name = "kaz-vm"
|
||||||
vb.customize ["modifyvm", :id, "--vram", "64", "--clipboard-mode", "bidirectional", '--graphicscontroller', 'vmsvga', '--natnet1', '192.168.64.0/24']
|
vb.customize ["modifyvm", :id, "--vram", "64", "--clipboard-mode", "bidirectional", '--graphicscontroller', 'vmsvga', '--natnet1', '192.168.64.0/24']
|
||||||
vb.gui = true
|
vb.gui = true
|
||||||
|
|
||||||
@ -85,7 +86,7 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
#permet d'avoir un répertoire partagé entre la VM et le host
|
#permet d'avoir un répertoire partagé entre la VM et le host
|
||||||
config.vm.synced_folder "/tmp/", "/tmp_host"
|
config.vm.synced_folder "/tmp/", "/tmp_host"
|
||||||
|
|
||||||
config.vm.provision "shell" do |s|
|
config.vm.provision "shell" do |s|
|
||||||
s.inline = "/vagrant/files/provision.sh"
|
s.inline = "/vagrant/files/provision.sh"
|
||||||
s.env = {"KAZGUARD" => "true", "HOSTLANG" => ENV['LANG'], "NOKAZ" => ENV['NOKAZ'], "KAZBRANCH" => ENV['KAZBRANCH']}
|
s.env = {"KAZGUARD" => "true", "HOSTLANG" => ENV['LANG'], "NOKAZ" => ENV['NOKAZ'], "KAZBRANCH" => ENV['KAZBRANCH']}
|
||||||
|
Loading…
Reference in New Issue
Block a user