Coder Social home page Coder Social logo

docker-cobbler's Introduction

Cobbler 批量装机

这是一个运行在docker里的cobbler平台。

使用说明

  1. 启动容器
    docker run -itd \
       --name cobbler \
       --net host \
       -v /mnt:/mnt \
       -e ROOT_PASSWORD="China123" \
       -e PXE_TITLE="Hello Cobbler" \
       -e SERVER_IP="192.168.88.10" \
       -e DHCP_SUBNET="192.168.88.0" \
       -e DHCP_MASK="255.255.255.0" \
       -e DHCP_ROUTER="192.168.88.1" \
       -e DHCP_RANGE="192.168.88.200 192.168.88.230" \
       -e DHCP_DNS="223.5.5.5" \
       liujinbao3000/cobbler:latest
    
  2. 变量
    变量 解释
    SERVER_IP cobbler服务器的IP
    ROOT_PASSWORD 安装系统后root用户的密码
    DHCP_RANGE PXE引导的IP范围
    DHCP_SUBNET PXE引导的网段
    DHCP_ROUTER PXE引导的网关
    DHCP_DNS PXE引导的DNS
  3. 访问cobbler_web https://127.0.0.1/cobbler_web 用户名:cobbler密码:cobbler
  4. 访问容器
    docker exec it cobbler bash
    
  5. 示例
    1. 挂载ISO
      sudo mount CentOS-6.5-x86_64-bin-DVD1.iso /mnt
      
    2. 导入cobbler (确定容器的/mnt下有ISO里的文件,有时需要重启容器才有)
      1. Import DVD
      2. Prefix:CentOS-6.5-x86_64
      3. Arch:x86_64
      4. Breed:Red Hat based(includes Fedora,CentOS,...)
      5. Path:/mnt
      6. Run 示例
    3. Centos7虚拟机内存要大于2G,不然报错,物理机未试

docker-cobbler's People

Contributors

jasonlix5 avatar liujinbao3000 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.