Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.
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
4 changes: 1 addition & 3 deletions virtualbox/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const (
F_cpuhotplug
F_pae
F_longmode
F_synthcpu
F_hpet
F_hwvirtex
F_triplefaultreset
Expand Down Expand Up @@ -658,7 +657,6 @@ func (m *Machine) Modify() error {
"--cpuhotplug", m.Flag.Get(F_cpuhotplug),
"--pae", m.Flag.Get(F_pae),
"--longmode", m.Flag.Get(F_longmode),
"--synthcpu", m.Flag.Get(F_synthcpu),
"--hpet", m.Flag.Get(F_hpet),
"--hwvirtex", m.Flag.Get(F_hwvirtex),
"--triplefaultreset", m.Flag.Get(F_triplefaultreset),
Expand Down Expand Up @@ -690,7 +688,7 @@ func (m *Machine) Modify() error {

// AddNATPF adds a NAT port forarding rule to the n-th NIC with the given name.
func (m *Machine) AddNATPF(n int, name string, rule driver.PFRule) error {
return vbm("controlvm", m.Name, fmt.Sprintf("natpf%d", n),
return vbm("modifyvm", m.Name, fmt.Sprintf("--natpf%d", n),
fmt.Sprintf("%s,%s", name, rule.Format()))
}

Expand Down