KVM qcow2 — virt-install — virt-manager —— no use
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
KVM qcow2 —— no use
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------
How to convert VirtualBox vdi to KVM qcow2
---------------------------------------
VBoxManage clonehd --format RAW android-x86_64-6.0-rc1-0.vdi android-x86_64-6.0-rc1-0.img
qemu-img convert -f raw android-x86_64-6.0-rc1-0.img -O qcow2 android-x86_64-6.0-rc1-0.qcow2
---------------------------------------
KVM run qcow2
---------------------------------------
qemu-img create -f qcow2 -o preallocation=metadata android-x86_64-6.0-rc1-0.qcow2 4G
virt-install --help
brctl addbr br_a_0
ip link set up dev br_a_0
ifconfig br_a_0 up
**************************
* NOTE: close VirtualBox
**************************
bridge网络模式
virt-install --arch x86_64 --os-variant Linux --name=android-x86_64-6.0-rc1-0 --ram 1024 --vcpus=1 -f android-x86_64-6.0-rc1-0.qcow2 --cdrom ../android-x86_64-6.0-rc1.iso --graphics vnc,listen=0.0.0.0,port=5920, --network bridge=br_a_0 --force --autostart
NAT网络模式
--graphics vnc,listen=0.0.0.0,port=5920, --network network=default, --force --autostart
virsh list --all
virsh start android-x86_64-6.0-rc1-0
virt-manager
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++