K.S. Bhaskar on 17 Sep 2008 19:01:33 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Network card disappears when converting a virtual machine from VMware to QEMU


I have an Ubuntu Gutsy Jeos VMware virtual machine disk image that I
would like to convert to a completely FOSS vm (and convert to a QEMU
disk image while I am at it).  So I

1. Booted it with VMware server.

2. Removed vmware-tools with sudo vmware-tools-uninstall.pl (or
whatever the exact name of the uninstall script is - I may have
hyphens here for underscores).

3. Executed (something like): cd / ; sudo tar cvf - --one-file-system
. | nc -l -p 20080

In parallel:

1. II created a QEMU virtual disk

2. Booted a vm with Knoppix and the QEMU virtual disk (with kvm).

3. Created a file system in /dev/hda1 and mounted it at /media/hda1

4. Executed: cd /media/hda1 ; nc 12.34.56.78 20080 | sudo tar xvf -

Once the files were copied, I edited /media/hda1/boot/grub/menu.lst to
boot off /dev/sda1 (instead of by UUID) and edited
/media/hda1/etc/fstab to mount /dev/sda1 as / again instead of UUID.
I installed a boot loader on the QEMU virtual disk with Knoppix and
booted the QEMU virtual machine with kvm. [Knoppix sees the IDE
virtual disk as /dev/hda; Ubuntu as /dev/sda; hence the differences
here.]

The problem is that the virtual machine has no network card.  I have
tried forcing a NIC on the command line of kvm when booting the vm.  I
also deleted /etc/udev/rules.d/70-persistent-net.rules and rebooting,
but all to no avail.

Any ideas on giving my QEMU vm a network card would be greatly
appreciated.  TIA.

Regards
-- Bhaskar
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug