[root@KVM1 ~]# systemctl stop firewalld.service
[root@KVM1 ~]# setenforce 0
[root@KVM1 ~]# lsmod | grep kvm //确认虚拟机支持kvm环境
kvm_intel 170181 3
kvm 554609 1 kvm_intel
irqbypass 13503 3 kvm
[root@KVM1 ~]# virsh list --all
Id Name State
----------------------------------------------------
- test01 shut off
KVM服务器B的操作:
[root@KVM2 ~]# systemctl stop firewalld.service
[root@KVM2 ~]# setenforce 0
[root@KVM2 ~]# lsmod | grep kvm //确认虚拟机支持kvm环境
kvm_intel 170181 0
kvm 554609 1 kvm_intel
irqbypass 13503 1 kvm
[root@KVM2 ~]# virsh list --all //确定当前没有KVM虚拟机
Id Name State
----------------------------------------------------
[root@KVM2 ~]# scp 192.168.45.134:/etc/libvirt/qemu/test01.xml /etc/libvirt/qemu //复制KVMA的配置文件
The authenticity of host '192.168.45.134 (192.168.45.134)' can't be established.
ECDSA key fingerprint is d7:77:71:90:34:25:c0:ec:e0:b6:5c:cc:6b:44:93:7b.
Are you sure you want to continue connecting (yes/no)? yes //确定
Warning: Permanently added '192.168.45.134' (ECDSA) to the list of known hosts.
[email protected]'s password: //密码为KVMA主机的密码
test01.xml 100% 3822 3.7KB/s 00:00
[root@KVM2 ~]# scp 192.168.45.134:/kvm-vm/test01.raw /kvm-vm/
[email protected]'s password: //密码为KVMA主机的密码
test01.raw 100% 10GB 83.3MB/s 02:03
[root@KVM2 ~]# ls /kvm-vm/
test01.raw virtual-kvm.qcow2
[root@KVM2 ~]# ls /etc/libvirt/qemu
networks test01.xmltest
[root@KVM2 ~]# cd /etc/libvirt/qemu/
[root@KVM2 qemu]# virsh define test01.xml
定义域 test01(从 test01.xml)
//根据配置文件生成虚拟机
Domain test01 defined from test01.xml
[root@KVM2 qemu]# virsh list --all
Id Name State
----------------------------------------------------
- test01 shut off
[root@KVM2 qemu]# virsh start test01 //开启虚拟机
Domain test01 started
[root@KVM2 qemu]# virsh list --all
Id Name State
----------------------------------------------------
1 test01 running
注:正常启动表示正常,请自行配置
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000777c3290, pid=5632, tid=6656
#
# JRE version: Java(TM) SE Ru
Spring 中提供一些Aware相关de接口,BeanFactoryAware、 ApplicationContextAware、ResourceLoaderAware、ServletContextAware等等,其中最常用到de匙ApplicationContextAware.实现ApplicationContextAwaredeBean,在Bean被初始后,将会被注入 Applicati
在Java项目中,我们通常会自己写一个DateUtil类,处理日期和字符串的转换,如下所示:
public class DateUtil01 {
private SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public void format(Date d
问题描述:
在实现类中的某一或某几个Override方法发生编译错误如下:
Name clash: The method put(String) of type XXXServiceImpl has the same erasure as put(String) of type XXXService but does not override it
当去掉@Over