[OpenIndiana-discuss] KVM in Zones && networking

Jacques Hugo jacques.hugo at threetwo.co.uk
Mon Feb 22 20:38:04 UTC 2016


And sorry, yes ... the NGZ works 100% with vnic1, no problems there.  The GZ
<-> NGZ <-> Local net/Internet is fully working. 

-Jacques


Jacques Hugo
Three Two Labs
Information Technology | Solaris Engineering 32L
Phone +44 7939 433701
jacques.hugo at threetwo.co.uk


-----Original Message-----
From: Jacques Hugo [mailto:jacques.hugo at threetwo.co.uk] 
Sent: 22 February 2016 20:35
To: 'Discussion list for OpenIndiana' <openindiana-discuss at openindiana.org>
Subject: Re: [OpenIndiana-discuss] KVM in Zones && networking

Hey John,

Cheers for the quick reply.

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



I need to somehow tell the KVM and the Zone that the the KVM's net0 is the
Zones's kvm1 ... not sure how to!

-Jacques



Jacques Hugo
Three Two Labs
Information Technology | Solaris Engineering 32L Phone +44 7939 433701
jacques.hugo at threetwo.co.uk


-----Original Message-----
From: John D Groenveld [mailto:jdg117 at elvis.arl.psu.edu]
Sent: 22 February 2016 20:28
To: Discussion list for OpenIndiana <openindiana-discuss at openindiana.org>
Subject: Re: [OpenIndiana-discuss] KVM in Zones && networking

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

_______________________________________________
openindiana-discuss mailing list
openindiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


_______________________________________________
openindiana-discuss mailing list
openindiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the openindiana-discuss mailing list