Windows 8 on virsh failed..
This is a failed log on testing Windows 8 on virsh. With kvm (w/o virsh, just kvm command line) I could run Windows 8 VM, but it has some issue on disk performance. So, I’ve tried to move into virsh.
preparation
To run on just prepared test server (Intel NCU BOXDC3217IYE) with Debian Wheezy RC1, I need to setup:
- Setup bridge device: br0
- Enable vnc_listen = "0.0.0.0" in /etc/libvirt/qemu.conf
Tried and failure
Added following xml with virsh define test.ml.
<domain type='kvm'> <name>WinVM</name> <memory>524288</memory> <currentMemory>524288</currentMemory> <vcpu>1</vcpu> <os> <type>hvm</type> <boot dev='hd'/> <boot dev='cdrom'/> </os> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <features> <acpi /> <apic /> <pae /> </features> <clock offset='localtime'/> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/local/kvm/win-test.disk'/> <target dev='vda' bus='virtio'/> </disk> <interface type='bridge'> <source bridge='br0'/> <mac address='52:54:00:1d:18:5e'/> <target dev='vnet0'/> </interface> <input type='tablet' bus='usb'/> <graphics type='vnc' port='5902' keymap='ja'/> </devices> </domain>
And attached iso image by following xml with virsh attach-device --config WinVM ./iso_win8_ent_ja_x86.xml
<disk type='file' device='cdrom'> <driver name='qemu' type='raw' cache='none'/> <source file='/local/iso/ja_windows_8_enterprise_x86.iso'/> <readonly/> <target dev='hdc'/> </disk >
(Note: --config makes this iso device permanently.)
After kicking installer by virsh start, Windows 8 installer died with error 5D.