Skip to content

Unable to enableSharedFolders due to VMware Tools  #91

@NoraGithub

Description

@NoraGithub

Operating System Version: macOS Ventura 13.2.1
Provider (VirtualBox/VMWare): VMware Fusion 13.0.1
Vagrant Version: 2.3.4
Packer Version: 1.8.6

Description of the issue:

i built and managed the box by this way

$ git clone https://github.com/StefanScherer/packer-windows
$ cd packer-windows

$ packer build --only=vmware-iso windows_2022_docker.json
$ vagrant box add windows_2022_docker windows_2022_docker_vmware.box

and after that , i tried to

$ git clone https://github.com/StefanScherer/windows-docker-machine
$ cd windows-docker-machine
$ vagrant up --provider vmware_desktop 2022

then i got the error.
i am in china, so i changed the download iso and modify the checksum for convenience. (moreover plus the product key)

+    "iso_checksum": "sha256:A48B08096D08C77FD113F06C7AC11F82A630CC023AAD7A6099B162EB5972EDDD",
+    "iso_url": "https://106-110-192-244.d.cjjd20.com:30443/123-53/8b331eea/1646843-0/8b331eea6e0b68344312d90d23902035?v=2&t=1676595737&s=4ae9d43ff6fb5dfdf259c9899856509b&filename=zh-cn_windows_server_2022_updated_jan_2023_x64_dvd_c9388f5b.iso&d=61098ede",

the output was like :

Bringing machine '2022' up with 'vmware_desktop' provider...
==> 2022: Verifying vmnet devices are healthy...
==> 2022: Preparing network adapters...
WARNING: The VMX file for this box contains a setting that is automatically overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING:
WARNING:   ethernet0.pcislotnumber = "32"
WARNING:
WARNING: If networking fails to properly configure, it may require this VMX setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING:
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmware_desktop do |vmware|
WARNING:       vmware.vmx["ethernet0.pcislotnumber"] = "32"
WARNING:     end
WARNING:   end
WARNING:
WARNING: For more information: https://www.vagrantup.com/docs/vmware/boxes.html#vmx-allowlisting
==> 2022: Starting the VMware VM...
==> 2022: Waiting for the VM to receive an address...
==> 2022: Forwarding ports...
    2022: -- 3389 => 3389
    2022: -- 5985 => 55985
    2022: -- 5986 => 55986
    2022: -- 22 => 2222
==> 2022: Waiting for machine to boot. This may take a few minutes...
    2022: WinRM address: 127.0.0.1:55985
    2022: WinRM username: vagrant
    2022: WinRM execution_time_limit: PT2H
    2022: WinRM transport: negotiate
==> 2022: Machine booted and ready!
==> 2022: Configuring network adapters within the VM...
==> 2022: Configuring secondary network adapters through VMware
==> 2022: on Windows is not yet supported. You will need to manually
==> 2022: configure the network adapter.
==> 2022: Enabling and configuring shared folders...
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["enableSharedFolders", "/Volumes/code/vm/windows-docker-machine/.vagrant/machines/2022/vmware_desktop/596cb405-4c8a-4970-8565-07a3c09562a8/WindowsServer2022Docker.vmx", {:notify=>[:stdout, :stderr]}]

Stdout: Error: The VMware Tools are not running in the virtual machine: /Volumes/code/vm/windows-docker-machine/.vagrant/machines/2022/vmware_desktop/596cb405-4c8a-4970-8565-07a3c09562a8/WindowsServer2022Docker.vmx

Stderr:

i was so confused that i found you had already install vmware tools in the virtual image, but it really failed, would you please help.

maybe it's like this issue clong/DetectionLab#289

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions