<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mperevedentsev</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mperevedentsev"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Mperevedentsev"/>
	<updated>2026-05-15T17:33:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Prl-disk-tool_for_Virtuozzo_7&amp;diff=17969</id>
		<title>Prl-disk-tool for Virtuozzo 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Prl-disk-tool_for_Virtuozzo_7&amp;diff=17969"/>
		<updated>2015-11-05T12:04:53Z</updated>

		<summary type="html">&lt;p&gt;Mperevedentsev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''1. Feature'''&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool for Virtuozzo 7&lt;br /&gt;
&lt;br /&gt;
'''2. Description'''&lt;br /&gt;
&lt;br /&gt;
The package prl-disk-tool (binary /usr/sbin/prl_disk_tool)&lt;br /&gt;
is used to manage virtual machine and container disk images&lt;br /&gt;
can perform the following operations:&lt;br /&gt;
&lt;br /&gt;
1. ''resize --size ...'' : Resize image (in-place)&lt;br /&gt;
&lt;br /&gt;
2. ''resize --size ... --resize_partition'' : Resize image and last partition to fit (copying)&lt;br /&gt;
&lt;br /&gt;
3. ''resize --info'' : Display resize estimates (current size, minimum size, minimum size w/o resizing last partition) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
4. ''compact'' : Compact image to occupy less space on host disk. (in-place)&lt;br /&gt;
&lt;br /&gt;
5. ''compact --info'' : Display compact estimates (block count, allocated, used) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
6. ''merge'' : Merge internal snapshots of image (in-place) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
7. ''merge --external'' : Merge external snapshot of image (in-place) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
8. ''convert [--plain | --expanding]'' : Convert image between plain and expanding modes (copying) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool uses libguestfs, qemu-img to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user has to install additional packages to use part of functionality:&lt;br /&gt;
&lt;br /&gt;
* ''prl-disk-tool resize --info'' (last partition: btrfs) → btrfs-progs &amp;gt;= 4.2 (already in repo)&lt;br /&gt;
* ''prl-disk-tool resize {--info,--resize_partition}'' (last partition: ntfs) → libguestfs-winsupport (already in repo)&lt;br /&gt;
* ''prl-disk-tool compact {--info,}'' (exists partition with ntfs) → libguestfs-winsupport&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool locks an image passed as argument by flock(). So only multiple&lt;br /&gt;
reads (''{compact,resize} --info'') OR a single write (others) are allowed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FS-aware functions (''resize {--resize_partition|--info}, compact [--info]'') work&lt;br /&gt;
for ext2/ext3/ext4/ntfs/btrfs/xfs.&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool uses qemu-img to perform fs-unaware operations. It is more&lt;br /&gt;
powerful than qemu-img due to fs-aware operations performed with libguestfs.&lt;br /&gt;
&lt;br /&gt;
The main purpose of prl_disk_tool is to automate some frequent operations.&lt;br /&gt;
&lt;br /&gt;
'''3. Products'''&lt;br /&gt;
&lt;br /&gt;
Virtuozzo 7 beta2&lt;br /&gt;
&lt;br /&gt;
Packages:&lt;br /&gt;
&lt;br /&gt;
* prl-disk-tool &amp;gt;= 7.0.5&lt;br /&gt;
* libguestfs &amp;gt;= 1.28.1-1.18&lt;br /&gt;
* btrfs-progs &amp;gt;= 4.2 (optional)&lt;br /&gt;
* libguestfs-winsupport &amp;gt;= 7.2.1 (optional)&lt;br /&gt;
* libguestfs-xfs (in dependencies)&lt;br /&gt;
* qemu-img &amp;gt;= 1.5.3-86&lt;br /&gt;
&lt;br /&gt;
'''4. Testing'''&lt;br /&gt;
&lt;br /&gt;
Need to test the following cases:&lt;br /&gt;
&lt;br /&gt;
* All functions work for qcow2 images.&lt;br /&gt;
* Functions not tagged as '''VM only''' work for ploop images.&lt;br /&gt;
* FS-aware functions (''resize --resize_partition|--info, compact [--info]'') work for ext2/ext3/ext4/ntfs/btrfs/xfs.&lt;br /&gt;
&lt;br /&gt;
'''5. Known issues'''&lt;br /&gt;
&lt;br /&gt;
* ''resize --resize_partition'' should be implemented in-place (due tolimitations of qcow2, only for expanding)&lt;br /&gt;
* all modifying operations have ''--dry-run'' option to not modify an image. The image is still opened for write, and exclusive lock is acquired.&lt;br /&gt;
* only listed filesystems are supported&lt;br /&gt;
* virt-resize, used by ''resize --resize_partition'', leaves an empty block of ~3M at the end of image.&lt;br /&gt;
* ''convert --plain'' fallocate()s space inaccurately (due to unawareness of qcow2 internal structures).&lt;br /&gt;
* ''resize [expand]'' after ''convert --plain'' does not force allocation of new (bigger) chunk of space (we do not keep image type (plain/expanding) for now - so it is impossible to determine whether we should allocate space outside of ''convert'' operation)&lt;/div&gt;</summary>
		<author><name>Mperevedentsev</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Prl-disk-tool_for_Virtuozzo_7&amp;diff=17968</id>
		<title>Prl-disk-tool for Virtuozzo 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Prl-disk-tool_for_Virtuozzo_7&amp;diff=17968"/>
		<updated>2015-11-05T12:03:03Z</updated>

		<summary type="html">&lt;p&gt;Mperevedentsev: Created page with &amp;quot;'''1. Feature'''  prl_disk_tool for Virtuozzo 7  '''2. Description'''  The package prl-disk-tool (binary /usr/sbin/prl_disk_tool) is used to manage virtual machine and contain...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''1. Feature'''&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool for Virtuozzo 7&lt;br /&gt;
&lt;br /&gt;
'''2. Description'''&lt;br /&gt;
&lt;br /&gt;
The package prl-disk-tool (binary /usr/sbin/prl_disk_tool)&lt;br /&gt;
is used to manage virtual machine and container disk images&lt;br /&gt;
can perform the following operations:&lt;br /&gt;
&lt;br /&gt;
1. ''resize --size ...'' : Resize image (in-place)&lt;br /&gt;
&lt;br /&gt;
2. ''resize --size ... --resize_partition'' : Resize image and last partition to fit (copying)&lt;br /&gt;
&lt;br /&gt;
3. ''resize --info'' : Display resize estimates (current size, minimum size, minimum size w/o resizing last partition) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
4. ''compact'' : Compact image to occupy less space on host disk. (in-place)&lt;br /&gt;
&lt;br /&gt;
5. ''compact --info'' : Display compact estimates (block count, allocated, used) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
6. ''merge'' : Merge internal snapshots of image (in-place) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
7. ''merge --external'' : Merge external snapshot of image (in-place) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
8. ''convert [--plain | --expanding]'' : Convert image between plain and expanding modes (copying) - '''VM only'''&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool uses libguestfs, qemu-img to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user has to install additional packages to use part of functionality:&lt;br /&gt;
&lt;br /&gt;
''prl-disk-tool resize --info'' (last partition: btrfs) -&amp;gt; btrfs-progs &amp;gt;= 4.2&lt;br /&gt;
(already in repo)&lt;br /&gt;
''prl-disk-tool resize {--info,--resize_partition}'' (last partition: ntfs) -&amp;gt;&lt;br /&gt;
libguestfs-winsupport (already in repo)&lt;br /&gt;
''prl-disk-tool compact {--info,}'' (exists partition with ntfs) -&amp;gt;&lt;br /&gt;
libguestfs-winsupport&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool locks an image passed as argument by flock(). So only multiple&lt;br /&gt;
reads (''{compact,resize} --info'') OR a single write (others) are allowed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FS-aware functions (''resize {--resize_partition|--info}, compact [--info]'') work&lt;br /&gt;
for ext2/ext3/ext4/ntfs/btrfs/xfs.&lt;br /&gt;
&lt;br /&gt;
prl_disk_tool uses qemu-img to perform fs-unaware operations. It is more&lt;br /&gt;
powerful than qemu-img due to fs-aware operations performed with libguestfs.&lt;br /&gt;
&lt;br /&gt;
The main purpose of prl_disk_tool is to automate some frequent operations.&lt;br /&gt;
&lt;br /&gt;
'''3. Products'''&lt;br /&gt;
&lt;br /&gt;
Virtuozzo 7 beta2&lt;br /&gt;
&lt;br /&gt;
Packages:&lt;br /&gt;
&lt;br /&gt;
* prl-disk-tool &amp;gt;= 7.0.5&lt;br /&gt;
* libguestfs &amp;gt;= 1.28.1-1.18&lt;br /&gt;
* btrfs-progs &amp;gt;= 4.2 (optional)&lt;br /&gt;
* libguestfs-winsupport &amp;gt;= 7.2.1 (optional)&lt;br /&gt;
* libguestfs-xfs (in dependencies)&lt;br /&gt;
* qemu-img &amp;gt;= 1.5.3-86&lt;br /&gt;
&lt;br /&gt;
'''4. Testing'''&lt;br /&gt;
&lt;br /&gt;
Need to test the following cases:&lt;br /&gt;
&lt;br /&gt;
* All functions work for qcow2 images.&lt;br /&gt;
* Functions not tagged as '''VM only''' work for ploop images.&lt;br /&gt;
* FS-aware functions (''resize --resize_partition|--info, compact [--info]'') work for ext2/ext3/ext4/ntfs/btrfs/xfs.&lt;br /&gt;
&lt;br /&gt;
'''5. Known issues'''&lt;br /&gt;
&lt;br /&gt;
* ''resize --resize_partition'' should be implemented in-place (due tolimitations of qcow2, only for expanding)&lt;br /&gt;
* all modifying operations have ''--dry-run'' option to not modify an image. The image is still opened for write, and exclusive lock is acquired.&lt;br /&gt;
* only listed filesystems are supported&lt;br /&gt;
* virt-resize, used by ''resize --resize_partition'', leaves an empty block of ~3M at the end of image.&lt;br /&gt;
* ''convert --plain'' fallocate()s space inaccurately (due to unawareness of qcow2 internal structures).&lt;br /&gt;
* ''resize [expand]'' after ''convert --plain'' does not force allocation of new (bigger) chunk of space (we do not keep image type (plain/expanding) for now - so it is impossible to determine whether we should allocate space outside of ''convert'' operation)&lt;/div&gt;</summary>
		<author><name>Mperevedentsev</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_TODO_list&amp;diff=17966</id>
		<title>QA TODO list</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_TODO_list&amp;diff=17966"/>
		<updated>2015-11-05T10:40:39Z</updated>

		<summary type="html">&lt;p&gt;Mperevedentsev: /* OpenVZ/Virtuozzo 7 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== OpenVZ/Virtuozzo 7 ===&lt;br /&gt;
&lt;br /&gt;
OpenVZ features in testing are below:&lt;br /&gt;
&lt;br /&gt;
* [[Start CT in a new user namespace: 1:1 user mapping]]&lt;br /&gt;
* [[Changes in network shaping for Virtuozzo 7]]&lt;br /&gt;
* [[Upgrade script from OpenVZ to Virtuozzo 7]]&lt;br /&gt;
* [[Memory Management in VZ7]]&lt;br /&gt;
* [[prl-disk-tool for Virtuozzo 7]]&lt;br /&gt;
&lt;br /&gt;
Features are in released OpenVZ versions:&lt;br /&gt;
&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
=== Legacy OpenVZ ===&lt;br /&gt;
&lt;br /&gt;
OpenVZ features in testing are below:&lt;br /&gt;
&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
Features are in released OpenVZ versions:&lt;br /&gt;
&lt;br /&gt;
* [[IPsec|IPsec]] inside container&lt;br /&gt;
* [[Docker_inside_CT|Docker inside CT]]&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Mperevedentsev</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_TODO_list&amp;diff=17965</id>
		<title>QA TODO list</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_TODO_list&amp;diff=17965"/>
		<updated>2015-11-05T10:39:25Z</updated>

		<summary type="html">&lt;p&gt;Mperevedentsev: /* OpenVZ/Virtuozzo 7 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== OpenVZ/Virtuozzo 7 ===&lt;br /&gt;
&lt;br /&gt;
OpenVZ features in testing are below:&lt;br /&gt;
&lt;br /&gt;
* [[Start CT in a new user namespace: 1:1 user mapping]]&lt;br /&gt;
* [[Changes in network shaping for Virtuozzo 7]]&lt;br /&gt;
* [[Upgrade script from OpenVZ to Virtuozzo 7]]&lt;br /&gt;
* [[Memory Management in VZ7]]&lt;br /&gt;
* [[prl_disk_tool for Virtuozzo 7]]&lt;br /&gt;
&lt;br /&gt;
Features are in released OpenVZ versions:&lt;br /&gt;
&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
=== Legacy OpenVZ ===&lt;br /&gt;
&lt;br /&gt;
OpenVZ features in testing are below:&lt;br /&gt;
&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
Features are in released OpenVZ versions:&lt;br /&gt;
&lt;br /&gt;
* [[IPsec|IPsec]] inside container&lt;br /&gt;
* [[Docker_inside_CT|Docker inside CT]]&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Mperevedentsev</name></author>
		
	</entry>
</feed>