Skip to content

Commit 482480a

Browse files
authored
Update README.md
1 parent d6a1057 commit 482480a

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

centos/cloud/x86_64/README.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,54 @@ $ virsh shutdown centos-stream-10
4848
$ virsh undefine centos-stream-10 --nvram --remove-all-storage
4949
```
5050

51+
## CentOS Stream 10 BIOS virtual firmware
52+
53+
```
54+
cd centos/cloud/x86_64
55+
packer init .
56+
PACKER_LOG=1 packer build \
57+
-var-file centos-stream-10-bios-x86_64.pkrvars.hcl \
58+
centos.pkr.hcl
59+
```
60+
61+
```
62+
$ sudo qemu-img convert \
63+
-f qcow2 \
64+
-O qcow2 \
65+
output-centos-stream-10-bios-x86_64/centos-stream-10-bios-x86_64.qcow2 \
66+
/var/lib/libvirt/images/centos-stream-10-bios.qcow2
67+
$ sudo qemu-img resize \
68+
-f qcow2 \
69+
/var/lib/libvirt/images/centos-stream-10-bios.qcow2 \
70+
32G
71+
```
72+
73+
```
74+
virt-install \
75+
--connect qemu:///system \
76+
--name centos-stream-10-bios \
77+
--boot uefi \
78+
--memory 4096 \
79+
--vcpus 2 \
80+
--os-variant centos-stream9 \
81+
--disk /var/lib/libvirt/images/centos-stream-10-bios.qcow2,bus=virtio \
82+
--network network=default,model=virtio \
83+
--graphics spice \
84+
--noautoconsole \
85+
--console pty,target_type=serial \
86+
--import \
87+
--debug
88+
89+
virsh console centos-stream-10-bios
90+
91+
# login with packer user
92+
```
93+
94+
```
95+
$ virsh shutdown centos-stream-10-bios
96+
$ virsh undefine centos-stream-10-bios --nvram --remove-all-storage
97+
```
98+
5199
## CentOS Stream 9 UEFI virtual firmware
52100

53101
```
@@ -95,3 +143,51 @@ virsh console centos-stream-9
95143
$ virsh shutdown centos-stream-9
96144
$ virsh undefine centos-stream-9 --nvram --remove-all-storage
97145
```
146+
147+
## CentOS Stream 9 BIOS virtual firmware
148+
149+
```
150+
cd centos/cloud/x86_64
151+
packer init .
152+
PACKER_LOG=1 packer build \
153+
-var-file centos-stream-9-bios-x86_64.pkrvars.hcl \
154+
centos.pkr.hcl
155+
```
156+
157+
```
158+
$ sudo qemu-img convert \
159+
-f qcow2 \
160+
-O qcow2 \
161+
output-centos-stream-9-bios-x86_64/centos-stream-9-bios-x86_64.qcow2 \
162+
/var/lib/libvirt/images/centos-stream-9-bios.qcow2
163+
$ sudo qemu-img resize \
164+
-f qcow2 \
165+
/var/lib/libvirt/images/centos-stream-9-bios.qcow2 \
166+
32G
167+
```
168+
169+
```
170+
virt-install \
171+
--connect qemu:///system \
172+
--name centos-stream-9-bios \
173+
--boot uefi \
174+
--memory 4096 \
175+
--vcpus 2 \
176+
--os-variant centos-stream9 \
177+
--disk /var/lib/libvirt/images/centos-stream-9-bios.qcow2,bus=virtio \
178+
--network network=default,model=virtio \
179+
--graphics spice \
180+
--noautoconsole \
181+
--console pty,target_type=serial \
182+
--import \
183+
--debug
184+
185+
virsh console centos-stream-9-bios
186+
187+
# login with packer user
188+
```
189+
190+
```
191+
$ virsh shutdown centos-stream-9-bios
192+
$ virsh undefine centos-stream-9-bios --nvram --remove-all-storage
193+
```

0 commit comments

Comments
 (0)