I.. configuring a KVM Server
1. Configure Virtio Source
wget Https://fedorapeople.org/groups/virt/virtio-win/virtio-win.repo-O/etc/yum.repos.d/virtio-win.repo
2. Install related software packages
Yum Install virt-v2v Libguestfs-winsupport Virtio-win
Second, prepare to be converted Server
1. Turn off random startup of all business systems on the server
Iii. converting a physical server to a virtual machine
1. Download Centos-7-x86_64-livegnome-1611.iso
wget Https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1611.iso
2. From burning Centos-7-x86_64-livegnome-1611.iso to CD
3. Boot the converted server from the Centos-7-x86_64-livegnome-1611.iso CD
4. Configure the Network
cat/etc/sysconfig/network-scripts/ifcfg-eth0type=ethernetbootproto=staticdefroute=yespeerdns=yespeerroutes= Yesipv4_failure_fatal=noipv6init=yesipv6_autoconf=yesipv6_defroute=yesipv6_peerdns=yesipv6_peerroutes=yesipv6_ failure_fatal=noname=eth0uuid=e3fc126d-9352-43d5-a257-54b0b386567aonboot=yesipaddr=10.10.10.2 # Modify netmask= According to the actual situation 255.255.255.0gateway=10.10.0.1
5. Close and disable FIREWALLD
Systemctl Disable Firewalldsystemctl Stop FIREWALLD
6. Start sshd
Service sshd Start
7. Set Root password
Password
8. Start conversion
1. Log in to the KVM server
SSH [email protected] Server IP
2. Copying a hard disk
# 10.10.10.2 Configure the IP when configuring the network for 4, please modify SSH [email protected] "DD IF=/DEV/SDA" according to the actual situation | DD Of=/opt/disk.img
Iv. Known Issues:
DD mode can be any system to do disk mirroring, but because Windows system does not have IDE, Virtio and other hard disk drive, cause the Windows image of DD out in IDE mode to boot in the KVM will also cause blue screen.
This article is from the "Wuling Grassland" blog, please make sure to keep this source http://penguintux.blog.51cto.com/3021117/1917734
CentOS 7 converts Linux system to virtual machine via DD