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# 
  • 相关阅读:
    数据库mysql基础语言--各模式的含义
    Linux下判断磁盘是SSD还是HDD的几种方法
    linux解压大全
    RedHat Linux RHEL6配置本地YUM源
    利用ssh传输文件-服务器之间传输文件
    深入理解asp.net里的HttpModule机制
    WPF(一)
    JS中caller和callee
    Vue-Methods中使用Filter
    c#值类型与引用类型区别
  • 原文地址:https://www.cnblogs.com/dream397/p/13479427.html
Copyright © 2011-2022 走看看