Re: [DNG] Just out of curiosity, I wondered,
Am Dienstag 08 August 2017 schrieb zap: > how do you enable internet in a virtual machine with qemu? > > I wanted to try to see how effectively certain distros such as gnuinos > and vuu-do work through qemu with upgrading actually working... > > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng I start VMs with qemu with the option "-net nic ", which provides a network device of/to the VM and have internet access without further configuring anything. See also qemu man page / documentation. Regards, Stefan ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
It should Just Work(TM), as it did on every OS I have tested myself. You might want to take a look at QEMU docs and try playing with the network card emulation options. On August 9, 2017 12:28:08 AM GMT+03:00, zap wrote: >how do you enable internet in a virtual machine with qemu? > >I wanted to try to see how effectively certain distros such as gnuinos >and vuu-do work through qemu with upgrading actually working... > >___ >Dng mailing list >Dng@lists.dyne.org >https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng --- :^) --- :^) --- :^) --- :^) --- :^) --- :^) --- :^) --- :^) --- https://blaze.nextchan.org - https://gitgud.io/m712/blazechan https://nextchan.org - https://gitgud.io/nextchan/infinity-next I am awake between 7AM-12AM UTC, hit me up if something's wrong signature.asc Description: PGP signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
On Wed, Aug 09, 2017 at 01:13:55AM +0200, Stefan Krusche wrote: > Am Dienstag 08 August 2017 schrieb zap: > > how do you enable internet in a virtual machine with qemu? > > > > I wanted to try to see how effectively certain distros such as gnuinos > > and vuu-do work through qemu with upgrading actually working... > > I start VMs with qemu with the option "-net nic ", which provides a network > device of/to the VM and have internet access without further configuring > anything. See also qemu man page / documentation. Note that this, user-mode networking, has its downsides, like ping not working, troubles with listening (requires explicit config, no privileged ports, etc). The official documentation recommends vlans, which take some effort. My personal favourite is bridged mode, which has only an one-time setup cost, and makes guest VMs operate exactly same as if they were physically separate machines plugged into your ethernet switch next to the host. As a bonus, that setup cost is shared with lxc, which is also happy in such a bridged configuration. Not sure if all of setup steps below are still needed, they were ~5 years ago: * make /usr/lib/qemu/qemu-bridge-helper setuid root * put "allow br0" into /etc/qemu/bridge.conf * move network configuration from eth0 (or ens12345deadbeef678) to br0: /etc/network/interfaces: auto eth0 iface eth0 inet manual auto br0 iface br0 inet6 static bridge_ports eth0 address 2001:dead:beef::42 netmask 64 gateway 2001:dead:beef::1 iface br0 inet static address 10.0.0.42 ... yadda yadda yadda (or just dhcp, whatever you use -- just move everything you have on eth0 to br0, make eth0 "manual") * pass "-net bridge -net nic" to qemu Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ James Damore is a hero. Even mild criticism of bigots these days ⢿⡄⠘⠷⠚⠋⠀ comes at great personal risk. ⠈⠳⣄ ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
El 08/08/17 a les 23:28, zap ha escrit: > how do you enable internet in a virtual machine with qemu? > > I wanted to try to see how effectively certain distros such as gnuinos > and vuu-do work through qemu with upgrading actually working... > > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng > I recommend you: $ qemu-system-x86_64 -cpu host -enable-kvm -m 1024 -net nic,model=rtl8139,vlan=0 -net user,vlan=0 -cdrom devuan_jessie_1.0.0_amd64_desktop-live.iso ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
Adam Borowski wrote: > My personal favourite is bridged mode, which has only an one-time setup > cost, and makes guest VMs operate exactly same as if they were physically > separate machines plugged into your ethernet switch next to the host. > As a bonus, that setup cost is shared with lxc, which is also happy in > such a bridged configuration. And also the default for Xen, which as you say "just works". It's also REALLY easy to have multiple bridges for multiple networks. AIUI you can also use Open Vswitch and have VLAN support etc to the guests, but it's not something I've ever used. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
On Wed, Aug 09, 2017 at 10:13:03AM +0200, Narcis Garcia wrote: > $ qemu-system-x86_64 -cpu host -enable-kvm -m 1024 -net > nic,model=rtl8139,vlan=0 -net user,vlan=0 -cdrom > devuan_jessie_1.0.0_amd64_desktop-live.iso rtl8139 is a 100Mbit card, you really don't want your virtual network speed hobbled by emulating such gear. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ James Damore is a hero. Even mild criticism of bigots these days ⢿⡄⠘⠷⠚⠋⠀ comes at great personal risk. ⠈⠳⣄ ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
On Wed, 2017-08-09 at 10:13 +0200, Narcis Garcia wrote: > El 08/08/17 a les 23:28, zap ha escrit: > > how do you enable internet in a virtual machine with qemu? > > > > I wanted to try to see how effectively certain distros such as gnuinos > > and vuu-do work through qemu with upgrading actually working... > I recommend you: > $ qemu-system-x86_64 -cpu host -enable-kvm -m 1024 -net > nic,model=rtl8139,vlan=0 -net user,vlan=0 -cdrom > devuan_jessie_1.0.0_amd64_desktop-live.iso Or you can use port forwarding: qemu-system-x86_64 -cpu host -enable-kvm -m 1024 -net nic,model=e1000 -net user,hostfwd=tcp::5556-:22 ... ssh -p 5556 localhost/ ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
I prefer using a VDE setup, since that lets me run qemu as user (i.e. not root), and it's easy to link up VM's across hosts with "virtual cables" over ssh. My qemu parameters are like this: -net nic,macaddr=02:aa:bb:cc:dd:02 -net vde,sock=/tmp/vde.ctl On the host, I have a vde_switch for /tmp/vde.ctl to a tap, owned by the user. Plus of course routing and such; the tap set up needs to be done as root. You can probably run a user qemo directly to a tap, but then you'll need separate taps for each VM. The VDE (vde2) method performs quite well, and lets me have several VM's through the same tap. Ralph. zap wrote on 09/08/17 07:28: how do you enable internet in a virtual machine with qemu? I wanted to try to see how effectively certain distros such as gnuinos and vuu-do work through qemu with upgrading actually working... ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
Adam Borowski wrote: > rtl8139 is a 100Mbit card, you really don't want your virtual network speed > hobbled by emulating such gear. It doesn't work like that. The nominal speed of the card is merely that of the real card being emulated - in the emulated version, there's no serial pipe to get the bits through (just in-memory copies/moves) and the actual throughput will be whatever the chain of bits can push through it. That's certainly the case with Xen which (AIUI) uses Qemu for the I/O stuff. Having said that, people bitten by "cr*p hardware or drivers" tend to have long memories - Realtek is a make I prefer to avoid. Now, Intel e1000 is a different matter. Yeah, I know - the newer stuff is OK, and it's only emulated not real hardware, but memories of pain are memories of pain. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
Someone asked for an easy question, and I tried to reply with an effective answer (without perfection). I hope "zap/calmstorm" has already launched any GNU/Linux .iso with that, because hasn't asked more details. El 10/08/17 a les 08:42, Simon Hobson ha escrit: > Adam Borowski wrote: > >> rtl8139 is a 100Mbit card, you really don't want your virtual network speed >> hobbled by emulating such gear. > > It doesn't work like that. The nominal speed of the card is merely that of > the real card being emulated - in the emulated version, there's no serial > pipe to get the bits through (just in-memory copies/moves) and the actual > throughput will be whatever the chain of bits can push through it. That's > certainly the case with Xen which (AIUI) uses Qemu for the I/O stuff. > > > Having said that, people bitten by "cr*p hardware or drivers" tend to have > long memories - Realtek is a make I prefer to avoid. Now, Intel e1000 is a > different matter. > Yeah, I know - the newer stuff is OK, and it's only emulated not real > hardware, but memories of pain are memories of pain. > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng > ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Just out of curiosity, I wondered,
For some reason I can connect to the internet now, dunno what's different... but thank you all for your instructions. :) On 08/10/2017 03:37 AM, Narcis Garcia wrote: > Someone asked for an easy question, and I tried to reply with an > effective answer (without perfection). > I hope "zap/calmstorm" has already launched any GNU/Linux .iso with > that, because hasn't asked more details. > > > El 10/08/17 a les 08:42, Simon Hobson ha escrit: >> Adam Borowski wrote: >> >>> rtl8139 is a 100Mbit card, you really don't want your virtual network speed >>> hobbled by emulating such gear. >> It doesn't work like that. The nominal speed of the card is merely that of >> the real card being emulated - in the emulated version, there's no serial >> pipe to get the bits through (just in-memory copies/moves) and the actual >> throughput will be whatever the chain of bits can push through it. That's >> certainly the case with Xen which (AIUI) uses Qemu for the I/O stuff. >> >> >> Having said that, people bitten by "cr*p hardware or drivers" tend to have >> long memories - Realtek is a make I prefer to avoid. Now, Intel e1000 is a >> different matter. >> Yeah, I know - the newer stuff is OK, and it's only emulated not real >> hardware, but memories of pain are memories of pain. >> ___ >> Dng mailing list >> Dng@lists.dyne.org >> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng >> > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng