你的位置:首页 > 操作系统

[操作系统]kvm初体验之六:克隆

目标:克隆vm1到vm1-clone

1. virsh suspend vm1

2. virt-clone --connect qemu:///system --original vm1 --name vm1-clone --file /vm/vm1-clone

或 virt-clone --connect qemu:///system -o vm1 -n vm1-clone -f /vm/vm1-clone

3. virsh start vm1-clone

登录vm1-clone, ifconfig发现eth0没起来, service network restart提示:

[[email protected] rules.d]# service network restart

Shutting down loopback interface: [ OK ]

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

[FAILED]

解决方法:

http://www.unixmen.com/fix-device-eth0-seem-present-delaying-initialization-error/

1)删除文件/etc/udev/rules.d/70-persistent-net.rules;

2)编辑/etc/sysconfig/network-scripts/ifcfg-eth0,删除行HWADDR和UUID;

3)重启。