LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2019, 05:09 PM   #1
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,782

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
Is it possible to run KVM on a laptop - using Wifi?


I have a spare laptop, running Debian (with a Cinnamon GUI) on which I tried to setup KVM.
However, just following the instructions to create a bridge seems to be unsurmountable since I'm using Wifi, setup with NetworkManager.

This is just a trial go - is Wifi useless for things such as VM or QEMU?

Not keen on Virtual Box due to CPU overhead.
 
Old 12-26-2019, 06:14 PM   #2
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,692

Rep: Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717
What do you mean by "using Wifi"?

You can create a bridge, but as far as I know you can't plug your Wifi interface into the bridge. However this is not required for running VMs under KVM.
 
3 members found this post helpful.
Old 12-26-2019, 08:54 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,778
Blog Entries: 27

Rep: Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091Reputation: 5091
I have created VirtualBox VMs on my laptop via wireless. I would not recommend it for a production environment, but it's fine for experimentation.

The VM itself does not know of the wireless. It thinks it's using a wired connection from the host.
 
2 members found this post helpful.
Old 12-27-2019, 09:47 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,782

Original Poster
Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
So I still have to create a bridge?
KVM is a new thing for me - I think I'll squeeze the laptop into a corner and use a wired connection!

ssh seems like a good idea.

I've been following the instructions in https://www.linuxtechi.com/install-c...28linuxteci%29
 
Old 12-27-2019, 10:05 AM   #5
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,692

Rep: Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717
KVM (or rather, the libvirt daemon) creates a bridge named virbr0 by default, and plugs guests into that bridge (again, that's the default). This bridge is the "physical" implementation of the virtual network the guests are connected to. Some clever iptables jockeying enables the guests to dial out to the internet and the host to contact the guests, but the guests can't be reached from outside the host.

That's the default setup. You can also ask for isolated virtual networks that don't permit dialling out, or you can create your own bridge and ask KVM to use it for implementing a virtual network. And more. See https://libvirt.org/formatnetwork.html.

EDIT: Most of the above is explained as step 4 on the page you reference. However, step 4 plugs ens33 into the bridge, which you can't do with a wireless interface as far as I understand.

Last edited by berndbausch; 12-27-2019 at 10:11 AM.
 
1 members found this post helpful.
Old 12-29-2019, 07:51 AM   #6
jmgibson1981
Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 547

Rep: Reputation: Disabled
For what it's worth Virtualbox can run a bridge off of a wireless interface. Unless you have a severely under powered laptop, if just for experimentation it should be no problem to use. I don't think it's overhead is all that big (haven't run it in awhile. didn't used to be.)
 
Old 12-29-2019, 08:10 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,782

Original Poster
Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
I think that the problem with Virtual Box is that it doesn't recognise my video card, so it uses some kind of CPU intensive emulation mode.

Perhaps I need a more modern version.
 
Old 12-29-2019, 09:14 AM   #8
jmgibson1981
Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 547

Rep: Reputation: Disabled
I don't think anything will get video acceleration unless you can do pass through. I'm not sure what's required but I doubt a laptop can do that.

https://wiki.archlinux.org/index.php...rough_via_OVMF
 
1 members found this post helpful.
Old 12-29-2019, 10:20 AM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,782

Original Poster
Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
This is getting a bit out of control.

I would only install Linux distros into this spare machine and I don't need a VM to do that!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 11:46 AM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 07:45 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 03:05 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 01:00 AM
KVM-85 and using SlackBuilds kvm (83) script Chuck56 Slackware 2 04-22-2009 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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