Add mount support for kvm2 driver

pull/2320/head
Boberg 2017-12-12 23:13:08 +01:00 committed by dlorenc
parent 289e8f688b
commit c8a5d1f3fd
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,8 @@ func GetVMHostIP(host *host.Host) (net.IP, error) {
switch host.DriverName {
case "kvm":
return net.ParseIP("192.168.42.1"), nil
case "kvm2":
return net.ParseIP("192.168.39.1"), nil
case "hyperv":
re := regexp.MustCompile(`"VSwitch": "(.*?)",`)
// TODO(aprindle) Change this to deserialize the driver instead