1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
Commit graph

49 commits

Author SHA1 Message Date
catborise
03ac93ea53 fix(instances): CD-ROM bus, USB controller and MACs of a new VM
Creating each option on a RHEL qemu-kvm host showed:

- CD-ROM: the create page offered every disk bus, but the empty CD-ROM
  of a new VM works only on ide, sata and scsi. fdc and virtio failed
  ("Invalid bus type", "does not support ejectable media"), usb failed
  with a device named 'Nonea' because vol_dev_type() had no prefix for
  usb, and after that libvirt refuses an empty usb disk. Only ide, sata
  and scsi are offered now, and another value is refused before any
  storage is allocated. vol_dev_type() names usb disks sdX, which also
  fixes data volumes on the usb bus.
- USB controller: any input device added a bare <controller
  type='usb'/>, which libvirt turns into piix3-uhci (USB 1.1) on q35
  instead of its default qemu-xhci. The bare controller is gone; libvirt
  adds the machine's default for USB inputs.
- MACs: with more networks than MAC addresses, create_instance indexed
  past the list and the request failed with a 500. NICs without a given
  MAC now get one from libvirt. MAC addresses are validated (format, not
  more than networks) by the page and the API before anything is
  created; they went into the XML unchecked.

Unit tests cover the refused values, the MAC rule and the usb prefix.
Live tests create a VM with every offered CD-ROM bus and start it,
check the USB controller with a USB input device and create a VM with
two networks and one MAC.
2026-10-04 18:33:28 +03:00
catborise
e5fda79f5a feat(console): VNC is the only console type
SPICE was removed earlier; its leftovers and the console type choice go
too:
- the console settings form, update_console and the backend no longer
  offer or change the type; an invalid console form now shows its
  errors instead of being ignored;
- the create form, the API serializer and create_instance no longer take
  a graphics type, new VMs get VNC; get_graphics_types and the graphics
  entries of the domain capabilities are gone;
- migration appsettings.0013 deletes QEMU_CONSOLE_DEFAULT_TYPE;
- a VM defined elsewhere with another graphics type gets "Console type
  ... is not supported".

The locale catalogs still reference the deleted SPICE templates in
source comments; regenerating them is left to the translation work.
2026-10-04 01:08:11 +03:00
cserma
7d1cfb69b0 network interface model selection added for new instance and new interface 2023-08-16 09:13:11 +03:00
catborise
a1eab70e2d reorg imports and black format 2022-11-02 16:05:41 +03:00
catborise
2ff188da45 fix add-cdrom error while creating 2022-09-08 08:15:54 +03:00
catborise
481c110f01 make adding input devices optional. give bus control for input devices whie instance creating 2022-09-08 08:02:49 +03:00
catborise
5f5bd379af make adding cd-rom optional while vm creating. Add default value for cd-rom bus 2022-09-07 13:46:50 +03:00
catborise
4abf62702a take over precedense sata to scsi 2022-09-05 15:37:23 +03:00
catborise
cfce71ec2b
Rest framework (#24)
* Add rest framework for API: First Commit

* modify some shell scripts to make variable references safer; modify some python scripts to reduce the code complexity and cyclomatic complexity of functions.

* Add REST API for some webvirtcloud functions. Instance list/delete/create, compute list/delete/create, storages-network list/retrieve. Add swagger and redoc for API interface

* update requirements

Co-authored-by: herengui <herengui@uniontech.com>
2022-08-22 15:12:33 +03:00
catborise
c77e049e82 add rbd support for add new/existing vol. create from rbd based flavor 2021-12-16 11:03:03 +03:00
catborise
c354393685 add MAC address inputs for instance create methods 2021-12-03 16:41:50 +03:00
catborise
508e3609be lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
catborise
83ba6da572 fix instance create error handling 2020-08-17 09:58:42 +03:00
catborise
7538ddab4f Add all settings to appsettings page & Convert settings choices 2020-06-04 12:32:00 +03:00
catborise
22cb8f702a fix code conventions for pylint 2020-06-04 08:48:43 +03:00
catborise
4d40de1b55 Python3 & Django 2.2 Migration - Fix & Updates 2020-03-16 16:59:45 +03:00
catborise
2b96089542 add disk options for instance. add keyboard input type. 2020-01-08 11:23:10 +03:00
catborise
c6cdb4929c Check firmware secure keyword with safe way to prevent key not exist 2019-12-19 16:06:06 +03:00
catborise
d401d2f3ff Add virtio support check, add more control while creating instance 2019-12-19 13:49:41 +03:00
catborise
dd16a5b2d5 Enrich Instance Create operation: -add capability to create arm, ppc, i686, aarch64 instances, -add option to choose firmware, -add options to choose chipset. -add capability to choose volume driver options. -add new default settings 2019-12-13 16:47:51 +03:00
catborise
a0324ac60e Capitalized iso suffixs not seen by cdrom. Make them case insensitive. 2019-10-24 13:26:58 +03:00
catborise
828a271789 pep8 style code corrections 2019-09-10 09:48:31 +03:00
Ing. Jan Krcmar
a457c262e1 wvmStorage.create_volume, wvmCreate.create_volume image naming respects image/volume format (qcow,qcow2) 2019-04-04 14:23:54 +03:00
catborise
fc6761aabc Add destination storage option for instance creation from a template. 2019-01-09 14:18:19 +03:00
catborise
a519980610 Narrow down with pool searching existing volume while creating instance from template/flavour 2018-12-18 10:46:23 +03:00
catborise
62908f477c Qemu Guest Agent channel add option while creating instance 2018-11-26 15:40:02 +03:00
catborise
eb8aae957e Bundle: Add/Delete Cdrom function added. Add disk device type/bus choice for custom instance creation. Change some cosmetics on create instance. Change some functions signature for compatibility. Add getting disk device types function. Fixed some bugs 2018-11-23 15:18:32 +03:00
catborise
f2d88b9c65 add performance parameters and owner properties to clone_template and create volume 2018-10-05 17:07:25 +03:00
catborise
df4cf01f05 add image owner option to clone_volume, create_volume functions 2018-10-05 15:49:02 +03:00
catborise
13dc4ff510 console password random and empty options modified. 2018-09-14 23:02:07 +03:00
catborise
b58277c621 Instance create with template is revisited. Add password, console, listener address options. add wait dialog. change to console password optional. nwfilter become option. 2018-09-14 16:23:25 +03:00
catborise
88f187c94f volume creation parameters changed to support latest version of qemu compatibility 2018-07-31 16:26:28 +03:00
catborise
c7b8d1ece0 revert of image extension choosing changes. and modify create xmls 2018-07-25 11:16:03 +03:00
catborise
8b2451284f Cleaning libxml2 artifact.convert to lxml and variable name correcition 2018-07-20 15:43:29 +03:00
catborise
e387c3a21d Host gets list of all storages active/inactive. If there is some inactive storages it gives error. But it coulde be inactive. It is normal. Changing the behaviour of getting list of storages. 2018-07-20 14:04:13 +03:00
catborise
4769c5cf1b volume filename extension converted to choosable with settings. And file extensions reorganized. 2018-07-20 13:40:49 +03:00
catborise
73ce98b63e if there is some inactive storages, listing volumes causes exception then breaks.. checking activeness of storage pool fixes that 2018-07-20 11:05:24 +03:00
Ing. Jan KRCMAR
53f5518706 added new feature: create and attach new volume to existing instance
move wvmCreate.get_cache_modes() to wvmConnect

add wvmConnect.get_busses(), wvmConnect.get_image_formats(), used in forms

add corresponding default values to settings (INSTANCE_VOLUME_DEFAULT_FORMAT INSTANCE_VOLUME_DEFAULT_BUS INSTANCE_VOLUME_DEFAULT_CACHE)
2017-07-19 15:34:03 +02:00
Daniel Rieper
29b722ff41 Merge branch 'master' of https://github.com/honza801/webvirtcloud
Conflicts:
	instances/templates/instance.html
	instances/views.py
2016-07-29 13:05:54 +02:00
QDaniel
01fc85e1fc listen 127.0.0.1 2016-07-21 23:14:48 +02:00
QDaniel
9e294ade3c Security Bug: No external Connections 2016-07-13 12:49:14 +02:00
Valentin Samir
e75fc99449 Create instances with a random generated vnc password by default 2016-05-08 12:24:43 +02:00
Jan Krcmar
db1ab88f51 Merge remote-tracking branch 'retspen/master'
Conflicts:
	conf/requirements.txt
2016-04-21 13:34:27 +02:00
Benjamin Renard
9520282a4b Add possibility to configure HDD cache mode during instance creation 2016-04-17 23:41:40 +02:00
Benjamin Renard
ee2b97d62f Retreive all RBD hosts (and their port if defined) from pool definition during instance creation 2016-04-16 15:04:28 +02:00
Anatoliy Guskov
2a3a33d746 Fixed #61 2015-10-22 08:01:43 +03:00
Anatoliy Guskov
5ec8895325 Fixed MAC and IP spoofing 2015-07-30 14:28:36 +03:00
Retspen
2ed6ca6518 Clean header 2015-02-27 14:44:44 +02:00
Retspen
4d48e79341 Initial commit 2015-02-27 10:53:51 +02:00