#
Virtio installation
#
Install Bass OS VirtIO builds
On Debian / Ubuntu, installing the package virt-manager
would install the GUI manager, and everything that required for libvirt QEMU virtual machine as well as theirs dependencies.
Run the following command to install it:
sudo apt install virt-manager
Also, install packages according to the architecture:
#
Create and configure virtual machine using virt-manager
This section uses Debian 12 (bookworm) as example. The instructions for other OSes may differ.
Launch virt-manager
, by opening "Virtual Machine Manager" from the Application menu, or type it on Terminal.
#
Virtual machine creation and common configurations
On the menu bar, select File
> New Virtual Machine
. A new window named "New VM" will pop up.
#
Step 1 - Machine Architecture
Select Manual install
. Expand Architecture options
, select the correct architecture for the built image, as described below:
After selecting the correct architecture, click Forward
.
#
Step 2 - OS Details
Search and select Generic Linux 2022
on Select the operation system you are installing
field. Click Forward
.
#
Step 3 - CPU & Memory
Specify the number of CPU cores and the size of Memory that you're willing to allocate to the virtual machine.
Minimal RAM requirement is 2048 MiB. After filling these, click Forward
.
#
Step 4 - Storage
Untoggle Enable storage for this virtual machine
, because we will setup storage for this virtual machine later. Click Forward
.
#
Step 5 - Network
Specify the name that you would like to assign to the virtual machine,
and select the network which you wish to connect to in Network selection
menu, click Forward
.
Note: The virtio network service will have to be enabled at boot in order for this interface to work across host machine reboots. To enable the service, run
sudo systemctl enable libvirtd.service
andsudo systemctl start libvirtd.service
.
#
Select Chipset
or Machine
and Firmware
The virtual machine configuration window will pop up.
On Overview
tab, select Chipset
or Machine
and Firmware
type according to the architecture, as described below:
Click Apply
.
On Memory
tab, toggle Enable shared memory
, click Apply
.
#
Create virtual disks
- Click
Add Hardware
on the bottom left corner, new windowAdd New Virtual Hardware
will appear. - Select
Storage
, selectDisk device
onDevice type
menu, and selectVirtIO
onBus type
menu. - Fill in the disk size. {% include alerts/note.html content="Virtual A/B build (default) requires 13 GiB of size for the first disk, and A-only build requires 5 GiB of size for the first disk." %}
- Click
Finish
.setup_storage - Repeat the above steps, to add disk for storing userdata. Minimum size of 2 GiB is recommended.
#
Attach the installation image
- Click
Add Hardware
on the bottom left corner, new windowAdd New Virtual Hardware
will appear. - Select
Storage
. - If the installation image is in ISO9660 format, select
CDROM device
onDevice type
menu, and selectSATA
onBus type
menu; Otherwise, selectDisk device
onDevice type
menu, and selectUSB
onBus type
menu. - Expand
Advanced
, toggleReadonly
. - Select
Select or create custom storage
, select the installation image. - Click
Finish
.
- On
Boot Options
tab, toggleSATA CDROM 1
orUSB Disk 1
, clickApply
.
#
Configure virtual machine input
#
Tablet or Mouse
If the PC has a touchscreen and you would like to interact with the virtual machine using touchscreen, or if you are controlling from remote desktop, you shall use tablet input device for the virtual machine.
Both EvTouch and VirtIO types of tablet are supported.
Otherwise, use mouse input device.
Both PS/2 and USB types of mouse are supported.
#
Keyboard
Keyboard is always needed. Ensure there is a keyboard included in virtual machine hardware.
VirtIO, PS/2 and USB types of keyboard are supported.
#
Configure virtual machine graphics
#
Video
If
Video
tab is missing, add it using theAdd Hardware
button on the bottom left corner.On
Video
tab, selectVirtio
onModel
menu, clickApply
.If the PC and the remote desktop application (if you're viewing from it) supports 3D accelerated graphics, Toggle
3D acceleration
, clickApply
.(Optional) To specify custom display resolution, switch to
XML
tab, insert<resolution x="<Width>" y="<Height>"/>
, like this:<video> <model type="virtio" heads="1" primary="yes"> <acceleration accel3d="yes"/> <resolution x="1920" y="900"/> </model> <alias name="video0"/> <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/> </video>
Some rare host video cards may not display 3D accelerated graphics properly. If that happens, you shall disable it.
#
Display
- If
Display
tab is missing, add it using theAdd Hardware
button on the bottom left corner. - Open
Display
tab. - Select
None
onListen type
menu. - If
3D acceleration
is enabled onVideo
tab, toggleOpenGL
, and select an active host video card on the menu below ofOpenGL
toggle. - Click
Apply
.
#
Configure virtual machine sound
Sound card model AC97
(which is the default) is recommended. Other models shall work too, but may have issues.
aarch64 architecture does not have a sound card added by default. You will have to add it manually.
#
Install the new virtual machine
Click Begin Installation
on the top left corner, installation process will happen, and then the virtual machine will run.
#
Install Bass OS to the virtual machine
The virtual machine should boot into the boot manager menu of the installation image.
- Select the first option that begins with
Install Bass OS
using arrow keys, press Enter. - The virtual machine should enter Bass OS Recovery. You could select a option using arrow keys and enter it by pressing Enter.
- Select
Factory reset
>
- Select
Format data/factory reset
>
- Select
Format data
& Confirm.
- Tap 'esc' key or back button to go back to the main menu.
- Select
Apply update
>
- Select
Choose from INSTALL
orChoose from ISOIMAGE
>
- Select
lineage-*-{{ ERROR }}-UNOFFICIAL-<target>.zip
.
- When asked to reboot to recovery now, select 'No'
- Congratulations! You now have Bass OS installed in the virtual machine.
You could now select Reboot system now
to start using Bass OS.
#
Run Bass OS inside the virtual machine
The virtual machine should enter Bass OS boot menu.
If the virtual machine is configured with 3D acceleration enabled, boot Bass OS by selecting the first option.
Otherwise, select Advanced options
> Bass OS * (Kernel version *) (Swiftshader graphics)
.
If done correctly, Bass OS should start to boot up.
When boot is complete, you should be greeted with the onboarding app (Setup Wizard).