Vagrant启动或重新加载报错No space left on device
今天启动虚拟机的时候,遇到了一个奇怪的问题:C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/net-scp-1.2.1/lib/net/scp.rb:398:in `await_response_state’: scp: /tmp/vagrant-network-entry-eth1-1624259919-0: No space left on de
·
今天启动虚拟机的时候,遇到了一个奇怪的问题:
C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/net-scp-1.2.1/lib/net/scp.rb:398:in `await_response_state’: scp: /tmp/vagrant-network-entry-eth1-1624259919-0: No space left on device (RuntimeError)
刚开始以为虚拟机没有启动成功,尝试着去VM VirtualBox的客户端看了下,发现虚拟机已启动。
于是尝试着区连接了一下:
使用的是本地IP(127.0.0.1)和映射的端口(22222)
使用cd 命令切换目录的时候,正常按tab
键的提示会报错,如下:
[root@mysql ~]# cd jm-bash: cannot create temp file for here-document: No space left on device
^C
使用命令df -h
:
通过命令du -sm * 2> /dev/null | sort -nr | head -5
和find . -type f -size +800M
找到大目录和大文件,然后做相应的清理即可:
注意:
生产环境清理需谨慎,清理之前最好做一个备份操作。
使用命令vagrant reload
重新加载,启动正常:
D:\VM\mysql>vagrant reload
==> mysql: Attempting graceful shutdown of VM...
==> mysql: Clearing any previously set forwarded ports...
==> mysql: Clearing any previously set network interfaces...
==> mysql: Preparing network interfaces based on configuration...
mysql: Adapter 1: nat
mysql: Adapter 2: hostonly
==> mysql: Forwarding ports...
mysql: 22 (guest) => 22222 (host) (adapter 1)
==> mysql: Running 'pre-boot' VM customizations...
==> mysql: Booting VM...
==> mysql: Waiting for machine to boot. This may take a few minutes...
mysql: SSH address: 127.0.0.1:22222
mysql: SSH username: root
mysql: SSH auth method: password
==> mysql: Machine booted and ready!
==> mysql: Checking for guest additions in VM...
mysql: No guest additions were detected on the base box for this VM! Guest
mysql: additions are required for forwarded ports, shared folders, host only
mysql: networking, and more. If SSH fails on this machine, please install
mysql: the guest additions and repackage the box to continue.
mysql:
mysql: This is not an error message; everything may continue to work properly,
mysql: in which case you may ignore this message.
==> mysql: Setting hostname...
==> mysql: Configuring and enabling network interfaces...
==> mysql: Rsyncing folder: /cygdrive/d/VM/mysql/ => /vagrant
==> mysql: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> mysql: flag to force provisioning. Provisioners marked to run always will still run.
D:\VM\mysql>
更多推荐
已为社区贡献2条内容
所有评论(0)