mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
Using 'slirp' as a command line option to runqemu will start QEMU with user mode networking instead of creating tun/tap devices. SLIRP does not require root access. By default port 2222 on the host will be mapped to port 22 in the guest. The default port mapping can be overwritten with the QB_SLIRP_OPT variable e.g. QB_SLIRP_OPT = "-net nic,model=e1000 -net user,hostfwd=tcp::2222-:22" (From OE-Core rev: 80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09) Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
654 B
HTML
17 lines
654 B
HTML
# For runqemu
|
|
IMAGE_CLASSES += "qemuboot"
|
|
QB_SYSTEM_NAME_x86 = "qemu-system-i386"
|
|
QB_CPU_x86 = "-cpu qemu32"
|
|
QB_CPU_KVM_x86 = "-cpu kvm32"
|
|
|
|
QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64"
|
|
QB_CPU_x86-64 = "-cpu core2duo"
|
|
QB_CPU_KVM_x86-64 = "-cpu kvm64"
|
|
|
|
QB_AUDIO_DRV = "alsa"
|
|
QB_AUDIO_OPT = "-soundhw ac97,es1370"
|
|
QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1"
|
|
# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
|
|
QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci"
|
|
QB_SLIRP_OPT = "-net nic,model=e1000 -net user,hostfwd=tcp::2222-:22"
|