Difference between revisions of "Virsh console"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
First you need to enable [[serial]] console in your VM Machine.<ref>https://www.cyberciti.biz/faq/how-to-enable-kvm-virsh-console-access-for-ubuntu-linux-vm/</ref>
 
First you need to enable [[serial]] console in your VM Machine.<ref>https://www.cyberciti.biz/faq/how-to-enable-kvm-virsh-console-access-for-ubuntu-linux-vm/</ref>
  
*<code>sudo [[systemctl enable]] [[serial-getty]]@[[ttyS0]].service</code>
+
* <code>sudo [[systemctl enable]] [[serial-getty]]@[[ttyS0]].service</code>
*<code>sudo [[systemctl start]] [email protected]</code>
+
* <code>sudo [[systemctl start]] [email protected]</code>
  
*<code>[[virsh]] [[console]] MACHINE</code>
+
* <code>[[virsh]] [[console]] MACHINE</code>
 
 
virsh console MACHINE_NAME
 
Connected to domain MACHINE_NAME
 
Escape character is ^]
 
error: operation failed: Active console session exists for this domain
 
  
 
== o kill old console ==
 
== o kill old console ==

Revision as of 20:46, 26 May 2022

Advertising: