[OmniOS-discuss] unable to add second nic on KVM

Willems Dirk Dirk.Willems at exitas.be
Wed Dec 7 16:59:58 UTC 2016


On 06-12-16 23:39, Даниил Ландау wrote:
I had a very similar problem a couple of days ago.
I solved it by using unique vlan numbers for each nic/vnic pair in the qemu arguments, i.e.:


/usr/bin/qemu-system-x86_64 \
        -name "$(basename $NAME)" \
        -boot cd \
        -enable-kvm \
        -vnc 0.0.0.0:$VNC \
        -smp 2 \
        -m $MEM \
        -no-hpet \
        -localtime \
        -drive file=$HDD,if=ide,index=0 \
        -drive file=$CD,media=cdrom,if=ide,index=2  \
        -net nic,vlan=0,name=net0,model=e1000,macaddr=$mac1 \
        -net vnic,vlan=0,name=net0,ifname=$VNIC1,macaddr=$mac1, \
        -net nic,vlan=1,name=net1,model=e1000,macaddr=$mac2 \
        -net vnic,vlan=1,name=net1,ifname=$VNIC2,macaddr=$mac2, \
        -vga std \
        -daemonize

Daniil




_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss at lists.omniti.com<mailto:OmniOS-discuss at lists.omniti.com>
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Thank you very much Daniil it's working perfect.

This make my day :)


Kind Regards,


Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20161207/de8060d0/attachment.html>


More information about the OmniOS-discuss mailing list