[OpenIndiana-discuss] Fixing DHCP networking

mike-romberg at comcast.net mike-romberg at comcast.net
Wed Jul 15 18:51:40 UTC 2015


>>>>> " " == Till Wegmüller <toasterson at gmail.com> writes:

     > In my attempts in QEMU/KVM it turned out to be the NAT
     > interface of libvirt was the problem. I tried with fixed
     > address and DHCP but it just would not work.

     > The only way I was able to run OI with KVM/libvirt was with a
     > bridged interface.

  I got it (openindiana and DHCP) working with libvirt!   Holy gods
that thing is an unholy mess of XML.  I think the only thing libvirt
does is provide an camouflage of xml around quemu which does all the
actual work.

  Anyway I'm posting here in case it helps someone else attempting to
run openindiana (but I think it applies to all the Solaris variants)
in libvirt.  The big key is to not use KVM.  If KVM is being used then
Solaris will see an ethernet device.  And it functions perfectly fine
(from the perspective of the guest OS (Solaris).  But it is a black
hole.  Nothing goes in or out.

  Turning off KVM for openindiana was not completely obvious.  So here
is the command line I used to install an image of openindiana from the
pretest project (http://www.nongnu.org/pretest/).  Most of the install
args are from there.  But if you add my changes then openindiana will
have working NAT networking:

virt-install --name 'openindiana-hipster' --connect qemu:///system \
  --virt-type qemu --wait=0 --vcpus=1 --import --boot hd \
  --ram 1024 --network=network=default,model=e1000 \
  --disk path=openindiana-hipster-20150330.build-ready.qcow2,device=disk,format=qcow2,bus=ide,perms=rw

  The super important bit is the '--virt-type qemu' line.

  Anyway thanks everyone for the help.  I was unsure how ifconfig ran
(and more importantly how to disable the auto networking stuff so I
could run ifconfig).  Once I found the black hole I could concentrate
on the real problem.  It was not the NAT network.  It is the KVM
ethernet device.

Hope this helps someone else...

Mike




More information about the openindiana-discuss mailing list