Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperv: expand root partition for l1vh #3600

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gamora12
Copy link
Contributor

@gamora12 gamora12 commented Jan 15, 2025

The L1VH vm root partition (mounted at /) is not getting expanded to full disk size with dom0 3.0 vhd. With 2.0 vhd, this issue is not seen, resize vhd works as expected.

  • Implement a function to expand root partition to full disk size for L1Vh on hyperv platform.
  • After the vm starts, the root partition is expanded.

@gamora12 gamora12 marked this pull request as ready for review January 15, 2025 14:48
# be grown". In this case, it returns exit code 1 which we can ignore
if cmd_result.exit_code != 0 and "NOCHANGE" not in cmd_result.stdout:
raise LisaException(f"Failed to grow partition: {cmd_result.stdout}")
node.execute(f"resize2fs {device_name}", sudo=True)
Copy link
Collaborator

@smit-gardhariya smit-gardhariya Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use expected_exit_code to ensure if command get executed successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants