[OpenIndiana-discuss] KVM in Zones && networking
John D Groenveld
jdg117 at elvis.arl.psu.edu
Mon Feb 22 20:27:38 UTC 2016
In message <001f01d16dab$a65d69b0$f3183d10$@threetwo.co.uk>, "Jacques Hugo" wri
tes:
> # zonecfg -z src export
> create -b
> set zonepath=/naspool/zones/src
> set brand=ipkg
> set autoboot=false
> set ip-type=exclusive
> add net
> set physical=vnic1
> end
> add net
> set physical=kvm1
> end
> add device
> set match=/dev/kvm
> end
> add device
> set match=/dev/zvol/rdsk/naspool/zones/src/kvm
> end
> add dataset
> set name=naspool/zones/src/kvm
> end
>
>
> I have 2 x vnics presented to it ... vnic1 for the Zone, and kvm1
>for the KVM
>
> And this is what it looks like inside the Zone:
>
> # dladm show-vnic
> LINK OVER SPEED MACADDRESS MACADDRTYPE
>VID
> vnic1 ? 1000 2:8:20:d8:ad:72 random
>0
> kvm1 ? 1000 2:8:20:52:33:8e random
>0
>
> # ifconfig -a
> lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>
>mtu 8232 index 1
> inet 127.0.0.1 netmask ff000000
> vnic1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500
>index 2
> inet 192.168.1.41 netmask ffffff00 broadcast 192.168.1.255
> ether 2:8:20:d8:ad:72
>
> You can see both NIC instances:
>
> # ls -l /dev/net/
> total 0
> crw-rw-rw- 1 root sys 265, 1024 Feb 21 18:24 kvm1
> crw-rw-rw- 1 root sys 265, 1005 Feb 21 18:20 vnic1
Your NGZ is correctly networked with vnic1?
>When the KVM starts, it *does not* plumb the vnic assigned to it (kvm1).
>Doing it manually it complains about the interface already in use.
>
>I have seen various documentation in the INET describing this to work
>perfectly, however I can't get the networking to work. Any help
>appreciated.
I run my NGZ KVMs with VNICs over etherstubs but I doubt that
difference is your problem.
What's your NGZ KVM shell script?
John
groenveld at acm.org
More information about the openindiana-discuss
mailing list