Menu

#4255 [FVT]:need to update kvm.rhel7.tmpl for default rh7 kvm osimage

2.8.5
closed
yangsong
None
RHEL7
5
2014-08-27
2014-08-21
No

Use default "rhels7.0-x86_64-install-kvm" to install a kvm host and find there installation returns with error.

anaconda 19.31.79-1 for Red Hat Enterprise Linux 7.0 started.
The following problem occurred on line 177 of the kickstart file:

Section %packages does not end with %end.

[root@x3650m4n07 ~]# lsdef -t osimage -o "rhels7.0-x86_64-install-kvm"
Object name: rhels7.0-x86_64-install-kvm
imagetype=linux
osarch=x86_64
osdistroname=rhels7.0-x86_64
osname=Linux
osvers=rhels7.0
otherpkgdir=/install/post/otherpkgs/rhels7.0/x86_64
pkgdir=/install/rhels7.0/x86_64
pkglist=/opt/xcat/share/xcat/install/rh/kvm.rhel7.pkglist
profile=kvm
provmethod=install
template=/opt/xcat/share/xcat/install/rh/kvm.rhel7.tmpl

Discussion

  • yangsong

    yangsong - 2014-08-25
    • status: open --> pending
     
  • yangsong

    yangsong - 2014-08-25

    fixed in 2.8.5:
    The branch, 2.8 has been updated
    via 606550feec7bbd38b03d3e889a378ab9846ab793 (commit)
    from 37f23d492232c39211bfc37bdf878a99e03608d3 (commit)


    commit 606550feec7bbd38b03d3e889a378ab9846ab793
    Author: immarvin yangsbj@cn.ibm.com
    Date: Thu Aug 21 02:03:35 2014 -0700

    add template and pkglist of kvm.rhel7
    

    diff --git a/xCAT-server/share/xcat/install/rh/kvm.rhel7.pkglist b/xCAT-server/share/xcat/install/rh/kvm.rhel7.pkglist
    new file mode 100644
    index 0000000..7a6779c
    --- /dev/null
    +++ b/xCAT-server/share/xcat/install/rh/kvm.rhel7.pkglist
    @@ -0,0 +1,13 @@
    +#Please make sure there is a space between @ and group name
    +wget
    +ntp
    +nfs-utils
    +net-snmp
    +rsync
    +yp-tools
    +openssh-server
    +util-linux-ng
    +net-tools
    +libvirt
    +screen
    +qemu-kvm
    diff --git a/xCAT-server/share/xcat/install/rh/kvm.rhel7.tmpl b/xCAT-server/share/xcat/install/rh/kvm.rhel7.tmpl
    new file mode 100644
    index 0000000..b32f1f0
    --- /dev/null
    +++ b/xCAT-server/share/xcat/install/rh/kvm.rhel7.tmpl
    @@ -0,0 +1,154 @@
    +#
    +#cmdline
    +
    +lang en_US
    +#KICKSTARTNET#
    +
    +#
    +# Where's the source?
    +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image
    +#
    +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR#
    +
    +%include /tmp/repos
    +
    +#device ethernet e100
    +keyboard "us"
    +
    +#
    +# Clear the MBR
    +#
    +zerombr
    +
    +#
    +# Wipe out the disk
    +#
    +clearpart --all --initlabel
    +#clearpart --linux
    +#key --skip
    +
    +#
    +# Customize to fit your needs
    +#
    +
    +#XCAT_PARTITION_START#
    +#No RAID
    +#/boot really significant for this sort of setup nowadays?
    +#part /boot --size 50 --fstype ext3
    +%include /tmp/partitioning
    +#part swap --size 1024
    +#part / --size 1 --grow --fstype ext4
    +#XCAT_PARTITION_END#
    +
    +#RAID 0 /scr for performance
    +#part / --size 1024 --ondisk sda
    +#part swap --size 512 --ondisk sda
    +#part /var --size 1024 --ondisk sdb
    +#part swap --size 512 --ondisk sdb
    +#part raid.01 --size 1 --grow --ondisk sda
    +#part raid.02 --size 1 --grow --ondisk sdb
    +#raid /scr --level 0 --device md0 raid.01 raid.02
    +
    +#Full RAID 1 Sample
    +#part raid.01 --size 50 --ondisk sda
    +#part raid.02 --size 50 --ondisk sdb
    +#raid /boot --level 1 --device md0 raid.01 raid.02
    +#
    +#part raid.11 --size 1024 --ondisk sda
    +#part raid.12 --size 1024 --ondisk sdb
    +#raid / --level 1 --device md1 raid.11 raid.12
    +#
    +#part raid.21 --size 1024 --ondisk sda
    +#part raid.22 --size 1024 --ondisk sdb
    +#raid /var --level 1 --device md2 raid.21 raid.22
    +#
    +#part raid.31 --size 1024 --ondisk sda
    +#part raid.32 --size 1024 --ondisk sdb
    +#raid swap --level 1 --device md3 raid.31 raid.32
    +#
    +#part raid.41 --size 1 --grow --ondisk sda
    +#part raid.42 --size 1 --grow --ondisk sdb
    +#raid /scr --level 1 --device md4 raid.41 raid.42
    +
    +#
    +# bootloader config
    +# --append <args>
    +# --useLilo
    +# --md5pass <crypted md5="" password="" for="" grub="">
    +#
    +bootloader
    +
    +#
    +# install or upgrade
    +#
    +install
    +
    +#
    +# text mode install (default is graphical)
    +#
    +text
    +
    +#
    +# firewall
    +#
    +firewall --disabled
    +
    +#
    +# Select a zone
    +# Add the --utc switch if your hardware clock is set to GMT
    +#
    +#timezone US/Hawaii
    +#timezone US/Pacific
    +#timezone US/Mountain
    +#timezone US/Central
    +#timezone US/Eastern
    +timezone --utc "#TABLE:site:key=timezone:value#"
    +
    +#
    +# Don't do X
    +#
    +skipx
    +
    +
    +#
    +# To generate an encrypted root password use:
    +#
    +# perl -e 'print crypt("blah","Xa") . "\n";'p
    +# openssl passwd -apr1 -salt xxxxxxxx password
    +#
    +# where "blah" is your root password.
    +#
    +#rootpw --iscrypted XaLGAVe1C41x2
    +#rootpw XaLGAVe1C41x2 --iscrypted
    +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password#
    +
    +#
    +# NIS setup: auth --enablenis --nisdomain sensenet
    +# --nisserver neptune --useshadow --enablemd5
    +#
    +# OR
    +auth --useshadow --enablemd5
    +
    +
    +#
    +# SE Linux
    +#
    +selinux --disabled
    +
    +#
    +# Reboot after installation
    +#
    +reboot
    +
    +#
    +#end of section
    +#
    +%packages
    +#INCLUDE_DEFAULT_PKGLIST#
    +%end
    +%pre
    +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh.rhel7#
    +%end
    +%post
    +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat#
    +%end</crypted></args>

    fixed in 2.9:

    commit d92fc99a3a1639cc0b768139433eefb0f4e9c5f3
    Author: immarvin yangsbj@cn.ibm.com
    Date: Thu Aug 21 02:03:35 2014 -0700

    add template and pkglist of kvm.rhel7
    
     
  • ting ting li

    ting ting li - 2014-08-27

    verified and fixed

     
  • ting ting li

    ting ting li - 2014-08-27
    • status: pending --> closed
     
MongoDB Logo MongoDB