Correzione immagine CentOS7, attivazione dischi SCSI su libvirt.

This commit is contained in:
Emiliano Vavassori 2024-03-15 00:47:30 +01:00
parent edefc22990
commit 0d24c69e32
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ vm = lv.Domain(conf.name,
) ],
cloudinit = cloudinit.id,
vcpu = conf.vcpu,
disks = [ lv.DomainDiskArgs(volume_id = volume.id) ],
disks = [ lv.DomainDiskArgs(volume_id = volume.id, scsi=True) ],
memory = int(conf.ram),
network_interfaces = [ lv.DomainNetworkInterfaceArgs(
network_name = "default",

View File

@ -1,4 +1,4 @@
buster: https://cloud.debian.org/images/cloud/buster-backports/latest/debian-10-backports-generic-amd64.qcow2
bullseye: https://cloud.debian.org/images/cloud/bullseye-backports/latest/debian-11-backports-generic-amd64.qcow2
bookworm: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
centos7: https://cloud.centos.org/centos/7/images/CentOS-7-ppc64le-GenericCloud-2009.qcow2
centos7: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2211.qcow2

View File

@ -37,7 +37,7 @@ vm = lv.Domain(conf.name,
boot_devices=[lv.DomainBootDeviceArgs(devs=["hd", "cdrom"])],
cloudinit=cloudinit.id,
vcpu=conf.vcpu,
disks=[lv.DomainDiskArgs(volume_id=volume.id)],
disks=[lv.DomainDiskArgs(volume_id=volume.id, scsi=True)],
memory=int(conf.ram),
network_interfaces=[lv.DomainNetworkInterfaceArgs(
network_name="default",

View File

@ -1,4 +1,4 @@
buster: https://cloud.debian.org/images/cloud/buster-backports/latest/debian-10-backports-generic-amd64.qcow2
bullseye: https://cloud.debian.org/images/cloud/bullseye-backports/latest/debian-11-backports-generic-amd64.qcow2
bookworm: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
centos7: https://cloud.centos.org/centos/7/images/CentOS-7-ppc64le-GenericCloud-2009.qcow2
centos7: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2211.qcow2