On Sun, 15 Jan 2017 12:49:09 +0100, meino.cra...@gmx.de wrote: > for the purpose of online banking I want to install Linux on an > USB-stick. > > All attempts currently fail because the guest OS does not see > any internet connection / eth0 > > I tried this without success: > 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 > > The image boots successfully...but withoyt any connection to the > internet.
You need to allow the guest to access the network via the host's network interface, which is usually done by setting up a bridge. Details are on the qemu page of the Gentoo wiki. Alternatively you can set up vde, also documented on the wiki page. vde is simpler to set up but has disadvantages that probably won't apply to your situation -- Neil Bothwick Windows Error #09: Mouse not found. Press mouse button to continue.
pgpuHTVMoIlpq.pgp
Description: OpenPGP digital signature