zoukankan      html  css  js  c++  java
  • vagrant

    root@ipmn:~/RoutingExamples# vagrant -v
    Vagrant 2.0.2
    root@ipmn:~/RoutingExamples# vagrant box list
    There are no installed boxes! Use `vagrant box add` to add some.
    root@ipmn:~/RoutingExamples# 
    apt-get install  linux-headers-`uname -r`  //否则会报错
    apt install virtualbox-dkms -y
    apt install virtualbox-source -y
    apt install virtualbox-guest-utils -y
    apt install virtualbox-qt -y
    apt remove vitualbox -y
    apt install virtualbox -y
    root@ipmn:~/srv6_Sandbox# ls
    README.md  Vagrantfile  config  topo.py  topo2.py  topo2_new.py  topo_new.py
    root@ipmn:~/srv6_Sandbox# vagrant reload
    ==> hosta: VM not created. Moving on...
    ==> hostb: VM not created. Moving on...
    ==> r1: VM not created. Moving on...
    ==> r2: VM not created. Moving on...
    ==> r3: VM not created. Moving on...
    ==> server1: VM not created. Moving on...
    ==> server2: VM not created. Moving on...
    root@ipmn:~/srv6_Sandbox# 
    root@ipmn:~/srv6_Sandbox# vagrant status
    Current machine states:
    
    hosta                     not created (virtualbox)
    hostb                     not created (virtualbox)
    r1                        not created (virtualbox)
    r2                        not created (virtualbox)
    r3                        not created (virtualbox)
    server1                   not created (virtualbox)
    server2                   not created (virtualbox)
    
    This environment represents multiple VMs. The VMs are all listed
    above with their current state. For more information about a specific
    VM, run `vagrant status NAME`.
    root@ipmn:~/srv6_Sandbox# 
    root@ipmn:~/srv6_Sandbox# vagrant up
    Bringing machine 'hosta' up with 'virtualbox' provider...
    Bringing machine 'hostb' up with 'virtualbox' provider...
    Bringing machine 'r1' up with 'virtualbox' provider...
    Bringing machine 'r2' up with 'virtualbox' provider...
    Bringing machine 'r3' up with 'virtualbox' provider...
    Bringing machine 'server1' up with 'virtualbox' provider...
    Bringing machine 'server2' up with 'virtualbox' provider...
    ==> hosta: Box 'srouting/srv6-net-prog' could not be found. Attempting to find and install...
        hosta: Box Provider: virtualbox
        hosta: Box Version: 0.4.14
    ==> hosta: Loading metadata for box 'srouting/srv6-net-prog'
        hosta: URL: https://vagrantcloud.com/srouting/srv6-net-prog
    ==> hosta: Adding box 'srouting/srv6-net-prog' (v0.4.14) for provider: virtualbox
        hosta: Downloading: https://vagrantcloud.com/srouting/boxes/srv6-net-prog/versions/0.4.14/providers/virtualbox.box
        hosta: Progress: 35% (Rate: 74811/s, Estimated time remaining: 0:02:52)
    root@ipmn:~/srv6_Sandbox# vagrant status
    Current machine states:
    
    hosta                     running (virtualbox)
    hostb                     running (virtualbox)
    r1                        running (virtualbox)
    r2                        not created (virtualbox)
    r3                        not created (virtualbox)
    server1                   not created (virtualbox)
    server2                   not created (virtualbox)
    
    This environment represents multiple VMs. The VMs are all listed
    above with their current state. For more information about a specific
    VM, run `vagrant status NAME`.
    root@ipmn:~/srv6_Sandbox# 
  • 相关阅读:
    vim——打开多个文件、同时显示多个文件、在文件之间切换(转)
    内核任务调度与数据结构
    chrome浏览器iframe兼容性问题,隐藏起来再显示滚动条消失?
    九、迭代器、生成器、函数递归调用与二分法
    八、函数、闭包、装饰器
    七、函数
    六、字符编码、文件
    五、列表、元组、字典、集合详解
    四、字符串及其内置方法
    三、内存管理、数据类型、基本运算符、流程控制
  • 原文地址:https://www.cnblogs.com/dream397/p/13479427.html
Copyright © 2011-2022 走看看