[virt-tools-list] How to force em1 during virt-install?
William D. Colburn
wcolburn+kvm at nrao.edu
Fri May 5 21:34:26 UTC 2017
I want to use virt-install on a raw hard disk to kickstart a machine.
It all works fine, but the intitial install has an eth0, and when I move
the disk to physical hardware the ethernet is em1 instead. Admittedly,
I already have to delete the HWADDR line out of the ifcg-em1, so I could
just rename the file too, but it would be nice if I could install with
the right ethernet name from the start.
I'm on RHEL6.9, libvirt-0.10.2-62.el6.x86_64. My install command is:
virt-install \
--network bridge:br0,mac=${MACADDR} \
--name ${HOSTNAME} \
--ram=${RAM} \
--vcpus=${CPUS} \
--graphics vnc \
--disk path=/dev/sdh,driver_type=raw \
--location=/home/os/redhat/isos/rhel6/rhel6.9/rhel-workstation-6.9-x86_64-boot.iso \
--extra-args="ks text"
I can't find anything I can do to set the ethernet device seen inside
the VM.
--Schlake
More information about the virt-tools-list
mailing list