Skip to content

Some changes that could improve performance #39

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion proxmox.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,11 @@ type NodesNodeQemuPostParameter struct {
SCSI0 string // optional, Use volume as VIRTIO hard disk (n is 0 to 15).
Ostype string // optional, Specify guest operating system.
KVM string // optional, Enable/disable KVM hardware virtualization.
Tablet string // optional, Enable/disable the USB tablet device.
Pool string // optional, Add the VM to the specified pool.
Sockets string `json:"sockets,omitempty"` // optional, The number of cpus.
Cores string `json:"cores,omitempty"` // optional, The number of cores per socket.
Cdrom string // optional, This is an alias for option -ide2
SATA0 string // optional, This is an alias for option -ide2
Ide3 string
Citype string // Specifies the cloud-init configuration format.
Scsihw string // SCSI controller model.
Expand Down
4 changes: 3 additions & 1 deletion proxmoxdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,9 @@ func (d *Driver) Create() error {
Ostype: "l26",
Name: d.BaseDriver.MachineName,
KVM: "1", // if you test in a nested environment, you may have to change this to 0 if you do not have nested virtualization
Tablet: "0",
Scsihw: d.ScsiController,
Cdrom: d.ImageFile,
SATA0: d.ImageFile+",media=cdrom",
Pool: d.Pool,
Protection: d.Protection,
}
Expand Down Expand Up @@ -821,6 +822,7 @@ func (d *Driver) Create() error {
Sockets: d.CPUSockets,
Cores: d.CPUCores,
KVM: "1", // if you test in a nested environment, you may have to change this to 0 if you do not have nested virtualization,
Tablet: "0",
Citype: d.Citype,
Onboot: d.Onboot,
Protection: d.Protection,
Expand Down