mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
make adding cd-rom optional while vm creating. Add default value for cd-rom bus
This commit is contained in:
parent
ea6524f79e
commit
5f5bd379af
6 changed files with 110 additions and 21 deletions
|
|
@ -182,3 +182,15 @@ UEFI_ARCH_PATTERNS = {
|
|||
r".*arm/QEMU_EFI.*", # fedora, gerd's firmware repo
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def vol_dev_type(vol_bus):
|
||||
if vol_bus == "ide":
|
||||
return "hd"
|
||||
elif vol_bus == "fdc":
|
||||
return "fd"
|
||||
elif vol_bus == "virtio":
|
||||
return "vd"
|
||||
elif vol_bus in ["scsi", "sata"]:
|
||||
return "sd"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue