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

Support setting the BIOS implementation (seabios|ovmf) #128

Merged
merged 1 commit into from
Jan 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ func resourceVmQemu() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
"bios": {
Type: schema.TypeString,
Optional: true,
Default: "seabios",
},
"onboot": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -498,6 +503,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
Name: vmName,
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Bios: d.Get("bios").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Expand Down Expand Up @@ -695,6 +701,7 @@ func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error {
Name: d.Get("name").(string),
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Bios: d.Get("bios").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Expand Down Expand Up @@ -798,6 +805,7 @@ func resourceVmQemuRead(d *schema.ResourceData, meta interface{}) error {
d.Set("name", config.Name)
d.Set("desc", config.Description)
d.Set("pool", config.Pool)
d.Set("bios", config.Bios)
d.Set("onboot", config.Onboot)
d.Set("boot", config.Boot)
d.Set("bootdisk", config.BootDisk)
Expand Down