Changes between Version 2 and Version 3 of Csle2022/Agenda/virtualization
- Timestamp:
- Oct 20, 2022, 12:22:10 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/virtualization
v2 v3 107 107 The given is the VNC port number which is not exactly same as TCP port number. But we can derive the TCP port number using VNC port number because they have correlation. If the VNC port is :0 then TCP port will be 5900 and if the VNC port is :1 TCP port will be 5901 and so on. Using this relationship we can get the TCP port number and connect the graphical console of the VM. Then we can continue the installation as we normally do in a computer with monitor. 108 108 109 == Virtual Machine management == 109 110 111 To manage the Virtual machines we can use below commands. 110 112 113 Shutdown/start VM, 114 {{{ 115 virsh shutdown/start vmname 116 }}} 117 118 Ungraceful Shutdown VM, 119 {{{ 120 virsh destroy vmname 121 }}} 122 123 Delete VM, 124 {{{ 125 virsh undefine vmname 126 }}} 127 128 Delete Disk, 129 {{{ 130 virsh vol-delete --vol /var/lib/libvirt/images/sp-vm.qcow2 131 }}}