Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 849a4d3

Browse files
Fix issues related to upgrading to Virtualbox 5
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
1 parent 23f95c9 commit 849a4d3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

virtualbox/machine.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const (
2828
F_cpuhotplug
2929
F_pae
3030
F_longmode
31-
F_synthcpu
3231
F_hpet
3332
F_hwvirtex
3433
F_triplefaultreset
@@ -658,7 +657,6 @@ func (m *Machine) Modify() error {
658657
"--cpuhotplug", m.Flag.Get(F_cpuhotplug),
659658
"--pae", m.Flag.Get(F_pae),
660659
"--longmode", m.Flag.Get(F_longmode),
661-
"--synthcpu", m.Flag.Get(F_synthcpu),
662660
"--hpet", m.Flag.Get(F_hpet),
663661
"--hwvirtex", m.Flag.Get(F_hwvirtex),
664662
"--triplefaultreset", m.Flag.Get(F_triplefaultreset),
@@ -690,7 +688,7 @@ func (m *Machine) Modify() error {
690688

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

0 commit comments

Comments
 (0)