What is mac spoofing?
Each networked device or network interface is assigned a unique Media Access Control address (MAC). MAC address spoofing (or MAC spoofing) is a technique of "faking" this mac address, However MAC address is the hard coded address, But by using some tools we can change it on operating system layer. But never changed forever.
Why we need mac spoofing in Virtualization?
Now a question about the virtualization, why we need to enable mac spoofing in Virtualization? In Normal virtualization we don't need to enable the mac spoofing. But when we create nested virtual environment (or guests inside of guest). In that case we need to enable mac spoofing to pass the packet to nested virtual guest.
Now each vendor has different technologies to enable mac spoofing in nested virtualization. Here i am going to demonstrate the steps how we can enable mac spoofing in Ovirt?!
First of all i need to install the vdsm hook on the Node machine:
# yum install vdsm-hook-macspoof
After thet i need to create a property of new vdsm hook in ovirt engine:
# engine-config -s "UserDefinedVMProperties=macspoof=(true|false)"
Now we need to reload the service:
# service ovirt-engine restart
# service vdsmd restart ( on host )
Now we can select this new value for our new virtual guest:
To select the new property we following steps:
Step 1: Bring Down the Virtual Machine
Step 2: Edit the Virtual Machine
Step 3: Click Advanced
Step 4: Go to custom properties
Step 5: Add a key
Step 6: Select macspoof
Step 7: Type "true" as the value
Step 8: Start the Virtual Machine
Each networked device or network interface is assigned a unique Media Access Control address (MAC). MAC address spoofing (or MAC spoofing) is a technique of "faking" this mac address, However MAC address is the hard coded address, But by using some tools we can change it on operating system layer. But never changed forever.
Why we need mac spoofing in Virtualization?
Now a question about the virtualization, why we need to enable mac spoofing in Virtualization? In Normal virtualization we don't need to enable the mac spoofing. But when we create nested virtual environment (or guests inside of guest). In that case we need to enable mac spoofing to pass the packet to nested virtual guest.
Now each vendor has different technologies to enable mac spoofing in nested virtualization. Here i am going to demonstrate the steps how we can enable mac spoofing in Ovirt?!
First of all i need to install the vdsm hook on the Node machine:
# yum install vdsm-hook-macspoof
After thet i need to create a property of new vdsm hook in ovirt engine:
# engine-config -s "UserDefinedVMProperties=macspoof=(true|false)"
Now we need to reload the service:
# service ovirt-engine restart
# service vdsmd restart ( on host )
Now we can select this new value for our new virtual guest:
To select the new property we following steps:
Step 1: Bring Down the Virtual Machine
Step 2: Edit the Virtual Machine
Step 3: Click Advanced
Step 4: Go to custom properties
Step 5: Add a key
Step 6: Select macspoof
Step 7: Type "true" as the value
Step 8: Start the Virtual Machine
Comments
Post a Comment