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

  • 相关阅读:
    Java IO输入输出流 FileWriter 字符流
    Java IO输入输出流File 字节流
    Java List集合和Map集合的综合应用
    表单提交中的重复问题(表单令牌验证)
    php中const与define的区别
    阿里云中获取文件及目录列表的方法
    巧用php中的array_filter()函数去掉多维空值
    文件大小格式化函数
    UTC 通用格式时间 转换为 时间戳,并格式化为2017-01-01 12:00:00
    关于匿名函数的使用,购物车中计算销售税的应用
  • 原文地址:https://www.cnblogs.com/li-daphne/p/5510017.html
Copyright © 2011-2022 走看看