2
更改QEMU-KVM虚拟机的引导设备
我正在尝试更改VM的启动设备。我进入/etc/libvirt/qemu并设置了VM的XML文件<boot dev='cdrom' />。尽管如此,它还是尝试从硬盘驱动器而不是从cdrom启动。 我知道我已经在CD-ROM虚拟设备上加载了ISO映像。 我这样做不正确吗?我尝试完全关闭VM,然后将其重新启动却无济于事。也许我需要以某种方式重新加载设置? 编辑: 根据@Selivanov的要求: $ libvirtd --version libvirtd (libvirt) 0.8.7 和XML文件: <domain type='kvm'> <name>nimmy.example.com</name> <uuid>(SNIP)</uuid> <memory>524288</memory> <currentMemory>524288</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='rhel6.1.0'>hvm</type> <boot dev='cdrom'/> </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/lib/libvirt/images/nimmy.img'/> <target …