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

hi, i get this error! cp: cannot create regular file `/etc/puppetlabs/facter/facts.d/vagrant_facts.yaml': No such file or directory #56

Open
AiPacino opened this issue Apr 27, 2018 · 0 comments

Comments

@AiPacino
Copy link

aipacineMacBook:rackspace-template aipacino$ vagrant halt && vagrant up
==> default: Attempting graceful shutdown of VM...
==> default: [vagrant-hostsupdater] Removing hosts
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection reset. Retrying...
==> default: Machine booted and ready!
[default] GuestAdditions 5.0.10 running --- OK.
==> default: Checking for guest additions in VM...
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] found entry for: 10.10.10.20 vagrant-multi1.cashmusic.org
==> default: [vagrant-hostsupdater] found entry for: 10.10.10.20 dev.vagrant-multi1.cashmusic.org
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /etc/puppetmaster => /Users/aipacino/Desktop/future/rackspace-template
default: /tmp/vagrant-puppet/modules-2644adef1c0efe2db9eb27bc121cfc69 => /Users/aipacino/Desktop/future/rackspace-template/modules
default: /tmp/vagrant-puppet/modules-04f163c1ef6304545500f07c2f483ee2 => /Users/aipacino/Desktop/future/rackspace-template/site
default: /tmp/vagrant-puppet/modules-938c40b94364f00e8e5b851bd1ab63ce => /Users/aipacino/Desktop/future/rackspace-template/dist
default: /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513 => /Users/aipacino/Desktop/future/rackspace-template/manifests
==> default: Machine already provisioned. Run vagrant provision or use the --provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.
aipacineMacBook:rackspace-template aipacino$ vagrant halt && vagrant up
==> default: VM not created. Moving on...
==> default: [vagrant-hostsupdater] Removing hosts
==> default: [vagrant-hostsupdater] No machine id, nothing removed from /etc/hosts
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos67-x86_64-20150830-puppet-3.8.2-vbox-guest-additions-5.0.2.box'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rackspace-template_default_1524838113399_56605
==> default: Pruning invalid NFS exports. Administrator privileges will be required...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (5.0.10) and guest (5.0.2) do not match.
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors

  • base: mirror.bit.edu.cn
  • epel: mirrors.tuna.tsinghua.edu.cn
  • extras: mirror.bit.edu.cn
  • updates: mirror.bit.edu.cn
    Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package binutils.x86_64 0:2.20.51.0.2-5.43.el6 will be updated
    ---> Package binutils.x86_64 0:2.20.51.0.2-5.47.el6_9.1 will be an update
    ---> Package gcc.x86_64 0:4.4.7-16.el6 will be updated
    ---> Package gcc.x86_64 0:4.4.7-18.el6_9.2 will be an update
    --> Processing Dependency: libgomp = 4.4.7-18.el6_9.2 for package: gcc-4.4.7-18.el6_9.2.x86_64
    --> Processing Dependency: cpp = 4.4.7-18.el6_9.2 for package: gcc-4.4.7-18.el6_9.2.x86_64
    --> Processing Dependency: libgcc >= 4.4.7-18.el6_9.2 for package: gcc-4.4.7-18.el6_9.2.x86_64
    ---> Package make.x86_64 1:3.81-20.el6 will be updated
    ---> Package make.x86_64 1:3.81-23.el6 will be an update
    ---> Package perl.x86_64 4:5.10.1-141.el6 will be updated
    --> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 1:perl-Pod-Simple-3.13-141.el6.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 4:perl-libs-5.10.1-141.el6.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 1:perl-Module-Pluggable-3.90-141.el6.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 3:perl-version-0.77-141.el6.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6 for package: 1:perl-Pod-Escapes-1.04-141.el6.x86_64
    ---> Package perl.x86_64 4:5.10.1-144.el6 will be an update
    --> Running transaction check
    ---> Package cpp.x86_64 0:4.4.7-16.el6 will be updated
    ---> Package cpp.x86_64 0:4.4.7-18.el6_9.2 will be an update
    ---> Package libgcc.x86_64 0:4.4.7-16.el6 will be updated
    ---> Package libgcc.x86_64 0:4.4.7-18.el6_9.2 will be an update
    ---> Package libgomp.x86_64 0:4.4.7-16.el6 will be updated
    ---> Package libgomp.x86_64 0:4.4.7-18.el6_9.2 will be an update
    ---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6 will be updated
    ---> Package perl-Module-Pluggable.x86_64 1:3.90-144.el6 will be an update
    ---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6 will be updated
    ---> Package perl-Pod-Escapes.x86_64 1:1.04-144.el6 will be an update
    ---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6 will be updated
    ---> Package perl-Pod-Simple.x86_64 1:3.13-144.el6 will be an update
    ---> Package perl-libs.x86_64 4:5.10.1-141.el6 will be updated
    ---> Package perl-libs.x86_64 4:5.10.1-144.el6 will be an update
    ---> Package perl-version.x86_64 3:0.77-141.el6 will be updated
    ---> Package perl-version.x86_64 3:0.77-144.el6 will be an update
    --> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size

Updating:
binutils x86_64 2.20.51.0.2-5.47.el6_9.1 updates 2.8 M
gcc x86_64 4.4.7-18.el6_9.2 updates 10 M
make x86_64 1:3.81-23.el6 base 389 k
perl x86_64 4:5.10.1-144.el6 base 10 M
Updating for dependencies:
cpp x86_64 4.4.7-18.el6_9.2 updates 3.7 M
libgcc x86_64 4.4.7-18.el6_9.2 updates 103 k
libgomp x86_64 4.4.7-18.el6_9.2 updates 134 k
perl-Module-Pluggable x86_64 1:3.90-144.el6 base 41 k
perl-Pod-Escapes x86_64 1:1.04-144.el6 base 33 k
perl-Pod-Simple x86_64 1:3.13-144.el6 base 213 k
perl-libs x86_64 4:5.10.1-144.el6 base 579 k
perl-version x86_64 3:0.77-144.el6 base 52 k

Transaction Summary

Upgrade 12 Package(s)

Total download size: 28 M
Downloading Packages:

Total 955 kB/s | 28 MB 00:30
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : 1:perl-Pod-Escapes-1.04-144.el6.x86_64 1/24
Updating : 3:perl-version-0.77-144.el6.x86_64 2/24
Updating : 4:perl-libs-5.10.1-144.el6.x86_64 3/24
Updating : 1:perl-Pod-Simple-3.13-144.el6.x86_64 4/24
Updating : 1:perl-Module-Pluggable-3.90-144.el6.x86_64 5/24
Updating : 4:perl-5.10.1-144.el6.x86_64 6/24
Updating : cpp-4.4.7-18.el6_9.2.x86_64 7/24
Updating : libgcc-4.4.7-18.el6_9.2.x86_64 8/24
Updating : libgomp-4.4.7-18.el6_9.2.x86_64 9/24
Updating : binutils-2.20.51.0.2-5.47.el6_9.1.x86_64 10/24
Updating : gcc-4.4.7-18.el6_9.2.x86_64 11/24
Updating : 1:make-3.81-23.el6.x86_64 12/24
Cleanup : 1:perl-Module-Pluggable-3.90-141.el6.x86_64 13/24
Cleanup : 1:perl-Pod-Escapes-1.04-141.el6.x86_64 14/24
Cleanup : 1:perl-Pod-Simple-3.13-141.el6.x86_64 15/24
Cleanup : 3:perl-version-0.77-141.el6.x86_64 16/24
Cleanup : 4:perl-libs-5.10.1-141.el6.x86_64 17/24
Cleanup : 4:perl-5.10.1-141.el6.x86_64 18/24
Cleanup : gcc-4.4.7-16.el6.x86_64 19/24
Cleanup : binutils-2.20.51.0.2-5.43.el6.x86_64 20/24
Cleanup : cpp-4.4.7-16.el6.x86_64 21/24
Cleanup : libgcc-4.4.7-16.el6.x86_64 22/24
Cleanup : libgomp-4.4.7-16.el6.x86_64 23/24
Cleanup : 1:make-3.81-20.el6.x86_64 24/24
Verifying : binutils-2.20.51.0.2-5.47.el6_9.1.x86_64 1/24
Verifying : libgomp-4.4.7-18.el6_9.2.x86_64 2/24
Verifying : 4:perl-5.10.1-144.el6.x86_64 3/24
Verifying : 3:perl-version-0.77-144.el6.x86_64 4/24
Verifying : 4:perl-libs-5.10.1-144.el6.x86_64 5/24
Verifying : 1:perl-Pod-Simple-3.13-144.el6.x86_64 6/24
Verifying : 1:perl-Pod-Escapes-1.04-144.el6.x86_64 7/24
Verifying : libgcc-4.4.7-18.el6_9.2.x86_64 8/24
Verifying : 1:make-3.81-23.el6.x86_64 9/24
Verifying : gcc-4.4.7-18.el6_9.2.x86_64 10/24
Verifying : 1:perl-Module-Pluggable-3.90-144.el6.x86_64 11/24
Verifying : cpp-4.4.7-18.el6_9.2.x86_64 12/24
Verifying : libgomp-4.4.7-16.el6.x86_64 13/24
Verifying : 3:perl-version-0.77-141.el6.x86_64 14/24
Verifying : 1:perl-Pod-Simple-3.13-141.el6.x86_64 15/24
Verifying : 1:perl-Pod-Escapes-1.04-141.el6.x86_64 16/24
Verifying : 4:perl-libs-5.10.1-141.el6.x86_64 17/24
Verifying : binutils-2.20.51.0.2-5.43.el6.x86_64 18/24
Verifying : 1:make-3.81-20.el6.x86_64 19/24
Verifying : cpp-4.4.7-16.el6.x86_64 20/24
Verifying : libgcc-4.4.7-16.el6.x86_64 21/24
Verifying : gcc-4.4.7-16.el6.x86_64 22/24
Verifying : 1:perl-Module-Pluggable-3.90-141.el6.x86_64 23/24
Verifying : 4:perl-5.10.1-141.el6.x86_64 24/24

Updated:
binutils.x86_64 0:2.20.51.0.2-5.47.el6_9.1 gcc.x86_64 0:4.4.7-18.el6_9.2
make.x86_64 1:3.81-23.el6 perl.x86_64 4:5.10.1-144.el6

Dependency Updated:
cpp.x86_64 0:4.4.7-18.el6_9.2
libgcc.x86_64 0:4.4.7-18.el6_9.2
libgomp.x86_64 0:4.4.7-18.el6_9.2
perl-Module-Pluggable.x86_64 1:3.90-144.el6
perl-Pod-Escapes.x86_64 1:1.04-144.el6
perl-Pod-Simple.x86_64 1:3.13-144.el6
perl-libs.x86_64 4:5.10.1-144.el6
perl-version.x86_64 3:0.77-144.el6

Complete!
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
Installing Virtualbox Guest Additions 5.0.10 - guest version is 5.0.2
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.10 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.2 of VirtualBox Guest Additions...
Stopping VirtualBox Additions [FAILED]
(Cannot unload module vboxguest)
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
[ OK ] VirtualBox Guest Addition service [ OK ]
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[ OK ]
Building the shared folder support module[ OK ]
Building the OpenGL support module[FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong. The module is not built but the others are.)
Doing non-kernel setup of the Guest Additions[ OK ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 5.0.10. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Starting the VirtualBox Guest Additions [ OK ]
Unmounting Virtualbox Guest Additions ISO from: /mnt
==> default: Checking for guest additions in VM...
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] found entry for: 10.10.10.20 vagrant-multi1.cashmusic.org
==> default: [vagrant-hostsupdater] found entry for: 10.10.10.20 dev.vagrant-multi1.cashmusic.org
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /etc/puppetmaster => /Users/aipacino/Desktop/future/rackspace-template
default: /tmp/vagrant-puppet/modules-2644adef1c0efe2db9eb27bc121cfc69 => /Users/aipacino/Desktop/future/rackspace-template/modules
default: /tmp/vagrant-puppet/modules-04f163c1ef6304545500f07c2f483ee2 => /Users/aipacino/Desktop/future/rackspace-template/site
default: /tmp/vagrant-puppet/modules-938c40b94364f00e8e5b851bd1ab63ce => /Users/aipacino/Desktop/future/rackspace-template/dist
default: /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513 => /Users/aipacino/Desktop/future/rackspace-template/manifests
==> default: Running provisioner: shell...
default: Running: /var/folders/_b/nzsdczzd31ldkq05bqwncpvm0000gn/T/vagrant-shell20180427-57347-1fk9l3j.sh
default: Bootstrapping CentOS 6
default:
default: ==============================
default: About to start configuration with Puppet,
default: this may take 5-10 minutes or more depending
default: on your system and bandwidth.
default: ==============================
==> default: Running provisioner: puppet...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

cp /tmp/vagrant-puppet/vagrant_facts.yaml /etc/puppetlabs/facter/facts.d/vagrant_facts.yaml

Stdout from the command:

Stderr from the command:

cp: cannot create regular file `/etc/puppetlabs/facter/facts.d/vagrant_facts.yaml': No such file or directory

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