Re: [gentoo-user] Make QEMU guest visible to other machines on LAN

2015-12-20 Thread waltdnes
On Sun, Dec 20, 2015 at 04:04:13AM +0100, waben...@gmail.com wrote
> waltd...@waltdnes.org wrote:
> 
> >   For various reasons, I need another physical machine on my small
> > home LAN to be able to talk directly to the 32-bit guest.  I've read
> > the "Network setup" at http://www.linux-kvm.org/page/KvmOnGentoo
> > Is the /etc/conf.d/net being reffered to, the one on the host or on
> > the guest? The webpage doesn't say explicitly.
> 
> It seems like you are using the hostfwd option to redirect incoming 
> connections to the host to the guest. Then it should also be able to 
> connect from another physical machine to your guest.
> 
> Im using 
> 
> -net user,hostfwd=tcp::2022-:22
> 
> and can connect not only from the host but also from other physical
> machines to the guest via ssh.

  Thanks.  The command "ssh -p 2022 root@192.168.123.249" works from
another machine.  I'll try setting up distccd on the VM, and tweaking my
ancient Atom netbook's distcc client to point at it before I do the next
update @world.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



[gentoo-user] Make QEMU guest visible to other machines on LAN

2015-12-19 Thread waltdnes
  Apologies if this is a duplicate/triplicate.  I don't think the first
attempts got through.  Going through my backup provider (dialup) this
time.

  I have QEMU installed on a 64-bit Gentoo machine.  I'm now installing
a 32-bit Gentoo guest.  The "cdrom" (actually the minimal install ISO
file) boots, and dhcpcd hands out IP address 10.0.2.15 and gateway
10.0.2.2.  The install can connect to the outside world via the "links"
browser and it can ssh into the host machine 192.168.123.249 and visa
versa.  But the host ssh's into the guest install session via a port
redirection into itself. ( ssh -p  localhost ) 

  For various reasons, I need another physical machine on my small home
LAN to be able to talk directly to the 32-bit guest.  I've read the
"Network setup" at http://www.linux-kvm.org/page/KvmOnGentooIs the
/etc/conf.d/net being reffered to, the one on the host or on the guest?
The webpage doesn't say explicitly.

  I also don't understand how other machines will be able to
differentiate between the host and the guest.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Make QEMU guest visible to other machines on LAN

2015-12-19 Thread Simon Thelen
On 15-12-19 at 14:21, waltd...@waltdnes.org wrote:
>   Apologies if this is a duplicate/triplicate.  I don't think the first
> attempts got through.  Going through my backup provider (dialup) this
> time.
[..]
>   For various reasons, I need another physical machine on my small home
> LAN to be able to talk directly to the 32-bit guest.  I've read the
> "Network setup" at http://www.linux-kvm.org/page/KvmOnGentooIs the
> /etc/conf.d/net being reffered to, the one on the host or on the guest?
> The webpage doesn't say explicitly.
host
> 
>   I also don't understand how other machines will be able to
> differentiate between the host and the guest.
The idea is to create a bridge device, and then bridge the guests
tun/tap device with the bridge and your ethernet device. This way they
all appear transparently on the network.

The net config on that website should be fine for the host, and then
pass these command options to qemu
-device virtio-net-pci,netdev=hn0,mac="52:54:00:12:34:56" -netdev 
bridge,id=hn0,br=brkvm

You can change the mac address to your liking.

-- 
Simon Thelen



Re: [gentoo-user] Make QEMU guest visible to other machines on LAN

2015-12-19 Thread wabenbau
waltd...@waltdnes.org wrote:

>   Apologies if this is a duplicate/triplicate.  I don't think the
> first attempts got through.  Going through my backup provider
> (dialup) this time.
> 
>   I have QEMU installed on a 64-bit Gentoo machine.  I'm now
> installing a 32-bit Gentoo guest.  The "cdrom" (actually the minimal
> install ISO file) boots, and dhcpcd hands out IP address 10.0.2.15
> and gateway 10.0.2.2.  The install can connect to the outside world
> via the "links" browser and it can ssh into the host machine
> 192.168.123.249 and visa versa.  But the host ssh's into the guest
> install session via a port redirection into itself. ( ssh -p 
> localhost ) 
> 
>   For various reasons, I need another physical machine on my small
> home LAN to be able to talk directly to the 32-bit guest.  I've read
> the "Network setup" at http://www.linux-kvm.org/page/KvmOnGentoo
> Is the /etc/conf.d/net being reffered to, the one on the host or on
> the guest? The webpage doesn't say explicitly.

It seems like you are using the hostfwd option to redirect incoming 
connections to the host to the guest. Then it should also be able to 
connect from another physical machine to your guest.

Im using 

-net user,hostfwd=tcp::2022-:22

and can connect not only from the host but also from other physical
machines to the guest via ssh.

--
Regards
wabe



Re: [gentoo-user] Make QEMU guest visible to other machines on LAN

2015-12-19 Thread waltdnes
On Sat, Dec 19, 2015 at 08:31:35PM +0100, Simon Thelen wrote
> On 15-12-19 at 14:21, waltd...@waltdnes.org wrote:
> >   Apologies if this is a duplicate/triplicate.  I don't think the first
> > attempts got through.  Going through my backup provider (dialup) this
> > time.
> [..]
> >   For various reasons, I need another physical machine on my small home
> > LAN to be able to talk directly to the 32-bit guest.  I've read the
> > "Network setup" at http://www.linux-kvm.org/page/KvmOnGentooIs the
> > /etc/conf.d/net being reffered to, the one on the host or on the guest?
> > The webpage doesn't say explicitly.
> host
> > 
> >   I also don't understand how other machines will be able to
> > differentiate between the host and the guest.
> The idea is to create a bridge device, and then bridge the guests
> tun/tap device with the bridge and your ethernet device. This way they
> all appear transparently on the network.
> 
> The net config on that website should be fine for the host, and then
> pass these command options to qemu
> -device virtio-net-pci,netdev=hn0,mac="52:54:00:12:34:56" -netdev 
> bridge,id=hn0,br=brkvm
> 
> You can change the mac address to your liking.

  Thanks.  I'll try that as soon as I get the guest booting by itself.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications