919 bytes added ,  16 October 2020
m
no edit summary
→‎Installation: Creating a RHEL 8.2 VM
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
== Creating a RHEL 8.2 VM ==
== Creating a RHEL 8.2 VM ==


{{testedon|2020-06-27|RHEL 8.2}}
{{testedon|2020-06-30|RHEL 8.2}}


<source lang="console">
<source lang="console">
# virt-install --name=iqbal --vcpus=2 --memory=2048 --cdrom=/home/mhan/Downloads/rhel-8.2-x86_64-boot.iso --disk size=5 --os-variant=rhel8.2
# virt-install --name=iqbal --vcpus=2 --memory=2048 --cdrom=/home/mhan/Downloads/rhel-8.2-x86_64-boot.iso --disk size=5 --os-variant=rhel8.2 --graphics vnc
</source>
 
Checking which port VNC is connected to
 
<source lang="console">
# virsh vncdisplay vm-name
</source>
</source>


Line 191: Line 197:
</source>
</source>


== Links ==
 
= Commands =
 
== Deleting ==
 
Note storage files. Shutdown. And delete.
 
<source lang="console">
# virsh dumpxml --domain openbsd | grep 'source file'
# virsh shutdown --domain openbsd
# virsh destroy -- domain openbsd
# virsh undefine -- domain openbsd
# rm -rf /var/lib/libvirt/images/openbsd.qcow2
</source>
 
When there are snapshots.
 
<source lang="console">
# virsh snapshot-list --domain openbsd
# virsh snapshot-delete --domain openbsd --snapshotname 3sep2016u1
</source>
 
Removing with all storage.
 
<source lang="console">
# virsh undefine --domain mysql-server
</source>
 
= Links =


* https://www.cyberciti.biz/faq/how-to-install-kvm-on-centos-7-rhel-7-headless-server/
* https://www.cyberciti.biz/faq/how-to-install-kvm-on-centos-7-rhel-7-headless-server/
Line 200: Line 234:
* Image management
* Image management
** https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c02814204
** https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c02814204
* QEMU (System Emulation)
** [https://www.qemu.org/docs/master/system/quickstart.html System Emulation User Guide]
** [https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ VGA and other display devices in qemu]