VM Live Mode: Alternative ro-mode-init Configuration

The ro-mode-init
automatically enables live-mode if it detects that the disk is set to read-only.
This is an alternative to the default grub-live based method documented on VM Live Mode.
Contents
Introduction[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Introduction
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Introduction|Introduction]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Introduction)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Introduction)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Introduction]Introduction[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
ro-mode-init
is currently less tested than grub-live
(Live Mode).
- Does not work on newer builds of Kicksecure because these come with dracut by default.
- This is for systems with initramfs-tools only.
ro-mode-init has not been ported to dracut yet. Theoretically this probably possible but this has not happened yet.
Preliminary Steps[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Preliminary_Steps
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Preliminary_Steps|Preliminary Steps]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Preliminary Steps](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Preliminary_Steps)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Preliminary Steps](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Preliminary_Steps)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Preliminary_Steps]Preliminary Steps[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
1. Backup.
- Option 1: Create a snapshot of your VM; or
- Option 2: Alternatively backup the
/boot
folder.
Click = Copy Copied to clipboard! sudo cp -a /boot /boot.back
2. Install ro-mode-init
.
Install package(s) ro-mode-init
following these instructions
1 Platform specific notice.
- Kicksecure: No special notice.
- Kicksecure-Qubes: In Template.
2 Update the package lists and upgrade the system.
Click = Copy Copied to clipboard! sudo apt update && sudo apt full-upgrade
3 Install the ro-mode-init
package(s).
Using apt
command line --no-install-recommends
option is in most cases optional.
Click = Copy Copied to clipboard! sudo apt install --no-install-recommends ro-mode-init
4 Platform specific notice.
- Kicksecure: No special notice.
- Kicksecure-Qubes: Shut down Template and restart App Qubes based on it as per Qubes Template Modification
.
5 Done.
The procedure of installing package(s) ro-mode-init
is complete.
3. Update initial ramdisk. [1]
Click = Copy Copied to clipboard! sudo update-initramfs -u
4. Set the VM disk to read-only.
The read-only VM setting is necessary (see below), otherwise the VM disk will always boot into persistent mode.
Read-only VM Setting[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_VM_Setting
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Read-only_VM_Setting|Read-only VM Setting]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Read-only VM Setting](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_VM_Setting)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Read-only VM Setting](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_VM_Setting)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_VM_Setting]Read-only VM Setting[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
VirtualBox[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#VirtualBox
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#VirtualBox|VirtualBox]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#VirtualBox)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#VirtualBox)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#VirtualBox]VirtualBox[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Read-only disk on VirtualBox[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_VirtualBox
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Read-only_disk_on_VirtualBox|Read-only disk on VirtualBox]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Read-only disk on VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_VirtualBox)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Read-only disk on VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_VirtualBox)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_VirtualBox]Read-only disk on VirtualBox[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
To boot into live mode, apply the following steps.
Set the VirtualBox virtual harddrive to read-only.
1. Power off the machine.
2. Open setting window of the machine and set the type of storage device controller from AHCI
to LsiLogic SAS
.
VirtualBox
→ Settings
→ Storage
→ Type:
LsiLogic SAS
→ OK
3. Learn the syntax.
Do not run the following command. Only look at it.
TODO research: lsilogicsas
might no longer work because nowadays using IntelAhci. So commands below need adjustment. How? This is difficult because undocumented by VirtualBox.
VBoxManage setextradata vmname "VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly" 1
Replace vmname
with the name of the actual VM name.
4. On the command line run.
Kicksecure Xfce example:
Click = Copy Copied to clipboard! VBoxManage setextradata Kicksecure-Xfce "VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly" 1
Kicksecure CLI example:
Click = Copy Copied to clipboard! VBoxManage setextradata Kicksecure-CLI "VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly" 1
Read-write disk on VirtualBox[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_VirtualBox
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Read-write_disk_on_VirtualBox|Read-write disk on VirtualBox]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Read-write disk on VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_VirtualBox)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Read-write disk on VirtualBox](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_VirtualBox)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_VirtualBox]Read-write disk on VirtualBox[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
To boot into read-write mode again, simply revert this change.
- Power off the machine.
- From the command line run.
Use the syntax below.
Click = Copy Copied to clipboard! VBoxManage setextradata vmname "VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly"
Replace vmname
with the name of the actual VM name.
KVM[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#KVM
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#KVM|KVM]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#KVM)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#KVM)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#KVM]KVM[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Read-only disk on KVM[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_KVM
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Read-only_disk_on_KVM|Read-only disk on KVM]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Read-only disk on KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_KVM)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Read-only disk on KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_KVM)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-only_disk_on_KVM]Read-only disk on KVM[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
To boot into live mode, apply the following steps:
- Power off the machine.
- Set the hard disk to read-only in the virt-manager GUI.
- Power on the machine and select to boot into live mode.
Read-write disk on KVM[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_KVM
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Read-write_disk_on_KVM|Read-write disk on KVM]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Read-write disk on KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_KVM)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Read-write disk on KVM](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_KVM)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Read-write_disk_on_KVM]Read-write disk on KVM[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
To boot into normal mode again, simply revert this change:
- Power off the machine.
- Set the hard disk to read-write in the virt-manager GUI.
- Power on the machine and boot into read-write mode.
Live Mode Indicator Systray[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Live_Mode_Indicator_Systray
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Live_Mode_Indicator_Systray|Live Mode Indicator Systray]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Live Mode Indicator Systray](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Live_Mode_Indicator_Systray)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Live Mode Indicator Systray](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Live_Mode_Indicator_Systray)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Live_Mode_Indicator_Systray]Live Mode Indicator Systray[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
https://github.com/Kicksecure/desktop-config-dist/blob/master/usr/share/livecheck/livecheck.sh
Debugging[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Debugging
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Debugging|Debugging]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Debugging](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Debugging)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Debugging](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Debugging)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Debugging]Debugging[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
An inconsistent filesystem will likely result in errors during booting in live mode. For instance, inconsistencies can arise when the VM is killed instead of performing a normal shutdown in persistent mode. Therefore to ensure it is consistent, run fsck
in persistent mode. Debian automatically does this during boot. VMs running in live mode can be killed without problems.
In the case of non-fsck
related errors using ro-mode-init
(like dropping to an initramfs shell), add the following to the kernel command line/GRUB menu for easier debugging:
Click = Copy Copied to clipboard! debug=1 break=init-premount
Footnotes[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Footnotes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[VM_Live_Mode/ro-mode-init#Footnotes|Footnotes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Footnotes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Footnotes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/VM_Live_Mode/ro-mode-init#Footnotes]Footnotes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.


Copy as Wikitext

for Discourse, reddit, GitHub

Copy as Markdown

Copy as phpBB Click below ↴ = Open social URL with share data











We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!