kvm安裝windows虛擬機器無法找到硬碟

來源:互聯網
上載者:User

標籤:kvm安裝windows虛擬機器無法找到硬碟

kvm中安裝linux虛擬機器

#qemu-img create -f qcow2 linuxtest.qcow2 50G  

#virt-install --connect qemu:///system \

--name centos \

--ram 2048 \

--vcpus=2

--disk path=/home/kvm_img/centos.qcow2,device=disk,format=qcow2,bus=virtio,cache=none,size=50 \

--cdrom /mnt/CentOS-6.5-x86_64.iso \

--os-type=linux \

--network bridge=br0,model=virtio,model=e1000 \

--hvm \

--os-variant=rhel6

--graphics vnc,listen=0.0.0.0,port=5901

--virt-type=kvm \

--noautoconsole

然後利用vncview串連主機:1進行安裝系統



kvm中安裝windows虛擬機器

#qemu-img create -f qcow2 windowstest.qcow2 50G  

#virt-install --connect qemu:///system \

--name windows \

--ram 2048 \

--vcpus=2

--disk path=/home/kvm_img/windowstest.qcow2,device=disk,format=qcow2,bus=ide,cache=none,size=50 \

--cdrom /mnt/windows_7_86x64.iso \

--os-type=windows \

--network bridge=br0,model=virtio,model=e1000 \

--hvm \

--graphics vnc,listen=0.0.0.0,port=5902

--virt-type=kvm \

--noautoconsole

然後利用vncview串連主機:2進行安裝系統


#注意標紅的位置,如果寫錯,windows會找不到硬碟

本文出自 “Jeff” 部落格,轉載請與作者聯絡!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.