Advertisement
Guest User

Untitled

a guest
Sep 26th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.63 KB | None | 0 0
  1. ####################################################################################################################################
  2. # MY FILE
  3. ####################################################################################################################################
  4. # -*- mode: ruby -*-
  5. # vi: set ft=ruby :
  6.  
  7. Vagrant.configure("2") do |config|
  8.     config.vm.box = "kalilinux/rolling"
  9.     config.vm.hostname = "myvm"
  10.  
  11.     config.vm.provider "virtualbox" do |vb|
  12.         vb.name = "test"
  13.         vb.gui = true
  14.         vb.memory = "4096"
  15.         vb.cpus = 4
  16.     end
  17. end
  18.  
  19.  
  20. ####################################################################################################################################
  21. # THE ERROR
  22. ####################################################################################################################################
  23. =begin
  24.  
  25. Vagrant failed to initialize at a very early stage:
  26.  
  27. There was an error loading a Vagrantfile. The file being loaded
  28. and the error message are shown below. This is usually caused by
  29. a syntax error.
  30.  
  31. Path: <provider config: vmware_desktop>
  32. Line number: 21
  33. Message: NameError: undefined local variable or method `v' for main:Object
  34.     v.force_vmware_license = "workstation"
  35.  
  36. =end
  37.  
  38.  
  39. ####################################################################################################################################
  40. # THE VAGRANT FILE FROM 'C:\User\<user>.vagrant.d\boxes\kalilinux-VAGRANTSLASH-rolling\2024.3.0\amd64\virtualbox'
  41. ####################################################################################################################################
  42.  
  43. # The contents below were provided by the Packer Vagrant post-processor
  44.  
  45. Vagrant.configure("2") do |config|
  46.   config.vm.base_mac = "0800275B569B"
  47. end
  48.  
  49.  
  50. # The contents below (if any) are custom contents provided by the
  51. # Packer template during image build.
  52. # -*- mode: ruby -*-
  53. # vi: set ft=ruby :
  54.  
  55. Vagrant.configure("2") do |config|
  56.   config.vm.provider :virtualbox do |vb, override|
  57.     vb.gui = true
  58.     vb.customize ["modifyvm", :id, "--vram", "128"]
  59.     vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
  60.   end
  61.   config.vm.provider :vmware_desktop do |vmware|
  62.     v.force_vmware_license = "workstation" # SHOULD BE: vmware.force_vmware_license = "workstation"
  63.     vmware.gui = true
  64.     vmware.vmx["ide0:0.clientdevice"] = "FALSE"
  65.     vmware.vmx["ide0:0.devicetype"] = "cdrom-raw"
  66.     vmware.vmx["ide0:0.filename"] = "auto detect"
  67.   end
  68.   config.vm.provider :libvirt do |libvirt|
  69.     libvirt.disk_bus = "virtio"
  70.     libvirt.driver = "kvm"
  71.     libvirt.video_vram = 256
  72.   end
  73. end
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement