Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1774729 Details for
Bug 1952824
[Hyper-V]Dual boot image cannot boot with RHEL-9 beta compose
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
dual boot kickstart file
RHEL-9.cfg (text/plain), 6.10 KB, created by
Yuxin Sun
on 2021-04-23 09:42:21 UTC
(
hide
)
Description:
dual boot kickstart file
Filename:
MIME Type:
Creator:
Yuxin Sun
Created:
2021-04-23 09:42:21 UTC
Size:
6.10 KB
patch
obsolete
>#version=DEVEL ># System authorization information >authselect --enableshadow --passalgo=sha512 ># Use graphical install >text ># Use CDROM installation media >cdrom ># Do not run the Setup Agent on first boot >firstboot --disable >#ignoredisk --only-use=sda ># Keyboard layouts >keyboard --vckeymap=us --xlayouts='us' ># System language >lang en_US.UTF-8 > ># Network information >network --bootproto=dhcp --activate >network --hostname=localhost.localdomain ># Root password >rootpw --iscrypted $6$QYXdAITDLMkgv4hT$6ITUByFZJV1EtGn6fj1BGcPCGgxk4XQ/iHkOKKPsSFnzxcm/WeHjc2HmFajMheYvpQS0Xrcj4S2p6i38KjXz7. ># System services >services --enabled="chronyd,NetworkManager" >#services --disabled="firewalld" ># System timezone >#timezone America/New_York --isUtc >timezone --isUtc Asia/Shanghai --ntpservers 0.rhel.pool.ntp.org,1.rhel.pool.ntp.org,2.rhel.pool.ntp.org,3.rhel.pool.ntp.org >user --groups=wheel --name=azuredebug --password=$6$hXgD4YL8CzFN1Rs3$UzCanEPIsqpdXdMORflq76wJ5xOi6659mJ2jVUnRfZbZLTL9Th4NAyjKP7Yya0ZpxBRH7Rm6usNJemHLubgDS. --iscrypted --gecos="azuredebug" > >%pre ># clear the MBR and partition table >dd if=/dev/zero of=/dev/vda bs=2M count=1 ># setup partition table on disk >parted -s /dev/vda mklabel gpt >parted -s /dev/vda mkpart primary 1049k 500M >parted -s /dev/vda mkpart primary 500M 1012M >parted -s /dev/vda mkpart primary 1012M 1022M >sleep 2 ># wait for all devices to be identified by the kernel >while [ -z $(ls /dev/vda3) ] >do > echo "waiting for kernel to recognize partitions" > hdparm -z /dev/vda > sleep 1 >done > >%end > ># Partition clearing information >#clearpart --all --initlabel ># Disk partitioning information >part /boot/efi --fstype=efi --onpart=/dev/vda1 >part /boot --fstype=ext4 --onpart=/dev/vda2 >part / --fstype=ext4 --size=1 --grow --asprimary ># System bootloader configuration >bootloader --location=mbr ># Firewall configuration >firewall --disabled ># Power down the machine after install >poweroff > > >%packages --ignoremissing >@^minimal-environment >kexec-tools >libaio-devel >gdisk ># dracut related packages >#dracut-fips >hmaccalc >numactl >nfs-utils >psmisc >logrotate >pciutils >hyperv-tools >grub2-pc >grub2-pc-modules ># LISAv2 packages >nvme-cli >libacl-devel >kernel-devel >zlib-devel >xfsprogs >xfsprogs-devel >xfsprogs-qa-devel >xfsdump >libattr-devel >libuuid-devel >sqlite >uuid-devel >e2fsprog >bzip2 >tar >dhcp-client >hostname > >-NetworkManager-config-server > >%end > >%post --log=/var/log/anaconda/post-install.log > >## Install AppStream packages >echo '[AppStream] >name=AppStream >baseurl=http://download.eng.pek2.redhat.com/rhel-9/nightly/RHEL-9/RHEL-9.0.0-20210201.6/compose/AppStream/x86_64/os >enabled=1 >gpgcheck=0 > >[BaseOS] >name=BaseOS >baseurl=http://download.eng.pek2.redhat.com/rhel-9/nightly/RHEL-9/RHEL-9.0.0-20210201.6/compose/BaseOS/x86_64/os >enabled=1 >gpgcheck=0' > /etc/yum.repos.d/rhel.repo >dnf install -y python3-pyasn1 tcpdump gcc gcc-c++ bind bind-utils cloud-init cloud-utils-growpart tar make wget vim net-tools unzip nmap WALinuxAgent ># Enable cloud-init and WALA >systemctl enable cloud-{init-local,init,config,final} >systemctl enable waagent.service > ># Set the cmdline >sed -i\ > -e 's/^\(GRUB_CMDLINE_LINUX\)=".*"$/\1="console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300 crashkernel=auto"/g' /etc/default/grub > ># Enable SSH keepalive >sed -i 's/^#\(ClientAliveInterval\).*$/\1 180/g' /etc/ssh/sshd_config > ># Build the grub cfg >grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg > ># For cloud images, 'eth0' _is_ the predictable device name, since ># we don't want to be tied to specific virtual (!) hardware >rm -f /etc/udev/rules.d/70-persistent-net.rules /lib/udev/rules.d/75-persistent-net-generator.rules > >## Write sriov rule >cat << EOF > /etc/udev/rules.d/68-azure-sriov-nm-unmanaged.rules ># Accelerated Networking on Azure exposes a new SRIOV interface to the VM. ># This interface is transparently bonded to the synthetic interface, ># so NetworkManager should just ignore any SRIOV interfaces. >SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1" >EOF > ># Remove ifcfg-enp0s3 to prevent error messages >rm -f /etc/sysconfig/network-scripts/ifcfg-enp0s3 >rm -f /etc/sysconfig/network-scripts/ifcfg-ens3 > ># Configure network >cat << EOF > /etc/sysconfig/network-scripts/ifcfg-eth0 >DEVICE=eth0 >ONBOOT=yes >BOOTPROTO=dhcp >TYPE=Ethernet >USERCTL=no >PEERDNS=yes >IPV6INIT=no >NM_CONTROLLED=yes >EOF > >## Configure swap in WALinuxAgent >sed -i 's/^\(ResourceDisk\.EnableSwap\)=[Nn]$/\1=y/g' /etc/waagent.conf >sed -i 's/^\(ResourceDisk\.SwapSizeMB\)=[0-9]*$/\1=2048/g' /etc/waagent.conf > ># Hyper-V drivers >echo "add_drivers+=\"hv_vmbus hv_netvsc hv_storvsc\"" >> /etc/dracut.conf >dracut -f -v > ># Set NetworkManager dhcp=dhclient >sed -i -e '/\[main\]/a\dhcp = dhclient' -e '/dhcp *= *dhclient/d' /etc/NetworkManager/NetworkManager.conf > ># Set selinux enforce >setenforce 1 > ># Set password complexity >echo """\ >minlen = 6 >dcredit = 0 >ucredit = 0 >lcredit = 0 >ocredit = 0 >minclass = 3 >""" >> /etc/security/pwquality.conf > ># Deprovision and prepare for Azure >systemctl stop waagent ># Delete root password >sed -i \ >-e '1i\root:*LOCK*:14600::::::' \ >-e '/root:/d' \ >/etc/shadow ># Delete ssh key pairs >rm -f /etc/ssh/ssh_host_*key* ># Reset DHCP_HOSTNAME >sed -i '/DHCP_HOSTNAME=/d' /etc/sysconfig/network-scripts/ifcfg-eth0 >echo "DHCP_HOSTNAME=localhost.localdomain /etc/sysconfig/network-scripts/ifcfg-eth0" ># Remove /etc/resolv.conf >rm -f /etc/resolv.conf ># Remove other files >rm -f /root/.bash_history /var/log/waagent.log ># Remove dhclient lease files >rm -f /var/lib/dhclient/dhclient-*.leases >rm -f /var/lib/NetworkManager/dhclient-*.lease >export HISTSIZE=0 > >## Set gen1 boot partition >sgdisk /dev/vda -t 3:0xEF02 >partprobe >grub2-install -d /usr/lib/grub/i386-pc/ /dev/vda >#cat /etc/grub2-efi.cfg | sed -e s,linuxefi,linux, -e s,initrdefi,initrd, > /boot/grub2/grub.cfg >cp /boot/efi/EFI/redhat/grub.cfg /boot/grub2/grub.cfg >olduuid=`grep -o -P '(?<=--set=boot ).*(?=$)' /boot/grub2/grub.cfg` >newuuid=`grep -o -P '(?<=--set=root ).*(?=$)' /boot/grub2/grub.cfg` >sed -i "/--set=boot/s/${olduuid}/${newuuid}/g" /boot/grub2/grub.cfg >sed -ni '1,/### BEGIN.*uefi-firmware ###/p;/### END.*uefi-firmware ###/,$p' /boot/grub2/grub.cfg >rm -f /boot/grub2/grubenv >cp /boot/efi/EFI/redhat/grubenv /boot/grub2/grubenv >sync > >%end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1952824
: 1774729