Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################################################################################################
- # MY FILE
- ####################################################################################################################################
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- Vagrant.configure("2") do |config|
- config.vm.box = "kalilinux/rolling"
- config.vm.hostname = "myvm"
- config.vm.provider "virtualbox" do |vb|
- vb.name = "test"
- vb.gui = true
- vb.memory = "4096"
- vb.cpus = 4
- end
- end
- ####################################################################################################################################
- # THE ERROR
- ####################################################################################################################################
- =begin
- Vagrant failed to initialize at a very early stage:
- There was an error loading a Vagrantfile. The file being loaded
- and the error message are shown below. This is usually caused by
- a syntax error.
- Path: <provider config: vmware_desktop>
- Line number: 21
- Message: NameError: undefined local variable or method `v' for main:Object
- v.force_vmware_license = "workstation"
- =end
- ####################################################################################################################################
- # THE VAGRANT FILE FROM 'C:\User\<user>.vagrant.d\boxes\kalilinux-VAGRANTSLASH-rolling\2024.3.0\amd64\virtualbox'
- ####################################################################################################################################
- # The contents below were provided by the Packer Vagrant post-processor
- Vagrant.configure("2") do |config|
- config.vm.base_mac = "0800275B569B"
- end
- # The contents below (if any) are custom contents provided by the
- # Packer template during image build.
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- Vagrant.configure("2") do |config|
- config.vm.provider :virtualbox do |vb, override|
- vb.gui = true
- vb.customize ["modifyvm", :id, "--vram", "128"]
- vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
- end
- config.vm.provider :vmware_desktop do |vmware|
- v.force_vmware_license = "workstation" # SHOULD BE: vmware.force_vmware_license = "workstation"
- vmware.gui = true
- vmware.vmx["ide0:0.clientdevice"] = "FALSE"
- vmware.vmx["ide0:0.devicetype"] = "cdrom-raw"
- vmware.vmx["ide0:0.filename"] = "auto detect"
- end
- config.vm.provider :libvirt do |libvirt|
- libvirt.disk_bus = "virtio"
- libvirt.driver = "kvm"
- libvirt.video_vram = 256
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement