Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							7af0a6c88d 
							
						 
					 
					
						
						
							
							create template: fix permission check  
						
						... 
						
						
						
						This function only works if the VM already exists. But pool permissions
are automatically inherited on existing VMs, so there is no need
to explicitly check pool permissions. 
						
					 
					
						2013-05-03 09:14:25 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							d703d4c010 
							
						 
					 
					
						
						
							
							clone: correctly add VM to pool  
						
						
						
					 
					
						2013-05-03 09:08:39 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							2dd530430b 
							
						 
					 
					
						
						
							
							fix typo, whitespace cleanups  
						
						
						
					 
					
						2013-05-03 08:39:41 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							00b095caba 
							
						 
					 
					
						
						
							
							vm_clone : add running vm drive mirror  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-05-03 08:37:18 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							f9bfceefa6 
							
						 
					 
					
						
						
							
							restore: allow to overwrite existing VMs if user has VM.Backup permissions  
						
						... 
						
						
						
						The requirement to have VM.Allocate it non-obvious and confusing
if the VM already exists. If the user can backup, he should also be able
to restore that backup. 
						
					 
					
						2013-05-03 07:47:08 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							9418baad81 
							
						 
					 
					
						
						
							
							remane copy to clone  
						
						
						
					 
					
						2013-05-02 11:42:22 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							dba198b05e 
							
						 
					 
					
						
						
							
							check has_feature copy for full clone  
						
						
						
					 
					
						2013-05-02 07:17:15 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							829967a93b 
							
						 
					 
					
						
						
							
							copy_vm: re-structure code to allow more checks before fork  
						
						
						
					 
					
						2013-05-02 07:10:46 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							c6d0c8a702 
							
						 
					 
					
						
						
							
							fix : signal interrupt don't delete volume on full copy  
						
						... 
						
						
						
						Currently we  push newvolid to newvollist after qemu-img convert,
so if signal interrupt occur during qemu-img convert, the newvollist is empty and we can't free the volume
Instead, We need to push newvolid to newvollist just after volume creation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-05-02 06:49:12 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							751cc556dc 
							
						 
					 
					
						
						
							
							fix "Use of uninitialized value $target"  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-05-02 06:40:01 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							75466c4fa6 
							
						 
					 
					
						
						
							
							white-space cleanups  
						
						
						
					 
					
						2013-04-30 11:46:38 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							55173c6bd4 
							
						 
					 
					
						
						
							
							copy_vm: new option to move final VM to other node (option target)  
						
						... 
						
						
						
						This only works if the VM is on shared storage. 
						
					 
					
						2013-04-30 11:44:39 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							42a19c87bc 
							
						 
					 
					
						
						
							
							vm_copy : add optional format parameter  
						
						... 
						
						
						
						can be qcow2,raw,vmdk
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-04-30 10:46:44 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a60ab1a6a2 
							
						 
					 
					
						
						
							
							copy_vm: add name and description option  
						
						
						
					 
					
						2013-04-30 09:54:34 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							9076d880a8 
							
						 
					 
					
						
						
							
							copy_vm: allow to copy from snapshot  
						
						
						
					 
					
						2013-04-30 09:31:23 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							4e4f83fea0 
							
						 
					 
					
						
						
							
							copy_vm: use exclusive lock for running VM  
						
						... 
						
						
						
						Because we can only run one block job to copy data. 
						
					 
					
						2013-04-30 07:40:43 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							81f043ebc0 
							
						 
					 
					
						
						
							
							copy_vm : add optional storage parameter  
						
						... 
						
						
						
						Optionnal target storage for full copy
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-04-30 07:16:54 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							3732918544 
							
						 
					 
					
						
						
							
							vm_copy : fix typo in description  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-04-30 06:55:18 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b83e0181f1 
							
						 
					 
					
						
						
							
							implement copy_vm  
						
						... 
						
						
						
						This is based on patches from Alexandre Derumier <aderumier@odiso.com>.
