question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find a valid box with a VMX file in tar archive

See original GitHub issue

using vmware-workstation 16 debian 10(buster) kernel 4.19 mech 0.7.6

whatever box i am trying to use, i am getting same error:

tar: Pattern matching characters used in file names
tar: Use --wildcards to enable pattern matching, or --no-wildcards to suppress this warning
tar: *.vmx: Not found in archive
tar: Exiting with failure status due to previous errors
Cannot find a valid box with a VMX file in it

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
ghostcommented, Apr 6, 2021

I was able to hack it by editing this function:

def tar_cmd(*args, **kwargs):
    try:
        proc = subprocess.Popen(['tar', '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    except OSError:
        return None
    if proc.returncode:
        return None
    stdoutdata, stderrdata = map(b2s, proc.communicate())
    tar = ['tar', '--wildcards']
    if kwargs.get('wildcards') and re.search(r'\b--wildcards\b', stdoutdata):
        tar.append('--wildcards')
    if kwargs.get('fast_read') and sys.platform.startswith('darwin'):
        tar.append('--fast-read')
    tar.extend(args)
    return tar

i just added --wildcard into tar list and seems to work but it is not by a long shot the direct answer

0reactions
ColdHeatcommented, Apr 21, 2021

If you figure out an appropriate solution here a PR would be welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The VM failed to power on due to "system cannot find the file ...
A virtual machine (VM) cannot be powered on and you receive errors about missing files or disk dependency. In case of missing files,...
Read more >
Box Format - VMware Provider | Vagrant - HashiCorp Developer
When bringing up a VMware backed machine, Vagrant copies all of the contents in the box into a privately managed "vmwarevm" folder, and...
Read more >
module for manipulations of tar archives - Perldoc Browser
So it cannot compensate for case-insensitive file- systems or compare 2 paths to see if they would point to the same underlying file....
Read more >
A Newbie's Guide to ESXi and VM Log Files - Altaro
VM Log Files are essential for monitoring your virtual machine health with VMware ESXi. This guide explains where you find them and how...
Read more >
VMware - ArchWiki
allowBlacklistedDrivers = "TRUE" inside the .vmx file for the specific virtual machine as well, for 3D acceleration with intel drivers to be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found