User Tools

Site Tools


wiki:tech:linux:qemu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:tech:linux:qemu [2019/04/13 17:50] (current)
kpc created
Line 1: Line 1:
 +==== create bridge network ====
  
 +<​code>​
 +brctl addbr br1
 +brctl addif br1 enp6s0
 +ip tuntap add dev tap1 mode tap user kpc
 +brctl addif br0 tap1
 +ip link set up dev tap1k
 +</​code>​
 +
 +==== run guest with own mac ====
 +
 +<​code>​
 +qemu-system-x86_64 -enable-kvm -smp 4 -cpu host -boot d -hda ./disk.qcow -netdev tap,​ifname=tap1,​script=no,​downscript=no,​id=vnet0 -device i82559c,​netdev=vnet0,​mac=11:​11:​11:​11:​11:​11 -m 2G -name GuestName -vnc 127.0.0.1:1
 +</​code>​
wiki/tech/linux/qemu.txt ยท Last modified: 2019/04/13 17:50 by kpc