It just implements copy/clone for stopped VMs and Templates. Copying
running VMs or copy from snapshots is not implemented. 
						
					 
					
						2013-04-29 10:53:03 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							6116f72902 
							
						 
					 
					
						
						
							
							implement shared file locks  
						
						... 
						
						
						
						and add a first prototype for copy_vm 
						
					 
					
						2013-04-29 09:30:15 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							218cab9a3a 
							
						 
					 
					
						
						
							
							use correct package prefix  
						
						
						
					 
					
						2013-04-22 10:57:24 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b91c2aae28 
							
						 
					 
					
						
						
							
							fix assertion  
						
						
						
					 
					
						2013-04-22 09:43:54 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							35c5fdefce 
							
						 
					 
					
						
						
							
							move assertion so that we have all checks at the same place.  
						
						
						
					 
					
						2013-04-22 07:10:58 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							75e7e997e7 
							
						 
					 
					
						
						
							
							set template flag earlier  
						
						
						
					 
					
						2013-04-22 07:08:51 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							0402a80b77 
							
						 
					 
					
						
						
							
							do not allow template creation if there are snapshots.  
						
						
						
					 
					
						2013-04-22 07:05:54 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							bef4463b61 
							
						 
					 
					
						
						
							
							fix wrong comment  
						
						
						
					 
					
						2013-04-22 07:02:10 +02:00 
						 
				 
			
				
					
						
							
							
								Stefan Priebe 
							
						 
					 
					
						
						
						
						
							
						
						
							b02691d817 
							
						 
					 
					
						
						
							
							use vm create permissions for templates  
						
						... 
						
						
						
						Signed-off-by: Stefan Priebe <s.priebe@profihost.ag> 
						
					 
					
						2013-04-19 11:38:57 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							de8f60b252 
							
						 
					 
					
						
						
							
							dynamic bridge rate/vlan change on nic update  
						
						... 
						
						
						
						if model change : we try to unplug like before
if bridge/nat change : we try to unplug like before
else if bridge, but rate/vlan/bridge change, we dynamicly change them without need hotplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-03-05 12:10:06 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							bb1e32937a 
							
						 
					 
					
						
						
							
							Revert "vncproxy: wait max 10s for the socket if it does not exist"  
						
						... 
						
						
						
						This reverts commit 58504d5edf 
						
					 
					
						2013-02-28 12:49:21 +01:00 
						 
				 
			
				
					
						
							
							
								Stefan Priebe 
							
						 
					 
					
						
						
						
						
							
						
						
							58504d5edf 
							
						 
					 
					
						
						
							
							vncproxy: wait max 10s for the socket if it does not exist  
						
						... 
						
						
						
						Signed-off-by: Stefan Priebe <s.priebe@profihost.ag> 
						
					 
					
						2013-02-28 06:53:54 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							f2965e67df 
							
						 
					 
					
						
						
							
							forbid online resize a virtio windows bootdisk  
						
						... 
						
						
						
						Currently is give us bsod, it's a windows virtio-blk driver bug.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-02-25 06:15:00 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							e8a7e9b44c 
							
						 
					 
					
						
						
							
							fix tablet hotplug  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-02-19 12:56:58 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							9a8d6b6665 
							
						 
					 
					
						
						
							
							hot-unplug : add some warnings for differents guest os  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-02-19 10:38:50 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							cd6ecb89eb 
							
						 
					 
					
						
						
							
							hotplug/unplug tablet on config update  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-02-19 06:42:53 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							03c2d0ad6f 
							
						 
					 
					
						
						
							
							remove wrong permission check  
						
						
						
					 
					
						2013-02-15 08:45:42 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							04a69bb4fe 
							
						 
					 
					
						
						
							
							add template_create  
						
						... 
						
						
						
						qm template <vmid> [-disk virtio0]
convert a full vm to a template (or only a disk if specify)
we orignal disk to /base (file) or base- (lvm,rbd,sheepdog,nexenta)
we create a snapshot @base if storage need it for clone
we protect the volume or snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-02-15 07:50:32 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ed2213500d 
							
						 
					 
					
						
						
							
							vma restore: only delete disks contained in backup.  
						
						... 
						
						
						
						cleanup: remove unnecessary 'PVE::QemuServer::' prefix. 
						
					 
					
						2013-01-04 06:57:11 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							628e9a2b67 
							
						 
					 
					
						
						
							
							fix Bug  #293 : CDROM size not reset when set to use no media  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2013-01-02 06:30:24 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							7bfdeb5f90 
							
						 
					 
					
						
						
							
							allow manual ballooning if shares is set to zero  
						
						
						
					 
					
						2012-12-28 14:06:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ccd5438fa3 
							
						 
					 
					
						
						
							
							fix permission check for option 'shares'  
						
						
						
					 
					
						2012-12-28 13:04:19 +01:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							1ac0d2ee0c 
							
						 
					 
					
						
						
							
							api2: vm_feature  
						
						... 
						
						
						
						return true/false if vm has feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-12-28 07:49:37 +01:00 
						 
				 
			
				
					
						
							
							
								Stefan Priebe 
							
						 
					 
					
						
						
						
						
							
						
						
							6bb726c903 
							
						 
					 
					
						
						
							
							PVE/API2/Qemu: remove hardcoded blowfish cipher  
						
						... 
						
						
						
						Signed-off-by: Stefan Priebe <s.priebe@profihost.ag> 
						
					 
					
						2012-10-31 13:57:58 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3da8510790 
							
						 
					 
					
						
						
							
							vncproxy: wait until vnc port is ready  
						
						
						
					 
					
						2012-10-24 08:59:31 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							6aa4651b89 
							
						 
					 
					
						
						
							
							include additional info in snapshot list  
						
						
						
					 
					
						2012-09-13 09:45:48 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							d191446898 
							
						 
					 
					
						
						
							
							pass 'digest', so that GUI can detect changes easily  
						
						... 
						
						
						
						Also use 'current' instead of '__current' 
						
					 
					
						2012-09-13 09:13:39 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3ee28e388a 
							
						 
					 
					
						
						
							
							improve snapshot delete - add force option to API  
						
						
						
					 
					
						2012-09-12 07:19:38 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							d788cea673 
							
						 
					 
					
						
						
							
							add API to get/set snapshot configuration.  
						
						... 
						
						
						
						You can currently only modify the 'description'. 
						
					 
					
						2012-09-11 09:34:48 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							782f4f753f 
							
						 
					 
					
						
						
							
							add description for snapshots  
						
						
						
					 
					
						2012-09-11 09:00:26 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							982c7f1273 
							
						 
					 
					
						
						
							
							add snapshot time stamp  
						
						
						
					 
					
						2012-09-11 08:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							0ea6bc6943 
							
						 
					 
					
						
						
							
							snapshot list: include current position  
						
						
						
					 
					
						2012-09-11 08:33:20 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							7b2257a8b5 
							
						 
					 
					
						
						
							
							fix typo  
						
						
						
					 
					
						2012-09-10 12:08:55 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							f1baf1df42 
							
						 
					 
					
						
						
							
							fix snapshot permissions - check for VM.Snapshot  
						
						
						
					 
					
						2012-09-10 09:37:51 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							8abd398b8a 
							
						 
					 
					
						
						
							
							register standard option for snapshot name  
						
						
						
					 
					
						2012-09-10 08:55:04 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							154ccdcdbc 
							
						 
					 
					
						
						
							
							improve snapshot REST interface  
						
						
						
					 
					
						2012-09-10 07:58:06 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							7e7d7b6113 
							
						 
					 
					
						
						
							
							split snapshot into separate methods.  
						
						... 
						
						
						
						We also start background tasks now. I also removed the 'digest'and 'force' parameters, because I think we do not need them here. 
						
					 
					
						2012-09-10 07:32:33 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							22c377f0b7 
							
						 
					 
					
						
						
							
							update config on snapshot commands  
						
						
						
					 
					
						2012-09-07 13:07:23 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							9dbd1ee434 
							
						 
					 
					
						
						
							
							add qm snapshot command  
						
						... 
						
						
						
						qm snapshot <vmid> <action> <snapshotname> --vmstate --freezefs
