Ubuntu under vagrant up often appears failed to upload a file to the guest VMs via SCP due to a permissions error. Final Resolution

Source: Internet
Author: User

? /vagrant Vagrant Reload[default] Attempting graceful shutdown of VMS ... [Default] Clearing any previously set forwarded ports ... [Default] Clearing any previously set network interfaces ... [Default] Preparing network interfaces based on configuration ... [Default] Forwarding ports ... [Default]-- A=2222(Adapter1) [default] booting VM ... [Default] Waiting forMachine to boot. This could take a few minutes ... [Default] Machine booted and ready![default] configuring and enabling network Interfaces ... Failed to upload afileTo the guest VMs via SCP due to a permissionserror. This is normally because the user running Vagrant doesn'T hasRead permission on thefile. Please set proper permissions on thefile:/vagrant/vagrant20150731-12080-1ftm3oy? /vagrantsudo chmod 777/tmp? /vagrant vagrantSSH LastLogin: Fri Jul to  -:Ten: Geneva  -From10.0.2.2[[Email protected]~]$sudo chmod 777/tmp/[[Email protected]~]$ exitlogoutconnection to127.0.0.1closed.? /vagrant Vagrant Reload--Provision[default] Attempting graceful shutdown of VMS ... [Default] Clearing any previously set forwarded ports ... [Default] Clearing any previously set network interfaces ... [Default] Preparing network interfaces based on configuration ... [Default] Forwarding ports ... [Default]-- A=2222(Adapter1) [default] booting VM ... [Default] Waiting forMachine to boot. This could take a few minutes ... [Default] Machine booted and ready![default] configuring and enabling network Interfaces ... [Default] Mounting Shared Folders ... [Default]-- /vagrant? /vagrant vagrantSSH LastLogin: Fri Jul to  -: A: A  -From10.0.2.2[[Email protected]~]$ls[[Email protected]~]$ifconfigeth0 Link encap:ethernet HWaddr ,:xx: -: 4f:b8: .inet Addr:10.0.2.15Bcast:10.0.2.255Mask:255.255.255.0Inet6 addr:fe80::a00:27ff:fe4f:b806/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:279Errors0Dropped0Overruns:0Frame0TX Packets:175Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:31962(31.2KiB) TX Bytes:25514(24.9KiB) eth1 Link encap:ethernet HWaddr ,:xx: -:D D: the: -inet Addr:192.168.33.10Bcast:192.168.33.255Mask:255.255.255.0Inet6 Addr:fe80::a00:27ff:fedd:8618/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:1Errors0Dropped0Overruns:0Frame0TX Packets: theErrors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:590(590.0b) TX Bytes:1366(1.3KiB) Lo Link encap:local Loopback inet addr:127.0.0.1Mask:255.0.0.0Inet6 Addr: ::1/ -scope:host up LOOPBACK RUNNING MTU:16436Metric:1RX Packets:0Errors0Dropped0Overruns:0Frame0TX Packets:0Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen:0RX Bytes:0(0.0b) TX Bytes:0(0.0b) [[Email protected]~]$ls[[Email protected]~]$ cd/vagrant/[email protected] vagrant]$lsDresshelper vagrant20150731-12080-1jjfag0 Vagrantfile.ydesdev.Tar. GZ vagrant20150731-14857-11hd4o7 Yourdream.boxmysqldev.Tar. GZ vagrantfile[[email protected] vagrant]$

Ubuntu under vagrant up often appears failed to upload a file to the guest VMs via SCP due to a permissions error. Final Resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.