Skip to content

Commit

Permalink
nested: fix the out of space issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Feb 13, 2025
1 parent dbb4005 commit 8960f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisa/tools/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def create_vm(

if cd_rom:
cmd += f" -cdrom {cd_rom} "
self.node.execute(
f"qemu-img resize {guest_image_path} +1G", sudo=True, shell=True
)

# kill any existing qemu process if stop_existing_vm is True
if stop_existing_vm:
Expand Down
5 changes: 5 additions & 0 deletions microsoft/testsuites/nested/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def _create_cloud_init_iso(
},
],
"ssh_pwauth": True,
"growpart": {
"mode": "auto",
"devices": ["/dev/sda"],
"fixup_filesystem": True,
},
}
meta_data = {
"local-hostname": host_name,
Expand Down

0 comments on commit 8960f47

Please sign in to comment.