Ran "make generate".

This commit is contained in:
Thomas Dreibholz 2021-02-20 20:23:47 +01:00
parent ffa8b7de8a
commit 8226bc9d9f
No known key found for this signature in database
GPG Key ID: 5CD5D12AA0877B49
2 changed files with 34 additions and 0 deletions

View File

@ -120,6 +120,9 @@ type FlatConfig struct {
Chipset *string `mapstructure:"chipset" required:"false" cty:"chipset" hcl:"chipset"`
Firmware *string `mapstructure:"firmware" required:"false" cty:"firmware" hcl:"firmware"`
DiskSize *uint `mapstructure:"disk_size" required:"false" cty:"disk_size" hcl:"disk_size"`
NICType *string `mapstructure:"nic_type" required:"false" cty:"nic_type" hcl:"nic_type"`
AudioController *string `mapstructure:"audio_controller" required:"false" cty:"audio_controller" hcl:"audio_controller"`
GfxController *string `mapstructure:"gfx_controller" required:"false" cty:"gfx_controller" hcl:"gfx_controller"`
GuestOSType *string `mapstructure:"guest_os_type" required:"false" cty:"guest_os_type" hcl:"guest_os_type"`
HardDriveDiscard *bool `mapstructure:"hard_drive_discard" required:"false" cty:"hard_drive_discard" hcl:"hard_drive_discard"`
HardDriveInterface *string `mapstructure:"hard_drive_interface" required:"false" cty:"hard_drive_interface" hcl:"hard_drive_interface"`
@ -254,6 +257,9 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
"chipset": &hcldec.AttrSpec{Name: "chipset", Type: cty.String, Required: false},
"firmware": &hcldec.AttrSpec{Name: "firmware", Type: cty.String, Required: false},
"disk_size": &hcldec.AttrSpec{Name: "disk_size", Type: cty.Number, Required: false},
"nic_type": &hcldec.AttrSpec{Name: "nic_type", Type: cty.String, Required: false},
"audio_controller": &hcldec.AttrSpec{Name: "audio_controller", Type: cty.String, Required: false},
"gfx_controller": &hcldec.AttrSpec{Name: "gfx_controller", Type: cty.String, Required: false},
"guest_os_type": &hcldec.AttrSpec{Name: "guest_os_type", Type: cty.String, Required: false},
"hard_drive_discard": &hcldec.AttrSpec{Name: "hard_drive_discard", Type: cty.Bool, Required: false},
"hard_drive_interface": &hcldec.AttrSpec{Name: "hard_drive_interface", Type: cty.String, Required: false},

View File

@ -1,8 +1,36 @@
<!-- Code generated from the comments of the Config struct in builder/virtualbox/iso/builder.go; DO NOT EDIT MANUALLY -->
- `chipset` (string) - The chipset to be used: PIIX3 or ICH9.
When set to piix3, the firmare is PIIX3. This is the default.
When set to ich9, the firmare is ICH9.
- `firmware` (string) - The firmware to be used: BIOS or EFI.
When set to bios, the firmare is BIOS. This is the default.
When set to efi, the firmare is EFI.
- `disk_size` (uint) - The size, in megabytes, of the hard disk to create for the VM. By
default, this is 40000 (about 40 GB).
- `nic_type` (string) - The NIC type to be used for the network interfaces.
When set to 82540EM, the NICs are Intel PRO/1000 MT Desktop (82540EM). This is the default.
When set to 82543GC, the NICs are Intel PRO/1000 T Server (82543GC).
When set to 82545EM, the NICs are Intel PRO/1000 MT Server (82545EM).
When set to Am79C970A, the NICs are AMD PCNet-PCI II network card (Am79C970A).
When set to Am79C973, the NICs are AMD PCNet-FAST III network card (Am79C973).
When set to Am79C960, the NICs are AMD PCnet-ISA/NE2100 (Am79C960).
When set to virtio, the NICs are VirtIO.
- `audio_controller` (string) - The audio controller type to be used.
When set to ac97, the audio controller is ICH AC97. This is the default.
When set to hda, the audio controller is Intel HD Audio.
When set to sb16, the audio controller is SoundBlaster 16.
- `gfx_controller` (string) - The graphics controller type to be used.
When set to vboxvga, the graphics controller is VirtualBox VGA. This is the default.
When set to vboxsvga, the graphics controller is VirtualBox SVGA.
When set to vmsvga, the graphics controller is VMware SVGA.
When set to none, the graphics controller is disabled.
- `guest_os_type` (string) - The guest OS type being installed. By default this is other, but you can
get dramatic performance improvements by setting this to the proper
value. To view all available values for this run VBoxManage list