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

Fix: Failed to execute vagrant_startup.sh in Ubuntu 20.04 #1049

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

nuka137
Copy link
Contributor

@nuka137 nuka137 commented Oct 23, 2021

This patch fixes below issues.

  • From Ubuntu 18.10 libvirt-bin is dropped
  • LIBVIRT_GROUP should be libvert on Ubuntu 20.04

Copy link
Collaborator

@ajdecon ajdecon left a comment

Choose a reason for hiding this comment

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

LGTM

if [[ ! ${VERSION_ID} =~ ^20\.* ]]; then
APT_DEPENDENCIES=${APT_DEPENDENCIES}" libvirt-bin"
fi
export ${APT_DEPENDENCIES}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Correction: this line should be

export APT_DEPENDENCIES

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I fixed it

Copy link
Collaborator

@ajdecon ajdecon left a comment

Choose a reason for hiding this comment

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

Oops! It looked good, but I hadn't actually tested.

When I did:

+ APT_DEPENDENCIES='build-essential sshpass qemu-kvm libvirt-dev bridge-utils       libguestfs-tools qemu ovmf virt-manager firewalld'
+ [[ ! 18.04 =~ ^20\.* ]]
+ APT_DEPENDENCIES='build-essential sshpass qemu-kvm libvirt-dev bridge-utils       libguestfs-tools qemu ovmf virt-manager firewalld libvirt-bin'
+ export build-essential sshpass qemu-kvm libvirt-dev bridge-utils libguestfs-tools qemu ovmf virt-manager firewalld libvirt-bin
./vagrant_startup.sh: line 81: export: `build-essential': not a valid identifier
./vagrant_startup.sh: line 81: export: `qemu-kvm': not a valid identifier
./vagrant_startup.sh: line 81: export: `libvirt-dev': not a valid identifier
./vagrant_startup.sh: line 81: export: `bridge-utils': not a valid identifier
./vagrant_startup.sh: line 81: export: `libguestfs-tools': not a valid identifier
./vagrant_startup.sh: line 81: export: `virt-manager': not a valid identifier
./vagrant_startup.sh: line 81: export: `libvirt-bin': not a valid identifier

See comment inline for suggested fix.

@nuka137
Copy link
Contributor Author

nuka137 commented Oct 26, 2021

@ajdecon

Thanks for your review!
I applied your suggestion, and works fine on my environment.

Copy link
Collaborator

@ajdecon ajdecon left a comment

Choose a reason for hiding this comment

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

LGTM

@ajdecon ajdecon merged commit 71ca99a into NVIDIA:master Oct 27, 2021
@nuka137 nuka137 deleted the fix-ubuntu20.04 branch October 27, 2021 21:55
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