Skip to content

liujinbao3000/docker-cobbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,不然报错,物理机未试

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published