zoukankan      html  css  js  c++  java
  • 给vagrant中的precise64升级VBoxGuestAdditions

    位置:/usr/share/virtualbox/VBoxGuestAdditions.iso

    在host(ubuntu 12.04 64)中:

    查看虚拟机的名字:
    jb@H38:~/vm/vagrant$ vboxmanage list vms
    "vagrant_1387418831" {1b1a4e65-c16f-4ce0-8e2c-4d62aa421f77}

    名字为:vagrant_1387418831

    $ VBoxManage storageattach  vagrant_1387418831   --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /usr/share/virtualbox/VBoxGuestAdditions.iso

    =================================================================================================================================================================

    在guest中的操作:

    $ sudo apt-get install dkms
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade
    $ sudo apt-get install gcc build-essential linux-headers-$(uname -r)

    $ sudo mount /dev/cdrom /mnt              # or any other mountpoint

    $ cd /mnt
    $ sudo ./VBoxLinuxAdditions.run

    如果提示:
    Installing the Window System drivers …fail!
    (Could not find the X.org or XFree86 Window System.)

    可以安装 sudo apt-get install xserver-xorg xserver-xorg-core
    需要安装67M的x.org

    不安装也能成功,只是有些在服务器上不需要的功能会失效。

    $ sudo reboot

    安装出错的log在
    $ cat /var/log/vboxadd-install.log

  • 相关阅读:
    Java进阶之并发初探
    Java进阶之HashMap剖析
    Java进阶之反射
    Linux常用命令
    海量数据处理算法与面试题
    一些刷题时总结的重要知识点
    一些Java刷题时的小知识点
    九章算法知识点与题目总结(不定时更新...)
    c++设计模式之状态模式
    c++设计模式之抽象工厂模式
  • 原文地址:https://www.cnblogs.com/vipzrx/p/3489428.html
Copyright © 2011-2022 走看看