LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2022, 03:44 AM   #1
krullebolle
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Rep: Reputation: Disabled
Best way to setup a VM on boot, in a way the user does not suspect he is in a VM?


Hello everybody!


this is about a small hobby project. For fun I have made a sort of quiz, searchpuzzle in tinkerOS. I just love the throwback to 16 color and the beep sounds. The intention is friends get a laptop with the puzzle on, need to solve the puzzle whilst being annoyed the heck with the sounds.

The whole tinkerOS thing is already made. At first I wanted to put tinkerOS on bare metal, but after reading how nothing is supported from keeping the laptop from overheating, I deemed it wise to put it in a VM.
Originally I made the whole thing in virtualbox, being familiar with it. I have a laptop to `tinker` with.

Where it is at now:
So now I am busy trying to get a VM running on boot. And are drowning in a sea of options. Just for learning, I decided to go for Arch, no GUI, no DE, then put QEMU headless on it (because you know, learning new stuff). After realizing QEMU uses GTK, went for the standard QEMU. I thought I got all the dependencies, but on trying to start QEMU I still get "GTK initialisation failed".

Now this thing is getting at a point where it is getting waaay too time consuming, for something I originally thought was gonna be pretty straightforward... (in my head). I`m pretty sure that if I would use a standard ubuntu, with DE, I could configure virtualbox pretty easy to start on boot and have the whole thing up and running in an hour or so.

But... that would be the easy way out. And bloat ( I know, you linux guys screwed me up good ever since I got my bootup time reduced to 10s with Arch), bloat would also give away the fact that tinkerOS is running on a VM, because of the long boot time...

Considerations:
- tinkerOS uses the 'beep' or built-in pcspkr on the motherboard, hassle to configure in virtualbox and qemu (but not impossible)
- trying to keep boot time as low as possible
- tried using qemu, because of better integration with linux and hardware support? (so it was said online... )

What the hell is your question?
In what way would you think it is best to setup this whole thing without losing days configuring stuff? QEMU of virtualbox? DE or not?
Am asking because I think I`m also overlooking certain stuff.. and there are so many options out there...


Things that will be done after VM setup:
- suppress boot options in GRUB
- suppress visual boot sequence in plymouth on startup

Edit:
I am only now seeing the virtualisation forum and immediately are learning about type 1 and type 2 hypervisors... of which existence I was unaware.. Hence my question. It seems I need to run a type 1 hypervisor? Which would be most suitable for an old laptop? Xen? Proxmox? Or do these things take a long time to setup?

Last edited by krullebolle; 03-28-2022 at 04:48 AM.
 
Old 03-28-2022, 01:20 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I don't think you can do this without a graphical interface and/or peripherals.
Doesn't need to be a full-blown DE though.
Just autostart Xorg, starting virtualbox or QEMU or whatever in full screen. Look at kiosk setups for inspiration.
 
1 members found this post helpful.
Old 03-31-2022, 11:26 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
You are most likely to need a Type-2 hypervisor, which runs on a Linux host OS. If you already had it running on VirtualBox, what prompted you to look for other alternatives?

As for the question in the title of your thread ... a guest can always determine (in various ways ...) that it is running in a VM. Many guests use this awareness to customize their behavior to work cooperatively with the VM monitor that they know is under there.

Last edited by sundialsvcs; 03-31-2022 at 11:28 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor will not turn on after resume from suspect chucklepie Linux - Newbie 3 02-06-2022 03:57 PM
[SOLVED] Suspect sever break-in with user 'sshd' on Ubuntu 12.04, Ebury? vRanger Linux - Security 12 06-09-2014 10:48 AM
sendmail not renaming suspect q- files ghughes5669 Linux - Server 1 10-31-2012 08:51 AM
Segmentation fault during Slackware setup. Suspect hardware. JackFlanders Linux - Hardware 4 09-23-2004 04:20 PM
Not able to connect to the internet (I suspect my network card to be the problem) Moominpeikko Linux - Networking 2 08-31-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 AM.

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