]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
11 years agocorrecctly check if option is a drive
Dietmar Maurer [Mon, 14 Oct 2013 05:35:04 +0000 (07:35 +0200)]
correcctly check if option is a drive

11 years agobump version to 3.1-7
Dietmar Maurer [Wed, 2 Oct 2013 07:13:59 +0000 (09:13 +0200)]
bump version to 3.1-7

11 years agocleanup spice code
Dietmar Maurer [Wed, 2 Oct 2013 07:11:57 +0000 (09:11 +0200)]
cleanup spice code

11 years agoadd multi-monitors spice support
Alexandre Derumier [Wed, 25 Sep 2013 13:33:08 +0000 (15:33 +0200)]
add multi-monitors spice support

add qxl2 (2monitors),qxl3 (3monitors),qxl4 (4monitors) vga type.

For linux, we only need 1 qxl card with more memory

For windows, we need 1 qxl card by monitor

Original Information from spice-mailing
"
You need to specify multiple devices for Windows VMs. This is what
libvirt gives me (via 'virsh domxml-to-native qemu argv DOMAIN_XML'):
<...> -vga qxl -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=33554432 -device qxl,id=video1,ram_size=67108864,vram_size=33554432 -device qxl,id=video2,ram_size=67108864,vram_size=33554432 -device qxl,id=video3,ram_size=67108864,vram_size=33554432

For Linux VM, just one qxl device is OK but then it's advisable to
increase the available RAM:
<...> -vga qxl -global qxl-vga.ram_size=134217728 -global qxl-vga.vram_size=33554432

If you don't turn off surfaces, then you should increase vram size to
say 64 MB from current default of 32 MB.
"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agouse warnings instead of global -w flag
Dietmar Maurer [Tue, 1 Oct 2013 11:14:49 +0000 (13:14 +0200)]
use warnings instead of global -w flag

11 years agobump version to 3.1-6
Dietmar Maurer [Tue, 1 Oct 2013 10:42:51 +0000 (12:42 +0200)]
bump version to 3.1-6

11 years agouse new PVE::Storage::abs_filesystem_path()
Dietmar Maurer [Tue, 1 Oct 2013 10:41:06 +0000 (12:41 +0200)]
use new PVE::Storage::abs_filesystem_path()

The check_volume_access() method does no longer return a path.

11 years agobump version to 3.1-5
Dietmar Maurer [Tue, 24 Sep 2013 04:55:40 +0000 (06:55 +0200)]
bump version to 3.1-5

11 years agoadd opensolaris ostype and disable x2apic
Alexandre Derumier [Mon, 23 Sep 2013 07:10:32 +0000 (09:10 +0200)]
add opensolaris ostype and disable x2apic

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 3.1-4
Dietmar Maurer [Thu, 19 Sep 2013 04:29:57 +0000 (06:29 +0200)]
bump version to 3.1-4

11 years agoqemu migrate : only wait for spice server online + eval
Alexandre Derumier [Wed, 18 Sep 2013 05:45:39 +0000 (07:45 +0200)]
qemu migrate : only wait for spice server online + eval

Currently offline migration fail ,because we are trying to check with qmp the spiceserver status.
This should be done online only.

I also add eval, to avoid migration lock if qmp query fail.

Fix :http://forum.proxmox.com/threads/16093-VM-is-locked-after-offline-migration?p=82852

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 3.1-3
Dietmar Maurer [Tue, 17 Sep 2013 07:13:41 +0000 (09:13 +0200)]
bump version to 3.1-3

11 years agospeedup restore on glusterfs (do not write zero bytes)
Dietmar Maurer [Tue, 17 Sep 2013 07:12:07 +0000 (09:12 +0200)]
speedup restore on glusterfs (do not write zero bytes)

11 years agoadd reference to git version
Dietmar Maurer [Thu, 5 Sep 2013 11:05:47 +0000 (13:05 +0200)]
add reference to git version

11 years agobump version to 3.1-2
Dietmar Maurer [Thu, 5 Sep 2013 05:48:58 +0000 (07:48 +0200)]
bump version to 3.1-2

11 years agowhitespace cleanups
Dietmar Maurer [Thu, 5 Sep 2013 05:44:52 +0000 (07:44 +0200)]
whitespace cleanups

11 years agoAllow VMAdmin to delete disk with Datastore.AllocateSpace permissions
Dietmar Maurer [Thu, 5 Sep 2013 05:41:40 +0000 (07:41 +0200)]
Allow VMAdmin to delete disk with Datastore.AllocateSpace permissions

