{"id":1052,"date":"2018-12-12T20:07:33","date_gmt":"2018-12-12T17:07:33","guid":{"rendered":"https:\/\/galaxydata.ru\/community\/?p=1052"},"modified":"2025-07-22T20:45:35","modified_gmt":"2025-07-22T17:45:35","slug":"how-to-resize-a-qcow2-harddrive-images","status":"publish","type":"post","link":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052","title":{"rendered":"How to resize a qcow2 harddrive images"},"content":{"rendered":"<p>I usually make the hard drives on my virtual machines as small as possible to save disk space on the host. I do this because it is reasonably easy to resize them at a later date (especially if you using LVM). Anyhow here is a quick guide to resizing a qcow2 disk image.<\/p>\n<p><strong>1 \u2013 Shutdown the guest.<\/strong>. It\u2019s important to shutdown the vm properly rather than pausing it or forcing it to a stop because you need the file system to be a perfect condition before resizing it.<\/p>\n<div id=\"highlighter_313521\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<pre class=\"lang:sh decode:true\">virsh shutdown hostname<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>2 \u2013 Increase the qcow2 disk<\/strong>. It a simple command to increase the size of the disk. Here I am adding 5GB to an Ubuntu Server disk.<\/p>\n<div id=\"highlighter_221451\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<pre class=\"lang:sh decode:true  \">qemu-img resize ubuntu-server.qcow2 +5GB<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>3 \u2013 Resize the partition<\/strong>\u00a0Now that the virtual disk has been resized you need to resize the guest\u2019s partitions within the image. I recommend using a small live Linux distrobution such as\u00a0<a title=\"GParted Live\" href=\"http:\/\/gparted.sourceforge.net\/livecd.php\" target=\"_blank\" rel=\"noopener noreferrer\">GParted Live<\/a>. First\u00a0<a title=\"download page\" href=\"http:\/\/gparted.sourceforge.net\/download.php\" target=\"_blank\" rel=\"noopener noreferrer\">download an iso image of GParted<\/a>\u00a0and attach it to the virtual machine by editing the vm settings.<\/p>\n<div id=\"highlighter_661178\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">virsh edit hostname<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>Add a boot order at the top. By default there will be one node that should read:<\/p>\n<div id=\"highlighter_465471\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;boot dev='hd'\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>Simply change this to:<\/p>\n<div id=\"highlighter_467402\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;boot dev='cdrom'\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>Add a cdrom after the hard disk. Make sure to change the \/path\/to\/image.iso to the ISO image you want to boot from. If you don\u2019t set this correctly the VM will not boot.<\/p>\n<div id=\"highlighter_363022\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;disk type='file' device='cdrom'\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt2\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;source file='\/mnt\/iso\/gparted-live-0.16.1-1-i486.iso'\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;target dev='hdc' bus='ide'\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt2\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;readonly\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">&lt;\/disk&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>Finally, start the VM and VNC into it. I tend to use\u00a0<a title=\"Virtual Machine Manager\" href=\"http:\/\/virt-manager.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Virtual Machine Manager<\/a>\u00a0to connect to a VM. It works brilliantly on most Linux machines. You should then be able to use GParted to increase the size of the partition.<\/p>\n<p><a href=\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1377\" src=\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" srcset=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png 802w, https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted-300x225.png 300w\" alt=\"resizing_qcow_image_using_gparted\" width=\"802\" height=\"601\" data-attachment-id=\"1377\" data-permalink=\"https:\/\/www.randomhacks.co.uk\/how-to-resize-a-qcow2-harddrive-images\/resizing_qcow_image_using_gparted\/\" data-orig-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\" data-orig-size=\"802,601\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"resizing_qcow_image_using_gparted\" data-image-description=\"\" data-medium-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted-300x225.png\" data-large-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1376\" src=\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted.png\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" srcset=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted.png 778w, https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted-300x220.png 300w\" alt=\"how_to_resize_a_qcow_file_using_gparted\" width=\"778\" height=\"571\" data-attachment-id=\"1376\" data-permalink=\"https:\/\/www.randomhacks.co.uk\/how-to-resize-a-qcow2-harddrive-images\/how_to_resize_a_qcow_file_using_gparted\/\" data-orig-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted.png\" data-orig-size=\"778,571\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"how_to_resize_a_qcow_file_using_gparted\" data-image-description=\"\" data-medium-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted-300x220.png\" data-large-file=\"https:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/how_to_resize_a_qcow_file_using_gparted.png\" \/><\/a><\/p>\n<p><strong>4 \u2013 Start the VM backup<\/strong>\u00a0Note: Unless you really need it \u2013 I generally edit the VM and remove the cdrom and boot order by reversing the step described above.<\/p>\n<div id=\"highlighter_565971\" class=\"syntaxhighlighter nogutter \">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table>\n<tbody>\n<tr>\n<td class=\"content\"><code class=\"plain\">virsh start hostname<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I usually make the hard drives on my virtual machines as small as possible to save disk space on the host. I do this because it is reasonably easy to&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-1052","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.4 (Yoast SEO v25.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to resize a qcow2 harddrive images - GalaxyData Community<\/title>\n<meta name=\"description\" content=\"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to resize a qcow2 harddrive images\" \/>\n<meta property=\"og:description\" content=\"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\" \/>\n<meta property=\"og:site_name\" content=\"GalaxyData Community\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/vk.com\/galaxydata\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-12T17:07:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T17:45:35+00:00\" \/>\n<meta name=\"author\" content=\"Eduard Yamaltdinov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eduard Yamaltdinov\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#article\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\"},\"author\":{\"name\":\"Eduard Yamaltdinov\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\"},\"headline\":\"How to resize a qcow2 harddrive images\",\"datePublished\":\"2018-12-12T17:07:33+00:00\",\"dateModified\":\"2025-07-22T17:45:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\"},\"wordCount\":301,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\",\"articleSection\":[\"Virtualization\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\",\"url\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\",\"name\":\"How to resize a qcow2 harddrive images - GalaxyData Community\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage\"},\"image\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\",\"datePublished\":\"2018-12-12T17:07:33+00:00\",\"dateModified\":\"2025-07-22T17:45:35+00:00\",\"description\":\"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.\",\"breadcrumb\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage\",\"url\":\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\",\"contentUrl\":\"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/galaxydata.ru\/community\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to resize a qcow2 harddrive images\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"name\":\"GalaxyData Community\",\"description\":\"Tutorial for Cloud VDS\",\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/galaxydata.ru\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\",\"name\":\"GalaxyData Community\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2025\/07\/favicon_from_logo_32x32_gd.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2025\/07\/favicon_from_logo_32x32_gd.png\",\"width\":32,\"height\":32,\"caption\":\"GalaxyData Community\"},\"image\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/vk.com\/galaxydata\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\",\"name\":\"Eduard Yamaltdinov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"caption\":\"Eduard Yamaltdinov\"},\"description\":\"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.\",\"url\":\"https:\/\/galaxydata.ru\/community\/author\/galaxydata\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to resize a qcow2 harddrive images - GalaxyData Community","description":"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052","og_locale":"ru_RU","og_type":"article","og_title":"How to resize a qcow2 harddrive images","og_description":"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.","og_url":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052","og_site_name":"GalaxyData Community","article_publisher":"https:\/\/vk.com\/galaxydata","article_published_time":"2018-12-12T17:07:33+00:00","article_modified_time":"2025-07-22T17:45:35+00:00","author":"Eduard Yamaltdinov","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"Eduard Yamaltdinov","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"2 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#article","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052"},"author":{"name":"Eduard Yamaltdinov","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b"},"headline":"How to resize a qcow2 harddrive images","datePublished":"2018-12-12T17:07:33+00:00","dateModified":"2025-07-22T17:45:35+00:00","mainEntityOfPage":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052"},"wordCount":301,"commentCount":0,"publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"image":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage"},"thumbnailUrl":"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png","articleSection":["Virtualization"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#respond"]}]},{"@type":"WebPage","@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052","url":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052","name":"How to resize a qcow2 harddrive images - GalaxyData Community","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage"},"image":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage"},"thumbnailUrl":"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png","datePublished":"2018-12-12T17:07:33+00:00","dateModified":"2025-07-22T17:45:35+00:00","description":"Easily resize qcow2 disk images with `qemu-img resize`. Increase or decrease disk capacity while preserving data integrity. Simple steps for effective virtual machine maintenance.","breadcrumb":{"@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#primaryimage","url":"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png","contentUrl":"http:\/\/www.randomhacks.co.uk\/wp-content\/uploads\/2013\/08\/resizing_qcow_image_using_gparted.png"},{"@type":"BreadcrumbList","@id":"https:\/\/galaxydata.ru\/community\/how-to-resize-a-qcow2-harddrive-images-1052#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/galaxydata.ru\/community"},{"@type":"ListItem","position":2,"name":"How to resize a qcow2 harddrive images"}]},{"@type":"WebSite","@id":"https:\/\/galaxydata.ru\/community\/#website","url":"https:\/\/galaxydata.ru\/community\/","name":"GalaxyData Community","description":"Tutorial for Cloud VDS","publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/galaxydata.ru\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/galaxydata.ru\/community\/#organization","name":"GalaxyData Community","url":"https:\/\/galaxydata.ru\/community\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2025\/07\/favicon_from_logo_32x32_gd.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2025\/07\/favicon_from_logo_32x32_gd.png","width":32,"height":32,"caption":"GalaxyData Community"},"image":{"@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/vk.com\/galaxydata"]},{"@type":"Person","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b","name":"Eduard Yamaltdinov","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","caption":"Eduard Yamaltdinov"},"description":"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.","url":"https:\/\/galaxydata.ru\/community\/author\/galaxydata"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/1052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/comments?post=1052"}],"version-history":[{"count":2,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/1052\/revisions"}],"predecessor-version":[{"id":1225,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/1052\/revisions\/1225"}],"wp:attachment":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/media?parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/categories?post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/tags?post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}