Dietmar Maurer
bcc87408c0
cleanup: do not entry wait loop if block-job-cancel() fails.
2014-11-07 15:31:56 +01:00
Alexandre Derumier
ab6ecffe53
drive-mirror : wait that busy eq false before block-job-complete
...
When the drive-mirror is at 100%, and write occurs, the busy flag can change from false->true
- 100% no new writes
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
- 100% new writes
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
- 100% no new writes
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
So, we need to check that busy is false before doing the block-job-complete.
Also, we force the vm to pause, if it's busy for more than 120s when drive-mirror is at 100%
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-11-07 15:28:13 +01:00
Alexandre Derumier
5fe03fd8ee
block-job-cancel : wait that jobs is really finished
...
block-job-cancel is async, we need to check that job is really finished
before try to free the volume
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-11-07 15:26:21 +01:00
Dietmar Maurer
b9719d15ab
bump version to 3.3-1
2014-10-13 10:36:23 +02:00
Alexandre Derumier
f1e053055c
enable write zeroes optimisations
...
This enable write zeroes optimisation inside guest.
(I have tested them with qcow2,raw (ext4|xfs) , zfs|iscsi and nfs too.
No impact if the block driver don't support it yet (like rbd)
https://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg00009.html
> a) mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/vdX
>
> QCOW2 [off] [on] [unmap]
> -----
> runtime: 14secs 1.1secs 1.1secs
> filesize: 937M 18M 18M
>
> iSCSI [off] [on] [unmap]
> ----
> runtime: 9.3s 0.9s 0.9s
>
> b) dd if=/dev/zero of=/dev/vdX bs=1M oflag=direct
>
> QCOW2 [off] [on] [unmap]
> -----
> runtime: 246secs 18secs 18secs
> filesize: 51G 192K 192K
> throughput: 203M/s 2.3G/s 2.3G/s
>
> iSCSI* [off] [on] [unmap]
> ----
> runtime: 8mins 45secs 33secs
> throughput: 106M/s 1.2G/s 1.6G/s
> allocated: 100% 100% 0%
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-10-13 10:34:41 +02:00
Alexandre Derumier
7183bd9a8f
add iothread/dataplane support
...
new config option:
iothread: 1|0
This enable iothread/dataplane support, to improve io performance on fast storages
Currently block jobs don't work yet, it's planned for qemu 2.2.
So it's better to not expose yet this option in gui.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-10-10 10:27:41 +02:00
Dietmar Maurer
88e9d6bc50
bump version to 3.1-35
2014-09-17 15:53:02 +02:00
Dietmar Maurer
184955dc65
fix bug #542 : return VMID as integer
2014-09-17 15:51:47 +02:00
Dietmar Maurer
40e13560bd
bump version to 3.1-34
2014-09-01 11:36:07 +02:00
Alexandre Derumier
f78cc802cf
vm_devices_list : also list block devices
...
This allow scsi disk to be plug|unplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-09-01 11:33:54 +02:00
Dietmar Maurer
7946e0fa42
Currently,if we don't have a "machine" option in running config, and we take a vmstate snapshot
...
the machine option is write in the snapshot (ok), but also in the running config (bad)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2014-08-29 11:27:27 +02:00
Alexandre Derumier
6c33c345ef
allow hotplug of virtio-scsi disks
...
It was an old protection, it's working fine now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-08-29 08:18:08 +02:00
Dietmar Maurer
d3f15aa9ed
bump version to 3.1-33
2014-08-26 09:24:29 +02:00
Dietmar Maurer
cd11416f7a
clone_vm: auto generate new uuid
2014-08-26 09:20:09 +02:00
Dietmar Maurer
56d12660b4
bump version to 3.1-32
2014-08-20 12:21:28 +02:00
Alexandre Derumier
3aefd6fdf9
add Broadwell cpu model
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-08-20 12:20:18 +02:00
Dietmar Maurer
ad037bcea8
bump version to 3.1-31
2014-08-13 06:17:31 +02:00
Alexandre Derumier
d2da6d9b8e
generate spice devices cmd line after pci bridge
...
we should push to $devices array instead $cmd array,
because pci bridges need to be create before spice devices
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-08-13 06:14:03 +02:00
Dietmar Maurer
f73de1699c
bump version to 3.1-30
2014-08-06 09:41:43 +02:00
Alexandre Derumier
5cffb2d2f2
bump max hostpci to 4
...
user need to passthough 3 devices here
http://forum.proxmox.com/threads/19134-KVM-passtrought-PciExpress-3-card
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-08-06 09:40:32 +02:00
Alexandre Derumier
137483c053
vga=none if x-vga passthrough is enabled
...
we need to disable virtual vga card if we passthrough a physical gpu
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-08-06 09:39:38 +02:00
Dietmar Maurer
c4722d9641
bump version to 3.1-29
2014-07-29 06:53:27 +02:00
Dietmar Maurer
debe88829e
vm_stop: do not use ha commands if $migratedfrom is set
2014-07-29 06:51:02 +02:00
Dietmar Maurer
0a2da90b8b
bump version to 3.1-28
2014-07-24 06:52:43 +02:00
Alexandre Derumier
9040435417
disable kvm cpu signature if x-vga is enabled
...
see
http://git.qemu.org/?p=qemu.git;a=commit;h=f522d2acc549dd11f495048330aa5f3f424a7dfa
last nvdia drivers don't install in kvm machine if they detect kvm signature.
This patch hide kvm signature in cpuflags (but don't disable kvm)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-07-24 06:51:55 +02:00
Dietmar Maurer
42d9f10b67
bump version to 3.1-27
2014-07-23 06:12:40 +02:00
Kamil Trzciński
8f3e88af00
Reset device only if has_fl_reset is defined
...
Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
2014-07-23 06:11:15 +02:00
Dietmar Maurer
cba2311f72
bump version to 3.1-26
2014-07-17 09:29:01 +02:00
Stefan Priebe
8fd882a42b
snapshot_delete: reorder parent "connection" after prepare
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2014-07-17 09:23:40 +02:00
Stefan Priebe
64ff6fe44c
API2: remove require full parameter for snapshot cloning
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2014-07-17 09:22:37 +02:00
Stefan Priebe
258e646c57
pass snapname to PVE::Storage::vdisk_clone
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2014-07-17 09:21:37 +02:00
Dietmar Maurer
c0298a21f0
bump version to 3.1-25
2014-07-16 12:48:10 +02:00
Alexandre Derumier
e5e3ccbbc2
allow resize of virtio windows boot disk
...
virtio-win-0.1-74 have fixed the resize bug of virtio boot disk
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-07-16 12:47:04 +02:00
Dietmar Maurer
47314bf5e2
auto generate uuid on VM create
...
Other VM environments also generates an UUID by default.
2014-06-26 11:51:52 +02:00
Dietmar Maurer
d7fd6a445b
require 'VM.Config.HWType' priviledge to change new smbios1 option
2014-06-26 11:17:10 +02:00
Dietmar Maurer
fbbb287fa3
bump version to 3.1-24
2014-06-26 11:13:50 +02:00
Dietmar Maurer
2796e7d542
new option smbios1: specify SMBIOS type 1 fields (uuid, ...)
2014-06-26 11:12:25 +02:00
Dietmar Maurer
a29f410963
bump version to 3.1-23
2014-06-25 09:56:24 +02:00
Dietmar Maurer
12a1e0f4e8
vncproxy: remove check if VM is running
...
Because this does not work when VM is on other cluster node.
2014-06-25 09:54:23 +02:00
Dietmar Maurer
57a5429d73
bump version to 3.1-22
2014-06-25 09:31:59 +02:00
Alexandre Derumier
b1f72af6d4
add pci multifunction unbind support
...
we need to unbind each functions of a multifunction pci device
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-06-25 09:30:01 +02:00
Alexandre Derumier
4543ecf07f
add pci multifunction support
...
multifunction device should be define without the .function
hostpci0: 00:00
example
-------
if 00:00.0
00:00.1
00:00.2
exists,
then we generate the multifunction devices
-device (pci-assign|vfio-pci),host=00:00.0,id=hostpci0.0,bus=...,addr=0x0.0,multifunction=on
-device (pci-assign|vfio-pci),host=00:00.1,id=hostpci0.1,bus=...,addr=0x0.1
-device (pci-assign|vfio-pci),host=00:00.2,id=hostpci0.2,bus=...,addr=0x0.2
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-06-25 09:29:53 +02:00
Alexandre Derumier
2e3b7e2a3a
add pcie and x-vga passthrough
...
hostpci0: .....,x-vga=on,pcie=1
x-vga require kernel 3.10 with vfio-vga support enable
if x-vga=on, we force vfio-pci device
pcie=1 choose the pciexpress bus (need q35 machine model)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-06-25 09:29:10 +02:00
Dietmar Maurer
7786f1b0b4
vncproxy: add check if VM is running
...
To provide better eror message for console task.
2014-06-25 07:20:23 +02:00
Dietmar Maurer
6e0d60e4e0
bump version to 3.1-21
2014-06-24 17:43:54 +02:00
Dietmar Maurer
c422ce9347
protect websocket API with vncticket
2014-06-24 16:10:30 +02:00
Dietmar Maurer
4d00f52fbb
fix a typo
2014-06-24 07:44:17 +02:00
Dietmar Maurer
86888ff388
bump version to 3.1-20
2014-06-18 12:46:02 +02:00
Dietmar Maurer
5b25afb0b7
vncwebsocket: do not proxy connection
2014-06-18 12:44:46 +02:00
Dietmar Maurer
d7b10d8819
bump version to 3.1-19
2014-06-18 11:05:05 +02:00