KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

KVM + VLAN

1 reply [Last post]
imaiden
Offline
Joined: Oct 6 2010
Points: 10

I have been able to get clients attaching to various vlans when I use the virt-manager gui but I have not been able to figure out the command line equivalent.

sudo kvm --boot c -hda ./dns.img -smp 1 -m 384 -net nic,model=virtio,vlan=11 -net tap,vlan=11 -nographic -vnc :29 -usbdevice tablet

Can anybody point me in the right direction?

imaiden
Offline
Joined: Oct 6 2010
Points: 10
solved

sudo kvm --boot c -hda ./dns.img -smp 1 -m 384 -net nic,model=virtio -net tap,script=no,ifname=tun11 -nographic -vnc :29 -usbdevice tablet

The trick seems to be creating the tun yourself specifing vlan does not do a thing.

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.