[virt-install] no way to force disk size overcommit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
It looks like no way to force disk size overcommit in utopic.
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default,
WARNING KVM acceleration not available, using 'qemu'
WARNING The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 49161 M available)
ERROR Error: --disk pool=default,
[with --force and --debug]
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default,
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:187) Launched with command line: /usr/share/
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:195) Requesting libvirt URI default
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:199) Received libvirt URI qemu:///system
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (virt-install:193) Requesting virt method 'default', hv type 'default'.
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (virt-install:432) Received virt method 'kvm'
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (virt-install:433) Hypervisor name is 'hvm'
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (diskbackend:172) Path '' is target for pool 'default'. Creating volume 'test.qcow2'.
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] WARNING (storage:618) The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 47383 M available)
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:1155) Exception parsing inst=None optstr=
Traceback (most recent call last):
File "/usr/share/
devs = self._parse_
File "/usr/share/
return self._parse(opts, inst)
File "/usr/share/
self.guest, path, pool, vol, size, fmt, sparse)
File "/usr/share/
guest.conn, vname, poolobj, size, sparse)
File "/usr/share/
return diskbackend.
File "/usr/share/
volinst.
File "/usr/share/
self.
File "/usr/share/
raise ValueError(ret[1])
ValueError: There is not enough free space on the storage pool to create the volume. (2097152 M requested allocation > 47383 M available)
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:234) File "/usr/share/
sys.
File "/usr/share/
guest = build_guest_
File "/usr/share/
cli.
File "/usr/share/
validate=not update)
File "/usr/share/
"options": optstr, "err": str(e)})
File "/usr/share/
logging.
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] ERROR (cli:235) Error: --disk pool=default,
[Fri, 08 Aug 2014 12:57:28 virt-install 13258] DEBUG (cli:237)
Traceback (most recent call last):
File "/usr/share/
devs = self._parse_
File "/usr/share/
return self._parse(opts, inst)
File "/usr/share/
self.guest, path, pool, vol, size, fmt, sparse)
File "/usr/share/
guest.conn, vname, poolobj, size, sparse)
File "/usr/share/
return diskbackend.
File "/usr/share/
volinst.
File "/usr/share/
self.
File "/usr/share/
raise ValueError(ret[1])
ValueError: There is not enough free space on the storage pool to create the volume. (2097152 M requested allocation > 47383 M available)
In trusty version, there was a way to overcommit with "--force".
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default,
ERROR The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 716
1 M available) (Use --prompt or --force to override)
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default,
WARNING The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 7161 M available)
Starting install...
Allocating 'test.img' | 2.0 TB 00:00
Creating domain... | 0 B 00:00
Domain creation completed. You can restart your domain by running:
virsh --connect qemu:///system start test
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: virtinst 1:1.0.1-0ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-6-generic x86_64
ApportVersion: 2.14.5-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Aug 8 12:49:40 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-05-19 (81 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140518)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)
Explicitly setting sparse=true makes "--force" takes effect.
====
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default, size=2048, format= qcow2,sparse= true
WARNING The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 41166 M available)
ERROR The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 41166 M available) (Use --force to override)
$ virt-install --noautoconsole --name test --ram 512 --boot hd --disk pool=default, size=2048, format= qcow2,sparse= true --force
WARNING The requested volume capacity will exceed the available pool space when the volume is fully allocated. (2097152 M requested capacity > 41166 M available)
Starting install...
Allocating 'test.qcow2' | 2.0 TB 00:07
Creating domain... | 0 B 00:00
Domain creation completed. You can restart your domain by running:
virsh --connect qemu:///system start test