{"id":230,"date":"2025-11-11T10:13:32","date_gmt":"2025-11-11T02:13:32","guid":{"rendered":"https:\/\/www.weibone.ltd\/?p=230"},"modified":"2025-11-18T11:36:16","modified_gmt":"2025-11-18T03:36:16","slug":"qemu%e5%ae%89%e8%a3%85arm%e7%89%88%e6%9c%ac%e7%9a%84kylin%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.weibone.ltd\/?p=230","title":{"rendered":"qemu\u5b89\u88c5arm\u7248\u672c\u7684kylin\u7cfb\u7edf"},"content":{"rendered":"<p>\u6839\u636e\u7528\u6237\u7684\u8981\u6c42\uff0c\u9700\u8981\u5b89\u88c5arm\u7248\u672c\u7684Kylin V10\u7cfb\u7edf\uff0c\u865a\u62df\u7684\u76ee\u6807\u5904\u7406\u5668\u662fKunpeng 920\u3002\n\u767e\u5ea6\u540e\u5f97\u77e5\u8be5\u5904\u7406\u5668\u5bf9\u5e94\u7684\u662fvirt\u91cc\u7684cortex-a72\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># qemu-system-aarch64 --version\n\nQEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.27)\nCopyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers\n\n#qemu-system-aarch64 -cpu help\n\ncortex-a72<\/code><\/pre>\n<p>\u6211\u7684\u670d\u52a1\u5668\u5df2\u7ecf\u5b89\u88c5\u4e86kvm\uff0c\u5e76\u8bbe\u7f6e\u4e86openvswitch\u4f5c\u4e3a\u865a\u62df\u673a\u7684\u7f51\u6865\u3002\u56e0\u4e3a\u6ca1\u6709\u5176\u4ed6\u7a7a\u95f2\u7f51\u53e3\uff0c\u6240\u4ee5\u6211\u5148\u521b\u5efabr0\uff0c\u518d\u628abr0\u52a0\u5165\u5230ovs\u4e2d\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># brctl addbr br0\n# ovs-vsctl add-port ovs br0\n# ovs-vsctl show\n    Bridge ovs\n      ......\n        Port ovs\n            Interface ovs\n                type: internal\n        Port ens65f1\n            Interface ens65f1\n        Port br0\n            Interface br0\n        ......\n    ovs_version: &quot;2.17.9&quot;<\/code><\/pre>\n<p>\u4f7f\u7528\u7f51\u7edc\u9700\u8981\u8c03\u7528qemu-bridge-helper\uff0c\u7f16\u8bd1\/etc\/qemu\/bridge.conf<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># cat &lt;&lt; EOF &gt;&gt; \/etc\/qemu\/bridge.conf\nallow ovs\nallow br0\n\nEOF<\/code><\/pre>\n<p>\u6700\u540e\u8fd8\u8981\u5b89\u88c5QEMU_EFI.fd\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8\u865a\u62df\u673a\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># apt-get install qemu-efi-aarch64\n# qemu-system-aarch64 -M virt -cpu cortex-a72 -smp 16 -m 65536 -bios \/usr\/share\/qemu-efi-aarch64\/QEMU_EFI.fd -drive file=\/data\/qemu\/kylin.qcow2,format=qcow2 -netdev bridge,id=hostnet0,br=br0 -device virtio-net-pci,netdev=hostnet0 -monitor stdio -vnc :1<\/code><\/pre>\n<p>\u8fd9\u65f6\u547d\u4ee4\u884c\u663e\u793aqemu console\uff0c\u901a\u8fc7vnc\u8fde\u63a5\u5230\u5bbf\u4e3b\u673a:5901\u7aef\u53e3\u5c31\u53ef\u4ee5\u663e\u793a\u865a\u62df\u673a\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># nohup qemu-system-aarch64 -M virt -cpu cortex-a72 -smp 16 -m 65536 -bios \/usr\/share\/qemu-efi-aarch64\/QEMU_EFI.fd -drive file=\/data\/qemu\/kylin.qcow2,format=qcow2 -netdev bridge,id=hostnet0,br=br0 -device virtio-net-pci,netdev=hostnet0 -monitor stdio -vnc :1 &amp;<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e\u7528\u6237\u7684\u8981\u6c42\uff0c\u9700\u8981\u5b89\u88c5arm&hellip;<\/p>","protected":false},"author":1,"featured_media":240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[11],"tags":[],"class_list":["post-230","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qemu"],"_links":{"self":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230"}],"version-history":[{"count":6,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions\/237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}