[OpenIndiana-discuss] KVM in Zones && networking
John D Groenveld
jdg117 at elvis.arl.psu.edu
Mon Feb 22 20:46:55 UTC 2016
In message <002a01d16db0$8b975f00$a2c61d00$@threetwo.co.uk>, "Jacques Hugo" wri
tes:
>Here's my NGZ KVM script ... exactly the same as my GZ KVM script with the
>only difference being the vnic.
>
>#!/bin/ksh
>MAC=$(dladm show-vnic -po macaddress kvm1)
>/usr/bin/qemu-kvm \
> -boot cd \
> -cpu host \
> -enable-kvm \
> -vnc 0.0.0.0:43 \
> -smp 4 \
> -m 8192 \
> -no-hpet \
> -localtime \
> -drive
>file=/dev/zvol/rdsk/naspool/zones/src/kvm/disk0,if=ide,index=0 \
> -drive
>file=/naspool/zones/src/kvm/iso/sol-11_3-text-x86.iso,media=cdrom,if=ide,ind
>ex=2 \
> -net nic,vlan=0,name=net0,model=e1000,macaddr=$MAC \
> -net vnic,vlan=0,name=net0,ifname=kvm1,macaddr=$MAC \
> -vga std
That looks correct.
Within your NGZ, shutdown your KVM, plumb your kvm1 interface,
and snoop -d kvm1, do you see network traffic?
John
groenveld at acm.org
More information about the openindiana-discuss
mailing list