Gentoo Archives: gentoo-user

From: Meino.Cramer@×××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Online Banking: How can I add an eth0-interface for a guest (linux) in qemu via commandline
Date: Sun, 15 Jan 2017 11:49:30
Message-Id: 20170115114909.GB9741@solfire
1 Hi,
2
3 for the purpose of online banking I want to install Linux on an USB-stick.
4
5 All attempts currently fail because the guest OS does not see
6 any internet connection / eth0
7
8 I tried this without success:
9 sudo qemu-system-x86_64 -cpu core2duo -cdrom <isoimage> -boot order=d -usbdevice host:<my usbsick> -m 1G --enable-kvm -machine q35,accel=kvm -device intel-iommu -netdev user,id=mynet0,net=192.168.178.0/24,dhcpstart=192.168.178.9
10
11 The image boots successfully...but withoyt any connection to the
12 internet.
13
14 How can I acchieve what I want?
15
16 Cheers
17 Meino

Replies