dellcloudedge/crowbar — Issue #22: crowbar-admin install fails on kvm with virtio network interfaces
Author: tv42
Created: 2011-10-21 22:44:53+00:00
State: open

Hi. The "cd /tftpboot/ubuntu_dvd/extra && sudo ./install foo" installation step fails on a KVM virtual machine that uses virtio network interfaces.

It tries to run "tcpdump -i -a", because the code parsing lshw output misparses the output when virtio is active, and logical_name is still an empty string at that time.

Workaround: use e1000 instead of virtio.

lshw on e1000:
```
crowbar@crowbardemo:~$ sudo lshw -quiet -class network|egrep 'logical|bus info|-network|serial'
*-network:0
bus info: pci@0000:00:03.0
logical name: eth0
serial: 52:54:00:4d:67:8e
*-network:1
bus info: pci@0000:00:04.0
logical name: eth1
serial: 52:54:00:b9:75:a4
crowbar@crowbardemo:~$
```

lshw with virtio:
```
crowbar@crowbardemo:~$ sudo lshw -quiet -class network|egrep 'logical|bus info|-network|serial'
*-network:0
bus info: pci@0000:00:03.0
*-network:1
bus info: pci@0000:00:04.0
*-network:0
logical name: eth0
serial: 52:54:00:4d:67:8e
*-network:1 DISABLED
logical name: eth1
serial: 52:54:00:b9:75:a4
```