{"id":3572,"date":"2022-02-11T10:00:12","date_gmt":"2022-02-11T02:00:12","guid":{"rendered":"http:\/\/euhat.com\/wp\/?p=3572"},"modified":"2022-02-16T11:59:40","modified_gmt":"2022-02-16T03:59:40","slug":"build-qemu-in-fedora35","status":"publish","type":"post","link":"http:\/\/euhat.com\/wp\/2022\/02\/11\/build-qemu-in-fedora35\/","title":{"rendered":"Build qemu in Fedora35"},"content":{"rendered":"<style>\n.question { color:blue; }\n.verifying { color:red; }\n<\/style>\n<p>Build,<\/p>\n<pre class=\"prettyprint\" style=\"white-space:pre-wrap;\">\r\nsudo dnf install ninja-build pixman-devel\r\n\r\ncd qemu-6.2.0\r\nmkdir bld\r\ncd bld\r\n..&#47;configure --enable-kvm --target-list=x86_64-softmmu --prefix=`pwd`&#47;installed\r\nmake\r\n<\/pre>\n<p><b class=\"question\">Inspect through vnc,<\/b><\/p>\n<pre class=\"prettyprint\" style=\"white-space:pre-wrap;\">\r\ndnf install vinagre\r\n\r\ncd x86_64-softmmu\r\n.&#47;qemu-system-x86_64 -m 3500 -smp 4 --enable-kvm -boot d -hda &#47;mnt&#47;DATA&#47;vmimg&#47;win7&#47;win7.vmdk\r\n<\/pre>\n<p>Open vinagre, input \"127.0.0.1:5900\" in VNC host box, then connect, after a while we will see win7 running up.<\/p>\n<p><b class=\"question\">Run in local gui,<\/b><\/p>\n<pre class=\"prettyprint\" style=\"white-space:pre-wrap;\">\r\nsudo dnf install libepoxy-devel gtk3-devel\r\n\r\ncd bld\r\n..&#47;configure --enable-kvm --enable-gtk --enable-opengl --target-list=x86_64-softmmu --prefix=`pwd`&#47;installed\r\n\r\ncd x86_64-softmmu\r\n.&#47;qemu-system-x86_64 -m 3500 -smp 4 --enable-kvm -display gtk,gl=on -vga vmware -usb -device usb-kbd -device usb-audio -boot c -netdev user,id=mynet0 -device e1000-82545em,netdev=mynet0 -boot d -hda &#47;mnt&#47;DATA&#47;vmimg&#47;win7&#47;win7.vmdk\r\n<\/pre>\n<p>Frankly, qemu gui is not user friendly, and I have not found the way to setup 3d presentation in guest win7 yet.<\/p>\n<p>refer to:<br \/>\n<a href=\"https:\/\/blog.csdn.net\/haifeng_gu\/article\/details\/108055083\" rel=\"nofollow\">https:\/\/blog.csdn.net\/haifeng_gu\/article\/details\/108055083<\/a><br \/>\n<a href=\"https:\/\/blog.csdn.net\/wanghuiyao\/article\/details\/65627198\" rel=\"nofollow\">https:\/\/blog.csdn.net\/wanghuiyao\/article\/details\/65627198<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Build, sudo dnf install ninja-build pixman-devel cd qemu-6.2.0 mkdir bld cd bld ..&#47;configure --enable-kvm --target-list=x86_64-softmmu --prefix=`pwd`&#47;installed make Inspect through vnc, dnf install vinagre cd x86_64-softmmu .&#47;qemu-system-x86_64 -m 3500 -smp 4 --enable-kvm -boot d -hda &#47;mnt&#47;DATA&#47;vmimg&#47;win7&#47;win7.vmdk Open vinagre, input \"127.0.0.1:5900\" in VNC host box, then connect, after a while we will see win7 running up. Run ... <a title=\"Build qemu in Fedora35\" class=\"read-more\" href=\"http:\/\/euhat.com\/wp\/2022\/02\/11\/build-qemu-in-fedora35\/\" aria-label=\"More on Build qemu in Fedora35\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[734,741,743],"_links":{"self":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/3572"}],"collection":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/comments?post=3572"}],"version-history":[{"count":16,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/3572\/revisions"}],"predecessor-version":[{"id":3655,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/3572\/revisions\/3655"}],"wp:attachment":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/media?parent=3572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/categories?post=3572"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/tags?post=3572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}