[root@kvm-server ~]# systemctl status libvirtd.service ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since 日 2019-03-10 16:27:25 CST; 2h 22min ago Docs: man:libvirtd(8) http://libvirt.org Main PID: 982 (libvirtd) CGroup: /system.slice/libvirtd.service ├─ 982 /usr/sbin/libvirtd ├─1369 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/... └─1371 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/... 3月 10 18:42:59 kvm-server libvirtd[982]: 2019-03-10 10:42:59.471+0000: 1155: warning : qemuProcessVerifyHyper...ature 3月 10 18:43:30 kvm-server dnsmasq-dhcp[1369]: DHCPREQUEST(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:30 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:43:33 kvm-server dnsmasq-dhcp[1369]: DHCPREQUEST(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:33 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:43:36 kvm-server dnsmasq-dhcp[1369]: DHCPINFORM(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:36 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:44:59 kvm-server dnsmasq-dhcp[1369]: DHCPINFORM(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:44:59 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:48:01 kvm-server libvirtd[982]: 2019-03-10 10:48:01.169+0000: 982: error : qemuMonitorIO:697 : inter...nitor Hint: Some lines were ellipsized, use -l to show in full. [root@kvm-server ~]# [root@kvm-server ~]# systemctl status libvirtd.service ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since 日 2019-03-10 16:27:25 CST; 2h 22min ago Docs: man:libvirtd(8) http://libvirt.org Main PID: 982 (libvirtd) CGroup: /system.slice/libvirtd.service ├─ 982 /usr/sbin/libvirtd ├─1369 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/... └─1371 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/... 3月 10 18:42:59 kvm-server libvirtd[982]: 2019-03-10 10:42:59.471+0000: 1155: warning : qemuProcessVerifyHyper...ature 3月 10 18:43:30 kvm-server dnsmasq-dhcp[1369]: DHCPREQUEST(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:30 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:43:33 kvm-server dnsmasq-dhcp[1369]: DHCPREQUEST(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:33 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:43:36 kvm-server dnsmasq-dhcp[1369]: DHCPINFORM(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:43:36 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:44:59 kvm-server dnsmasq-dhcp[1369]: DHCPINFORM(virbr0) 192.168.122.28 52:54:00:e7:89:c0 3月 10 18:44:59 kvm-server dnsmasq-dhcp[1369]: DHCPACK(virbr0) 192.168.122.28 52:54:00:e7:89:c0 PC01 3月 10 18:48:01 kvm-server libvirtd[982]: 2019-03-10 10:48:01.169+0000: 982: error : qemuMonitorIO:697 : inter...nitor Hint: Some lines were ellipsized, use -l to show in full. [root@kvm-server ~]# virsh 欢迎使用 virsh,虚拟化的交互式终端。 输入:'help' 来获得命令的帮助信息 'quit' 退出 virsh # list --all Id 名称 状态 ---------------------------------------------------- 9 centos6 running - win7-Pro 关闭 virsh #
virsh # list --all Id 名称 状态 ---------------------------------------------------- 9 centos6 running - win7-Pro 关闭 virsh # start win7-Pro 域 win7-Pro 已开始 virsh # list --all Id 名称 状态 ---------------------------------------------------- 9 centos6 running 12 win7-Pro running virsh #