【Linux运维】virsh使用qemu+tcp访问远程libvirtd

【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
posted @ 2020-04-07 11:14  yanling0813  阅读(788)  评论(0编辑  收藏  举报