【Linux运维】virsh使用qemu+tcp访问远程libvirtd
1、命令
virsh -c qemu+tcp://<IP>:<port>/system
2、案例
(nova-libvirt)[root@compute3 /opt]$ virsh -c qemu+tcp://compute2/system
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # virs list
error: unknown command: 'virs'
virsh # virsh lst
error: unknown command: 'virsh'
virsh # virsh list
error: unknown command: 'virsh'
virsh # list
Id Name State
-----------------------------------
12 instance-00000055 running
virsh # list --all
Id Name State
-----------------------------------
12 instance-00000055 running