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

Improve QEMU integration #1070

Merged
merged 11 commits into from
Jun 4, 2018
Merged

Conversation

jcrussell
Copy link
Contributor

WIP: Don't merge, yet.

Add vm config machine and vm config cpu based on output from the current vm config qemu. Make network drivers dependent on vm config qemu and vm config machine. Add validate and suggest to vmconfiger so that we can check the values for vm configs and suggest their values.

Also adds vm config cores.

Fixes #910, #911, and #1016.

@mkunz7

jcrussell and others added 7 commits November 7, 2017 07:47
Add `vm config machine` and `vm config cpu` based on output from the
current `vm config qemu`. Make network drivers dependent on `vm config
qemu` and `vm config machine`. Add `validate` and `suggest` to
vmconfiger so that we can check the values for `vm config`s and suggest
their values.

Fixes sandia-minimega#910, sandia-minimega#911, sandia-minimega#1016.
For qemu-arm which is different than qemu-x86/amd64.
Need to include machine name in "name". Update example with actual
output.
Try to resolve non-absolute qemu path using $PATH.
Used wrong index for CPU fields.
Looks like I did not add it earlier like I thought that I had.
@jcrussell jcrussell added this to the 2.5 milestone Feb 20, 2018
@mkunz7
Copy link
Contributor

mkunz7 commented Feb 20, 2018

:O :)

@jcrussell
Copy link
Contributor Author

Not sure the network driver detection is correct. kvm -net nic,model=? returns a different list than kvm -device driver=?. We should probably use the latter.

See note here.

Split the qemu capabilities code out into its own package. Add tests
based on predefined output. Change NIC code so that it pulls from
`-device` rather than `-nic` since we use `-device` when creating NICs
in minimega.
Using old (wrong) command.
Adds new fields and new default.
Copy link
Contributor

@djfritz djfritz left a comment

Choose a reason for hiding this comment

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

LGTM

@djfritz djfritz merged commit 51647ba into sandia-minimega:master Jun 4, 2018
@jcrussell jcrussell deleted the issue-910-911-1016 branch June 4, 2018 18:33
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.

None yet

3 participants