We help IT Professionals succeed at work.

virtual machine on  Hyper-v

obaidoa
obaidoa asked
on
Hi Folks
i moved Debian 6 virtual machine from one hyper-v host to other ,through coping .vhd  files .create new virtual machine on second  hyper-v host attached those  .vhd file with new Hyper-v host .
Question:
The Debian virtual machine that i moved from one hyper-v host to other ,now cannot see eth0 (the eth0 does comes up) i do every . i tried to recreate "/etc/udev/rules.d/70-persistent-net.rules" file ,even it doesn't comes up.
Does anyone has any idea ? do i need to do something.  or do i need to install virtual network adapter  driver ?

Thanks
Comment
Watch Question

Salah Eddine ELMRABETTechnical Lead Manager (Owner)

Commented:
Hi,

Is the VM type the same?? gen1 or gen2, I gess you are using gen1 since the HHD file extension is .vhd and not .vhdx

Double check the destination Hyper-V VM config is gen1 and try to add additional virtual network driver and then migrate ifconfig parameters from old eth to new one.

Best Regards.

Salah
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
If you didn't export the VM and just copied the VHDs then you probably didn't get the same hardware IDs when the system booted on the new host so the NIC is probably not at eth0 anymore.  When I've had to switch my Untangle server between hosts, I often end up increasing the NIC "devices" (I'm currently using eth5 and eth6).

Alternatively, EXPORT the VM from the old host and then import it on the new host.  That should preserve the configuration.

Author

Commented:
Hi Lee
Thanks for response ,Yes i just copied .vhd,create new vm on other hyper-v host, attached those two .vhd files to the vm machine,and connect it with legacy network adopter and now the eth0 doesn't coming up ,i do a lot of work around,but no success  ,unfortunately the server from ever i copied .vhd ,is formatted.have you got any idea what next i have to do?

Thanks
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
Look over your network config (I'm not great in Linux), as I said, it's probably eth1 or eth2 now.
Commented:
Hi Lee ,Salah

The issue has been sorted out .

Thanks  for both

Author

Commented:
this issue is sorted out

Author

Commented:
good solution