[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trying to get to a qemu guest from it's host. (George R Goffe)
From: |
George R Goffe |
Subject: |
Re: Trying to get to a qemu guest from it's host. (George R Goffe) |
Date: |
Fri, 18 Sep 2020 01:02:18 +0000 (UTC) |
Ottavio,
Thanks for your response.
Although this doc link you've provided is magnificent, it doesn't help me.
There's just too much information and too many undefined terms and too many
options (which ones do I need and which ones do I care nothing about?).
Here's my VM definition(?) from a script I put together to start the VM. The VM
comes up and is able to get to the internet just fine. The VM's ip address is
10.0.2.15 as the doc states (due to no -nic statement I think). There are
questions that I have that are probably buried in the doc, both what you gave
me and the tons and tons of doc in the internet. I'm probably not searching
with the "right" args.
So. Here's my situation:
The VM:
qemu-system-x86_64 \
-cdrom /isos/Fedora-Everything-netinst-x86_64-Rawhide-20200828.n.2.iso \
-cpu host \
-enable-kvm \
-m \
-smp 2 \
-drive file=/export/home/var-lib-libvirt-images/fc34-bt.img,format=raw \
-boot menu=on,reboot-timeout=15
I have a host at a local address of 10.28.0.2, it's a class C network behind a
firewall/router/dns/dhcp server.
My questions:
1) the VM doesn't seem to be able to "see" this network (10.28.0.0). How can I
make that happen?
2) the host can't "see" the VM or the 10.0.2.0 network. How can I make that
happen?
3) Since my router/firewall provides DHCP services, I want the VM to "talk" to
this server in order to get it's networking information.
What I'm looking for is a simple solution. Remember, I'm NOT a network admin.
Best regards and THANKS for your time, energy, patience spent in helping me.
George...
Message: 2
Date: Wed, 16 Sep 2020 23:18:12 +0100
From: Ottavio Caruso <ottavio2006-usenet2012@yahoo.com>
To: qemu-discuss@nongnu.org
Subject: Re: Trying to get to a qemu guest from it's host.
Message-ID: <rju2v4$1306$1@ciao.gmane.io>
Content-Type: text/plain; charset=utf-8; format=flowed
On 16/09/2020 22:52, George R Goffe wrote:
> Hi,
>
> First of all, I am NOT a networking kind of guy AND I've been spoiled by
> VirtualBox and it's simple network config.
>
> I'm trying to get to a QEMU guest (Fedora Core 34) from it's host. With
> VirtualBox VM's I get an ip address on the same net as the host with just one
> poke of a button. Whether or not there's a bridge component in this network
> setup IS WELL hidden. During the startup of the VB guest, the guest "talks"
> with a firewall/router running a DHCP server to get it's networking
> information (ip addr, netmask, broadcast addr).
>
> I would like to do the same with the QEMU guest. There is a plethora of
> network specs to start the QEMU guest and I'm daunted and bewildered by it.
>
> Can I get a little help with this please?
It depends on how you have launched your qemu instance. If you have used
user mode networking, the guest IP will always be 10.0.2.15. There's
plenty of documentation about qemu networking. Start from the man page
and the built-in documentation (usually
/usr/share/doc/qemu/system/net.html on a Linux host).
--
Ottavio Caruso
------------------------------
Subject: Digest Footer
_______________________________________________
Qemu-discuss mailing list
Qemu-discuss@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemu-discuss
------------------------------
End of Qemu-discuss Digest, Vol 108, Issue 8
********************************************
- Re: Trying to get to a qemu guest from it's host. (George R Goffe),
George R Goffe <=