Ekkard Gerlach
2012-May-29 12:55 UTC
[libvirt-users] win-xp guest after reboot: could not open disk image /dev/sr0: mo medium found and extreme sluggisch
Hi, win-xp won't boot after installation. The CD is needed to boot from. How can I convince win-xp to boot? That's what I did: =================I installed win-xp guest on debian squeeze: # virt-install --connect qemu:///system --name winxp-prof --ram 1024 \ --disk path=/dev/vg-levo/winxp-kvm,size=10 \ --network bridge:br0 --vnc --os-variant winxp --cdrom /dev/sr0 /dev/vg-levo/winxp-kvm is a lvm (logical volume, 10GB) Installation worked, but was extrem slow. Machine: Lenovo B560, core i3, 6 GB RAM. WinXP made a normal reboot after installation, I ejected install cd, then: virt-manager output: Error starting domain: internal error Process exited while reading console log output: chard device redirected to /dev/pts/2 qemu: could not open disk image /dev/sr0: mo medium found So I inserted the CD and a black blanc screen appeared. Windows didn't boot. I deleted installation configuration: # virsh undefine winxp-prof I invoked virt-install (see above) once again ... and win-xp is booting ... what a surprise, without installing again after undefine .. ! The reason: the lvm partition was not deleted. WinXP now always needs a CD to boot and is extreme sluggisch. Right mouse click lasts about one minute! tia Ekkard
Ekkard Gerlach
2012-May-29 21:33 UTC
[libvirt-users] win-xp guest after reboot: could not open disk image /dev/sr0: mo medium found and extreme sluggisch
I found it myself: * Ekkard Gerlach (me) schrieb:> win-xp won't boot after installation.it's because in xml-file was /dev/sr0 . kvm checked the presence of sr0 If sr0 is not present the boot process makes stop. Solution: change /dev/sr0 to /media/cdrom0 (in debian squeeze always existing) in xml-file or delete the disk section entirely: <disk type='block' device='cdrom'> <driver name='qemu' type='raw'/> <source dev='/media/cdrom0'/> <<<==== changed <target dev='hdc' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1' unit='0'/> </disk> BTW: unfortunately the cdrom is not passed throught. I'll find it out some day ..> Installation worked, but was extrem slow. Machine: Lenovo B560, core i3, 6 GB RAM.Only WinXP-Prof is very slow. WinXP home is quite fast. I found http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers to speed up WinXP , Tomorrow I've time to read it ... Ekkard