直接克隆已停止的完好的kvm虚拟机
virt-clone -o c3 -n rob -f /data/kvm/images/rob.img
查看各个虚拟机的网络ip
c1 :
inet 192.168.223.167/24 brd 192.168.223.255 scope global dynamic eth0
valid_lft 3247sec preferred_lft 3247sec
inet 192.168.223.15/32 scope global eth0
c2 :
inet 192.168.223.177/24 brd 192.168.223.255 scope
c3 :
inet 192.168.223.153/24 brd 192.168.223.255 scope gl
rob:
link/ether 52:54:00:00:51:ad brd ff:ff:ff:ff:ff:ff
inet 192.168.223.171/24 brd 192.168.223.255 scope global dynamic eth0
valid_lft 3584sec preferred_lft 3584sec
inet 192.168.223.15/32 scope global eth0
john
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:45:de:e4 brd ff:ff:ff:ff:ff:ff
inet 192.168.223.154/24 brd 192.168.223.255 scope global dynamic eth0
valid_lft 2331sec preferred_lft 2331sec
inet 192.168.223.15/32 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe45:dee4/64 scope link
全新安装kvm的系统,指定qcow2格式更方便迁移
virt-install --name=robFresh --vcpus=12 --ram=32480 --disk path=/data/kvm/images/robFresh.img,format=qcow2,size=100,bus=virtio --cdrom /data/CentOS-7-aarch64-Minimal-2003.iso --network network=nat223 --force --autostart
网友评论