aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit b22fd2bb233e87c18f4e6c12d607304a55851bf3
parent 918e8b645addc6d7acf69c34cfa565ebe811750b
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat, 28 Nov 2020 17:26:36 +0100

enable KVM

Diffstat:
Maetherscale/computing.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/aetherscale/computing.py b/aetherscale/computing.py @@ -139,7 +139,8 @@ def callback(ch, method, properties, body): f'tap,id=pubnet,ifname={tap_device},script=no,downscript=no' p = subprocess.Popen([ - 'qemu-system-x86_64', '-m', '4096', '-hda', str(user_image), + 'qemu-system-x86_64', '-m', '4096', '-accel', 'kvm', + '-hda', str(user_image), '-device', f'virtio-net-pci,netdev=pubnet,mac={mac_addr}', '-netdev', netdev, '-name', f'qemu-vm-{vm_id},process=vm-{vm_id}',