{"id":490,"date":"2013-05-05T07:38:58","date_gmt":"2013-05-04T22:38:58","guid":{"rendered":"http:\/\/blog.himor.in\/?p=490"},"modified":"2013-05-05T07:38:58","modified_gmt":"2013-05-04T22:38:58","slug":"windows-8-on-virsh-failed","status":"publish","type":"post","link":"https:\/\/blog.himor.in\/?p=490","title":{"rendered":"Windows 8 on virsh failed.."},"content":{"rendered":"<p>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&#8217;ve tried to move into virsh.<\/p>\n<h3>preparation<\/h3>\n<p>To run on just prepared test server (Intel NCU BOXDC3217IYE) with Debian Wheezy RC1, I need to setup:<\/p>\n<ul>\n<li>Setup bridge device: br0<\/li>\n<li>Enable <tt>vnc_listen = \"0.0.0.0\"<\/tt> in <tt>\/etc\/libvirt\/qemu.conf<\/tt><\/li>\n<\/ul>\n<h3>Tried and failure<\/h3>\n<p>Added following xml with <tt>virsh define test.ml<\/tt>.<\/p>\n<blockquote>\n<pre>&lt;domain type='kvm'&gt;\r\n  &lt;name&gt;WinVM&lt;\/name&gt;\r\n  &lt;memory&gt;524288&lt;\/memory&gt;\r\n  &lt;currentMemory&gt;524288&lt;\/currentMemory&gt;\r\n  &lt;vcpu&gt;1&lt;\/vcpu&gt;\r\n  &lt;os&gt;\r\n    &lt;type&gt;hvm&lt;\/type&gt;\r\n    &lt;boot dev='hd'\/&gt;\r\n    &lt;boot dev='cdrom'\/&gt;\r\n  &lt;\/os&gt;\r\n\r\n  &lt;on_poweroff&gt;destroy&lt;\/on_poweroff&gt;\r\n  &lt;on_reboot&gt;restart&lt;\/on_reboot&gt;\r\n  &lt;on_crash&gt;restart&lt;\/on_crash&gt;\r\n\r\n  &lt;features&gt;\r\n    &lt;acpi \/&gt;\r\n    &lt;apic \/&gt;\r\n    &lt;pae \/&gt;\r\n  &lt;\/features&gt; \r\n  &lt;clock offset='localtime'\/&gt;\r\n\r\n  &lt;devices&gt;\r\n    &lt;emulator&gt;\/usr\/bin\/kvm&lt;\/emulator&gt;\r\n    &lt;disk type='file' device='disk'&gt;  \r\n      &lt;driver name='qemu' type='raw'\/&gt;\r\n      &lt;source file='\/local\/kvm\/win-test.disk'\/&gt;\r\n      &lt;target dev='vda' bus='virtio'\/&gt;\r\n    &lt;\/disk&gt;\r\n    &lt;interface type='bridge'&gt;\r\n      &lt;source bridge='br0'\/&gt;\r\n      &lt;mac address='52:54:00:1d:18:5e'\/&gt;\r\n      &lt;target dev='vnet0'\/&gt;  \r\n    &lt;\/interface&gt;\r\n    &lt;input type='tablet' bus='usb'\/&gt;\r\n    &lt;graphics type='vnc' port='5902' keymap='ja'\/&gt;\r\n  &lt;\/devices&gt;\r\n&lt;\/domain&gt;\r\n<\/pre>\n<\/blockquote>\n<p>And attached iso image by following xml with <tt>virsh attach-device --config WinVM .\/iso_win8_ent_ja_x86.xml<\/tt><\/p>\n<blockquote>\n<pre>&lt;disk type='file' device='cdrom'&gt;\r\n   &lt;driver name='qemu' type='raw' cache='none'\/&gt;\r\n   &lt;source file='\/local\/iso\/ja_windows_8_enterprise_x86.iso'\/&gt;\r\n   &lt;readonly\/&gt;\r\n   &lt;target dev='hdc'\/&gt;\r\n&lt;\/disk &gt;\r\n<\/pre>\n<\/blockquote>\n<p>(Note: <tt>--config<\/tt> makes this iso device permanently.)<\/p>\n<p>After kicking installer by <tt>virsh start<\/tt>, Windows 8 installer died with error <tt>5D<\/tt>.<br \/>\n<a href=\"http:\/\/blog.himor.in\/wp-content\/uploads\/2013\/05\/20130505-virt-win8-error.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-491\" title=\"20130505-virt-win8-error\" src=\"http:\/\/blog.himor.in\/wp-content\/uploads\/2013\/05\/20130505-virt-win8-error-300x154.png\" alt=\"error image\" width=\"300\" height=\"154\" srcset=\"https:\/\/blog.himor.in\/wp-content\/uploads\/2013\/05\/20130505-virt-win8-error-300x154.png 300w, https:\/\/blog.himor.in\/wp-content\/uploads\/2013\/05\/20130505-virt-win8-error.png 452w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ve tried to move into virsh. preparation To run on just prepared test server (Intel NCU BOXDC3217IYE) with Debian Wheezy RC1, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,3,14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/490"}],"collection":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":1,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}