使用qemu创建虚拟机

1.从uefi引导启动

qemu-kvm -machine virt-2.10,accel=kvm,gic-version=3 -cpu host -drive file=/usr/share/AAVMF/AAVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -m 4096 centos-01.img --nographic

2.从内核启动

qemu-kvm -machine virt-2.10,accel=kvm,gic-version=3 -cpu host -m 4096 -smp 4 -kernel vmlinuz-4.5.0-19.el7.aarch64 -initrd initramfs-4.5.0-19.el7.aarch64.img -append "root=UUID=418538f4-f8a3-4c8f-8c9f-b69f86ade77c ro crashkernel=auto" -hda centos_01.img --nographic

 

posted on 2018-07-04 14:51  carrot_hrp  阅读(420)  评论(0编辑  收藏  举报

导航