Skip to main content

mac spoofing in Ovirt

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




    

Comments

Popular posts from this blog

LINUX CONTAINERS

LINUX CONTAINERS What is Linux Container:  Linux containers have different approach than the Virtualization technology. Simply we can say this is OS level Virtualization, which means all containers run on top of one linux operating system.  We can start containers on a hardware running machine or inside of running virtual machine. Each container run's as a fully isolated operating sysem. In container virtualization rather than having an entire Operating System guest OS, containers isolate the guest but do not virtualize the hardware. For running containers one needs a patched kernel and user tools, the kernel provides process isolation and performs resource management. Thus all containers are running under the same kernel but they still have their own file system, processes, memory etc. Linux based containers mainly involved with two concepts: 1. Namespaces 2. Cgroups ( Controll Groups) There are total 6 types of Namespaces: 1. PID Na...

Setting up DNS service Add-On in kubernetes

Setting up DNS service Add-On in kubernetes What things get DNS names? Every Service defined in the cluster (including the DNS server itself) is assigned a DNS name. By default, a client Pod’s DNS search list will include the Pod’s own namespace and the cluster’s default domain. This is best illustrated by example: Assume a Service named “ my-service ” in the Kubernetes namespace “ dev ” . A Pod running in namespace “ dev ” can look up this service by simply doing a DNS query for “ my-service ” . A Pod running in namespace can look up this service by doing a DNS query for my-service.dev . Kubernetes offers a cluster addon for DNS service discovery, which most environments enable by default. “SkyDNS” seems to be the standard DNS server of choice, since it was designed to work on top of etcd. The “ kube-dns” addon is composed of a kubernetes service which, like all services, is allocated an arbitrary VIP within the preconfigured subnet (this is the IP that every other serv...

How to access ssh terminal in web browser on Linux

How to access ssh terminal in web browser on linux Running “everything” in a web browser used to be a bold statement. However, due to the powerful HTML5/JavaScript stack, a web browser increasingly becomes a dominant application delivery platform. In this tutorial, we will looking that, how to access an SSH terminal in a web browser on Linux. Web-based SSH is useful when the firewall you are behind is so restrictive that only HTTP(s) traffic can get through. Or in case when we don't have ssh access client tools(putty, ssh-client) Shell In A Box ( or shellinabox) is a web-based terminal emulator, Which can run as a web-based SSH client. It comes with its own web server (shellinaboxd) which exports a command line shell to a web-based terminal emulator via AJAX interface. Shell In a Box only needs JavaScript/CSS support from a web browser, and does not require any additional browser plugin.   ############# #####Install shellinabox on Linux################# To install shellinabox ...