当前位置: > 虚拟化 Virtualization > KVM >

linux下kvm克隆虚拟机记录

时间:2016-04-06 16:40来源:linux.it.net.cn 作者:IT

目标:克隆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提示:

[root@localhost 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)重启。

(责任编辑:IT)
------分隔线----------------------------