Difference between revisions of "Virsh --connect"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>virsh --connect qemu:///system start VM_NAME</code>
+
{{lowercase}}
 +
* <code>[[virsh]] --connect qemu:///system start VM_NAME</code>
 +
 
 +
[[virsh --connect qemu:///system capabilities]]
  
 
  virsh --connect qemu+ssh://[email protected]/system list
 
  virsh --connect qemu+ssh://[email protected]/system list
Line 10: Line 13:
 
  error: failed to connect to the hypervisor
 
  error: failed to connect to the hypervisor
 
  error: internal error: received hangup event on socket
 
  error: internal error: received hangup event on socket
 +
 +
virsh --connect qemu+ssh://USERNAME@SERVER/system?socket=/var/run/libvirt/libvirt-sock list
 +
USERNAME@SERVER's password:
 +
Id  Name          State
 +
-----------------------------
 +
  1    VM_NAME    running
 +
  
 
== Related commands ==
 
== Related commands ==
* <code>[[virsh console]]</code>
+
* <code>[[virsh console]] VM_NAME</code>
 
* <code>[[virsh start]]</code>
 
* <code>[[virsh start]]</code>
 
* <code>[[virt-install]]</code>
 
* <code>[[virt-install]]</code>
 +
* <code>[[virt-manager]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{virsh connectivity}}
 
* {{virsh}}
 
* {{virsh}}
  
  
 
[[Category:KVM]]
 
[[Category:KVM]]

Latest revision as of 17:52, 29 June 2022

  • virsh --connect qemu:///system start VM_NAME
virsh --connect qemu:///system capabilities
virsh --connect qemu+ssh://[email protected]/system list
virsh --connect qemu://system start VM_NAME
error: failed to connect to the hypervisor
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
virsh --connect qemu+ssh://USERNAME@SERVER/system  list
USERNAME@SERVER's password:
error: failed to connect to the hypervisor
error: internal error: received hangup event on socket
virsh --connect qemu+ssh://USERNAME@SERVER/system?socket=/var/run/libvirt/libvirt-sock list
USERNAME@SERVER's password:
Id   Name          State
-----------------------------
 1    VM_NAME     running


Related commands[edit]

See also[edit]

Advertising: