mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
esx: Fix MAC address formatting
VMware uses two MAC address prefixes: 00:0c:29 and 00:50:56. The 00:0c:29 prefix is used for ESX server generated addresses. The 00:50:56 prefix is split into two parts. MAC addresses above 00:50:56:3f:ff:ff are generated by a vCenter. The rest of the 00:50:56 prefix can be assigned manually. Any MAC address within the 00:0c:29 and 00:50:56 prefix can be specified in a domain XML config and the driver will handle the details internally. * src/esx/esx_vmx.c: fix MAC address formatting * tests/xml2vmxdata/*: update test files accordingly
This commit is contained in:
@@ -13,5 +13,5 @@ scsi0:0.fileName = "/vmfs/volumes/498076b2-02796c1a-ef5b-000ae484a6a3/Fedora11/F
|
||||
ethernet0.present = "true"
|
||||
ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.addressType = "vpx"
|
||||
ethernet0.generatedAddress = "00:50:56:91:48:C7"
|
||||
|
||||
@@ -36,3 +36,4 @@ ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:3C:98:3E"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
|
||||
@@ -22,3 +22,4 @@ ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:F5:C3:0C"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
|
||||
@@ -13,12 +13,12 @@ scsi0:0.fileName = "/vmfs/volumes/498076b2-02796c1a-ef5b-000ae484a6a3/virtMonSer
|
||||
ethernet0.present = "true"
|
||||
ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.addressType = "vpx"
|
||||
ethernet0.generatedAddress = "00:50:56:91:66:D4"
|
||||
ethernet1.present = "true"
|
||||
ethernet1.networkName = "VM Switch 2"
|
||||
ethernet1.connectionType = "bridged"
|
||||
ethernet1.addressType = "generated"
|
||||
ethernet1.addressType = "vpx"
|
||||
ethernet1.generatedAddress = "00:50:56:91:0C:51"
|
||||
serial0.present = "true"
|
||||
serial0.fileType = "file"
|
||||
|
||||
@@ -8,5 +8,5 @@ numvcpus = "1"
|
||||
ethernet0.present = "true"
|
||||
ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:50:56:11:22:33"
|
||||
ethernet0.addressType = "static"
|
||||
ethernet0.address = "00:50:56:11:22:33"
|
||||
|
||||
@@ -9,5 +9,5 @@ ethernet0.present = "true"
|
||||
ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "custom"
|
||||
ethernet0.vnet = "vmnet7"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:50:56:11:22:33"
|
||||
ethernet0.addressType = "static"
|
||||
ethernet0.address = "00:50:56:11:22:33"
|
||||
|
||||
@@ -9,5 +9,5 @@ ethernet0.present = "true"
|
||||
ethernet0.virtualDev = "e1000"
|
||||
ethernet0.networkName = "VM Network"
|
||||
ethernet0.connectionType = "bridged"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:50:56:11:22:33"
|
||||
ethernet0.addressType = "static"
|
||||
ethernet0.address = "00:50:56:11:22:33"
|
||||
|
||||
@@ -14,3 +14,4 @@ ethernet0.connectionType = "custom"
|
||||
ethernet0.vnet = "/dev/vmnet1"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:D6:2B:D3"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
|
||||
@@ -14,3 +14,4 @@ ethernet0.connectionType = "custom"
|
||||
ethernet0.vnet = "/dev/vmnet1"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:D6:CB:A4"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
|
||||
@@ -14,9 +14,11 @@ ethernet0.connectionType = "custom"
|
||||
ethernet0.vnet = "/dev/vmnet1"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:C4:BE:5A"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
ethernet1.present = "true"
|
||||
ethernet1.networkName = "net2"
|
||||
ethernet1.connectionType = "custom"
|
||||
ethernet1.vnet = "/dev/vmnet2"
|
||||
ethernet1.addressType = "generated"
|
||||
ethernet1.generatedAddress = "00:0C:29:C4:BE:64"
|
||||
ethernet1.generatedAddressOffset = "0"
|
||||
|
||||
@@ -14,3 +14,4 @@ ethernet0.connectionType = "custom"
|
||||
ethernet0.vnet = "/dev/vmnet2"
|
||||
ethernet0.addressType = "generated"
|
||||
ethernet0.generatedAddress = "00:0C:29:C5:E3:5D"
|
||||
ethernet0.generatedAddressOffset = "0"
|
||||
|
||||
Reference in New Issue
Block a user