You are not logged in.

#21 2018-03-30 04:39:06

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Virtual BunsenLabs with QEMU & KVM

Head_on_a_Stick wrote:

I just meant to point out that VMs aren't inherently more secure and should not be used for that purpose (IMO).

no, i meant the caching / performance stuff you were talking about.
anyhow, i'm tackling this now.
i was hoping i could jump in with a gui like virtualbox straight away, but it balks (tried 3 different ones on archlinux now - one is outdated, one asks for a gnome authentication agent, and one simply doesn't do anything).
i guess i'll have to learn this from the ground up.

Offline

#22 2018-03-30 12:09:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Virtual BunsenLabs with QEMU & KVM

ohnonot wrote:

i was hoping i could jump in with a gui like virtualbox straight away, but it balks (tried 3 different ones on archlinux now - one is outdated, one asks for a gnome authentication agent, and one simply doesn't do anything).

Yes it's all rather confusing, there are three ways to run QEMU:

  1. directly, as I have done in this thread

  2. libvirt, a command-line abstraction tool

  3. virt-manager, a GUI abstraction tool

I get confused by the abstraction layers and I've never managed to make them work to my satisfaction but the Debian wiki has a guide:

https://wiki.debian.org/KVM

^ This includes information for networking using BunsenLabs as a host, my OP was based on BL as a guest.

Offline

#23 2018-03-30 13:06:47

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Virtual BunsenLabs with QEMU & KVM

thanks again.
turned out there was something wrong with the bunsenlabs alpha6 iso - it would not boot (although the md5sum was correct).
i re-downloaded it, and now everything is dandy.
virt-manager is a bit heavy for my taste, but aqemu seems sufficient, and not outdated as i previously thought.

now i need to make qemu send audio to alsa instead of pulseaudio.

Offline

#24 2018-03-30 13:11:17

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Virtual BunsenLabs with QEMU & KVM

ohnonot wrote:

i need to make qemu send audio to alsa instead of pulseaudio.

Unfortunately, QEMU now requires PulseAudio to produce sound, I had to rebuild the package in my Arch system without the PA depends roll

Offline

#25 2018-03-31 04:59:29

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Virtual BunsenLabs with QEMU & KVM

the aforementioned aqemu has an option to connect to the hosts alsa instead of pa.
tested, i have sound.
afaiu aqemu is just a frontend for qemu, so it should be possible with qemu proper.

Offline

#26 2018-03-31 11:50:23

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Virtual BunsenLabs with QEMU & KVM

ohnonot wrote:

tested, i have sound

Is this in Arch?

How did you install QEMU without PA and how do you stop PA from starting if it is installed?

Can you please post the output of this command with aqemu running the ALSA backend:

pgrep -a qemu

I am curious which flags are being passed 8)

Offline

#27 2018-03-31 14:11:06

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Virtual BunsenLabs with QEMU & KVM

here you go:

$ pacman -Ss pulse audio | grep installed
extra/libao 1.2.2-2 [installed]
$ pgrep -a qemu
24275 aqemu
24329 /usr/bin/qemu-system-x86_64 -monitor stdio -soundhw ac97 -k fi -machine accel=kvm -m 2048 -snapshot -hda /home/data/vm/Bunsenlabs_Helium/img -boot order=adc,menu=on -net nic,vlan=0 -net user,vlan=0 -rtc base=localtime -no-quit -name "Bunsenlabs Helium" -vnc :10

Offline

#28 2018-11-19 07:42:52

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Virtual BunsenLabs with QEMU & KVM

A note for beginners with QEMU (as I am): virt-manager seems to me to be doing an excellent job of creating and running QEMU VMs with usable default configurations. It's easy to tweak or add things, but you get Spice, virtio and QXL right off, and performance seems pretty good. Just be sure to install spice-vdagent on the guest (if it's Linux). It makes a huge difference to the user interface.

ohnonot wrote:

virt-manager is a bit heavy for my taste

Of my 8gb RAM, virt-manager is using 3.2% compared with 6.4 for Firefox and 13.2 for the currently running VM. Or did you mean CPU usage, or package dependencies?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#29 2018-11-21 06:48:40

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Virtual BunsenLabs with QEMU & KVM

johnraff wrote:
ohnonot wrote:

virt-manager is a bit heavy for my taste

Of my 8gb RAM, virt-manager is using 3.2% compared with 6.4 for Firefox and 13.2 for the currently running VM. Or did you mean CPU usage, or package dependencies?

i had completely forgotten about these efforts of mine.
i just had a look; not sure what the problem with virt-manager was back then.
maybe i was still trying to avoid gtk3 on my system, something i have since given up on.
but i had another look and it would still want to install an awful lot of packages.

Offline

#30 2018-11-21 07:38:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Virtual BunsenLabs with QEMU & KVM

ohnonot wrote:

virt-manager...
...it would still want to install an awful lot of packages.

Undeniable, but I didn't notice any daemons or services - unless you're starting from a very lean system.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB