<div dir="ltr"><div dir="ltr">I made a couple machines like this last year. Why on earth did I add "os-variant=fedora10"? Can't remember. <br><br>I had issues mixing libvirt and VMware. I ran into some odd SSL errors, and the machines couldn't see each other. I didn't get to the bottom of those problems. <br><div><br></div><div>HOST=esxi7-1<br>OS_DISK=/var/lib/libvirt/images/$HOST.qcow2<br>DATASTORE_DISK=/var/lib/libvirt/images/$HOST-datastore.qcow2<br>INSTALL_ISO=/var/lib/libvirt/images/VMware-VMvisor-Installer-7.0U2-17630552.x86_64.iso<br>IF1_MAC=52:54:00:00:00:10<br>IF2_MAC=52:54:00:00:00:11<br><br>HOST=esxi7-2<br>OS_DISK=/var/lib/libvirt/images/$HOST.qcow2<br>DATASTORE_DISK=/var/lib/libvirt/images/$HOST-datastore.qcow2<br>INSTALL_ISO=/var/lib/libvirt/images/VMware-VMvisor-Installer-7.0U2-17630552.x86_64.iso<br>IF1_MAC=52:54:00:00:00:12<br>IF2_MAC=52:54:00:00:00:13<br><br>virt-install \<br>  --name="$HOST" \<br>  --vcpus=8 \<br>  --ram=20480 \<br>  --cpu host-passthrough  \<br>  --disk path=$OS_DISK,size=20,bus=sata \<br>  --disk path=$DATASTORE_DISK,size=200,bus=sata \<br>  --os-type linux \<br>  --os-variant=fedora10 \<br>  --network network=pubbr0,mac=$IF1_MAC,model=e1000e   \<br>  --network network=privbr0,mac=$IF2_MAC,model=e1000e   \<br>  --boot uefi,menu=on,cdrom,hd \<br>  --graphics vnc \<br>  --video qxl \<br>  --cdrom $INSTALL_ISO \<br>  --noautoconsole \<br>  --features kvm_hidden=on \<br>  --machine q35<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 11, 2021 at 9:58 AM Martin Kletzander <<a href="mailto:mkletzan@redhat.com">mkletzan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Aug 10, 2021 at 09:45:37PM +0200, Gunnar wrote:<br>
>I am trying to install esxi7 inside a KVM machine<br>
><br>
>    virt-install --name=esxi7 \<br>
>    --vcpus=2 \<br>
>    --memory=4096 \<br>
>    --cdrom=/home/username/isos/VMware-VMvisor-Installer-7.0U2a-17867351.x86_64.iso<br>
>    \<br>
>    --disk size=33 \<br>
>    --os-variant=unknown<br>
><br>
>the installation process starts but does not get fails with a "No<br>
>network adapters" error. This does not happen with other VM's.<br>
>What do I have to add to above command in order to attach the default<br>
>network adapter to the machine?<br>
><br>
<br>
First look if the machine has any network interface.  If it does, the<br>
guest OS probably does not support the model, so you can change that.<br>
If it does not have one, then you probably want to use '--network<br>
network=default' in your virt-install command and you can always look<br>
that up in the man page as well (e.g. man virt-install).<br>
<br>
>or is there any other trick I have to be aware of when it comes to<br>
>installing ESXi<br>
><br>
<br>
No idea as I have never installed anything like that.<br>
<br>
>thx ... Gunnar<br>
<br>
Hope that helped,<br>
Martin<br>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"></div></div></div>