Difference between revisions of "Virtual Machine (KVM)"

Jump to navigation Jump to search
316 bytes added ,  17:57, 23 December 2018
Added Auto Start
(→‎Create Server (no GUI): Edited Console note)
(Added Auto Start)
Line 1: Line 1:
Note that VMs are known as '''domains''' in the KVM world.
== Prerequisites ==
== Prerequisites ==
This guide assumes you have a basic working environment, run the <code>kvm-ok</code> command to sanity check...
This guide assumes you have a basic working environment, run the <code>kvm-ok</code> command to sanity check...
Line 87: Line 89:
Once the command has got as far as <code>Waiting for installation to complete.</code> you need to connect to the VNC console session, to find the port number to connect on query the config from anothet SSH session connected to the host (typically VNC uses ports starting from 5900 upwards).
Once the command has got as far as <code>Waiting for installation to complete.</code> you need to connect to the VNC console session, to find the port number to connect on query the config from anothet SSH session connected to the host (typically VNC uses ports starting from 5900 upwards).
   virsh dumpxml ubuntu-desktop | grep vnc
   virsh dumpxml ubuntu-desktop | grep vnc
== Other Config ==
=== Auto Start ===
To ensure that a VM domain starts with the host server issue the following commands (replace <code>vm-name</code> with the name of your VM
virsh autostart vm-name
To disable issue
virsh autostart vm-name --disable
   
   
[[Category:KVM]]
[[Category:KVM]]

Navigation menu