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# 
  • 相关阅读:
    软工实践寒假作业(2/2)
    软工实践寒假作业(1/2)
    个人技术总结——关于springboot的定时任务框架quartz
    个人作业——软件工程实践总结&个人技术博客
    个人作业——软件评测
    结对第二次作业——某次疫情统计可视化的实现
    结对第一次 — 疫情统计可视化(原型设计)
    软工实践寒假作业(2/2)
    软工实践寒假作业(1/2)
    个人作业——软件工程实践总结&个人技术博客
  • 原文地址:https://www.cnblogs.com/dream397/p/13479427.html
Copyright © 2011-2022 走看看