码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu下vagrant up经常出现Failed to upload a file to the guest VM via SCP due to a permissions error.最终解决

时间:2015-07-31 23:15:07      阅读:384      评论:0      收藏:0      [点我收藏+]

标签:

?  /vagrant  vagrant reload
[default] Attempting graceful shutdown of VM...
[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] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Configuring and enabling network interfaces...
Failed to upload a file to the guest VM via SCP due to a permissions
error. This is normally because the user running Vagrant doesnt have
read permission on the file. Please set proper permissions on the file:

/vagrant/vagrant20150731-12080-1ftm3oy
?  /vagrant  sudo chmod 777 /tmp
?  /vagrant  vagrant ssh
Last login: Fri Jul 31 14:10:02 2015 from 10.0.2.2
[vagrant@yourdream ~]$ sudo chmod 777 /tmp/
[vagrant@yourdream ~]$ exit
logout
Connection to 127.0.0.1 closed.
?  /vagrant  vagrant reload --provision
[default] Attempting graceful shutdown of VM...
[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] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
?  /vagrant  vagrant ssh
Last login: Fri Jul 31 14:12:22 2015 from 10.0.2.2
[vagrant@yourdream ~]$ ls
[vagrant@yourdream ~]$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 08:00:27:4F:B8:06  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe4f:b806/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:31962 (31.2 KiB)  TX bytes:25514 (24.9 KiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:DD:86:18  
          inet addr:192.168.33.10  Bcast:192.168.33.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fedd:8618/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:590 (590.0 b)  TX bytes:1366 (1.3 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[vagrant@yourdream ~]$ ls
[vagrant@yourdream ~]$ cd /vagrant/
[vagrant@yourdream vagrant]$ ls
DressHelper      vagrant20150731-12080-1jjfag0  Vagrantfile.yd
esDev.tar.gz     vagrant20150731-14857-11hd4o7  yourdream.box
mysqlDev.tar.gz  Vagrantfile
[vagrant@yourdream vagrant]$ 

 

ubuntu下vagrant up经常出现Failed to upload a file to the guest VM via SCP due to a permissions error.最终解决

标签:

原文地址:http://www.cnblogs.com/shudai/p/4693290.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!