我正在尝试使用以下命令在CentOS 6.6主机上安装Centos 6.6 VM。
virt-install \ --name vm-queue \ --description "Queue Server" \ --ram 2048 \ --disk path=/var/kvm/images/vm-queue.img,size=30 \ --vcpus 2 \ --os-type linux \ --os-variant rhel6 \ --network bridge=br0 \ --graphics none \ --console pty,target_type=serial \ --cdrom /var/iso/CentOS-6.6-x86_64-minimal.iso
我给了一个启动屏幕,让我select一个安装选项。

只要我按下input,我就会得到
Loading vmlinuz...... Loading initrd.img....................................ready. Probing EDD (edd=off to disable)... ok
然后我在左下angular得到一个光标,大概3-4秒后我会 。

我已经让它坐了一个小时,没有任何反应。
据我所知,安装线上的一切都很酷。 该机有2个4核处理器,96G的RAM,桥接器正在工作。
/var/log/libvirt/libvirtd.log在安装过程中没有得到任何东西。 但是,当我最终不得不input + 〜 + 。 终止我给予的会议
14232: error : daemonStreamHandleAbort:609 : stream aborted at client request 14232: error : virNetSocketReadWire:1194 : End of file while reading data: Input/output error
然后当我杀了进程。
14232: error : qemuMonitorIO:615 : internal error End of file from monitor
任何人都知道随机字符我试图安装时得到什么?
如果有人需要它,则inheritance由libvirt创build的XML文件
<domain type='kvm'> <name>vm-queue</name> <uuid>de964c10-fdc3-ddad-96d3-c885bd9c1661</uuid> <description>Queue Server</description> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>2</vcpu> <os> <type arch='x86_64' machine='rhel6.6.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source file='/var/kvm/images/vm-queue.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </disk> <disk type='block' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hdc' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1' target='0' unit='0'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x2'/> </controller> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:bd:ac:6e'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='tablet' bus='usb'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> </domain>
您似乎尝试使用串行控制台而不是正常控制台进行安装。 不知道你为什么这样做,但…
默认情况下,安装程序尝试在Linux控制台上显示文本或graphics。 要将输出转移到串行控制台,您需要在引导屏幕上点击Tab ,并确保将以下选项添加到引导命令行:
text console=ttyS0