Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Online Banking: How can I add an eth0-interface for a guest (linux) in qemu via commandline
Date: Sun, 15 Jan 2017 12:28:12
Message-Id: def45727-3e12-8626-5c41-d7ebca120ee2@gmail.com
In Reply to: [gentoo-user] Online Banking: How can I add an eth0-interface for a guest (linux) in qemu via commandline by Meino.Cramer@gmx.de
1 On 15/01/2017 13:49, Meino.Cramer@×××.de wrote:
2 > Hi,
3 >
4 > for the purpose of online banking I want to install Linux on an USB-stick.
5 >
6 > All attempts currently fail because the guest OS does not see
7 > any internet connection / eth0
8 >
9 > I tried this without success:
10 > 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
11 >
12 > The image boots successfully...but withoyt any connection to the
13 > internet.
14 >
15 > How can I acchieve what I want?
16
17
18 When you log into the guest OS and look at the network config it does
19 have, what do you see?
20
21 What interfaces, routes, etc etc does it actually have once booted?
22
23
24 --
25 Alan McKinnon
26 alan.mckinnon@×××××.com

Replies