LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-22-2023, 08:13 PM   #1
bleu_oyster
LQ Newbie
 
Registered: Mar 2023
Location: Phoenix
Distribution: nobara
Posts: 3

Rep: Reputation: 1
Unhappy Getting a unknown IP address in Virtual Machine Manager/QEMU Client


Where is the Virtual machine getting the 10.0.2.15 IP address from? I don't have a DHCP server handing out 10.0.2.0/24 IP addresses on my network. Thank you for any help!

Here is my Information

Virtual Machine Manager running on nobara/Fedora

LXC
Name: default
Device: virbr0
State: Active
Autostat: ON Boot
IPv4 configuration
Network: 192.168.122.0/24
DHCP range: 192.168.122.2 - 192.168.122.254
Forwarding: NAT
----------------------------------------------------------------
Virtual Machine Information
OS: ubuntu22.04
NIC Network Source: Usermode networking
Device model: virtio
MAC Address: 52:54:00:25:83:af
IP address: Unknown (With LXC Connected or Disconnected)
Link state: active
----------------------------------------------------------------
Virtual Bride Interface

virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:85:f5:94 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global noprefixroute virbr0
valid_lft forever preferred_lft forever
----------------------------------------------------------------
Virtual Machine - ubuntu22.04
ip addr

enp1s0:
link/ether 52:54:00:25:83:af brd ff:ff:ff:ff:ff:ff
IP Address: Automatic
DNS: Automatic
DHCP assigned IP Address: 10.0.2.15/24
Broadcast 10.0.2.255
Virtual Machine - ubuntu22.04

Can ping PC Local bridge0 interface IP address of 192.168.25.4 <State UP>
Can ping PC virbr0 interface IP address 192.168.122.1 <State DOWN>
no vnet interface on local PC
----------------------------------------------------------------
sudo brctl show
bridge name bridge id STP enabled interfaces
bridge0 8000.facb0d19e3ba no enp0s25
virbr0 8000.52540085f594 yes
 
Old 03-27-2023, 11:00 AM   #2
bleu_oyster
LQ Newbie
 
Registered: Mar 2023
Location: Phoenix
Distribution: nobara
Posts: 3

Original Poster
Rep: Reputation: 1
Lightbulb [SOLVED]Getting a unknown IP address in Virtual Machine Manager/QEMU Client

After taking the red pill and going down the rabbit hole I was able to discover why my virtual clients in Virtual Machine Manager where getting 10.2.x.x.x IP address from QEMU itself. I disabled LXC in Virtual Machine Manager and setup a virtual bridge on my nobara PC. I now have all my virtual machines talking to each other along with my local PC, using the virtual bridge br0. I found these two YouTube videos extremely helpful!
Now back to drinking some more tea!

QEMU Virtual Machine

QEMU - Bridged Networking
 
1 members found this post helpful.
Old 03-27-2023, 04:23 PM   #3
maw_walker
Member
 
Registered: Jul 2021
Posts: 119

Rep: Reputation: Disabled
Interesting: Oracle Virtualbox hands out the exact same IP when you have it set to NAT.
 
Old 03-27-2023, 07:45 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,381
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
maw_walker is right. This is a NAT (Network Address Translation) address.

Here's a good intro to NAT.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] QEMU Virtual Machine Manager on OpenSuse Tumbleweed newellrp1 Linux - Virtualization and Cloud 3 12-27-2016 06:00 AM
How to : Open Virtual Machine Manager to create a new virtual machine BKChicago Linux - Newbie 2 11-08-2016 09:48 PM
LXer: Install QEMU on ubuntu 15.04 and mange QEMU with Virt Manager LXer Syndicated Linux News 0 05-29-2015 04:41 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
QEMU and Virtual Machine Manager joshfoulk Linux - Software 1 12-18-2007 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration