zoukankan      html  css  js  c++  java
  • redhat-2

    2016年5月16日-工作日志
    1 通过PXE安装RHEL7.2系统,
    部署satellite6.2(采用不是least-stable版本,是Satellite-6.2.0-RHEL-7-20160512.0/),
    步骤在(https://mojo.redhat.com/docs/DOC-1074831#comment-1038347),
    此文档是实在RHEL6.7上部署sat6.2的,与RHEL7.2不同的地方有:
      需要# yum install iptables-services
         # iptables -F
      最后的manifest.zip可以采用这一个 [ http://10.66.144.9/projects/sam-virtwho/manifest/sam_install_manifest.zip ]
    2
    将运行satellite6.2的机器命名为A
    将运行virt-who的机器命名为B
    将运行kvm环境的机器命名为C,
       C中的kvm环境运行的机器分别成为c_guest1,c_guest2,c_guest3,,,
    我们的虚拟化方式选择libvirt模式,采用remote远程访问获取mapping信息的方式
    [---------------->running the virt-who
    |hostB,ip = 10.66.128.117
    [----------------------------]


    [--------------->test environment
    |   hostC ip = 10.66.128.81
    |--------------
    |KVM |c_guest1 ip = 10.66.128.90
    |    |
    |    |
    |--------------
    |
    [----------------------------]


    [----------------> running the satellite6.2
    |hostA ip = 10.66.128.48
    [----------------------------]

    3
    实现步骤:
    -- 在hostB和c_guest1上运行
          [# rpm -ihv  http://ip of the address running the satellite6.2/pub/katello-ca-consumer-latest.noarch.rpm ]
       可以解决 待注册机器 和satellite6.2server端“信任”问题
    -- 在hostB和c_guest1上 注册机器到 satellite6.2服务端 [有三种方式可以实现,下面通过cli方式]
       [# subscription-manager register --username=admin --passwor=admin]
       这时可以在[ https://satellite6.redhat.com ]服务器端看到注册到的信息

    -- 配置virt-who获取 虚拟化注册信息,
       因为我们需要获取 远端 的虚拟化信息,需要对hostB的virt-who进行配置,具体的方法就是在[# vi /etc/sysconfig/virt-who]
    VIRTWHO_DEBUG=1
    VIRTWHO_LIBVIRT=1   #
       # Options for Libvirt mode
    VIRTWHO_LIBVIRT_OWNER=ACME_Corporation  #default
    VIRTWHO_LIBVIRT_ENV=Library   #default
    VIRTWHO_LIBVIRT_SERVER=10.66.128.81   #this ip is the address of hostC running the KVM envrionment.
    VIRTWHO_LIBVIRT_USERNAME=root
    VIRTWHO_LIBVIRT_PASSWORD=lizhen

    -- 重启virt-who [# /etc/init.d/virt-who restart]
    注意查看log信息 [# tail -f /var/log/rhsm/rhsm.log]

    4

  • 相关阅读:
    linux系统中对SSD硬盘优化的方法
    正则
    自己写的博客上线啦
    create-react-app部署到GitHub Pages时报错:Failed to get remote。origin.url
    使用react-redux开发的简单步骤
    使用redux开发的简单步骤
    使用combineReducers注意事项
    在前端页面展示Markdown文件
    React Router V4.0学习笔记
    为什么React事件处理函数必须使用Function.bind()绑定this?
  • 原文地址:https://www.cnblogs.com/li-daphne/p/5510017.html
Copyright © 2011-2022 走看看