• 我去,Homestead共享失效了


    似乎每次醒来,启动Homestead,它都会出各种各样的妖蛾子。这 次,我去,Homestead共享失效了。

    在启动vagrant up时它似乎提醒我 Virtualbox Guest Additions ISO版本不配套的问题,我将VBOX从5.1.2升级到5.2.8后这个附件应该没有更新。这会影响共享。
    当时没有搭理它,vagrant ssh进入~提示符。当我从windows charm浏览器访问:laravel.test我的WEB主机时,问题来了:
    网页总是提示 "No input file specified",看上去web服务器工作了,但是它找不到文件,一查,共享失效,windows的网页文件,在虚拟主机中看不到了。

    习惯性的,我打开GUI的VBOX,点devices最下面的 add 。。。总是不管用。总是提示Unmount,卷标挂不上。
    网上找了一大圈,偶然发现个小命令管用了:

    E:Homestead>vagrant plugin install vagrant-vbguest
    

    上面这一步一开始走不动, timeout了,我估计是从国外下载什么东西,中国墙住了,后来启动翻墙工具,算是装上了:

    Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
    Fetching: micromachine-2.0.0.gem (100%)
    Fetching: vagrant-vbguest-0.15.1.gem (100%)
    Installed the plugin 'vagrant-vbguest (0.15.1)'!
    

    安装这个插件,可能是用来装附件的吧。下一步,reload一下:

    E:Homestead>vagrant reload
    

    如果你对这段唠叨又不重要的英文没兴趣,请翻几页跳过

    ==> homestead-7: Checking if box 'laravel/homestead' is up to date...
    ==> homestead-7: Clearing any previously set forwarded ports...
    ==> homestead-7: Clearing any previously set network interfaces...
    ==> homestead-7: Preparing network interfaces based on configuration...
        homestead-7: Adapter 1: nat
        homestead-7: Adapter 2: hostonly
    ==> homestead-7: Forwarding ports...
        homestead-7: 80 (guest) => 8000 (host) (adapter 1)
        homestead-7: 443 (guest) => 44300 (host) (adapter 1)
        homestead-7: 3306 (guest) => 33060 (host) (adapter 1)
        homestead-7: 4040 (guest) => 4040 (host) (adapter 1)
        homestead-7: 5432 (guest) => 54320 (host) (adapter 1)
        homestead-7: 8025 (guest) => 8025 (host) (adapter 1)
        homestead-7: 27017 (guest) => 27017 (host) (adapter 1)
        homestead-7: 80 (guest) => 8080 (host) (adapter 1)
        homestead-7: 22 (guest) => 2222 (host) (adapter 1)
    ==> homestead-7: Running 'pre-boot' VM customizations...
    ==> homestead-7: Booting VM...
    ==> homestead-7: Waiting for machine to boot. This may take a few minutes...
        homestead-7: SSH address: 127.0.0.1:2222
        homestead-7: SSH username: vagrant
        homestead-7: SSH auth method: private key
        homestead-7: Warning: Connection reset. Retrying...
        homestead-7: Warning: Connection aborted. Retrying...
        homestead-7: Warning: Connection reset. Retrying...
        homestead-7: Warning: Connection aborted. Retrying...
    ==> homestead-7: Machine booted and ready!
    Got different reports about installed GuestAdditions version:
    Virtualbox on your host claims:   5.0.18
    VBoxService inside the vm claims: 5.2.4
    Going on, assuming VBoxService is correct...
    [homestead-7] GuestAdditions versions on your host (5.2.8) and guest (5.2.4) do not match.
    Got different reports about installed GuestAdditions version:
    Virtualbox on your host claims:   5.0.18
    VBoxService inside the vm claims: 5.2.4
    Going on, assuming VBoxService is correct...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    dkms is already the newest version (2.2.0.3-2ubuntu11.5).
    linux-headers-4.4.0-116-generic set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Copy iso file D:Program FilesOracleVirtualBoxVBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
    Mounting Virtualbox Guest Additions ISO to: /mnt
    mount: /dev/loop0 is write-protected, mounting read-only
    Installing Virtualbox Guest Additions 5.2.8 - guest version is 5.2.4
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
    VirtualBox Guest Additions installer
    Removing installed version 5.2.4 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
    VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
    VirtualBox Guest Additions: Starting.
    An error occurred during installation of VirtualBox Guest Additions 5.2.8. Some functionality may not work as intended.
    In most cases it is OK that the "Window System drivers" installation failed.
    Job for vboxadd-service.service failed because the control process exited with error code. See "systemctl status vboxadd-service.service" and "journalctl -xe" for details.
    Unmounting Virtualbox Guest Additions ISO from: /mnt
    Got different reports about installed GuestAdditions version:
    Virtualbox on your host claims:   5.0.18
    VBoxService inside the vm claims: 5.2.8
    Going on, assuming VBoxService is correct...
    Got different reports about installed GuestAdditions version:
    Virtualbox on your host claims:   5.0.18
    VBoxService inside the vm claims: 5.2.8
    Going on, assuming VBoxService is correct...
    ==> homestead-7: Checking for guest additions in VM...
        homestead-7: The guest additions on this VM do not match the installed version of
        homestead-7: VirtualBox! In most cases this is fine, but in rare cases it can
        homestead-7: prevent things such as shared folders from working properly. If you see
        homestead-7: shared folder errors, please make sure the guest additions within the
        homestead-7: virtual machine match the version of VirtualBox you have installed on
        homestead-7: your host and reload your VM.
        homestead-7:
        homestead-7: Guest Additions Version: 5.0.18_Ubuntu r106667
        homestead-7: VirtualBox Version: 5.2
    ==> homestead-7: Setting hostname...
    ==> homestead-7: Configuring and enabling network interfaces...
    ==> homestead-7: Mounting shared folders...
        homestead-7: /vagrant => E:/Homestead
        homestead-7: /home/vagrant/code => E:/code
    ==> homestead-7: Machine already provisioned. Run `vagrant provision` or use the `--provision`
    ==> homestead-7: flag to force provisioning. Provisioners marked to run always will still run.
    

    重要的是它管用了,现在先不必用vagrant ssh进入,在网页上测试一下,虚拟主机,哈,it work.

  • 相关阅读:
    Sql Server系列:分区表操作
    [bug]WCF 内存入口检查失败 Memory gates checking failed
    由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面。
    如何设置IIS程序池的回收时间,才能最大程度的减少对用户的影响?
    IIS 之 在IIS7、IIS7.5中应用程序池最优配置方案
    使用nginx搭建高可用,高并发的wcf集群
    NPOI读写Excel
    用 IIS 实现请求转发
    模型验证组件 FluentValidation
    C#中的 正则表达式
  • 原文地址:https://www.cnblogs.com/dreamfine/p/9007805.html
Copyright © 2020-2023  润新知