File tree Expand file tree Collapse file tree 1 file changed +53
-1
lines changed
Expand file tree Collapse file tree 1 file changed +53
-1
lines changed Original file line number Diff line number Diff line change 11# Rocky Linux Cloud Images
22
3- ## Rock Linux 9
3+ ## Rocky Linux 9 UEFI
44
55```
66cd rockylinux/cloud/x86_64
@@ -53,3 +53,55 @@ $ virsh shutdown rockylinux-9
5353$ virsh undefine rockylinux-9 --nvram --remove-all-storage
5454```
5555
56+ ## Rocky Linux 9 BIOS
57+
58+ ```
59+ cd rockylinux/cloud/x86_64
60+ packer init .
61+ PACKER_LOG=1 packer build \
62+ -var-file rockylinux-9-bios-x86_64.pkrvars.hcl \
63+ rockylinux.pkr.hcl
64+ ```
65+
66+ ```
67+ $ sudo qemu-img convert \
68+ -f qcow2 \
69+ -O qcow2 \
70+ output-rockylinux-9-bios-x86_64/rockylinux-9-bios-x86_64.qcow2 \
71+ /var/lib/libvirt/images/rockylinux-9-bios-x86_64.qcow2
72+ $ sudo qemu-img resize \
73+ -f qcow2 \
74+ /var/lib/libvirt/images/rockylinux-9-bios-x86_64.qcow2 \
75+ 32G
76+ ```
77+
78+ ```
79+ $ sudo apt-get install libosinfo-bin
80+ $ osinfo-query os
81+ ```
82+
83+ ```
84+ virt-install \
85+ --connect qemu:///system \
86+ --name rockylinux-9-bios \
87+ --boot uefi \
88+ --memory 4096 \
89+ --vcpus 2 \
90+ --os-variant rocky9 \
91+ --disk /var/lib/libvirt/images/rockylinux-9-bios-x86_64.qcow2,bus=virtio \
92+ --network network=default,model=virtio \
93+ --graphics spice \
94+ --noautoconsole \
95+ --console pty,target_type=serial \
96+ --import \
97+ --debug
98+
99+ virsh console rockylinux-9-bios
100+
101+ # login with packer user
102+ ```
103+
104+ ```
105+ $ virsh shutdown rockylinux-9-bios
106+ $ virsh undefine rockylinux-9-bios --nvram --remove-all-storage
107+ ```
You can’t perform that action at this time.
0 commit comments