无法使用 virt-install 安装 Windows 客户机

无法使用 virt-install 安装 Windows 客户机

我正在尝试使用 virt-install 命令在我的 CentOS 6.4 64 位系统上安装 Windows 客户机(Windows Sever 2012 64 位)。

命令: /usr/sbin/virt-install --graphics vnc,port=5903,listen=127.0.0.1,password=redhat --noautoconsole --name=myos2 --ram=1024 --arch=x86_64 --vcpus=1 --hvm --disk path=/media/skrtbhtngr/wins2012,size=32 -m 66:55:44:33:22:00 --location=/root/Desktop/OS_Images/en_windows_server_2012_x64_dvd_915478.iso

输出: Starting install... ERROR Could not find an installable distribution at '/root/Desktop/OS_Images/en_windows_server_2012_x64_dvd_915478.iso' The location must be the root directory of an install tree. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start myos2 otherwise, please restart your installation.

此外,当我使用虚拟机管理器时,操作系统安装成功启动。现在,所有 Windows 客户机(Win7 等...)都会发生这种情况。

我怎么也想不通我错在哪里?

PS:我是虚拟化领域的新手!

答案1

我认为您需要使用 --cdrom 而不是 --location 来指向 ISO。然后虚拟机应该会启动到 ISO。

http://opennodecloud.com/documentation/howtos/kvm-guests-virt-install-examples/

相关内容