firecracker: Add support for default VM configuration #1615
Conversation
7111f04
to
b7fb0f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nits, but the code looks good! Thanks @mcastelino for tackling this :)
virtcontainers/fc.go
Outdated
@@ -351,6 +373,10 @@ func (fc *firecracker) startSandbox(timeout int) error { | |||
return err | |||
} | |||
|
|||
fc.fcSetVMBaseConfig(int64(fc.config.MemorySize), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the error returned here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, given @sboeuf feedback.
Do we need any docs updates to go with this, or is it 'obvious that this is how it should work' ?
holding off a \ t e s t and merge until we hear back from @mcastelino |
b7fb0f4
to
c5509ea
Compare
Kata support specifing the default VM configuration via configuration.toml. This allows the system or cluster admin to choose the default (i.e minimum) size of the VM. Add support in kata to respect the VM configuration for firecracker. Also refactor some code to make error handling uniform. Fixes: kata-containers#1594 Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
c5509ea
to
b496f3f
Compare
/test |
Fedora job failed due to: kata-containers/tests#1449
|
firecracker: Add support for default VM configuration
Kata support specifing the default VM configuration via configuration.toml. This allows the system or cluster admin to choose the default (i.e minimum) size of the VM.
Add support in kata to respect the VM configuration for firecracker.
Fixes: #1594
Signed-off-by: Manohar Castelino manohar.r.castelino@intel.com