mitchellh / virtualbox

[ABANDONED] Create and modify virtual machines in VirtualBox using pure ruby.
http://mitchellh.github.com/virtualbox/
MIT License
245 stars 45 forks source link

undefined method `max_vdi_size' for #<VirtualBox::SystemProperties:0x102d6af80> #48

Closed jedi4ever closed 13 years ago

jedi4ever commented 13 years ago

Since the new version of Virtualbox, the function to create a harddisk with the virtualbox fails.

It complains about the max_vdi_size not available as a global variable. And therefore the validate function that uses this can not complete. I noticed that the interface for 4.x does not have the variable anymore. Adding didn't resolve the problem.

newdisk=VirtualBox::HardDrive.new newdisk.format=@definition[:disk_format] newdisk.logical_size=@definition[:disk_size].to_i newdisk.location=location newdisk.save

thanks for any clues

mitchellh commented 13 years ago

Fixed. Will push shortly.