action : create|rollback|delete
vmstate : save the vmstate
freezefs: freezefs with qemu-ga
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-09-06 10:46:49 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							9bf371a66b 
							
						 
					 
					
						
						
							
							use mbps instead of bps  
						
						... 
						
						
						
						The new parser automatically converts old bps to mbps. 
						
					 
					
						2012-08-30 07:57:59 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							af30308f36 
							
						 
					 
					
						
						
							
							we call vm_stop to target host,  
						
						... 
						
						
						
						to be sure that kvm process is killed (but it should kill itself),
and deactivate volumes
I slightly modified this patch (orig. from Alexandre) so that it apply cleanly. 
						
					 
					
						2012-08-23 10:28:41 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							7e8dcf2cb0 
							
						 
					 
					
						
						
							
							add migratedfrom param to start vm with conf file an another node  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-08-23 07:18:36 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							f91b2e4554 
							
						 
					 
					
						
						
							
							fix for resize: final cleanups  
						
						
						
					 
					
						2012-08-08 09:25:54 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							2f48a4f522 
							
						 
					 
					
						
						
							
							fix for resize: only allow to resize one disk.  
						
						
						
					 
					
						2012-08-08 08:26:58 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3b2773f606 
							
						 
					 
					
						
						
							
							fix for resize: remove useless permission checks  
						
						
						
					 
					
						2012-08-08 07:36:51 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							614e3941a3 
							
						 
					 
					
						
						
							
							fix for resize: avoid conflicting path  
						
						
						
					 
					
						2012-08-08 07:34:36 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							0d02881ce5 
							
						 
					 
					
						
						
							
							qm : add resize  
						
						... 
						
						
						
						qm resize <vmid> -ide1 +10(G|M|K)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-08-08 07:25:50 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							24afaca0b6 
							
						 
					 
					
						
						
							
							add size hint to drive options  
						
						... 
						
						
						
						We now store the size when we create a drive. This is just a hint, but
good enough to display on the GUI. We can now avoid to query the storage in
vmstatus(). 
						
					 
					
						2012-08-01 13:22:43 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							93ae06e180 
							
						 
					 
					
						
						
							
							Avoid warnings about undefined values  
						
						
						
					 
					
						2012-08-01 13:15:57 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							eabe0da02d 
							
						 
					 
					
						
						
							
							bug fix: allow to set devices directly (-ide1 /dev/XYZ)  
						
						
						
					 
					
						2012-07-27 11:59:42 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							0f56d571e4 
							
						 
					 
					
						
						
							
							implement qmp block_set_io_throttle on running vm config update  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-07-16 09:20:49 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							03a33f3005 
							
						 
					 
					
						
						
							
							new option for vmstatus to query $full informations from KVM using qmp  
						
						
						
					 
					
						2012-07-13 09:31:39 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							7b7c6d1b5d 
							
						 
					 
					
						
						
							
							use qmp for everything - remove old monitor code  
						
						
						
					 
					
						2012-07-13 09:00:21 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							ce156282e6 
							
						 
					 
					
						
						
							
							convert eject cdrom monitor command to qmp  
						
						... 
						
						
						
						Signed-off-by: Alexandre Derumier <aderumier@odiso.com> 
						
					 
					
						2012-06-26 06:39:53 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							35cb731c42 
							
						 
					 
					
						
						
							
							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> 
						
					 
					
						2012-06-25 06:51:17 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							4fc5242406 
							
						 
					 
					
						
						
							
							fix pool permission checks on create  
						
						... 
						
						
						
						We do not need Permission.Modify on the pool. 
						
					 
					
						2012-05-30 10:13:51 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandre Derumier 
							
						 
					 
					
						
						
						
						
							
						
						
							7e4e69a6d2 
							
						 
					 
					
						
						
							
							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> 
						
					 
					
						2012-05-29 07:59:06 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5d0094ead9 
							
						 
					 
					
						
						
							
							avoid warning if vm does not belong to a pool  
						
						
						
					 
					
						2012-05-23 07:42:55 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							22d646a733 
							
						 
					 
					
						
						
							
							fix bug in storage availability check (migrate)  
						
						
						
					 
					
						2012-04-07 08:26:51 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							d7810bc123 
							
						 
					 
					
						
						
							
							fix bug  #134 : allow to pass file names to qmrestore and 'qm set'  
						
						
						
					 
					
						2012-04-02 10:52:05 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							47152e2ee3 
							
						 
					 
					
						
						
							
							fix bug  #12 : check storage availability early (migrate)  
						
						
						
					 
					
						2012-03-30 09:13:31 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							8b192abf57 
							
						 
					 
					
						
						
							
							fix bug  #121 : activate volumes correctly  
						
						
						
					 
					
						2012-03-29 11:09:52 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							cce3774992 
							
						 
					 
					
						
						
							
							do not use clusvcadm if we start using 'starturi' parameter  
						
						
						
					 
					
						2012-03-27 12:21:15 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3be30d6325 
							
						 
					 
					
						
						
							
							avoid recursive calls to clusvcadm  
						
						
						
					 
					
						2012-03-27 10:55:59 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							88fc87b467 
							
						 
					 
					
						
						
							
							fix bug  #97 : execute 'clusvcadm' commands for HA managed VMs  
						
						
						
					 
					
						2012-03-27 10:37:39 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							191435c643 
							
						 
					 
					
						
						
							
							only wait 1 second to aquire lock on vm_create  
						
						... 
						
						
						
						Waiting is not necessary, and we want to avoid delays in the GUI. 
						
					 
					
						2012-03-27 09:02:50 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							f5782fd0ad 
							
						 
					 
					
						
						
							
							fix cdrom permission check  
						
						
						
					 
					
						2012-02-20 07:17:47 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							49f9db93c0 
							
						 
					 
					
						
						
							
							correctly remove cdrom and iscsi devices  
						
						
						
					 
					
						2012-02-15 10:48:55 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							6e5c4da7ef 
							
						 
					 
					
						
						
							
							fix typo  
						
						
						
					 
					
						2012-02-07 10:44:43 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ab6b35dfdf 
							
						 
					 
					
						
						
							
							fix typo  
						
						
						
					 
					
						2012-02-06 12:52:29 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ba68cf0938 
							
						 
					 
					
						
						
							
							use  check_volume_access from $rpcenv  
						
						
						
					 
					
						2012-02-06 12:36:16 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							fcbb753e3c 
							
						 
					 
					
						
						
							
							use check() instead of check_storage_perm()  
						
						
						
					 
					
						2012-02-06 12:19:35 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							502d18a2e7 
							
						 
					 
					
						
						
							
							correctly add/remove VMs to pool  
						
						
						
					 
					
						2012-02-03 13:44:12 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ae9ca91d80 
							
						 
					 
					
						
						
							
							fix typo  
						
						
						
					 
					
						2012-02-03 13:13:47 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							09d0ee6473 
							
						 
					 
					
						
						
							
							fix CD eject  
						
						
						
					 
					
						2012-02-03 10:49:37 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ae57f6b352 
							
						 
					 
					
						
						
							
							cleanup update_vm - factor out code to make is simpler  
						
						
						
					 
					
						2012-02-03 10:23:50 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							1858638fe3 
							
						 
					 
					
						
						
							
							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). 
						
					 
					
						2012-02-02 14:18:41 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5d7a6767be 
							
						 
					 
					
						
						
							
							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. 
						
					 
					
						2012-02-02 10:57:16 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							1e68cb191a 
							
						 
					 
					
						
						
							
							cleanup update_vm - always reload config  
						
						... 
						
						
						
						And moved parameter parsing code to top. 
						
					 
					
						2012-02-02 08:35:11 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							0532bc6391 
							
						 
					 
					
						
						
							
							cleanup update_vm - move param checks to start of function  
						
						
						
					 
					
						2012-02-02 07:19:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a0d1b1a2fe 
							
						 
					 
					
						
						
							
							start adding permission checks  
						
						
						
					 
					
						2012-02-02 06:57:47 +01:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							3a1e36bb5a 
							
						 
					 
					
						
						
							
							add nic hotplug to update_vm  
						
						... 
						
						
						
						Signed-off-by: Derumier Alexandre <aderumier@odiso.com> 
						
					 
					
						2012-01-30 05:54:54 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5d39a18227 
							
						 
					 
					
						
						
							
							add lock around update_vm code  
						
						
						
					 
					
						2012-01-27 09:53:48 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							afdb31d5f8 
							
						 
					 
					
						
						
							
							removed trailing whitespace  
						
						
						
					 
					
						2012-01-27 09:35:26 +01:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							c2a64aa7cf 
							
						 
					 
					
						
						
							
							update_vm rework  
						
						... 
						
						
						
						now we write conf after each option.
Signed-off-by: Derumier Alexandre <aderumier@odiso.com> 
						
					 
					
						2012-01-27 05:55:00 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							378b359eef 
							
						 
					 
					
						
						
							
							use new syntax for permission attribute  
						
						
						
					 
					
						2012-01-23 11:59:28 +01:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							fcdb011702 
							
						 
					 
					
						
						
							
							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> 
						
					 
					
						2012-01-23 09:15:57 +01:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							ec21aa112d 
							
						 
					 
					
						
						
							
							rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug  
						
						... 
						
						
						
						Signed-off-by: Derumier Alexandre <aderumier@odiso.com> 
						
					 
					
						2012-01-23 09:06:24 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b6f39da2af 
							
						 
					 
					
						
						
							
							use new assemble_vnc_ticket  
						
						
						
					 
					
						2012-01-19 09:31:40 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							254575e971 
							
						 
					 
					
						
						
							
							fix bug  #81 : do no deactivate volumes in vzdump stop mode  
						
						... 
						
						
						
						We add a keepActive parameter to stop/shutdown API. 
						
					 
					
						2012-01-17 11:56:56 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							8610701ae6 
							
						 
					 
					
						
						
							
							add ha flag to status info  
						
						
						
					 
					
						2011-12-22 13:18:37 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							4d81a1d327 
							
						 
					 
					
						
						
							
							dont raise errors if not needed  
						
						
						
					 
					
						2011-12-16 06:32:09 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							9269013a93 
							
						 
					 
					
						
						
							
							implement forceStop for vm_shutdown  
						
						
						
					 
					
						2011-12-15 12:58:29 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							16e903f2dc 
							
						 
					 
					
						
						
							
							use new AbstractMigrate.pm  
						
						
						
					 
					
						2011-12-07 06:36:20 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							02d07cf579 
							
						 
					 
					
						
						
							
							fix vm_shutdown bug - pass storecfg parameter  
						
						
						
					 
					
						2011-11-30 09:33:43 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b7eeab2151 
							
						 
					 
					
						
						
							
							we can only resume a VM which is running  
						
						
						
					 
					
						2011-11-29 06:24:55 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a5ed42d347 
							
						 
					 
					
						
						
							
							try to detect errors before starting the background task  
						
						
						
					 
					
						2011-11-25 13:25:32 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ff1a2432c8 
							
						 
					 
					
						
						
							
							activate LVM LVs more carefully  
						
						... 
						
						
						
						And remove syslog whenever possible (we run most commands as tasks, so
the output is loged anyways) 
						
					 
					
						2011-11-25 08:08:27 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							971f27c404 
							
						 
					 
					
						
						
							
							improve error message when archive does not exist  
						
						
						
					 
					
						2011-11-23 07:30:43 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a591eebacb 
							
						 
					 
					
						
						
							
							only raise exception when parameter -force is set  
						
						
						
					 
					
						2011-11-17 13:36:56 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							91c94f0a23 
							
						 
					 
					
						
						
							
							implement monitor API  
						
						
						
					 
					
						2011-11-09 08:26:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							4f1be36cdc 
							
						 
					 
					
						
						
							
							allow node name 'localhost'  
						
						
						
					 
					
						2011-11-03 07:39:01 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5b9d692ae7 
							
						 
					 
					
						
						
							
							allow to pass volume IDs in create_vm (restore)  
						
						
						
					 
					
						2011-10-20 11:18:46 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							bc4dcb99a1 
							
						 
					 
					
						
						
							
							test for CLI when using pipe  
						
						
						
					 
					
						2011-10-20 10:51:28 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							9c502e26f3 
							
						 
					 
					
						
						
							
							enable piped input with qmrestore  
						
						
						
					 
					
						2011-10-19 11:27:42 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							51586c3a4c 
							
						 
					 
					
						
						
							
							implement unique option for restore  
						
						... 
						
						
						
						Also try to convert old vlanX to new netX syntax. 
						
					 
					
						2011-10-18 09:14:05 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a6af7b3e35 
							
						 
					 
					
						
						
							
							destroy old data when restore with --force  
						
						
						
					 
					
						2011-10-18 07:42:29 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3e16d5fc60 
							
						 
					 
					
						
						
							
							implement qmrestore  
						
						... 
						
						
						
						Restore is a special case of create_vm. 
						
					 
					
						2011-10-17 13:51:05 +02:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							f19d1c4790 
							
						 
					 
					
						
						
							
							Fix/cleanup disk hotplug  
						
						... 
						
						
						
						- pass $conf to create_disks sub
- add some checks on results of "drive_del","drive_add","device_del","device_add"
- replace "sleep 2" by iterative sub vm_waitfordevicecleanup
Signed-off-by: Derumier Alexandre <aderumier@odiso.com> 
						
					 
					
						2011-10-14 10:20:05 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							43779a7baa 
							
						 
					 
					
						
						
							
							remove wrong inline comment  
						
						
						
					 
					
						2011-10-12 07:42:11 +02:00 
						 
				 
			
				
					
						
							
							
								Derumier Alexandre 
							
						 
					 
					
						
						
						
						
							
						
						
							2bbed6c09a 
							
						 
					 
					
						
						
							
							add a hook to call vm_devicedel with disk is removed from configuration  
						
						... 
						
						
						
						Signed-off-by: Derumier Alexandre <aderumier@odiso.com> 
						
					 
					
						2011-10-11 13:13:05 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							c6bb9502db 
							
						 
					 
					
						
						
							
							add timeout parameter for stop/shotdown  
						
						
						
					 
					
						2011-10-11 11:58:34 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5fdbe4f023 
							
						 
					 
					
						
						
							
							create background tasks  
						
						
						
					 
					
						2011-10-10 13:17:40 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							be62c45cf9 
							
						 
					 
					
						
						
							
							cleanups  
						
						
						
					 
					
						2011-10-05 10:16:20 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							3ea94c60d2 
							
						 
					 
					
						
						
							
							move code from qmigrate into PVE/QemuMigrate.pm  
						
						... 
						
						
						
						and make migrate a subcommand of qm 
						
					 
					
						2011-09-14 13:33:34 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							554ac7e7b7 
							
						 
					 
					
						
						
							
							Add digest to prevent concurrent changes  
						
						
						
					 
					
						2011-09-07 11:41:34 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							1e3baf05f2 
							
						 
					 
					
						
						
							
							imported from svn 'qemu-server/pve2'  
						
						
						
					 
					
						2011-08-23 07:47:04 +02:00