Friday, July 16, 2021

Disabling selinux from kernel command line

 

Disable selinux from kernel command line:

Add selinux=0 as part of the kernel command line. This should disable selinux temporarily
which should in turn help booting the system. 



Saturday, June 26, 2021

libvirt issue - cannot undefine domain with nvram



Problem: 

virsh -c qemu:///system undefine <domain name> 

error: Failed to undefine domain <domain name>

error: Requested operation is not valid: cannot undefine domain with nvram


Solution:

$ virsh -c qemu:///system undefine --nvram <domain name> 

Domain <domain name> has been undefined


Thursday, May 13, 2021

Darwin is the base for macOS and allied Apple OS



Darwin is an open-source Unix-like operating system first released by Apple Inc. in 2000.

It is composed of code derived from
 NeXTSTEP, BSD, Mach, and other free software projects code, as well as developed by Apple.

macOS is (along with iOS and tvOS) powered by a piece of open source, BSD-based software called Darwin. 

https://en.wikipedia.org/wiki/Darwin_(operating_system)

Tuesday, April 20, 2021

Cleaning up libvirt images

 

 

Running out of storage in / 

 

I was using libvirt + vm images and it is filling up /var/lib/libvirt/images/.

 

So to delete the vm & its corresponding image:

(You are going to delete the *data* , take backup if required)

 # virsh list --all 

# virsh undefine <domain  name>  --remove-all-storage

 

For more details:

# man virsh 


Thursday, March 11, 2021

online IDE

 

Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages.

 

https://repl.it/