{"id":1061,"date":"2016-07-31T23:46:22","date_gmt":"2016-07-31T15:46:22","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=1061"},"modified":"2024-11-15T14:19:48","modified_gmt":"2024-11-15T06:19:48","slug":"centos-5%e4%b8%8b%e5%ae%89%e8%a3%85xen%e8%99%9a%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/uncategorized\/centos-5%e4%b8%8b%e5%ae%89%e8%a3%85xen%e8%99%9a%e6%9c%ba\/","title":{"rendered":"CentOS 5\u4e0b\u5b89\u88c5Xen\u865a\u673a"},"content":{"rendered":"<p><strong>\u4e00.\u5b89\u88c5Xen<\/strong><br \/>\n# wget https:\/\/www.gitco.de\/repo\/GITCO-XEN3.4.3_x86_64.repo -O \/etc\/yum.repos.d\/GITCO-XEN3.4.3_x86_64.repo<br \/>\n# yum -y -q clean all<br \/>\n# yum remove xen<br \/>\n# yum install xen<br \/>\n# yum remove libvirt.i386 xen-libs.i386<br \/>\n# chkconfig \u2013add xend<br \/>\n# chkconfig xend on<br \/>\n# yum install kernel-xen<span id=\"more-1583\"><\/span><br \/>\n# rpm \u2013q kernel-xen<br \/>\n# vim \/boot\/grub\/grub.conf<br \/>\n\u4fee\u6539\u542f\u52a8\u987a\u5e8f\uff0c\u6539\u62100\uff0c\u4ee5xen\u5185\u6838\u6765\u542f\u52a8\uff0c\u5982\u4e0b\u56fe\uff1a<br \/>\n<a href=\"https:\/\/www.urbansh.com\/wp-content\/uploads\/2012\/10\/grub.conf_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-1584\" title=\"grub.conf\" src=\"https:\/\/www.urbansh.com\/wp-content\/uploads\/2012\/10\/grub.conf_-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><br \/>\n# reboot<\/p>\n<p><strong>\u4e8c.\u5728\u7ebf\u5b89\u88c5CentOS 5.8\u865a\u673a<\/strong><br \/>\nvirt-install -n centos1 -r 512 \u2013vcpus=1 \u2013nographic -f \/home\/centos1.img -s 20 -p \u2013network network:default -l https:\/\/mirrors.ustc.edu.cn\/centos\/5.8\/os\/x86_64\/<br \/>\n\u8fd9\u91cc\u901a\u8fc7NAT\u5f62\u5f0f\u5728\u7ebf\u5b89\u88c5\u865a\u673a\uff0c\u79d1\u5927\u7684\u955c\u50cf\u6bd4\u8f83\u5feb\uff0c\u6240\u4ee5\u9009\u62e9\u4e86\u79d1\u5927\u7684\u955c\u50cf\u6765\u5b89\u88c5\uff0c\u63a5\u4e0b\u6765\u7684\u6b65\u9aa4\u5c31\u548c\u6211\u4eec\u5e73\u65f6\u88c5\u7cfb\u7edf\u4e00\u6837\u4e86\u3002\u8be6\u7ec6\u89c1\u7f51\u7edc\u79c1\u623f\u83dc\u8bba\u575bhttps:\/\/www.networktalking.com\/thread-4449-1-1.html<\/p>\n<p><strong>\u4e09.\u865a\u62df\u673a\u7684\u4e00\u4e9b\u7ba1\u7406\u547d\u4ee4<\/strong><br \/>\nxm dm xen\u7684dmesg\u4fe1\u606f<br \/>\nxm create centos5 \u542f\u52a8\u865a\u62df\u673acentos<br \/>\nxm console centos5 \u4ee5\u6587\u672c\u65b9\u5f0f\u8fde\u63a5\u81f3\u865a\u62df\u673a<br \/>\nxm reboot centos5 \u91cd\u542f\u865a\u62df\u673a<br \/>\nxm shutdown centos5 \u5173\u95ed\u865a\u62df\u673a<br \/>\nxm pause centos5 \u6682\u505c\u865a\u62df\u673a<br \/>\nxm resume centos5 \u6062\u590d\u88ab\u6682\u505c\u7684\u865a\u62df\u673a<br \/>\nxm destroy centos5 \u5220\u9664\u865a\u62df\u673a<\/p>\n<p>\u66f4\u8be6\u7ec6\u53ef\u4ee5\u901a\u8fc7xm -h\u67e5\u770b\u3002<\/p>\n<p>\u7f51\u7edc\u4efb\u6211\u884c(www.urbansh.com)\u539f\u521b\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904<a href=\"https:\/\/www.urbansh.com\/centos-5-vm-install.html\">https:\/\/www.urbansh.com\/centos-5-vm-install.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00.\u5b89\u88c5Xen # wget https:\/\/www.gitco.de\/repo\/GITCO-XEN3.4.3 &#8230; <a title=\"CentOS 5\u4e0b\u5b89\u88c5Xen\u865a\u673a\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/uncategorized\/centos-5%e4%b8%8b%e5%ae%89%e8%a3%85xen%e8%99%9a%e6%9c%ba\/\" aria-label=\"\u9605\u8bfb CentOS 5\u4e0b\u5b89\u88c5Xen\u865a\u673a\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[1511,1510,1512],"class_list":["post-1061","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos-5-8","tag-xen","tag-1512"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=1061"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1061\/revisions"}],"predecessor-version":[{"id":1062,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1061\/revisions\/1062"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=1061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=1061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=1061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}