Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- qemu-system-x86_64
- -enable-kvm
- -M q35
- -m 512
- -smp 2,sockets=1,cores=2,threads=1
- -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
- -device ahci,bus=pcie.0,id=ahci
- -drive file=/dev/data/openstack-controller,id=disk,format=raw
- -device ide-hd,bus=ahci.0,drive=disk
- -drive file=/home/peter/archive/software/openSUSE/openSUSE-12.3-DVD-x86_64.iso,id=isocd
- -device ide-cd,bus=ahci.1,drive=isocd
- -net nic,macaddr=00:16:3e:4e:c5:20,model=virtio,name=nic1,vlan=0
- -net bridge,name=nic1,br=br1,vlan=0
- -net nic,macaddr=00:16:3e:4e:c5:23,model=virtio,name=nic2,vlan=1
- -net bridge,name=nic2,br=br0,vlan=1
- -boot menu=on
- -monitor stdio
- QEMU 1.5.0 monitor - type 'help' for more information
- (qemu) info network
- hub 1
- \ nic2: index=0,type=tap,helper=/usr/lib/qemu-bridge-helper,br=br0
- \ virtio-net-pci.1: index=0,type=nic,model=virtio-net-pci,macaddr=00:16:3e:4e:c5:23
- hub 0
- \ nic1: index=0,type=tap,helper=/usr/lib/qemu-bridge-helper,br=br1
- \ virtio-net-pci.0: index=0,type=nic,model=virtio-net-pci,macaddr=00:16:3e:4e:c5:20
- # brctl show
- bridge name bridge id STP enabled interfaces
- br0 8000.902b34307a16 yes eth0
- tap0
- tap3
- br1 8000.fe1cc01ae2fd yes tap2
- eth0 = lan interface
- tap0 = some other vm
- tap3 = this vm's eth1
- tap2 = this vm's eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement