virt-manager 報錯no bootable device

        當使用virt-manager命令直接去安裝一個很小的鏡像文件(cirros操做系統的),此時會發生一個錯誤,該virt-manager會沒法啓動這個鏡像文件,緣由在於virt-manager有它本身的默認的配置文件,而當咱們直接從界面上去安裝的過程當中,使用的就是這個配置文件。做爲一個新手,如今先無論這個配置文件是什麼鬼,爲了快速地搞定它,能夠使用virt-install命令來安裝這個鏡像,從而啓動這個虛擬機。使用命令以下:linux

virt-install \
	--connect qemu:///system \
	--ram 200 -n kvm1 \
	--os-type=linux \
	--disk path=/home/abc/project/cirros/cirros-0.3.4-x86_64-disk.img,device=disk,bus=virtio,format=qcow2 \
	--vcpus=1 --nographics --noautoconsole --import
相關文章
相關標籤/搜索