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

Metadata provides wrong size #4

Open
ko1N opened this issue Jul 3, 2021 · 1 comment
Open

Metadata provides wrong size #4

ko1N opened this issue Jul 3, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ko1N
Copy link
Member

ko1N commented Jul 3, 2021

Metadata does not provide the proper ram size but only the size of the entire buffer after remapping.

It can be easily reproduced via:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.provider :libvirt do |v|
    v.memory = 4096
    v.cpus = 2
    v.qemuargs :value => "-qmp"
    v.qemuargs :value => "unix:/tmp/vagrant-qmp.sock,server,nowait"
  end

  config.vm.box = "generic/ubuntu2010"
end

It fails with and without qmp to provide the proper metadata.

@ko1N ko1N added the bug Something isn't working label Jul 3, 2021
@ko1N ko1N self-assigned this Jul 3, 2021
@ko1N
Copy link
Member Author

ko1N commented Jul 3, 2021

After some discussion with @h33p we think the best approach would be to rename the size field to max_address and eventually introduce a real_size field which could provide the usable size of the VM (which might help when doing compacted dumps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant