Celestino Rey 4 bulan lalu
induk
melakukan
931e516b6b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/app/main.py

+ 2 - 2
src/app/main.py

@@ -221,9 +221,9 @@ async def create_vm(name: str, memory: int, disk_size: int, cpus: int = 1, iso:
       <target dev='hda' bus='ide'/>
       <readonly/>
     </disk>
-    <interface type='network'>
+    <interface type='bridge'>
       <mac address='{mac}'/>
-      <source network='default'/>
+      <source bridge='br0'/>
       <model type='virtio'/>
     </interface>
     <console type='pty'>