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# 
  • 相关阅读:
    论独立思考的重要性及策略
    linux的iptables和firewall的区别
    CentOS中防火墙相关的命令(CentOS7中演示)
    Capistrano:自动完成多台服务器上新版本的同步更新,包括数据库的改变
    CentOS7.0下安装FTP服务的方法
    nginx服务器究竟是怎么执行php项目
    centos7.0 可以访问HTML文件,不能访问PHP文件,因为php-fpm没有扩展包
    (二)Centos7下Yum更新安装PHP5.5,5.6,7.0
    centos7重启apache、nginx、mysql、php-fpm命令
    centOS 重启 php-fpm
  • 原文地址:https://www.cnblogs.com/dream397/p/13479427.html
Copyright © 2011-2022 走看看