qemu/kvm bridge and NAT networking

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии •

  • @jankypox
    @jankypox 3 года назад +101

    Can’t thank you enough for this. After reading half a dozen “guides” with spelling mistakes, inconsistencies, and just terrible explanations, destroying my system as many times and nearly a dozen Ubuntu reinstalls… THIS was the guide and explanation I needed all along! Simple, to the point, and with a good background of how, why, and what we are doing. Thank you again.

    • @totodilesilver2992
      @totodilesilver2992 2 года назад +6

      I can totally agree, so many weird guides that are all completely different but this video explained it extraordinarily well it's almost unbelievable, my bridge works perfectly and thank you a lot for your effort!

    • @henrylawson430
      @henrylawson430 2 года назад +4

      Ditto

    • @kwagnert
      @kwagnert Год назад +1

      Ditto #2!

    • @davidmorrisette967
      @davidmorrisette967 10 месяцев назад

      ditto#3

  • @TheBobFish
    @TheBobFish Месяц назад +4

    Brother I spent 4+ hours troubleshooting with forums and google searches. Decided to try RUclips and your guide immediately solved my problem. Thank you so much.

    • @absprog
      @absprog  Месяц назад +1

      I'm glad you found this helpful

  • @andremotz
    @andremotz 11 месяцев назад +8

    This is the only and the ONLY true tutorial, to get bridging with QEMU/KVM running. Have done so successfully on a Manjaro-host. Thanks!

    • @absprog
      @absprog  11 месяцев назад +1

      Thanks for your support and kind words!👍

  • @kebabimpaler
    @kebabimpaler 10 месяцев назад +2

    It's funny how much the "why" helps so much with the "how" in terms of trying to get your head around what's happening. Especially if you take a wrong turn / use a different tool but want to achieve the same outcome or have to troubleshoot things. Thank you.

    • @absprog
      @absprog  10 месяцев назад +1

      Thank you for your feedback!👍

  • @gtrklem
    @gtrklem 3 года назад +16

    I feel compelled to take a moment to thank you for this guide. Like most everyone else commenting, I'm truly grateful I found this video. After watching a handful of other videos (most at least twice as long as this) and reading a number of guides, it wasn't until I watched your guide that I was able to successfully setup a bridged connection for my VMs. My VMs are hosted on Debian 11, but this guide still worked perfectly. Only slight issue I had is that I access my Linux box via VNC/SSH tunnel, so when I deleted the ethernet connection, it took me out. Fortunately I was somewhat expecting this and had an extra keyboard and monitor on hand. I was back up and running moments later.
    I look forward to watching more of your videos and have subscribed. Thanks again!

  • @InfomercanteBrasil
    @InfomercanteBrasil 2 месяца назад +1

    Thank you so much! After almost two days trying to make the bridge work in Virt-Manager, I discover in this video that it would only work with a wired network and that I will have to stop using Virt-Manager and start using VMWare! Thank you so much

    • @absprog
      @absprog  2 месяца назад +1

      I'm glad it turned out well!

  • @FlantisFroggu
    @FlantisFroggu 7 месяцев назад +1

    I appreciate the explanation at the beggining. I already knew all of this but in my search I found so many people confuse a nat with a bridge that it's hard to believe anyone unless they define it.

    • @absprog
      @absprog  7 месяцев назад +2

      Thank you for your comment🙏

  • @ernstrenner
    @ernstrenner Год назад +1

    Out of all of the tutorials I found lately, yours was the only one working. I now have bridged networking configured and working.
    THANK YOU!

    • @absprog
      @absprog  Год назад

      I'm glad it turned out well👍

  • @scriptingdad
    @scriptingdad Год назад +2

    Can't thank you enough. I've gone threw multiple guides and all of them were missing parts. I think it was the fact the the original physical device needed to be removed. This was super straight to the point but chocked full of useful information. Amazing!

    • @absprog
      @absprog  Год назад +1

      I am glad you found this helpful 😊

  • @Sieg_
    @Sieg_ Месяц назад

    Thanks a lot! As others have stated, this is the best guide for setting up bridged connections with QEMU/KVM. The explanation is impeccable

    • @absprog
      @absprog  29 дней назад

      Thanks for your kind words!

  • @TheNets
    @TheNets Год назад

    I love you. After A TON of resources, finally someone who teach everything properly.

    • @absprog
      @absprog  Год назад

      Thank you very much! 👍

  • @CuongHut
    @CuongHut 2 года назад

    How much can I say thank you this video. I was suffering to make my open5GS core connecting to my UERANSIM on my virtual machine. And you save my life. Thank you very very very much

  • @johnr3936
    @johnr3936 2 года назад +1

    Deleting the default ethernet adapter was the missing link in 2 days of trying, thanks. Well done.

    • @sn5806
      @sn5806 4 дня назад +1

      Same story here. I didn't realize I needed to do that. In retrospect it totally makes sense, but nothing I read before explicitly stated that.

  • @geozapata3865
    @geozapata3865 2 года назад +2

    Thank you for this. Short, sweet, clear and to the point.

    • @absprog
      @absprog  2 года назад

      Glad it was helpful!

  • @bangoutsblog
    @bangoutsblog 6 месяцев назад +2

    Thank you so much! After a week of frustration I found this video and now I have all my VMs on my LAN.

    • @absprog
      @absprog  6 месяцев назад +1

      I'm glad it turned out well.

  • @juandiego6292
    @juandiego6292 Год назад

    Thank you!!! You saved me. After reading lots of guides and having no sucess just came across your video, followed your instructions and it worked!!

    • @absprog
      @absprog  Год назад

      I am so glad you found this helpful 😊

  • @ericmuijs1938
    @ericmuijs1938 9 месяцев назад

    Such a clear understanding, thank you! After five guides online I still could not find what I wanted, you helped me a lot.

    • @absprog
      @absprog  9 месяцев назад

      Glad it was helpful! Thank you for your feedback👍

  • @marcq1588
    @marcq1588 Год назад

    Excellent. Finally someone who can explain bridge networking simply and clearly.
    This worked perfectly on Pop OS! 22.04.
    My VMs now have full connectivity internally and externally. Without having to change tricky configuration files in the host.
    Thank you.

    • @absprog
      @absprog  Год назад

      Glad it helped! 👍

  • @JohnsonIsaganiIIIVPulis
    @JohnsonIsaganiIIIVPulis 2 года назад +1

    Your channel deserves more subs. Such a clear and concise guides. I hope you grow more.

    • @absprog
      @absprog  2 года назад

      Thank you very much! I appreciate it a lot!

  • @paulosoares7736
    @paulosoares7736 3 месяца назад

    Hello, thanks for the webinar that helped me a lot to create this bridge on TruNAS Scale version (Dragonfish-24.04.2). You are absolutely right when you say that it is not possible to use Wi-Fi. In my example on my notebook, Wi-Fi is in WAN mode and LAN is in Bridge mode in your method. Once again, my sincere thanks.

  • @Tannius
    @Tannius 2 года назад

    Thank you for making this clear and easy. I bookmarked this so I can watch again when I forget how to do it.

    • @absprog
      @absprog  2 года назад

      Wonderful! Glad it was helpful!

  • @snppls
    @snppls Год назад

    Huge thanks! I spent hours and hours trying to get this to work. Following your video I now have my bridge connection working.

    • @absprog
      @absprog  Год назад

      That's great to hear 👍 Thanks for the feedback!

  • @alvaromp1106
    @alvaromp1106 2 года назад

    How interesting and well explained, you saved my life tonight when you said you could not make it work with wireless networks. I was about to destroy everything here... I will go with virtual box this time! Thanks again!!!!

    • @absprog
      @absprog  2 года назад

      You are welcome! Many times VirtualBox turns out to be the simplest solution...

  • @hornetIIkite3
    @hornetIIkite3 2 года назад

    You sir are a life saver. Nothing made sense anymore.

  • @rollbacked
    @rollbacked Год назад

    you are my hero, after reading so many terribly written or outdated instructions about bridging my network your video made it work
    I can finally go to bed

    • @absprog
      @absprog  Год назад

      I'm glad that my video was helpful. Thanks for watching and leaving a comment

  • @justinaquino6000
    @justinaquino6000 2 года назад +2

    I love your guides. You explained every step in precise detail, which helps. It also helps you diagramed the concepts and showed how to test if something works.

    • @absprog
      @absprog  2 года назад +2

      Thank you very much! Really glad you liked it!

  • @Chiren
    @Chiren 3 года назад +5

    Your channel is amazing you actually saved me so much time and helped me to understand everything in a simple manner. You earned a new sub, thanks and keep it up !

  • @ScottMorgan88
    @ScottMorgan88 2 года назад +2

    Thanks! That was excellent and the easiest tutorial on RUclips that I've found. Well done!

    • @absprog
      @absprog  2 года назад

      Thanks a lot! :-)

  • @dave1383
    @dave1383 7 месяцев назад

    I'm a Linux newb and just threw out Proxmox, which had no trouble networking. Installed Ubuntu, Kvm and virt manager. First, many VMs probably don't need a bridge, however, my first VM, home assistant, does need external access. Same searching for solutions as others, I'll play and replay, newb, and hopefully get there.😅 Thanks, subscribed! I'll update my comment soon with results! I hope! 😂 Update: Hmmm, newb struggling, fast vid and fast speaker, lol. I'll try again, hello, nmtui.😢 I'll keep trying, maybe make a new connection and delete the old one.

  • @wandersonsilva-fx1cs
    @wandersonsilva-fx1cs Год назад

    I want to thank you for your classes! Mr. Congratulations! Thank you very much

    • @absprog
      @absprog  Год назад +1

      I am glad you found this helpful. Thank you too! 😊

  • @TheTick20001
    @TheTick20001 Год назад

    Thank you, making the transition from Windows to Linux and you just helped me get a bit closer to making that permanent.

    • @absprog
      @absprog  Год назад

      Much luck with your Linux journey 😊

  • @davidmorrisette967
    @davidmorrisette967 10 месяцев назад

    Great video. As mentioned in several comments previously, I looked at a lot of other youtube videos and also went through the documentation and examples on a bunch of other websites. I whacked a couple of setups and ended up with no networking. Following your video, I set up a bridge and can no proceed with the tasks, such as configuring test setups of FreeIPA, and start making progress on other fronts. Again, Thank You!

    • @absprog
      @absprog  10 месяцев назад

      Glad to hear that I could help you out!👍

  • @vlados9053
    @vlados9053 Год назад

    For you it looks like very easy, for me as beginner you can not imagen what this guide means. You just explained what I really needed. Thank you, thank you thank you, and thank you again. Cheers!

    • @absprog
      @absprog  Год назад

      Glad it helped! Thanks for your support and kind words👍

  • @einfachlinux
    @einfachlinux Год назад

    Thanks soooo much for this tuto. It changes my work with virt-manager so drastically, finally I can access my home network.
    i have been looking for a tutorial for soooo long

    • @absprog
      @absprog  Год назад +1

      That makes me so happy to hear Olaf

  • @lumin9ry
    @lumin9ry 2 года назад

    thank you so much, i read 15 different convoluted explanations and struggled for hours with this, your video did it for me in 5 minutes lol

    • @absprog
      @absprog  2 года назад +1

      Glad it helped ♥

  • @GaryCameron780
    @GaryCameron780 2 года назад +1

    Thank you for doing the video. The information here is super useful to me. Especially defining the virtual router versus switch.

  • @jameswatkinsiii7834
    @jameswatkinsiii7834 2 года назад

    Great explanation, very well done and understandable. 5 stars for showing all the steps and proving your work with command line. Many thanks for this video.

    • @absprog
      @absprog  2 года назад

      Glad it was helpful, thanks a lot!

  •  8 месяцев назад

    Buscando y buscando como llevar a cabo este procedimiento y de verdad lo explicaste también y tan claramente!, muchas gracias!

    • @absprog
      @absprog  8 месяцев назад

      Muchas gracias por tu comentario🤝

  • @24hhhhours
    @24hhhhours 2 года назад +2

    Thank you!
    I have just one issue. When I want to choose the network bridge, it doesnt show it. It doesnt show my bridge that I just created? Do you know what I did wrong, because I followed everything EXACTLY as you did. So I go to virt-manager, go to my NIC, and want to select the network source but it's only showing 1. Virtual network NAT 'default' and 2. Macvtap device.

    • @user3027
      @user3027 2 года назад

      I had the same issue. Had to reboot to get it to show

  • @TradersTradingEdge
    @TradersTradingEdge 2 года назад

    Thanks very much. This is by far the best explanation I'v ever seen.

    • @absprog
      @absprog  2 года назад

      You're very welcome, thanks a lot!

  • @darkavenger10k
    @darkavenger10k 3 года назад

    Thank you so much for this video. After reading many guides that involved a lot of stuffing around this simple fix worked in minutes.

  • @johannesniederstaetter4720
    @johannesniederstaetter4720 2 года назад

    Hi, thx for this super guide, after months of reading about bridges in kvm with osx vm`s this guide did everything in 10 minutes....Thanks again!

    • @absprog
      @absprog  2 года назад

      It really makes my day to read comments like yours. Thank you so much

  • @riotmode666
    @riotmode666 3 года назад

    i tried a lot of written manuals, but THIS HELPED! Thank you!!!! Ubuntu 20.04 TLS

    • @riotmode666
      @riotmode666 3 года назад

      okay one day after, i did a restart and the connection is gone :(

  • @maninthecrowd5076
    @maninthecrowd5076 3 года назад

    In a nat network accessing the ip of the virbr from the guests would access the host machine if I remember correctly.

  • @buehnenarbeiter
    @buehnenarbeiter Год назад

    Thanks so much for doing this. I'm deploying a Cockpit Server and have been trying to wrap my head around the networking of the virtual machine manager. This got me a few steps further in finding the right configuration for my setup. ^^

    • @absprog
      @absprog  Год назад

      I appreciate your comment Ricardo! It's always great to hear that viewers find my videos helpful

  • @philippsteffen6159
    @philippsteffen6159 Год назад

    Thank you, thank you, thank you, thank you. That saved me so much time and gave me an actual understanding of how to do this.

    • @absprog
      @absprog  Год назад

      I am glad you found this helpful Philipp 😊

  • @davidk1163
    @davidk1163 3 года назад +1

    This helped me a lot I got to know how network bridge works

  • @catsado
    @catsado 2 года назад

    You are a goldmine dear sir :) . Best of wishes.

    • @absprog
      @absprog  2 года назад

      Wow, thank you! 👍

  • @Tiloh-o6f
    @Tiloh-o6f Месяц назад

    you are a true teacher. thank you so much.

    • @absprog
      @absprog  Месяц назад

      Thanks for your kind words!

  • @user3027
    @user3027 2 года назад

    Excellent! Just what I was looking for. Saved my day totally!

  • @technomatters6234
    @technomatters6234 2 года назад

    Appreciate tons for the simple and practical explanation! Thanks!

  • @RebeliousSapien
    @RebeliousSapien Год назад

    but i don't understand
    why is ethernet showing up as interface for the new bridge?
    why doesn't it have an ip address?
    how are the vms and host connected to same dhcp server ?
    the bridged set up is vms/ohost all connect to the bridge then the bridge connects to the router then to the internet so why is hosts's physical NIC (ethernet) showing as interface for the new bridge created?

  • @JohanAntonissen
    @JohanAntonissen Год назад

    Fantastic video! Small question. If i create a bridge network on my bare metal, and the bare metal also has docker containers running, does that change something there aswell ?

  • @Radenska512
    @Radenska512 3 года назад

    Thank you, the most helpful video/source for bridge networking I've seen so far.

    • @absprog
      @absprog  3 года назад +1

      Great to hear, thanks!

    • @Radenska512
      @Radenska512 3 года назад

      ​@@absprog But currently my problem is: in Network source I have selected Bridge nm-bridge:empty source. I have internet on my host PC.

    • @Radenska512
      @Radenska512 3 года назад

      @@absprog nvm, it works now

  • @yashchauhan5852
    @yashchauhan5852 3 года назад +2

    Do you know how to take snapshots in virt-manager?

    • @absprog
      @absprog  3 года назад +1

      Made a video just for you :-)
      Just released it, here's the link:
      ruclips.net/video/1SDvth66i-4/видео.html

  • @m_t_t_
    @m_t_t_ 2 года назад

    I can connect to the bridge on the host machine but the guest machine will not connect the the bridge. The guest keeps saying that the activation of the network connection failed. Do you know why this is happening? Thanks

  • @AgentKent
    @AgentKent 3 года назад +3

    This was just what I needed!

    • @absprog
      @absprog  3 года назад +1

      Thanks so much :-)

  • @713jandj
    @713jandj 2 года назад

    This video is very informative! Exactly what I was looking for. Can't thank you enough.

  • @meierthomas
    @meierthomas 2 года назад

    Great tutorial, thanks. I have 2 VMs (VM1 & VM2). They need to be able to communicate with each other while VM2 needs to see the LAN as well as there are home automation devices on the LAN. In addition VM2 needs to see the Internet.
    Following your video do I setup NAT on VM1 (only sends/receives info from VM2) and bridged networking on VM2? Wonder where to even start with that.

  • @marcopoire9593
    @marcopoire9593 2 месяца назад

    This tutorial is flawless, but I have a similar issue. I am running the vms on a server which has a network card with two physical ethernet ports which are working in balance round robin mode. I have therefore created a virtual bond of the physical ports and set this bond as an interface of the bridge. This doesn't seem too right to me and it doesn't show up in the list of interfaces in virt-manager.Has anyone ever come across this issue or have any suggestions?

  • @perpetuallearning2007
    @perpetuallearning2007 Год назад

    Very interesting, i do have right now a clearer comprehension about network management with Vms

    • @absprog
      @absprog  Год назад

      I am glad you found this helpful👍

  • @adelam7534
    @adelam7534 2 года назад

    ethernet or virbr are just not there when I open nmtui, but the PC is connected using a wired connection. This is fresh ubuntu installation and nothing has been changed.

  • @grigorigahan
    @grigorigahan 7 месяцев назад

    the putting my machine behind the virtual switch feels like a diaster waiting for me to do it. Would it be possible to buy a usb to ethernet dongle and then configure the bridge to use that dongle instead? This way only the vms are routed through this bridge?

  • @py4311
    @py4311 Год назад

    when I use default NAT forward to any devices, host and guest can ping each other, even guest can ping my phone via forward to wifi nic.

  • @LakshmanMakineedi
    @LakshmanMakineedi 2 года назад

    @Abstract programmer thanks for info, i am able to create VMs but after 3 VMs 4 VM is not getting Internet and i observed after 3rd vm all vms(4, 5 ,6 ) are getting same ip and not getting internet, but first 3VMs are working fine with internet, what can be the issue ?

  • @jhnavasm
    @jhnavasm 3 года назад

    Hi, do you know if its possible to transfer the state of a physical port in the host to a virtual machine logical interface? So basically, when the physical eth0 in the host is down to see the logical eth0 in the virtual machine down as well, is that possible using QEMU/KVM?

  • @gto4467
    @gto4467 Год назад

    I did this created a bridge network but then my host machine can't access internet how do I fix it

  • @atalayozmen3222
    @atalayozmen3222 3 месяца назад

    I could actually ping the vm from the host and vice versa even before I enabled bridged network. what can be the reason for this?

  • @Anonsage3
    @Anonsage3 Год назад

    Thank you, It is REALLY hard to find a clear explanation of KVM bridges and NAT for some reason.

    • @absprog
      @absprog  Год назад

      I am glad you found this helpful 👍

  • @teachyourselfcs
    @teachyourselfcs 2 года назад

    Finally, a video that explains it all in detail and that is also easy to follow! Subscribing!

    • @absprog
      @absprog  2 года назад

      Thanks a lot!!

  • @dor5levy
    @dor5levy Год назад

    נו תודה רבה ! כל הסרטונים המטרחנים האלו - והינה אתה בא, מסביר בפשוט, מראה מה לעשות. ואפילו הבנתי הכל על ההתחלה! סחטיןן!

    • @absprog
      @absprog  Год назад

      שמח שזה עזר :-)

  • @matthewbascom
    @matthewbascom 2 года назад

    Thank you for the insightful video. Is it possible to configure the local network to directly use the public-facing IP address of the router to host a public server?

  • @suntoryjim
    @suntoryjim Год назад

    This was massively helpful. Thank you.

    • @absprog
      @absprog  Год назад

      Glad it was helpful Jim! 👍

  • @ed81ny
    @ed81ny Год назад

    I need help :( .. I have created my bridge connection, yet it is not an available option in the VM manager. What am I missing or where do I begin to debug this? Thanks. :)

  • @soupborsh6002
    @soupborsh6002 Год назад +1

    Thank you! I think I finally understood this networking mess

    • @absprog
      @absprog  Год назад

      I'm glad to hear that you found the tutorial helpful 🤗

  • @vladislavkaras491
    @vladislavkaras491 2 года назад

    Thank you for your tutorial!
    It really helped me out.
    I do have a question. If I want to make a bridge (or maybe other type of network device), without sharing Internet to the VM. So, the VM would be "Internet-less", but the host and the VM could talk to each other still?
    I do believe it is called host-only. If you have used Hyper-V, there it is called Internal Switch.
    I think right alternative is isolated network, but I am not sure.

  • @lcbdias
    @lcbdias 2 года назад

    will assign my host to the bridge change my static ip address?
    the only doubt I got was this one, because when you run the "ip a" command line after setting the bridge your host is no longer conected to ethernet but the bridge, right?

  • @All3me1
    @All3me1 2 года назад

    I followed your tutorial and it worked out great
    But after rebooting I don't know how to connect the host (Debian with xfc) to the bridge
    So my VM doesn't have internet anymore

  • @MSThalamus-gj9oi
    @MSThalamus-gj9oi 2 месяца назад

    I'm not sure what I did wrong and where, but the default NAT bridge KVM installed *does* allow the VMs to communicate with other (real) machines on the network. I can ping them by IP address and connect via Samba client. I need some VMs to be able to do this, but I need some isolated (Internet access only). Anyone have an idea what I did wrong?

  • @johnwashifi
    @johnwashifi 2 года назад

    Hello, could you show how to solve the issue that happens when I connect on windows 10 to Ikev2 VPN that make lose access to my local SAMBA shares? Thanks!

  • @azizmetchonou
    @azizmetchonou 4 месяца назад

    always good and simple explanations

    • @absprog
      @absprog  4 месяца назад

      That's great to hear

  • @mobi_hd6439
    @mobi_hd6439 Год назад

    Doesn't work for me, I did everything thing exactly like you showed it in your vid but Ubuntu won't use the bridge network to connect to the internet also the bridge network doesn't get's an IP address, the thing is I'm new to this and can't help my self

  • @geraltofrivia__w.w.7513
    @geraltofrivia__w.w.7513 3 года назад +1

    why is it so complicated to connect a wifi connection to Virtual machines??

  • @razieldolomite698
    @razieldolomite698 2 года назад

    You literally saved my work day. Take my sub.

    • @absprog
      @absprog  2 года назад

      Glad to hear it helped, and thanks!

  • @SebastianTur
    @SebastianTur 2 года назад

    Clear, crisp , excelent.

    • @absprog
      @absprog  2 года назад

      Many thanks!

  • @erickbirbe8666
    @erickbirbe8666 5 месяцев назад

    Thank you for the great explanation.

    • @absprog
      @absprog  5 месяцев назад

      Glad it was helpful!

  • @619jericoholic
    @619jericoholic Год назад

    Tried this method on Ubuntu 22.04, but it didn't work, after removing Wired connection 1, Bridge didn't get an IP Address from DHCP.

  • @balancingcandle8362
    @balancingcandle8362 2 года назад

    clear explanation, to the point. subscribed...

    • @absprog
      @absprog  2 года назад

      Awesome, thank you!

  • @mohanmathew5
    @mohanmathew5 2 года назад

    Sir, you made my day!! thank you! 🙏
    I was struggling with this since many months!
    SUBSCRIBED 💯

    • @absprog
      @absprog  2 года назад

      Glad it helped!

  • @stdio9965
    @stdio9965 3 года назад

    why you dont use virbr0 bridge instead of nm bridge?

  • @JuiceAndGinWalker
    @JuiceAndGinWalker 6 месяцев назад

    Is this guide still relevant? I'm only asking because I'm having a lot of issues with my bridge. I takes forever to connect to the internet. Today it took three hours. Thank you by the way I do appreciate the guide, I learned a lot from it. I'm just wondering if there are additional steps I should be taking or if maybe I need to find a more recent guide. My host is running Debian 12 Bookworm.

  • @TangDynasty1983
    @TangDynasty1983 10 месяцев назад

    I run qemu/kvm as normal user instead of root, but got a access denied when selecting "bridge device", do you have any workaround on this? Thanks.

  • @keshhan6412
    @keshhan6412 2 года назад

    I only just started playing with qemu-kvm about two hours ago. So just for clarification, if I'm using a bridged connection on a VM does that mean the Ethernet connection on my host machine is unusable?

    • @absprog
      @absprog  2 года назад +2

      Quite the contrary. You have to connect to the internet via your Ethernet port. What the bridge does, is allow both the host and the guest use this connection.

  • @unapologetic7900
    @unapologetic7900 2 года назад

    Is it possible to access physical Network interfaces directly by a Virtual Machine? I have a Linux Mint Host with 6 Network Cards. I need to run Opnsense firewall/router and configure 4 of the network devices as a bridge (under opnsense, which I already do in a dedicated physical PC) to which other separate client computers can connect and access the internet through opensense. I need all clients behind the opnsense firewall to be able to communicate with each other and the internet.
    So right now, I have a Computer running Opnsense. That PC has 6 Network Cards, 1 for WAN (connected to my internet Modem) and 5 configured as a Bridge/switch, to which my other PC's can connect (talk to each other and the Internet). I'd like to migrate that setup to a Virtual Maching running on the Linux Mint PC. I will add that I would also move my TrueNAS PC system to the Linux Mint Host in a VM as well. So I'd end up with the Firewall/router and NAS running as VM's on the Linux Mint Host. Everything in 1 box, rather than 3 separate PC's.

  • @open-source-is-the-answer
    @open-source-is-the-answer 2 года назад

    This is awesome just what I needed! Thanks for the great tutorial! Subscribed!

  • @chrisrgutierrez
    @chrisrgutierrez 5 месяцев назад

    Unfortunately NMTui is not in the Debian 12 repos. Any alternatives?

    • @n-o-i-d
      @n-o-i-d 4 месяца назад

      Hi.
      I cannot test this, but I see nmtui is part of the "network-manager" apt package which is avalilable on debian repos.
      In case you need an alternative, here are the commands I ran, they work without nmtui, but also need the "network-manager" package from the apt.
      First, you need 2 names. The current ethernet connection name and the ethernet device name.
      To get them, run `sudo nmcli connection show`.
      Look for the connection of type "ethernet" in the output, and remember its name (you will replace "eth0-connection" with this in my commands) and its associated device (you will replace "eth0" with this in my commands)
      Here are the commands, please adjust them as mentioned above:
      ```
      sudo nmcli connection down eth0-connection
      sudo nmcli connection delete eth0-connection
      sudo nmcli connection add type bridge ifname br0 con-name br0 stp no
      sudo nmcli connection add type ethernet ifname eth0 master br0
      sudo nmcli connection up br0
      ```
      If anything goes wrong and you want to revert, you can use these commands. Adjust with the correct ethernet device name (replace eth0 from ifname and for simplicity, use the same name in connection name):
      ```
      sudo nmcli connection down br0
      sudo nmcli connection delete br0
      sudo nmcli connection add type ethernet ifname eth0 con-name eth0
      sudo nmcli connection up eth0
      ```
      Instructions provided without warranty and in good faith. Use at your own risk.

  • @HumbertoRincon
    @HumbertoRincon 3 года назад

    Hello
    Just one question
    When did you / How was created the 'nm-bridge' in the Virtual Networks connections?
    I've watched the video a few times and it does not automagically create it, so that at 11:18 when you open the select box in Network source of the Manjaro VM it appears listed as 'Bridge nm-bridge: Host device enps30', so that you can select it and so on...
    Excellent exposition and explanation, by the way

    • @absprog
      @absprog  3 года назад +1

      Hello :-)
      This new option, the "nm-bridge" option, is exactly what we need "nmtui" for! That's the new bridge I defined, and connected the physical machine to it! Once the bridge was created, you can use it for your VMs.
      Btw, for virt-manager to "see" this new bridge, you have to turn it off then back on, that's what I did at 10:48

    • @wdadawdda1
      @wdadawdda1 3 года назад +1

      I have the same issue. After I created a bridge using nmtui just as you specified, I reload the virt-manager and go into the NIC for the virtual machine and it doesn't show the new bridge. I even restarted. The only options I have are Virtual network 'default': NAT, Bridge Device and Macvtap Device. but if I do brctl show, it shows up. Any ideas?

    • @yousefalhaj-salem5901
      @yousefalhaj-salem5901 3 года назад

      @@wdadawdda1 I have here the same issue, I am able to see the bridge at ip addr but at the virtual manager not showing up. any recommendations?

    • @dbardowell
      @dbardowell Год назад

      @@yousefalhaj-salem5901 Choose 'Bridge device' in Network source then type in 'nm-bridge' in the Device name and it should work.

  • @hassanawodi5888
    @hassanawodi5888 2 года назад

    I followed the instructions but lost internet on the host after deleting Ethernet in the nm configuration.

  • @jesus1453-v1b
    @jesus1453-v1b 2 года назад

    I can ping and access guest from the host and the same in the opposite direction

  • @Matthias-Bedard
    @Matthias-Bedard 2 года назад

    Just what I was looking for! Thank you my man!

    • @absprog
      @absprog  2 года назад +1

      Glad I could help!
      Cool channel you got there btw ;-)