{"id":111,"date":"2024-02-01T20:12:27","date_gmt":"2024-02-01T17:12:27","guid":{"rendered":"https:\/\/tivsi.ru\/?p=111"},"modified":"2024-09-19T02:29:34","modified_gmt":"2024-09-18T23:29:34","slug":"%d0%bc%d0%b5%d0%bd%d1%8f%d0%b5%d0%bc-%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80-%d0%b4%d0%b8%d1%81%d0%ba%d0%be%d0%b2-kvm-%d0%b3%d0%be%d1%81%d1%82%d0%b5%d0%b2%d1%8b%d1%85-%d1%81%d0%b8%d1%81%d1%82%d0%b5%d0%bc","status":"publish","type":"post","link":"https:\/\/redhost.su\/?p=111","title":{"rendered":"\u041c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 KVM \u0433\u043e\u0441\u0442\u0435\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c."},"content":{"rendered":"\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u0448\u0435\u0439 \u0412\u041c \u0432 WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Proxmox. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0412\u041c (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0412\u041c-108 \u201cKodi\u201d \u0441 Ubuntu 20.04 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443&nbsp;<strong>\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/strong>&nbsp;\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u0434\u0438\u0441\u043a, \u0430 \u0434\u0430\u043b\u0435\u0435&nbsp;<strong>Disk Action<\/strong>&nbsp;\u2013&nbsp;<strong>Resize<\/strong>.<\/p>\n\n\n\n<p>\u042f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b \u0434\u0438\u0441\u043a \u043d\u0430&nbsp;<strong>5 \u0413\u0431<\/strong>. \u041d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0438\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u0416\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;<strong>20G<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h\nFilesystem Size Used Avail Use% Mounted on\n\/dev\/sda2 15G 13G 1,8G 88% \/<\/code><\/pre>\n\n\n\n<!--more-->\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dmesg | grep sda<\/code><\/pre>\n\n\n\n<p>\u0422\u043e \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0434\u0438\u0441\u043a \u0438\u043c\u0435\u0435\u0442&nbsp;<strong>20.0 GiB<\/strong><br>\u0412\u044b\u0432\u0435\u0434\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk -l \/dev\/sda | grep ^\/dev<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>GPT PMBR size mismatch (31457279 != 41943039) will be corrected by write.\nThe backup GPT table is not on the end of the device.\n\/dev\/sda1   2048     4095     2048   1M BIOS boot\n\/dev\/sda2   4096 31455231 31451136  15G Linux filesystem<\/code><\/pre>\n\n\n\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u043c \u043d\u0430\u0448 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u043e 20 \u0413\u0431, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u044c&nbsp;<strong>PMBR<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>parted \/dev\/sda\nGNU Parted 3.4\nUsing \/dev\/sda\nWelcome to GNU Parted! Type 'help' to view a list of commands.<\/code><\/pre>\n\n\n\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0438\u0441\u043a\u0430\u0445 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(parted) print\nWarning: Not all of the space available to \/dev\/sda appears to be used, you can fix the GPT to use all of the space\n(an extra 10485760 blocks) or continue with the current setting? \nFix\/Ignore? F<\/code><\/pre>\n\n\n\n<p>\u0412\u043e\u0442 \u0432\u044b\u0432\u043e\u0434 \u0432\u0441\u0435\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0434\u0438\u0441\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Model: QEMU QEMU HARDDISK (scsi)\nDisk \/dev\/sda: 21,5GB\nSector size (logical\/physical): 512B\/512B\nPartition Table: gpt\nDisk Flags: \n\nNumber  Start   End     Size    File system  Name  Flags\n 1      1049kB  2097kB  1049kB                     bios_grub\n 2      2097kB  16,1GB  16,1GB  ext4<\/code><\/pre>\n\n\n\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0448 \u0440\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430&nbsp;<code>sda2<\/code>&nbsp;(\u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b) \u0434\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(parted) resizepart 2 100%\nWarning: Partition \/dev\/sda2 is being used. Are you sure you want to continue?\nYes\/No? Y<\/code><\/pre>\n\n\n\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0434\u0438\u0441\u043a \u0434\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438\u043b\u0438 \u0432\u044b\u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>End?  &#91;16,1GB]? 21,5GB                                                        \nWarning: Shrinking a partition can cause data loss, are you sure you want to continue?\nYes\/No? Y<\/code><\/pre>\n\n\n\n<p>\u0420\u0430\u0437\u043c\u0435\u0440&nbsp;<strong>21,5 GB<\/strong>&nbsp;\u0432\u0437\u044f\u043b \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b&nbsp;<code>dmesg | grep sda<\/code><br>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 \u0434\u0438\u0441\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(parted) print\nModel: QEMU QEMU HARDDISK (scsi)\nDisk \/dev\/sda: 21,5GB\nSector size (logical\/physical): 512B\/512B\nPartition Table: gpt\nDisk Flags: \n\nNumber  Start   End     Size    File system  Name  Flags\n 1      1049kB  2097kB  1049kB                     bios_grub\n 2      2097kB  21,5GB  21,5GB  ext4<\/code><\/pre>\n\n\n\n<p>\u0412\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0451\u043d. \u041c\u043e\u0436\u043d\u043e \u0432\u044b\u0439\u0442\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(parted) quit<\/code><\/pre>\n\n\n\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk -l \/dev\/sda | grep ^\/dev\n\/dev\/sda1   2048     4095     2048   1M BIOS boot\n\/dev\/sda2   4096 41943006 41938911  20G Linux filesystem<\/code><\/pre>\n\n\n\n<p>\u0412\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u0438\u0434\u0438\u0442&nbsp;<strong>20 \u0413\u0431<\/strong>&nbsp;\u0434\u0438\u0441\u043a\u0430.<br>\u0412\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>resize2fs \/dev\/sda2<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u0448\u0435\u0439 \u0412\u041c \u0432 WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Proxmox. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0412\u041c (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0412\u041c-108 \u201cKodi\u201d \u0441 Ubuntu 20.04 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443&nbsp;\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435&nbsp;\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u0434\u0438\u0441\u043a, \u0430 \u0434\u0430\u043b\u0435\u0435&nbsp;Disk Action&nbsp;\u2013&nbsp;Resize. \u042f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b \u0434\u0438\u0441\u043a \u043d\u0430&nbsp;5 \u0413\u0431. \u041d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0438\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u0416\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;20G<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-linux"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Niferman","author_link":"https:\/\/redhost.su\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u0448\u0435\u0439 \u0412\u041c \u0432 WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Proxmox. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0412\u041c (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0412\u041c-108 \u201cKodi\u201d \u0441 Ubuntu 20.04 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443&nbsp;\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435&nbsp;\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u0434\u0438\u0441\u043a, \u0430 \u0434\u0430\u043b\u0435\u0435&nbsp;Disk Action&nbsp;\u2013&nbsp;Resize. \u042f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b \u0434\u0438\u0441\u043a \u043d\u0430&nbsp;5 \u0413\u0431. \u041d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0438\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u0416\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;20G","_links":{"self":[{"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redhost.su\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":2,"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/redhost.su\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/redhost.su\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redhost.su\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redhost.su\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}