Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef issue with mac m1 with Parallells #571

Open
Abhishek-F-Secure opened this issue Sep 6, 2022 · 0 comments
Open

Chef issue with mac m1 with Parallells #571

Abhishek-F-Secure opened this issue Sep 6, 2022 · 0 comments

Comments

@Abhishek-F-Secure
Copy link

Hi
I am trying to setup Parallells centos-9-aarch64 Vagrant with chef on my mac M1.
While running my commands i am getting below error

Metadata URL: https://omnitruck.chef.io/stable/chef-workstation/metadata?v=&p=el&pv=9&m=aarch64
\nDEBUG OUTPUT FOLLOWS:\n\nSTDERR from curl:\n\nHTTP/2 404
content-type: text/html;charset=utf-8
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
date: Tue, 06 Sep 2022 16:18:24 GMT
age: 1308
x-served-by: cache-bur-kbur8200071-BUR, cache-dub4350-DUB
x-cache: MISS, HIT
x-cache-hits: 0, 1
x-timer: S1662481105.954779,VS0,VE1
content-length: 0
\n\nSTDERR from perl:\n\nCan't locate LWP/Simple.pm in @inc (you may need to install the LWP::Simple module) (@inc contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.\n\nSTDERR from python:\n\nTraceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'urllib2'\n

my file has something like this
Vagrant.configure("2") do |config|
config.vm.box = "jdputsch/centos-9-aarch64"
end

Chef-recipes

  config.berkshelf.enabled = true
  config.berkshelf.berksfile_path = "#{opts[:cookbookpath]}/#{opts[:cookbook]}/Berksfile"
  #config.omnibus.chef_version = :latest
 
  config.vm.provision "chef_solo" do |chef|
    chef.cookbooks_path = "#{opts[:cookbookpath]}"
    chef.product = "chef-workstation"
    chef.add_recipe "#{opts[:cookbook]}::author"
    chef.add_recipe "#{opts[:cookbook]}::publish"
    chef.add_recipe "#{opts[:dispatchercookbook]}::dispatcher"
    #chef.install = false
    #chef.channel =:current
    chef.version = :latest

OS:- MAC OS 12
Apple Silicon M1
Vagrant 2.2.18
Parallels Desktop 18 for mac

Let me know if more information is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant