]>
git.proxmox.com Git - qemu-server.git/log
Dietmar Maurer [Tue, 26 Jun 2012 04:42:18 +0000 (06:42 +0200)]
fix whitespace errors
Alexandre Derumier [Mon, 25 Jun 2012 08:02:58 +0000 (10:02 +0200)]
convert eject cdrom monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:57 +0000 (10:02 +0200)]
convert migrate monitor commands to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:56 +0000 (10:02 +0200)]
convert cont monitor command (in vm_start) to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:55 +0000 (10:02 +0200)]
convert migrate_set_downtime monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:54 +0000 (10:02 +0200)]
convert migrate_set_speed monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:53 +0000 (10:02 +0200)]
convert system_powerdown and stop nocheck monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:52 +0000 (10:02 +0200)]
convert system_reset monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:51 +0000 (10:02 +0200)]
convert block_io_throttle monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:50 +0000 (10:02 +0200)]
convert balloon monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:49 +0000 (10:02 +0200)]
convert cont monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:48 +0000 (10:02 +0200)]
convert stop monitor command to qmp
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:47 +0000 (10:02 +0200)]
add vm_mon_cmd and vm_mon_cmd_nocheck wrapper
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:46 +0000 (10:02 +0200)]
vm_qmp_command : reworks of the sub
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 25 Jun 2012 08:02:45 +0000 (10:02 +0200)]
qmp_read_avail : reworks
qmp response could me more than 1 json.
we can have 1 json with event info, and 1 json with return infos.
We die if we receive an error message in response.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sat, 23 Jun 2012 07:07:32 +0000 (09:07 +0200)]
check if volume exist on volume update.
for the moment we check only if the real path exist on the host.
This doesn't work for "virtual" device that host doesn't see.(like rbd, virtio-scsi,...).
This add a check if the volid exist in the storage.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 30 May 2012 10:08:33 +0000 (12:08 +0200)]
fix coding style
Alexandre Derumier [Tue, 29 May 2012 12:01:50 +0000 (14:01 +0200)]
add basic qmp support
this add qmp socket to kvm process
and anew sub copied from vm_monitor_command:
vm_qmp_command ($vmid, $cmdstr, $nocheck)
$cmdstr could be a simple command to be executed, without argument
vm_qmp_command($vmid,"stop");
or a complex hash with arguments
$cmdstr->{execute}="eject";
$cmdstr->{arguments}->{device}="ide1-cd0";
vm_qmp_command($vmid,$cmdstr);
documentation about qmp commands is here
http://git.qemu.org/?p=qemu.git;a=blob;f=qmp-commands.hx;h=
db980fa811325aeca8ad43472ba468702d4a25a2 ;hb=HEAD
Code must be polish a little more, but it's a start.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 30 May 2012 08:13:51 +0000 (10:13 +0200)]
fix pool permission checks on create
We do not need Permission.Modify on the pool.
Alexandre Derumier [Tue, 29 May 2012 05:56:16 +0000 (07:56 +0200)]
die if vdisk_free fail on delete_drive
replace the warn by a die.
Currently, if we vdisk_free a disk and something goes wrong (network
storage problem by example), the drive is removed from config and we
cannot retry to remove it later.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Thu, 24 May 2012 05:22:41 +0000 (07:22 +0200)]
fix cluster_lock_storage() call
Dietmar Maurer [Wed, 23 May 2012 06:05:36 +0000 (08:05 +0200)]
set RELEASE to 2.1
Dietmar Maurer [Wed, 23 May 2012 05:42:55 +0000 (07:42 +0200)]
avoid warning if vm does not belong to a pool
Dietmar Maurer [Wed, 23 May 2012 05:24:15 +0000 (07:24 +0200)]
minor fixes for newer pve-storage versions
Alexandre Derumier [Wed, 9 May 2012 12:29:29 +0000 (14:29 +0200)]
add diskio throttling option to drive
This add disk io limit to drive options.
I also add the qemu monitor command, but I din't have added yet to Qemu.pm
>From qemu mailing:
Some available features follow as below:
(1) global bps limit.
-drive bps=xxx in bytes/s
(2) only read bps limit
-drive bps_rd=xxx in bytes/s
(3) only write bps limit
-drive bps_wr=xxx in bytes/s
(4) global iops limit
-drive iops=xxx in ios/s
(5) only read iops limit
-drive iops_rd=xxx in ios/s
(6) only write iops limit
-drive iops_wr=xxx in ios/s
(7) the combination of some limits.
-drive bps=xxx,iops=xxx
Known Limitations:
(1) #1 can not coexist with #2, #3
(2) #4 can not coexist with #5, #6
(3) When bps/iops limits are specified to a small value such as 511 bytes/s,
this VM will hang up. We are considering how to handle this senario.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Fri, 20 Apr 2012 07:30:42 +0000 (09:30 +0200)]
removed startall/stopall commands
Because we now support startup priorities, and start/stop order must include containers
Dietmar Maurer [Thu, 19 Apr 2012 12:28:05 +0000 (14:28 +0200)]
new startup option to define startup order
Dietmar Maurer [Wed, 11 Apr 2012 08:54:04 +0000 (10:54 +0200)]
fix bug #147: allow to set migrate_downtime to 0
Dietmar Maurer [Wed, 11 Apr 2012 06:52:46 +0000 (08:52 +0200)]
increase package version to release directsync cache mode
Alexandre Derumier [Mon, 9 Apr 2012 15:12:15 +0000 (17:12 +0200)]
add directsync cache mode
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Sat, 7 Apr 2012 06:26:51 +0000 (08:26 +0200)]
fix bug in storage availability check (migrate)
Dietmar Maurer [Thu, 5 Apr 2012 10:34:33 +0000 (12:34 +0200)]
use '-no-kvm-pit-reinjection -no-hpet' for win7 and w2k8
Dietmar Maurer [Mon, 2 Apr 2012 08:52:05 +0000 (10:52 +0200)]
fix bug #134: allow to pass file names to qmrestore and 'qm set'
Dietmar Maurer [Fri, 30 Mar 2012 07:13:31 +0000 (09:13 +0200)]
fix bug #12: check storage availability early (migrate)
Dietmar Maurer [Thu, 29 Mar 2012 09:09:52 +0000 (11:09 +0200)]
fix bug #121: activate volumes correctly
Dietmar Maurer [Thu, 29 Mar 2012 05:12:43 +0000 (07:12 +0200)]
correctly pass hexadecimal numbers with prefix 0x to kvm
This is related to this change in kvm:
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=
97aa6e9b8f9df37add21d86fac1a9ca6ce7df9b7
Dietmar Maurer [Wed, 28 Mar 2012 08:37:28 +0000 (10:37 +0200)]
use new network setup code from PVE::Network (libpve-common-perl)
Dietmar Maurer [Tue, 27 Mar 2012 10:21:15 +0000 (12:21 +0200)]
do not use clusvcadm if we start using 'starturi' parameter
Dietmar Maurer [Tue, 27 Mar 2012 08:55:59 +0000 (10:55 +0200)]
avoid recursive calls to clusvcadm
Dietmar Maurer [Tue, 27 Mar 2012 08:41:47 +0000 (10:41 +0200)]
skip ha managed VMs in startall
Instead thos VMs should be started by rgmanager.
Dietmar Maurer [Tue, 27 Mar 2012 08:37:39 +0000 (10:37 +0200)]
fix bug #97: execute 'clusvcadm' commands for HA managed VMs
Dietmar Maurer [Tue, 27 Mar 2012 06:50:04 +0000 (08:50 +0200)]
only wait 1 second to aquire lock on vm_create
Waiting is not necessary, and we want to avoid delays in the GUI.
Dietmar Maurer [Thu, 22 Mar 2012 05:30:43 +0000 (06:30 +0100)]
corretcly use tag instead of vlan
Derumier Alexandre [Wed, 21 Mar 2012 12:58:04 +0000 (13:58 +0100)]
renamme vlan option to tag
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Tue, 20 Mar 2012 11:25:08 +0000 (12:25 +0100)]
use Digest::SHA instead of Digest::SHA1
Dietmar Maurer [Tue, 20 Mar 2012 08:43:10 +0000 (09:43 +0100)]
cleanup startall code
Only sleep when neccessary
Dietmar Maurer [Tue, 20 Mar 2012 08:33:41 +0000 (09:33 +0100)]
make startall wait up to 10 seconds for quorum
Derumier Alexandre [Mon, 19 Mar 2012 08:39:21 +0000 (09:39 +0100)]
add vlan for testing
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Mon, 19 Mar 2012 09:32:52 +0000 (10:32 +0100)]
use scsi inquiry to test if we can use the scsi-block driver
This is basically the same test as done inside the scsi-block driver. This also works for device-mapper multipath devices.
Dietmar Maurer [Tue, 13 Mar 2012 06:00:27 +0000 (07:00 +0100)]
restrict name to DNS format 'dns-name'
Dietmar Maurer [Thu, 1 Mar 2012 11:54:06 +0000 (12:54 +0100)]
fix bug 102: remove stale status file on stop
Dietmar Maurer [Thu, 1 Mar 2012 07:13:14 +0000 (08:13 +0100)]
save description as comment
Dietmar Maurer [Thu, 1 Mar 2012 05:37:18 +0000 (06:37 +0100)]
fix lvremove call: avoid 'Not a CODE reference' warning
Dietmar Maurer [Wed, 29 Feb 2012 08:47:31 +0000 (09:47 +0100)]
revert tablet mice fix
Dietmar Maurer [Wed, 29 Feb 2012 05:51:34 +0000 (06:51 +0100)]
bump version for live migration fix
Derumier Alexandre [Mon, 27 Feb 2012 12:45:01 +0000 (13:45 +0100)]
fix tablet mice as default when live migrate
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Fri, 24 Feb 2012 06:40:12 +0000 (07:40 +0100)]
fix vzdump on stopped vm
Dietmar Maurer [Wed, 22 Feb 2012 06:19:10 +0000 (07:19 +0100)]
bump version to release cpu model improvements
Derumier Alexandre [Tue, 21 Feb 2012 08:58:01 +0000 (09:58 +0100)]
Support new cpu models
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Mon, 20 Feb 2012 06:17:10 +0000 (07:17 +0100)]
fix cdrom permission check
Dietmar Maurer [Wed, 15 Feb 2012 09:48:55 +0000 (10:48 +0100)]
correctly remove cdrom and iscsi devices
Dietmar Maurer [Mon, 13 Feb 2012 10:22:03 +0000 (11:22 +0100)]
use correct format to print time_t (%zd)
Dietmar Maurer [Mon, 13 Feb 2012 10:18:09 +0000 (11:18 +0100)]
ignore -tdf (avoid kvm warning) - this is no longer needed
Dietmar Maurer [Fri, 10 Feb 2012 06:47:46 +0000 (07:47 +0100)]
move test for block device to vmtar.c
Dietmar Maurer [Wed, 8 Feb 2012 05:42:14 +0000 (06:42 +0100)]
use lseek to get size of block devices
Dietmar Maurer [Tue, 7 Feb 2012 10:55:57 +0000 (11:55 +0100)]
only use sparse file scan for files
Dietmar Maurer [Tue, 7 Feb 2012 09:44:43 +0000 (10:44 +0100)]
fix typo
Dietmar Maurer [Tue, 7 Feb 2012 09:41:13 +0000 (10:41 +0100)]
do not write /etc/mtab when mounting snapshots
Dietmar Maurer [Tue, 7 Feb 2012 09:40:28 +0000 (10:40 +0100)]
support new lzo compression
Dietmar Maurer [Mon, 6 Feb 2012 11:52:29 +0000 (12:52 +0100)]
fix typo
Dietmar Maurer [Mon, 6 Feb 2012 11:36:16 +0000 (12:36 +0100)]
use check_volume_access from $rpcenv
Dietmar Maurer [Mon, 6 Feb 2012 11:19:35 +0000 (12:19 +0100)]
use check() instead of check_storage_perm()
Derumier Alexandre [Sun, 5 Feb 2012 13:19:06 +0000 (14:19 +0100)]
don't try to hotplug/unplug is device exist/don't exist
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Fri, 3 Feb 2012 12:44:12 +0000 (13:44 +0100)]
correctly add/remove VMs to pool
Dietmar Maurer [Fri, 3 Feb 2012 12:13:47 +0000 (13:13 +0100)]
fix typo
Dietmar Maurer [Fri, 3 Feb 2012 09:49:37 +0000 (10:49 +0100)]
fix CD eject
Dietmar Maurer [Fri, 3 Feb 2012 09:23:50 +0000 (10:23 +0100)]
cleanup update_vm - factor out code to make is simpler
Dietmar Maurer [Thu, 2 Feb 2012 13:01:08 +0000 (14:01 +0100)]
replace change_config_nolock with update_config_nolock
We now use cfs_file_write() in order to avoid race conditions between
file IO and cfs operations (read after write works now).
Dietmar Maurer [Thu, 2 Feb 2012 09:41:08 +0000 (10:41 +0100)]
cleanup update_vm - carefully reload config after changes
Split out code to delete drive into delete_drive()
Always hotplug after config is written and reloaded.
Do not revert config if hotplug fails.
Do not safe config in add_unused_volume.
Dietmar Maurer [Thu, 2 Feb 2012 07:35:11 +0000 (08:35 +0100)]
cleanup update_vm - always reload config
And moved parameter parsing code to top.
Dietmar Maurer [Thu, 2 Feb 2012 06:19:46 +0000 (07:19 +0100)]
cleanup update_vm - move param checks to start of function
Dietmar Maurer [Thu, 2 Feb 2012 05:39:38 +0000 (06:39 +0100)]
start adding permission checks
Derumier Alexandre [Wed, 1 Feb 2012 12:25:20 +0000 (13:25 +0100)]
add ahci controller
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Wed, 1 Feb 2012 12:25:19 +0000 (13:25 +0100)]
add sata hdd support
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Sat, 28 Jan 2012 16:07:33 +0000 (17:07 +0100)]
cleanup warning messages
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Sat, 28 Jan 2012 10:02:29 +0000 (11:02 +0100)]
add qemu_netdevadd, qemu_netdevdel and add them in hotplug code
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Sat, 28 Jan 2012 10:02:28 +0000 (11:02 +0100)]
add print_netdevice_full, print_netdev_full subs
and change code to use it
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Sat, 28 Jan 2012 10:02:27 +0000 (11:02 +0100)]
add nic hotplug to update_vm
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Fri, 27 Jan 2012 08:53:48 +0000 (09:53 +0100)]
add lock around update_vm code
Dietmar Maurer [Fri, 27 Jan 2012 08:35:26 +0000 (09:35 +0100)]
removed trailing whitespace
Derumier Alexandre [Thu, 26 Jan 2012 18:43:48 +0000 (19:43 +0100)]
update_vm rework
now we write conf after each option.
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Mon, 23 Jan 2012 10:59:28 +0000 (11:59 +0100)]
use new syntax for permission attribute
Derumier Alexandre [Fri, 20 Jan 2012 10:42:08 +0000 (11:42 +0100)]
rework of hotplug/unplug in Qemu.pm
manage errors on more than 1 device
use unused disk for new created disk but failed hotplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:07 +0000 (11:42 +0100)]
add scsi disk hotplug/unplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:06 +0000 (11:42 +0100)]
add lsi controller hotplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:05 +0000 (11:42 +0100)]
create qemu_deviceadd, qemu_devicedel, qemu_driveadd, qemu_drivedel, qemu_deviceaddverify, qemu_devicedelverify
and replace code in vm_deviceplug/vm_deviceunplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:04 +0000 (11:42 +0100)]
print_drivedevice_full : change deviceid: device-scsi to scsi and device-ide to ide
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:03 +0000 (11:42 +0100)]
rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Derumier Alexandre [Fri, 20 Jan 2012 10:42:02 +0000 (11:42 +0100)]
rename scsicontroller deviceid from scsi0/1 to lsi0/1
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
Dietmar Maurer [Thu, 19 Jan 2012 08:31:40 +0000 (09:31 +0100)]
use new assemble_vnc_ticket