From 849a4d31343af5a788d0b3301644ed59181e547a Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Tue, 14 Jul 2015 16:37:19 -0700 Subject: [PATCH] Fix issues related to upgrading to Virtualbox 5 Signed-off-by: Nathan LeClaire --- virtualbox/machine.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/virtualbox/machine.go b/virtualbox/machine.go index dca7ef6..acbd146 100644 --- a/virtualbox/machine.go +++ b/virtualbox/machine.go @@ -28,7 +28,6 @@ const ( F_cpuhotplug F_pae F_longmode - F_synthcpu F_hpet F_hwvirtex F_triplefaultreset @@ -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), @@ -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())) }