Public bug reported:
Till libvirt version 0.9.8-2ubuntu6 block migration was not usable with
large images because the full image size got allocated in memory.
How to reproduce (Need two servers):
Short description:
1. Start a block migration
2. Watch if VIRT and RES memory increases substantial
Long description:
1. Create a new virtual machine with a bigger raw image than memory; don't use
qcow,qed... (virt-manager for the lazy)
2. Create on the second server an image on same the path with the exactly same
size
2.1 use 'ls -l <path/to/image>' to geht the size in bytes (first server)
2.2 'touch <path/to/image>' to create a new image (second server)
3.3 'truncate --size <size in bytes from step 2.1> <path/to/image>' to set the
image size immediately if the fs supports holes (second server)
4. Start the virsh console on the first server: 'virsh --connect=qemu:///system'
5. Start a block migration 'migrate --live --copy-storage-all --persistent
--undefinesource --verbose <name of the vm> qemu+ssh://<ip of the second
server>/system'
6.Enter the ssh password
7. The process oom's because it allocates the full image size in memory (Can
take some time depending on your disk speed and memory size)
Note: This is fixed in 0.9.8-2ubuntu7. This bug is just for tracking the
changes.
If you have any questions feel free to contact me
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: Fix Released
** Changed in: libvirt (Ubuntu)
Status: New => Fix Released
** Summary changed:
- [Fixed]Fix block migration
+ [Fixed]Block migration fails because it uses to much memory
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/923625
Title:
[Fixed]Block migration fails because it uses to much memory
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/923625/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs