Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to set the mac address for my virtual machine in the virtual machine properties file. The properties file '102.conf' currently looks like this:

name: vm1.mydomain.com
bootdisk: ide0
ostype: w2k8
ide0: local:102/vm-102-disk-1.raw
memory: 1500
sockets: 1
ide1: local:iso/virtio-win-0.1-mm34.iso,media=cdrom
vlan0: rtl8139=96:83:DA:A0:06:34

Where and how in this file can I set the mac address for my virtual machine?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

In this line

vlan0: rtl8139=96:83:DA:A0:06:34

the 96:83:DA:A0:06:34 is a MAC address. Changing that value should change your MAC address.

If you are generating your own MAC addresses you should use a value that contains 2,6,A or E as the second number as this defines a locally administered MAC address.

x2:xx:xx:xx:xx:xx
x6:xx:xx:xx:xx:xx
xA:xx:xx:xx:xx:xx
xE:xx:xx:xx:xx:xx
share|improve this answer
    
Cheers Iain, it works. –  Joel Kennedy Sep 4 '11 at 17:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.