Previosly, a VMAdmin/DatastoreUser was able to add/create new disks, but
unable to remove them.

11 years agovncproxy API: avoid warning about uninitialize value
Dietmar Maurer [Wed, 28 Aug 2013 09:31:31 +0000 (11:31 +0200)]
vncproxy API: avoid warning about uninitialize value

11 years agofix typo - s/parallel/parport/
Dietmar Maurer [Wed, 14 Aug 2013 13:55:01 +0000 (15:55 +0200)]
fix typo - s/parallel/parport/

11 years agouse tty chardev for usb-to-parallel
Dietmar Maurer [Wed, 14 Aug 2013 12:22:24 +0000 (14:22 +0200)]
use tty chardev for usb-to-parallel

11 years agobump version to 3.1-1
Dietmar Maurer [Wed, 14 Aug 2013 10:21:22 +0000 (12:21 +0200)]
bump version to 3.1-1

11 years agoallow to use usb parallel ports
Dietmar Maurer [Wed, 14 Aug 2013 10:18:54 +0000 (12:18 +0200)]
allow to use usb parallel ports

11 years agoavoid another compile warning
Dietmar Maurer [Mon, 12 Aug 2013 07:53:02 +0000 (09:53 +0200)]
avoid another compile warning

11 years agobump version to 3.0-30
Dietmar Maurer [Mon, 12 Aug 2013 07:49:54 +0000 (09:49 +0200)]
bump version to 3.0-30

11 years agofix migration port (wrong quote)
Dietmar Maurer [Mon, 12 Aug 2013 07:48:13 +0000 (09:48 +0200)]
fix migration port (wrong quote)

11 years agofix warning about uninitialized value
Dietmar Maurer [Mon, 12 Aug 2013 07:47:02 +0000 (09:47 +0200)]
fix warning about uninitialized value

11 years agobump version to 3.0-29
Dietmar Maurer [Tue, 6 Aug 2013 06:16:31 +0000 (08:16 +0200)]
bump version to 3.0-29

11 years agoload config from correct node
Dietmar Maurer [Tue, 6 Aug 2013 06:15:14 +0000 (08:15 +0200)]
load config from correct node

11 years agobump version to 3.0-28
Dietmar Maurer [Fri, 2 Aug 2013 08:06:25 +0000 (10:06 +0200)]
bump version to 3.0-28

11 years agoadd ability to run without graphic card ('vga: serial[n]')
Dietmar Maurer [Wed, 31 Jul 2013 07:19:36 +0000 (09:19 +0200)]
add ability to run without graphic card ('vga: serial[n]')

11 years agoimprove API docu
Dietmar Maurer [Wed, 31 Jul 2013 05:41:24 +0000 (07:41 +0200)]
improve API docu

11 years agoimplement 'qm terminal' to open terminal via serial device
Dietmar Maurer [Wed, 31 Jul 2013 05:37:09 +0000 (07:37 +0200)]
implement 'qm terminal' to open terminal via serial device

11 years agoallow to use a socket for serial devices
Dietmar Maurer [Wed, 31 Jul 2013 04:58:26 +0000 (06:58 +0200)]
allow to use a socket for serial devices

11 years agobump version to 3.0-27
Dietmar Maurer [Fri, 26 Jul 2013 09:25:02 +0000 (11:25 +0200)]
bump version to 3.0-27

11 years agoqemu-server: add support for unsecure migration (setting in datacenter.cfg)
Stefan Priebe [Fri, 26 Jul 2013 09:22:58 +0000 (11:22 +0200)]
qemu-server: add support for unsecure migration (setting in datacenter.cfg)

This patch adds support for unsecure migration using a direct tcp connection
KVM <=> KVM instead of an extra SSH tunnel. Without ssh the limit is just the
bandwith and no longer the CPU / one single core.

You can enable this by adding:
migration_unsecure: 1
to datacenter.cfg

Examples using qemu 1.4 as migration with qemu 1.3 still does not work for me:

current default with SSH Tunnel VM uses 2GB mem:
Dec 27 21:10:32 starting migration of VM 105 to node 'cloud1-1202' (10.255.0.20)
Dec 27 21:10:32 copying disk images
Dec 27 21:10:32 starting VM 105 on remote node 'cloud1-1202'
Dec 27 21:10:35 starting ssh migration tunnel
Dec 27 21:10:36 starting online/live migration on localhost:60000
Dec 27 21:10:36 migrate_set_speed: 8589934592
Dec 27 21:10:36 migrate_set_downtime: 1
Dec 27 21:10:38 migration status: active (transferred 152481002, remaining 1938546688), total 2156396544) , expected downtime 0
Dec 27 21:10:40 migration status: active (transferred 279836995, remaining 1811140608), total 2156396544) , expected downtime 0
Dec 27 21:10:42 migration status: active (transferred 421265271, remaining 1669840896), total 2156396544) , expected downtime 0
Dec 27 21:10:44 migration status: active (transferred 570987974, remaining 1520152576), total 2156396544) , expected downtime 0
Dec 27 21:10:46 migration status: active (transferred 721469404, remaining 1369939968), total 2156396544) , expected downtime 0
Dec 27 21:10:48 migration status: active (transferred 875595258, remaining 1216057344), total 2156396544) , expected downtime 0
Dec 27 21:10:50 migration status: active (transferred 1034654822, remaining 1056931840), total 2156396544) , expected downtime 0
Dec 27 21:10:54 migration status: active (transferred 1176288424, remaining 915369984), total 2156396544) , expected downtime 0
Dec 27 21:10:56 migration status: active (transferred 1339734759, remaining 752050176), total 2156396544) , expected downtime 0
Dec 27 21:10:58 migration status: active (transferred 1503743261, remaining 588206080), total 2156396544) , expected downtime 0
Dec 27 21:11:02 migration status: active (transferred 1645097827, remaining 446906368), total 2156396544) , expected downtime 0
Dec 27 21:11:04 migration status: active (transferred 1810562934, remaining 281751552), total 2156396544) , expected downtime 0
Dec 27 21:11:06 migration status: active (transferred 1964377505, remaining 126033920), total 2156396544) , expected downtime 0
Dec 27 21:11:08 migration status: active (transferred 2077930417, remaining 0), total 2156396544) , expected downtime 0
Dec 27 21:11:09 migration speed: 62.06 MB/s - downtime 37 ms
Dec 27 21:11:09 migration status: completed
Dec 27 21:11:13 migration finished successfuly (duration 00:00:41)
TASK OK

with unsecure migration without SSH Tunnel:
Dec 27 22:43:14 starting migration of VM 105 to node 'cloud1-1203' (10.255.0.22)
Dec 27 22:43:14 copying disk images
Dec 27 22:43:14 starting VM 105 on remote node 'cloud1-1203'
Dec 27 22:43:17 starting online/live migration on 10.255.0.22:60000
Dec 27 22:43:17 migrate_set_speed: 8589934592
Dec 27 22:43:17 migrate_set_downtime: 1
Dec 27 22:43:19 migration speed: 1024.00 MB/s - downtime 1100 ms
Dec 27 22:43:19 migration status: completed
Dec 27 22:43:22 migration finished successfuly (duration 00:00:09)
TASK OK

11 years agouse STDIN to pass spice ticket
Dietmar Maurer [Wed, 24 Jul 2013 10:13:16 +0000 (12:13 +0200)]
use STDIN to pass spice ticket

11 years agonew vga_conf_has_spice() helper
Dietmar Maurer [Wed, 24 Jul 2013 09:42:48 +0000 (11:42 +0200)]
new vga_conf_has_spice() helper

code cleanups

11 years agoreturn spice_port from config_to_command()
Dietmar Maurer [Wed, 24 Jul 2013 09:24:20 +0000 (11:24 +0200)]
return spice_port from config_to_command()

That way we do not need to run qmp command to get the port.
Set spice ticket expire time to 30 (5 seconds seems a bit too short).
Coding style cleanups.

11 years agoadd spice migration
Alexandre Derumier [Wed, 24 Jul 2013 07:52:33 +0000 (09:52 +0200)]
add spice migration

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd read_x509_subject_spice
Alexandre Derumier [Tue, 23 Jul 2013 10:40:02 +0000 (12:40 +0200)]
add read_x509_subject_spice

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 3.0-26
Dietmar Maurer [Tue, 23 Jul 2013 08:11:10 +0000 (10:11 +0200)]
bump version to 3.0-26

11 years agoremove spice cert paths
Dietmar Maurer [Tue, 23 Jul 2013 08:05:36 +0000 (10:05 +0200)]
remove spice cert paths

And depend on pve-qemu-kvm (>= 1.4-16), which automatically uses the correct
certs by default.

11 years agodisable tablet for spice
Dietmar Maurer [Fri, 19 Jul 2013 07:53:44 +0000 (09:53 +0200)]
disable tablet for spice

11 years agobump version to 3.0-25
Dietmar Maurer [Fri, 19 Jul 2013 07:38:56 +0000 (09:38 +0200)]
bump version to 3.0-25

11 years agosupport usb redirection for spice
Dietmar Maurer [Fri, 19 Jul 2013 07:37:04 +0000 (09:37 +0200)]
support usb redirection for spice

11 years agofix docu
Dietmar Maurer [Thu, 18 Jul 2013 06:29:12 +0000 (08:29 +0200)]
fix docu

11 years agobump version to 3.0-24
Dietmar Maurer [Thu, 18 Jul 2013 06:15:21 +0000 (08:15 +0200)]
bump version to 3.0-24

11 years agospiceproxy: allow client to choose proxy address
Dietmar Maurer [Thu, 18 Jul 2013 06:00:03 +0000 (08:00 +0200)]
spiceproxy: allow client to choose proxy address

11 years agospice: read cert subject name directly using Net::SSLeay
Dietmar Maurer [Thu, 18 Jul 2013 05:28:35 +0000 (07:28 +0200)]
spice: read cert subject name directly using Net::SSLeay

We now depend on libnet-ssleay-perl

11 years agospice: use TLS
Dietmar Maurer [Wed, 17 Jul 2013 09:33:02 +0000 (11:33 +0200)]
spice: use TLS

we now use a local tcp port instead of a unix socket, because that is
implemented and works with current spice libraries.

11 years agobump version to 3.0-23
Dietmar Maurer [Tue, 16 Jul 2013 04:50:34 +0000 (06:50 +0200)]
bump version to 3.0-23

11 years agocorrectly return and use device type in scsi_inquiry
Dietmar Maurer [Mon, 15 Jul 2013 11:19:54 +0000 (13:19 +0200)]
correctly return and use device type in scsi_inquiry

11 years agofix scsi inquiry command
Dietmar Maurer [Mon, 15 Jul 2013 11:12:18 +0000 (13:12 +0200)]
fix scsi inquiry command

I got wrong results if command is longer than 6 bytes.

11 years agofix coding style
Dietmar Maurer [Mon, 15 Jul 2013 11:11:28 +0000 (13:11 +0200)]
fix coding style

11 years agobump version to 3.0-22
Dietmar Maurer [Mon, 15 Jul 2013 07:13:31 +0000 (09:13 +0200)]
bump version to 3.0-22

and delete trailing white spaces

11 years agoadd hyper-v enlightments for windows guests
Alexandre Derumier [Mon, 15 Jul 2013 06:51:37 +0000 (08:51 +0200)]
add hyper-v enlightments for windows guests

This add special hyper-v cpu flags for windows guests.

This improve performance and avoid some bsod related to timer.

(I currently disable the hv_vapic flag because I can't get it working).

I have tested all theses flags with: win2003, win2008R2, winxp, linux debian 64bit, on intel and amd physicals processor

It doesn't break live migration, because new cpu flags are not see by guests until a vm reset.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd +sep cpuflags to kvm32 && kvm64 cpu models
Alexandre Derumier [Mon, 15 Jul 2013 06:51:36 +0000 (08:51 +0200)]
add +sep cpuflags to kvm32 && kvm64 cpu models

Need for win8 boot.

This flag was missing from rhel < 6.4 host kernel. It's ok now.
But it's also missing from kvm64 model. (It's exist in other cpu models, amd or intel).
So it's pretty safe to enable it.
If the host kernel is older, qemu filter the flag.

This also improve performance of winxp && win7 32 bits guests.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoenable x2apic by default for kvm machines
Alexandre Derumier [Mon, 15 Jul 2013 06:51:35 +0000 (08:51 +0200)]
enable x2apic by default for kvm machines

This reduce context switch with multicore guests.

Even if the host cpu don't have x2apic, it's working because qemu have an virtual x2apic implementation for guest.
We need  in-kernel irqchip support for this, which is enable for kvm guest since qemu 1.3.
(I don't enable it if nokvm param is set)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agospiceproxy: set delete-this-file
Dietmar Maurer [Thu, 27 Jun 2013 07:28:13 +0000 (09:28 +0200)]
spiceproxy: set delete-this-file

11 years agospiceconfig: port can't be 0
Alexandre Derumier [Wed, 26 Jun 2013 14:24:42 +0000 (16:24 +0200)]
spiceconfig: port can't be 0

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agospice : fix proxy address
Alexandre Derumier [Wed, 26 Jun 2013 14:08:08 +0000 (16:08 +0200)]
spice : fix proxy address

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agovm status API: return info about spice
Dietmar Maurer [Wed, 26 Jun 2013 11:37:14 +0000 (13:37 +0200)]
vm status API: return info about spice

11 years agobump version to 3.0-21
Dietmar Maurer [Wed, 26 Jun 2013 11:16:19 +0000 (13:16 +0200)]
bump version to 3.0-21

11 years agospiceproxy: remove socat, and return data to access the new spiceproxy server
Dietmar Maurer [Wed, 26 Jun 2013 11:13:58 +0000 (13:13 +0200)]
spiceproxy: remove socat, and return data to access the new spiceproxy server

11 years agokill socat if we do not get any connection within $timeout seconds
Dietmar Maurer [Tue, 25 Jun 2013 12:34:59 +0000 (14:34 +0200)]
kill socat if we do not get any connection within $timeout seconds

11 years agodepend on socat (used for spice)
Dietmar Maurer [Tue, 25 Jun 2013 11:14:00 +0000 (13:14 +0200)]
depend on socat (used for spice)

11 years agospice proxy: try to cirrectly count open socat connections
Dietmar Maurer [Tue, 25 Jun 2013 10:54:15 +0000 (12:54 +0200)]
spice proxy: try to cirrectly count open socat connections

11 years agolimit spice ticket length to 59 charachters
Dietmar Maurer [Tue, 25 Jun 2013 10:47:33 +0000 (12:47 +0200)]
limit spice ticket length to 59 charachters

11 years agoadd spice proxy API
Dietmar Maurer [Tue, 25 Jun 2013 10:09:05 +0000 (12:09 +0200)]
add spice proxy API

This is experimental code, spice connections are not encryped and thus insecure.
We use ticket passwords for spice auth, and do direct spice connections to
the nodes instead of using a tunnel.

11 years agoadd support for spice display driver (vga=qxl)
Dietmar Maurer [Tue, 25 Jun 2013 05:10:42 +0000 (07:10 +0200)]
add support for spice display driver (vga=qxl)

This is based on the patch from Alexandre, but we use vga=qlx instead
of introducing a new 'spice: 1' boolean flag.

11 years agocorrectly handle undef values when calling qemu_block_set_io_throttle
Dietmar Maurer [Wed, 12 Jun 2013 05:08:02 +0000 (07:08 +0200)]
correctly handle undef values when calling qemu_block_set_io_throttle

11 years agoqemu-server : bridge_add : fix uninitialized value
Alexandre Derumier [Tue, 11 Jun 2013 09:35:13 +0000 (11:35 +0200)]
qemu-server : bridge_add : fix uninitialized value

fix : Use of uninitialized value $bridgeid in numeric lt (<) at /usr/share/perl5/PVE/QemuServer.pm line 2774.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agocode cleanups
Dietmar Maurer [Tue, 11 Jun 2013 05:26:43 +0000 (07:26 +0200)]
code cleanups

removed trailing white space

11 years agosimplify previous patch
Dietmar Maurer [Tue, 11 Jun 2013 05:22:13 +0000 (07:22 +0200)]
simplify previous patch

11 years agocreate_disks : avoid storage scan v3
Alexandre Derumier [Mon, 10 Jun 2013 07:27:04 +0000 (09:27 +0200)]
create_disks : avoid storage scan v3

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 3.0-20
Dietmar Maurer [Fri, 7 Jun 2013 09:44:42 +0000 (11:44 +0200)]
bump version to 3.0-20

11 years agoupdate_vm_async: new asynchronous API
Dietmar Maurer [Fri, 7 Jun 2013 09:41:58 +0000 (11:41 +0200)]
update_vm_async: new asynchronous API

11 years agosnapshot rollback: use pc-i440fx-1.4 as default
Dietmar Maurer [Thu, 6 Jun 2013 04:38:12 +0000 (06:38 +0200)]
snapshot rollback: use pc-i440fx-1.4 as default

11 years agorequire VM.Config.HWType priviledges to modify 'machine' configuration
Dietmar Maurer [Thu, 6 Jun 2013 04:22:32 +0000 (06:22 +0200)]
require VM.Config.HWType priviledges to modify 'machine' configuration

11 years agobump version to 3.0-19
Dietmar Maurer [Wed, 5 Jun 2013 08:28:08 +0000 (10:28 +0200)]
bump version to 3.0-19

11 years agomigrate: pass --machine parameter to remote 'qm start' command
Dietmar Maurer [Wed, 5 Jun 2013 08:24:39 +0000 (10:24 +0200)]
migrate: pass --machine parameter to remote 'qm start' command

11 years agosnapshot: save/restore 'machine' configuration
Dietmar Maurer [Wed, 5 Jun 2013 08:17:49 +0000 (10:17 +0200)]
snapshot: save/restore 'machine' configuration

11 years agoimplement get_current_qemu_machine
Dietmar Maurer [Wed, 5 Jun 2013 07:52:22 +0000 (09:52 +0200)]
implement get_current_qemu_machine

11 years agoAPI extension: add 'machine' parameter to vm_start
Dietmar Maurer [Wed, 5 Jun 2013 07:27:31 +0000 (09:27 +0200)]
API extension: add 'machine' parameter to vm_start

This allows us to overwrite the machine type at start - useful for
migration to make sure we use the same machine at the target node.

11 years agoadd new 'machine' configuration
Dietmar Maurer [Wed, 5 Jun 2013 07:18:23 +0000 (09:18 +0200)]
add new 'machine' configuration

11 years agofix typo
Dietmar Maurer [Tue, 4 Jun 2013 11:33:35 +0000 (13:33 +0200)]
fix typo

11 years agoqemu_drive_mirror: correctly call block-job-cancel if block-job-complete fails
Dietmar Maurer [Fri, 31 May 2013 09:31:22 +0000 (11:31 +0200)]
qemu_drive_mirror: correctly call block-job-cancel if block-job-complete fails

11 years agobump version to 3.0-18
Dietmar Maurer [Fri, 31 May 2013 08:57:59 +0000 (10:57 +0200)]
bump version to 3.0-18

11 years agomove_disk: implement delete flag
Dietmar Maurer [Fri, 31 May 2013 08:56:16 +0000 (10:56 +0200)]
move_disk: implement delete flag

11 years agorename move to move_disk
Dietmar Maurer [Fri, 31 May 2013 06:46:21 +0000 (08:46 +0200)]
rename move to move_disk

Because that API call can only move a single disk (not the whole VM).

11 years agobump version to 3.0-17
Dietmar Maurer [Wed, 29 May 2013 11:01:45 +0000 (13:01 +0200)]
bump version to 3.0-17

11 years agoclone_disk: test if requested format is supported - else use default
Dietmar Maurer [Wed, 29 May 2013 10:59:21 +0000 (12:59 +0200)]
clone_disk: test if requested format is supported - else use default

11 years agomove_vm: add original disk as unusedX
Dietmar Maurer [Wed, 29 May 2013 10:15:30 +0000 (12:15 +0200)]
move_vm: add original disk as unusedX

11 years agomove_vm: make it work with PVE::QemuServer:::clone_disk
Dietmar Maurer [Wed, 29 May 2013 10:07:56 +0000 (12:07 +0200)]
move_vm: make it work with PVE::QemuServer:::clone_disk

- use POST instead of PUT (this is not idempotent).
- return task ID
- use declarative permission check

11 years agoadd qm move (storage migration)
Alexandre Derumier [Mon, 27 May 2013 04:22:05 +0000 (06:22 +0200)]
add qm move (storage migration)

qm move <vmid> <disk> <storage> --format [raw|qcow2|vmdk]

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoallow to clone VM when name is not set
Dietmar Maurer [Wed, 29 May 2013 09:18:54 +0000 (11:18 +0200)]
allow to clone VM when name is not set

11 years agofactor out clone_disk
Dietmar Maurer [Wed, 29 May 2013 06:32:10 +0000 (08:32 +0200)]
factor out clone_disk

As suggested by Alexandre. Also cleanup  qemu_drive_mirror (fix white space).

11 years agobump version to 3.0-16
Dietmar Maurer [Tue, 28 May 2013 10:24:13 +0000 (12:24 +0200)]
bump version to 3.0-16

11 years agoqm rescan: do not add aliases as unused disks.
Dietmar Maurer [Tue, 28 May 2013 10:21:14 +0000 (12:21 +0200)]
qm rescan: do not add aliases as unused disks.

11 years agofix unused disk handling
Dietmar Maurer [Tue, 28 May 2013 10:02:29 +0000 (12:02 +0200)]
fix unused disk handling

Show unused disks even if disk is used inside snapshots. But do not allow
to remove those disks.