Problem with vm cloned. Duplicate MacAdrres

  • Thread starter Thread starter doknet
  • Start date Start date
D

doknet

Guest
I would first like to thank the developers and contributors for this great product.
I have read several ways to duplicate a virtual machine and I have no clear how to pass parameters. So what I did and report the problem I have.
If anyone could help I would appreciate much

1) I got a full virtualization virtual machine, create the vm101 machine with ubuntu server.

create -> Fully Virtualized
Installation media -> Ubuntu_server.10.4.64bit.iso
Brige -> bmbr0

Install front cd
Then set in /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.0.255
gateway 192.168.1.1

2) snashop
vzdump - suspend - compress - DUMPDIR /var/ bk_vm/ 101

this resulted
ls-l /var/bk_vm/
vzdump-qemu-101-2010_06_01-19_58_57.tgz


2) new clone machine, and create mv102

qmrestore vzdump-qemu-101-2010_06_01-19_58_57.tgz 102
create vm102


2) configure eth0 at 102 vm
Code:
auto eth0
iface eth0 inet static
        address 192.168.1.102
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.0.255
        gateway 192.168.1.1


The problem appears that this doubling in both Mac Adrress equals
and a simple ping before the connection is dropped.

/etc/qemu-server/101.conf and / etc/qemu-server/102.conf
have the same Mac Adrres

with a single ping, device falls

vm101: ~ # ifconfig
eth0 Link encap: Ethernet HWaddr 62:62: c8: 0e: 1b: 75

vm102: ~ # ifconfig
eth0 Link encap: Ethernet HWaddr 62:62: c8: 0e: 1b: 75


Question
1) How is the best method to clone a virtual machine
2) you can switch to a Mac Adrres cloned, how?
3) if I delete devices (brmrb0 at 102) as I can recreate a new device wich new mac adrres

From already thank you very much to esfuerzo of all developers and participants of the forum is Proxmox is a great product, I hope to soon be able to help .-

Sorry my inglis
 
Last edited by a moderator:
1) How is the best method to clone a virtual machine

use openvz VMs with venet (this avoids the problem). Or better, create your own
OpenVZ templates using 'dab'.

2) you can switch to a Mac Adrres cloned, how?

To change the MAC edit the config file directly. Or delete and re-create the
NIC on the web interface.

3) if I delete devices (brmrb0 at 102) as I can recreate a new device wich new mac adrres

Sorry, I do not understand that?
 
My question from the point 3 is related to how to do what you indicated in your response (response 2)

To change the MAC edit the config file directly. Or delete and re-create the
NIC on the web interface.

1) edit /etc/qemu-server/101.conf ? what value for vlan0 ?
2) If I delete vmbr0 ( eth0) for vm102, in webinterface. As I do, to recreate? . My problem is where I read a new value for HWaddr?
Thank you very much for your help, I apologize if I ask something that is documented but I can not understand.

further clarification

Arbitrarily change the value of vlan in /etc/qemu-server/102.conf . But it do not works well, when I ping another vm or another machine, it stops working eth

What is there a better way to do it.

And I repeat, thank you very much for your help and your comment
 
Last edited by a moderator: