View Issue Details

IDProjectCategoryView StatusLast Update
0008935Kali LinuxGeneral Bugpublic2024-09-27 01:50
Reporterx1mus Assigned ToGamb1t  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0008935: Vagrant kalilinux/rolling 2024.3.0 broken with virtualbox
Description

When fetching the box from the vagrant cloud and trying to launch it. My VagrantFile was very simple such as:

-- mode: ruby --

vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "kalilinux/rolling"
config.vm.hostname = "vm"

config.vm.provider "virtualbox" do |vb|
    vb.name = "test"
    vb.gui = true
    vb.memory = "4096"
    vb.cpus = 4
end

end

We encounter an error:
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 = &quot;workstation&quot;

Looking at the VagrantFile for that box in 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

Activities

Gamb1t

Gamb1t

2024-09-26 15:25

manager   ~0019829

Can you share a pastebin or similar of the file? The formatting got messed up here.

x1mus

x1mus

2024-09-26 15:31

reporter   ~0019830

Here's a pastebin with every file included in the issue: https://pastebin.com/LtAgrAW8

Gamb1t

Gamb1t

2024-09-27 01:50

manager   ~0019834

Should be resolved now. I am not really sure how/where/why that line got into the vagrant builds, but I have rebuilt all the images and it doesn't seem to be there now. Thanks for the pastebins.

Issue History

Date Modified Username Field Change
2024-09-26 15:00 x1mus New Issue
2024-09-26 15:22 Gamb1t Assigned To => Gamb1t
2024-09-26 15:22 Gamb1t Status new => assigned
2024-09-26 15:25 Gamb1t Note Added: 0019829
2024-09-26 15:31 x1mus Note Added: 0019830
2024-09-27 01:50 Gamb1t Note Added: 0019834
2024-09-27 01:50 Gamb1t Status assigned => closed
2024-09-27 01:50 Gamb1t Resolution open => fixed