{"id":168791,"date":"2013-02-08T20:10:03","date_gmt":"2013-02-08T16:10:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=168791"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=168791","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 KVM \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c CentOS 6<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0432\u0430\u0441, \u0425\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0442\u043e\u0447\u0435\u043d \u043c\u043d\u043e\u0433\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c, \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u00ab\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!\u00bb \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c.<br \/>  <b>\u041e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430<\/b> \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043a\u043e\u0440\u0435\u0435 <b>\u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445<\/b> \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0447\u0435\u043c \u043d\u0430 \u0433\u0443\u0440\u0443 (\u0434\u043b\u044f \u043d\u0438\u0445 \u0442\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0442 \ud83d\ude42 ), \u0438 \u0432 \u043d\u0435\u0439 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d, \u0441\u0442\u0430\u0440\u0430\u044f\u0441\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0445\u0432\u0430\u0442\u0438\u0441\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0437\u043d\u0430\u044e\u0449\u0438\u0445 \u0438 \u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0434\u0443\u0442 \u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Disclaimer<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u043e\u043f\u0440\u0430\u0432\u044c\u0442\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a, \u043d\u043e \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 CentOS \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0448\u0430\u0433\u043e\u0432 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432.<br \/>  \u0425\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0435\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/librarian\/\" class=\"user_link\">librarian<\/a>, \u043d\u043e \u043e\u043d\u0438 \u0434\u043b\u044f Debian. <br \/>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043b\u044f \u0431\u044b\u0432\u0430\u043b\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0432 \u044d\u0442\u043e\u043c \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435\u0442, \u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u043c\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. <\/p>\n<p>  <b>\u0412\u043e\u043f\u0440\u043e\u0441:<\/b> \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Qemu KVM \u043f\u043e\u0434 CentOS, \u0432\u043e\u0437\u0440\u0430\u0437\u0438\u0442\u0435 \u0432\u044b, \u0438 \u0447\u0435\u043c \u0436\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430? <br \/>  <b>\u041e\u0442\u0432\u0435\u0442: <\/b>\u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0433\u043e\u0441\u0442\u0435\u0432\u044b\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d (\u0412\u041c), \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u043b\u043e\u0439 \u0438 \u0441\u0435\u0440\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0412\u041c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0412\u041c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0441\u0432\u043e\u0439 \u041f\u041a \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c virt-manager.  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/157899\/\">7 \u0448\u0430\u0433\u043e\u0432?<\/a><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0412\u044b \u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u044d\u0442\u043e, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u0430 \u041e\u0421 CentOS 6 (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432\u0435\u0440\u0441\u0438\u044e 6.3), \u043f\u0440\u0438\u0447\u0435\u043c \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0433\u043e\u0441\u0442\u0435\u0432\u044b\u0445 \u0412\u041c \u0440\u0430\u0437\u043d\u043e\u0439 \u0431\u0438\u0442\u043d\u043e\u0441\u0442\u0438 (32 \u0438\u043b\u0438 64), \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 (\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438 \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c KVM \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0412\u041c) \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0441 64-\u0431\u0438\u0442\u043d\u043e\u0439 \u041e\u0421. <br \/>  \u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0438\u0437-\u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <i>root.<\/i><\/p>\n<p>  <b>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443.<\/b><\/p>\n<p>  <b>1. \u0428\u0430\u0433 \u2014 \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 <\/b><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043b\u0438 CPU \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"bash\"># egrep '(vmx|svm)' \/proc\/cpuinfo <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b\u0432\u043e\u0434 \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439, \u0437\u043d\u0430\u0447\u0438\u0442 \u2014 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. <br \/>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Intel Xeon Quad Core E3-1230 3.20 GHz \/ 8GB \/ 2x 1TB.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c KVM \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:  <\/p>\n<pre><code class=\"bash\"># yum install kvm libvirt <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 KVM  <\/p>\n<pre><code class=\"bash\"># service libvirtd start <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c KVM  <\/p>\n<pre><code class=\"bash\"># lsmod | grep kvm <\/code><\/pre>\n<p>  \u0414\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">kvm_intel              52890  16 kvm                   314739  1 kvm_intel <\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c <b>kvm_intel<\/b>, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c CPU \u2014 Intel.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a KVM  <\/p>\n<pre><code class=\"bash\"># virsh sysinfo <\/code><\/pre>\n<p>  \u0414\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">&lt;sysinfo type='smbios'&gt;   &lt;bios&gt;     &lt;entry name='vendor'&gt;HP&lt;\/entry&gt;     &lt;entry name='version'&gt;J01&lt;\/entry&gt;   ..... <\/code><\/pre>\n<p>  <b>2. \u0428\u0430\u0433 \u2014 \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d (Storage Pool)<\/b><\/p>\n<p>  <a href=\"https:\/\/access.redhat.com\/knowledge\/docs\/en-US\/Red_Hat_Enterprise_Linux\/6\/html\/Virtualization_Administration_Guide\/chap-Virtualization_Administration_Guide-Storage_Pools-Storage_Pools.html#sect-Virtualization-Storage_Pools-Creating-Local_Directories\">\u0417\u0434\u0435\u0441\u044c<\/a> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0438\u0434\u043e\u0432.<br \/>  \u0412 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u043c \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u043f\u0438\u0441\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0438\u043f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u2014 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0412\u041c \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 \u0444\u0430\u0439\u043b *.img \u043f\u043e\u0434 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a (\u0438\u043b\u0438 \u0434\u0438\u0441\u043a\u0438 \u2014 \u0435\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e), \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/guest_images.<br \/>  \u0422\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0430\u0441 \u044d\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u0447\u043a\u043e\u0439 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043d\u0443\u0436\u0434. <br \/>  \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u044b\u0439 raid \u043c\u0430\u0441\u0441\u0438\u0432, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u041c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u044f \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435:  <\/p>\n<pre><code class=\"bash\"># fdisk -l <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u044b\u0432\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">Disk \/dev\/sda: 1000.2 GB, 1000204886016 bytes ......  Disk \/dev\/sdb: 1000.2 GB, 1000204886016 bytes ...... <\/code><\/pre>\n<p>  \u041d\u0430 \u0436\u0435\u0441\u0442\u043a\u043e\u043c \u0434\u0438\u0441\u043a\u0435 <b>sda<\/b> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u041e\u0421, \u0435\u0433\u043e \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c, \u0430 \u0432\u043e\u0442 \u043d\u0430 <b>sdb<\/b> \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430 \u0432\u0441\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0434\u0438\u0441\u043a\u0430 \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 <b>ext4<\/b>:<br \/>  (\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/w.abcd.bz\/web-servers\/ustanovka-dopolnitelnogo-zhestkogo-diska-v-centos.html\">\u0437\u0434\u0435\u0441\u044c<\/a>)<\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0438\u0441\u043a \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  <\/p>\n<pre><code class=\"bash\"># fdisk \/dev\/sdb <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b  <\/p>\n<pre><code class=\"bash\">Command (m for help): n Command action    e   extended    p   primary partition (1-4) p Partition number (1-4): 1 <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f  <\/p>\n<pre><code class=\"bash\">Command (m for help): w The partition table has been altered! <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 ext4 \u043d\u0430 \u0432\u0441\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0434\u0438\u0441\u043a\u0430 \/dev\/sdb  <\/p>\n<pre><code class=\"bash\"># mkfs.ext4 \/dev\/sdb1 <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0443 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d:  <\/p>\n<pre><code class=\"bash\"># mkdir \/guest_images  # chmod 700 \/guest_images # ls -la \/guest_images  total 8   drwx------.  2 root root 4096 May 28 13:57 .  dr-xr-xr-x. 26 root root 4096 May 28 13:57 ..  <\/code><\/pre>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 <a href=\"http:\/\/ru.wikipedia.org\/wiki\/SELinux\">Selinux<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u044b \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0438\u043d\u043e\u0439 \u043f\u0443\u0442\u044c. \u041c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.  <\/p>\n<pre><code class=\"bash\"># semanage fcontext -a -t virt_image_t \/guest_images <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c, \u043d\u0430\u0434\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443  <\/p>\n<pre><code class=\"bash\"># yum provides \/usr\/sbin\/semanage <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u044b\u0432\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">Loaded plugins: rhnplugin  policycoreutils-python-2.0.83-19.8.el6_0.x86_64 : SELinux policy core python utilities  Repo        : rhel-x86_64-server-6  Matched from:  Filename    : \/usr\/sbin\/semanage  policycoreutils-python-2.0.83-19.1.el6.x86_64 : SELinux policy core python utilities  Repo        : rhel-x86_64-server-6  Matched from:  Filename    : \/usr\/sbin\/semanage  <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c policycoreutils-python  <\/p>\n<pre><code class=\"bash\"># yum -y install policycoreutils-python <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u043e\u0432\u0430:  <\/p>\n<pre><code class=\"bash\"># semanage fcontext -a -t virt_image_t \/guest_images <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b \/dev\/sdb1 \u0432 \/guest_images  <\/p>\n<pre><code class=\"bash\"># mount -t ext4 \/dev\/sdb1 \/guest_images <\/code><\/pre>\n<p>  \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <b>\/etc\/fstab<\/b> \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0440\u0430\u0437\u0434\u0435\u043b \u0441 \u0412\u041c \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/fstab <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0442\u0435\u0445, \u0447\u0442\u043e \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435  <\/p>\n<pre><code class=\"bash\">\/dev\/sdb1               \/guest_images           ext4    defaults        1 1 <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430:  <\/p>\n<pre><code class=\"bash\"># virsh pool-define-as guest_images_dir dir - - - - &quot;\/guest_images&quot;  Pool guest_images_dir defined <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0441\u043e\u0437\u0434\u0430\u043b\u043e\u0441\u044c \u043b\u0438 \u043e\u043d\u043e:  <\/p>\n<pre><code class=\"bash\"># virsh pool-list --all  Name                 State      Autostart   -----------------------------------------  default              active     yes         guest_images_dir     inactive   no <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435:  <\/p>\n<pre><code class=\"bash\"># virsh pool-build guest_images_dir  Pool guest_images_dir built  <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435:  <\/p>\n<pre><code class=\"bash\"># virsh pool-start guest_images_dir  Pool guest_images_dir started  # virsh pool-list --all  Name                 State      Autostart   -----------------------------------------  default             active     yes         guest_images_dir    active     no  <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443:  <\/p>\n<pre><code class=\"bash\"># virsh pool-autostart guest_images_dir  Pool guest_images_dir marked as autostarted  # virsh pool-list --all  Name                 State      Autostart   -----------------------------------------  default              active     yes         guest_images_dir     active     yes  <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"># virsh pool-info guest_images_dir  <\/code><\/pre>\n<p>  <b>3. \u0428\u0430\u0433 \u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438 \u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/b><\/p>\n<p>  <b>!!! \u0412\u0410\u0416\u041d\u041e!!! <\/b><br \/>   \u041f\u0435\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u0448\u0430\u0433\u0430, \u043d\u0430\u0434\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u0430\u043a\u0435\u0442 <b>bridge-utils<\/b>,   <\/p>\n<pre><code class=\"bash\"># rpm -qa | grep bridge-utils <\/code><\/pre>\n<p>   \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u0441\u0435\u0442\u044c\u044e \u0432\u044b \u0440\u0438\u0441\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0441\u0432\u044f\u0437\u044c \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u0431\u0438\u0434\u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439, \u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0435\u043c\u0443 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0443\u0441\u0442\u043e\u0439, \u0442\u043e:   <\/p>\n<pre><code class=\"bash\"># yum -y install bridge-utils <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u00ab\u0432 \u043c\u0438\u0440\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <b>eth0<\/b> \u0438 \u043e\u043d \u0431\u044b\u043b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d.<br \/>  \u041d\u0430 \u043d\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d IP-\u0430\u0434\u0440\u0435\u0441 10.110.10.15 \u0438\u0437 \/24 \u0441\u0435\u0442\u0438, \u043c\u0430\u0441\u043a\u0430 \u2014 255.255.255.0, \u0448\u043b\u044e\u0437 10.110.10.1.<br \/>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0442\u0438\u043f\u0430 \u00abbridge\u00bb \u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/sysconfig\/network-scripts\/ifcfg-br0 <\/code><\/pre>\n<p>  <i>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430<\/i>  <\/p>\n<pre><code class=\"bash\">DEVICE=&quot;br0&quot; NM_CONTROLLED=&quot;no&quot; ONBOOT=&quot;yes&quot; TYPE=&quot;Bridge&quot; BOOTPROTO=&quot;static&quot; IPADDR=&quot;10.110.10.15&quot; GATEWAY=&quot;10.110.10.1&quot; DNS1=&quot;8.8.8.8&quot; DNS2=&quot;8.8.4.4&quot; MTU=&quot;1500&quot; NETMASK=&quot;255.255.255.0&quot; DEFROUTE=&quot;yes&quot; IPV4_FAILURE_FATAL=&quot;yes&quot; IPV6INIT=&quot;no&quot; NAME=&quot;System br0&quot; <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u00ab\u043c\u0438\u0440\u00bb, \u043a \u0432\u0438\u0434\u0443:  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0  DEVICE=&quot;eth0&quot; BOOTPROTO=&quot;none&quot; HOSTNAME=&quot;localhost.localdomain&quot;   HWADDR=&quot;00:9C:02:97:86:70&quot;   IPV6INIT=&quot;no&quot; MTU=&quot;1500&quot; NM_CONTROLLED=&quot;no&quot; ONBOOT=&quot;yes&quot; TYPE=&quot;Ethernet&quot; NAME=&quot;System eth0&quot; BRIDGE=&quot;br0&quot; <\/code><\/pre>\n<p>  <b>!!! \u0412\u0430\u0436\u043d\u043e!!! <\/b><br \/>  DEVICE=\u00abeth0\u00bb \u0418\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u0438\u043c, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 eth1, \u0442\u043e\u0433\u0434\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0435\u0433\u043e.<br \/>  <i>HWADDR=\u00ab00:2C:C2:85:29:A3\u00bb<\/i> \u041c\u0410\u0421-\u0430\u0434\u0440\u0435\u0441 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u0438\u043c, \u043a\u0430\u043a \u0431\u044b\u043b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 <\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 \u0432\u0441\u0435, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0435\u0442\u044c:  <\/p>\n<pre><code class=\"bash\"># service network restart <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u00abbridge\u00bb:  <\/p>\n<pre><code class=\"bash\"># brctl show <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e  <\/p>\n<pre><code class=\"bash\">bridge name bridge id STP enabled interfaces br0 8000.002cc28529a3 no eth0 <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 <b>iptables<\/b>, \u0447\u0442\u043e\u0431\u044b \u0442\u0440\u0430\u0444\u0438\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u00ab\u0445\u043e\u0434\u0438\u043b\u00bb \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <i>bridge<\/i>  <\/p>\n<pre><code class=\"bash\"># iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT # service iptables save # service iptables restart <\/code><\/pre>\n<p>  <i>\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e:<\/i> \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f bridge, \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 <b>\/etc\/sysctl.conf<\/b>  <\/p>\n<pre><code class=\"bash\">net.bridge.bridge-nf-call-ip6tables = 0  net.bridge.bridge-nf-call-iptables = 0  net.bridge.bridge-nf-call-arptables = 0 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e  <\/p>\n<pre><code class=\"bash\"># sysctl -p \/etc\/sysctl.conf # service libvirtd reload <\/code><\/pre>\n<p>  <b>4. \u0428\u0430\u0433 \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u043e\u0432\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b<\/b><\/p>\n<p>  <i>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 CentOS \u043d\u0430 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u0412\u041c:<\/i>  <\/p>\n<pre><code class=\"bash\">virt-install -n VMName_2 --ram 1024 --arch=x86_64 \\ --vcpus=1 --cpu host --check-cpu \\ --extra-args=&quot;vnc sshd=1 sshpw=secret ip=static reboot=b selinux=0&quot; \\ --os-type linux --os-variant=rhel6 --boot cdrom,hd,menu=on \\ --disk pool=guest_images_dir,size=50,bus=virtio \\ --network=bridge:br0,model=virtio \\ --graphics vnc,listen=0.0.0.0,keymap=ru,password=some.password.here \\ --noautoconsole --watchdog default,action=reset --virt-type=kvm \\ --autostart --location http:\/\/mirror.yandex.ru\/centos\/6.3\/os\/x86_64\/ <\/code><\/pre>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 1:<\/i><br \/>  <b> VMName_2<\/b> \u2014 \u0438\u043c\u044f \u043d\u043e\u0432\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b <br \/>  <b> \u2013ram 1024 <\/b> \u2014 \u043a\u043e\u043b-\u0432\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 <br \/>  <b> \u2013arch=x86_64<\/b> \u2014 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u041e\u0421 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 <br \/>  <b> \u2013vcpus=1 <\/b> \u2014 \u043a\u043e\u043b-\u0432\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 <br \/>   <b>\u2013os-type linux<\/b> \u2014 \u0442\u0438\u043f \u041e\u0421 <br \/>  <b> \u2013disk pool=guest_images_dir,size=50<\/b> \u2014 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0438\u0440\u0442. \u0434\u0438\u0441\u043a\u0430 <br \/>  <b> \u2013network=bridge:br0<\/b><\/p>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 2:<\/i><br \/>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u0412\u041c \u043d\u0443\u0436\u043d\u0430 \u00ab\u0431\u0435\u043b\u0430\u044f \u0441\u0435\u0442\u044c\u00bb, \u0442\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u043c <br \/>  <b>&#8212;network=bridge:br0 <\/b><br \/>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u0412\u041c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u00ab\u0441\u0435\u0440\u0430\u044f \u0441\u0435\u0442\u044c\u00bb, \u0442\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u043c <br \/>  <b>&#8212;network=bridge:virbr0 <\/b><br \/>  \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043b\u044f \u0412\u041c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d \u0441\u0435\u0440\u044b\u0439 IP \u043f\u043e <i>DHCP<\/i> \u043e\u0442 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<br \/>  <b> &#8212;graphics vnc,listen=0.0.0.0,keymap=ru,password=some.password.here<\/b><br \/>  \u0422\u0443\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0412\u041c \u043f\u043e vnc<\/p>\n<p>  <i>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Windows \u043d\u0430 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u0412\u041c:<\/i>  <\/p>\n<pre><code class=\"bash\">virt-install --connect qemu:\/\/\/system --arch=x86_64 \\ -n VMName_1 -r 1024 --vcpus=1 \\ --disk pool=guest_images_dir,size=50,bus=virtio,cache=none \\ -c \/iso\/Windows2008R2RU.ISO --graphics vnc,listen=0.0.0.0,keymap=ru,password=some.password.here \\ --noautoconsole --os-type windows --os-variant win2k8 \\ --network=bridge:br0,model=e1000 --disk path=\/iso\/virtio-win.iso,device=cdrom,perms=ro <\/code><\/pre>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/i><br \/>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u0430\u043a\u0438\u0435 \u0436\u0435, \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 CentOS. \u041d\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f.<br \/>  \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u041e\u0421 Windows \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <b>cdrom<\/b> \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \/iso\/virtio-win.iso \u2014 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 ISO \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u0412\u0437\u044f\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/alt.fedoraproject.org\/pub\/alt\/virtio-win\/latest\/images\/bin\/virtio-win-0.1-30.iso\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u043e\u0432\u043e\u0439 \u0412\u041c, \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043f\u043e <a href=\"http:\/\/www.uvnc.com\/downloads.html\">vnc<\/a> \u043a \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041e\u0421. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"># netstat -nltp | grep q  tcp        0      0 0.0.0.0:5900                0.0.0.0:*                   LISTEN      64141\/qemu-kvm  tcp        0      0 0.0.0.0:5903                0.0.0.0:*                   LISTEN      63620\/qemu-kvm tcp        0      0 0.0.0.0:5904                0.0.0.0:*                   LISTEN      6971\/qemu-kvm  tcp        0      0 0.0.0.0:5905                0.0.0.0:*                   LISTEN      57780\/qemu-kvm <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u043e\u0432\u043e\u0439 \u0412\u041c, \u043f\u043e\u0440\u0442 vnc-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u0441\u044f \u043d\u0430 1. \u041f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0412\u041c, \u043f\u043e\u0440\u0442 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f,<br \/>   \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u043e\u0439 \u0412\u041c. \u0422\u043e \u0435\u0441\u0442\u044c, \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0440\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0412\u041c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0430\u043c\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0437 590\u2026<br \/>   \u0427\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u0442\u0443 vnc \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u0432\u0432\u043e\u0434\u0438\u043c:  <\/p>\n<pre><code class=\"bash\"># virsh vncdisplay VMName_1 :3 <\/code><\/pre>\n<p>  \u0433\u0434\u0435 <b>VMName_1 <\/b> \u2014 \u0438\u043c\u044f \u0412\u041c, <b> :3<\/b> \u2014 \u043d\u043e\u043c\u0435\u0440 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u043f\u043e\u0440\u0442\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 5900, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0434\u043e \u043d\u0430 \u043f\u043e\u0440\u0442 5903, \u043d\u043e \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 UltraVNC \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0442\u0430\u043a <b>10.110.10.15:3 <\/b> <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/1f6\/3d0\/f3f\/1f63d0f3f27bb6952c679cba97ace390.jpg\"\/><\/p>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/i><br \/>  \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0412\u041c \u0432\u044b\u043b\u0435\u0442\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 <b>Permission denied<\/b>, kvm \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b \u0434\u0438\u0441\u043a\u0430 \u0412\u041c *.img, <br \/>  \u0437\u043d\u0430\u0447\u0438\u0442, \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 qemu-kvm \u0438\u0437-\u043f\u043e\u0434 <b>root<\/b> (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <br \/>  \u0412\u041c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437-\u043f\u043e\u0434 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <i>libvirt<\/i>). \u041d\u043e \u043c\u044b \u043e\u0431\u043e\u0439\u0434\u0435\u043c\u0441\u044f \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <i>root<\/i>.<\/p>\n<p>  \u041f\u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433:  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/libvirt\/qemu.conf <\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:   <\/p>\n<pre><code class=\"bash\"># The user ID for QEMU processes run by the system instance.  user = &quot;root&quot;  # The group ID for QEMU processes run by the system instance.  group = &quot;root&quot;  <\/code><\/pre>\n<p>  <b>\u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0437\u043d\u0430\u0442\u044c: <\/b><br \/>   \u041a\u043e\u043d\u0444\u0438\u0433\u0438 \u0412\u041c \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c <b>\/etc\/libvirt\/qemu\/ <\/b><br \/>   \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u041e\u0417\u0423 \u0438\u043b\u0438 \u0435\u0449\u0435 \u0447\u0442\u043e-\u0442\u043e), <br \/>   \u0438\u0449\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0412\u041c \u0441 \u043d\u0443\u0436\u043d\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/libvirt\/qemu\/VMName_1.xml <\/code><\/pre>\n<p>  \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0440\u0442 vnc \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0412\u041c, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u0442\u0443  <\/p>\n<pre><code class=\"bash\">&lt;graphics type='vnc' port='5914' autoport='no' listen='0.0.0.0' passwd='some.password.here'&gt; &lt;listen type='address' address='0.0.0.0'\/&gt; &lt;\/graphics&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u044d\u0442\u043e\u0439 \u0412\u041c \u043f\u043e\u0440\u0442 vnc \u0431\u0443\u0434\u0435\u0442 \u2014 5914. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c libvirtd \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0421\u0430\u043c\u0443 \u0412\u041c \u0442\u043e\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0412\u041c \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0439\u0442\u0435 service libvirtd reload, \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0443\u0439\u0442\u0435 \u0412\u041c.<\/p>\n<p>  <b>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0412\u041c:<\/b>  <\/p>\n<pre><code class=\"bash\">virsh -c qemu:\/\/\/system help \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c    virsh -c qemu:\/\/\/system list --all \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0412\u041c    virsh -c qemu:\/\/\/system start vsrv1 \u0417\u0430\u043f\u0443\u0441\u0438\u0442\u044c \u0412\u041c vsrv1    virsh -c qemu:\/\/\/system shutdown vsrv1 \u041f\u043e\u0441\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0412\u041c    virsh -c qemu:\/\/\/system destroy vsrv1 \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0412\u041c    virsh -c qemu:\/\/\/system undefine vsrv1 \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0412\u041c  <\/code><\/pre>\n<p>  <b>5. \u0428\u0430\u0433 \u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u00ab\u0441\u0435\u0440\u044b\u0445\u00bb IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u0412\u041c <\/b><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430 4 \u0448\u0430\u0433\u0435 \u0432\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0441\u0435\u0440\u0443\u044e \u0441\u0435\u0442\u044c \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u0412\u041c (&#8212;network=bridge:virbr0), \u0442\u043e \u043d\u0430\u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (<b>\u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435!<\/b>) \u0434\u043b\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u0412\u041c<br \/>  \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430 \u041e\u0421:  <\/p>\n<pre><code class=\"bash\"># sysctl net.ipv4.ip_forward=1 # iptables -I FORWARD -j ACCEPT # iptables -t nat -I PREROUTING -p tcp -d 10.110.10.15 --dport 5910 -j DNAT --to-destination 192.168.122.170:5901 <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c 10.110.10.15 \u2014 \u0431\u0435\u043b\u044b\u0439 (\u0432\u043d\u0435\u0448\u043d\u0438\u0439) IP \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430. 192.168.122.170 \u2014 \u0441\u0435\u0440\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421.  <\/p>\n<pre><code class=\"bash\"># iptables -t nat -I POSTROUTING -p tcp -s 192.168.122.170 --sport 5901 -j SNAT --to-source 10.110.10.15:5910 <\/code><\/pre>\n<p>  <i>\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041e\u0421 CentOS \u043d\u0430 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u043a\u043e\u0433\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0435\u0440\u0435\u0448\u043b\u0430 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c, \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 5901 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421.<\/i><br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0438\u0437 \u041f\u041a, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0438\u0434\u0438\u0442\u0435, \u043f\u043e <i>vnc <\/i> \u043a 10.110.10.15:5910 \u0438\u043b\u0438 10.110.10.15:10 \u0442\u043e\u0436\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 UltraVNC.<\/p>\n<p>  \u041f\u043e \u0442\u0430\u043a\u043e\u043c\u0443 \u0436\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u043e\u0440\u0442 (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439) RDP 3389 \u0438\u043b\u0438 SSH 22 \u0432 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u041e\u0421.<\/p>\n<p>  <b>6. \u0428\u0430\u0433 \u2014 \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f virt-manager)<\/b><\/p>\n<p>  \u0415\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u00ab\u043f\u0440\u043e\u043a\u0438\u043d\u0443\u0442\u044c\u00bb \u0433\u0440\u0430\u0444\u0438\u043a\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u041f\u041a, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043d\u0430 ssh-\u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. <br \/>  \u041f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0432\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u041f\u041a \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Windows (\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Linux \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043a\u0443\u0434\u0430 \u043b\u0435\u0433\u0447\u0435 :), \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>ssh -X username@12.34.56.78<\/i>, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u043e\u0439, \u0447\u0442\u043e \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 <b>X11 forwarding<\/b> \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d \u0438 \u0432\u044b \u0441\u0438\u0434\u0438\u0442\u0435 \u0437\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c Linux \u041f\u041a c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u043e\u0439), \u0442\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e<\/p>\n<p>  1. \u0412\u0441\u0435\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 <a href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/latest\/x86\/putty.exe\">PuTTY<\/a>, <br \/>  2. \u041f\u043e\u0440\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 X \u0434\u043b\u044f Windows \u2014 <a href=\"http:\/\/sourceforge.net\/projects\/xming\/\">Xming<\/a><br \/>  3. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 PuTTY \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u00abEnable X11 Forwarding\u00bb <br \/>  \u0421\u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/86b\/843\/a08\/86b843a08d86a30365e8655a372c3ab7.jpg\"\/><\/p>\n<p>  \u0412 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Xming \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<br \/>  \u041d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 CentOS \u0434\u043b\u044f SSH \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c <b>X11 Forwarding<\/b>, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b<b> sshd_config<\/b>:  <\/p>\n<pre><code class=\"bash\"># vi \/etc\/ssh\/sshd_config  X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e  <\/p>\n<pre><code class=\"bash\"># \/etc\/init.d\/sshd restart <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c virt-manager \u043d\u0430 \u0445\u043e\u0441\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0435:  <\/p>\n<pre><code class=\"bash\"># yum install virt-manager <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442  <\/p>\n<pre><code class=\"bash\"># yum -y install xorg-x11-xauth <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u043a\u043d\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438\u0441\u044c \u0431\u0435\u0437 \u043a\u0440\u044f\u043a\u043e\u0437\u044f\u0431\u0440  <\/p>\n<pre><code class=\"bash\"># yum install liberation-sans-fonts <\/code><\/pre>\n<p>  <b>7. \u0428\u0430\u0433 \u2014 \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a virt-manager<\/b><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0442\u0438 \u043f\u043e SSH \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443. Xming \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438  <\/p>\n<pre><code class=\"bash\"># virt-manager <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043e\u043a\u043d\u043e virt-manager<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/79d\/42f\/03c\/79d42f03cb8668d60462eafb48e2c697.jpg\"\/><\/p>\n<p>  \u041a\u043e\u043d\u0441\u043e\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0412\u041c<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/21c\/2a3\/f3b\/21c2a3f3bda29b88ae6baf9c1daae2e7.jpg\"\/><\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0412\u041c \u0438 \u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/76a\/9bd\/298\/76a9bd2984730ecc1298ccfc47a01d7c.jpg\"\/><\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f. \u041b\u0438\u0447\u043d\u043e \u044f, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439 \u0431\u044b \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f, \u0440\u0435\u0437\u043a\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b \u0431\u044b \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043b\u043e\u043f\u0430\u0442\u0438\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u041e\u0421; \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u0431\u044b \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438 \u043d\u043e\u0432\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b.<\/p>\n<p>  \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/168791\/\"> http:\/\/habrahabr.ru\/post\/168791\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0432\u0430\u0441, \u0425\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0442\u043e\u0447\u0435\u043d \u043c\u043d\u043e\u0433\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c, \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u00ab\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!\u00bb \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c.<br \/>  <b>\u041e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430<\/b> \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043a\u043e\u0440\u0435\u0435 <b>\u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445<\/b> \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0447\u0435\u043c \u043d\u0430 \u0433\u0443\u0440\u0443 (\u0434\u043b\u044f \u043d\u0438\u0445 \u0442\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0442 \ud83d\ude42 ), \u0438 \u0432 \u043d\u0435\u0439 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d, \u0441\u0442\u0430\u0440\u0430\u044f\u0441\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0445\u0432\u0430\u0442\u0438\u0441\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0437\u043d\u0430\u044e\u0449\u0438\u0445 \u0438 \u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0434\u0443\u0442 \u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Disclaimer<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u043e\u043f\u0440\u0430\u0432\u044c\u0442\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a, \u043d\u043e \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 CentOS \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0448\u0430\u0433\u043e\u0432 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432.<br \/>  \u0425\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0435\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/librarian\/\" class=\"user_link\">librarian<\/a>, \u043d\u043e \u043e\u043d\u0438 \u0434\u043b\u044f Debian. <br \/>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043b\u044f \u0431\u044b\u0432\u0430\u043b\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0432 \u044d\u0442\u043e\u043c \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435\u0442, \u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u043c\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. <\/p>\n<p>  <b>\u0412\u043e\u043f\u0440\u043e\u0441:<\/b> \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Qemu KVM \u043f\u043e\u0434 CentOS, \u0432\u043e\u0437\u0440\u0430\u0437\u0438\u0442\u0435 \u0432\u044b, \u0438 \u0447\u0435\u043c \u0436\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430? <br \/>  <b>\u041e\u0442\u0432\u0435\u0442: <\/b>\u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0433\u043e\u0441\u0442\u0435\u0432\u044b\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d (\u0412\u041c), \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0435\u043b\u043e\u0439 \u0438 \u0441\u0435\u0440\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0412\u041c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0412\u041c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0441\u0432\u043e\u0439 \u041f\u041a \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c virt-manager.  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/157899\/\">7 \u0448\u0430\u0433\u043e\u0432?<\/a>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-168791","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168791"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168791\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}