Linux Find Out If CPU Support Intel VT/AMD-V Virtualization For KVM

To find out if your Linux system’s CPU supports Intel VT/AMD-V virtualization for KVM, you can use the following commands: Check if your CPU supports virtualization: egrep -c ‘(vmx|svm)’ /proc/cpuinfo If the output is greater than zero, it means that your CPU supports virtualization. Check if the virtualization extensions are enabled in the BIOS: Reboot … Read more

Apple OS X: Write Protect File From Command Line

To write-protect a file on macOS (formerly OS X) from the command line, you can use the chflags command with the uchg flag. Here’s an example command to write-protect a file named “example.txt” in the current directory: sudo chflags uchg example.txt The sudo command is used to run the chflags command with administrative privileges, which … Read more

CentOS / Redhat: Setup NFS v4.0 File Server

Here is how you can set up an NFS v4.0 file server on CentOS or Red Hat: Install the NFS server software: sudo yum install nfs-utils Create a directory that you want to share as the NFS file system: sudo mkdir /path/to/nfs/shared/directory Change the ownership and permissions of the directory: sudo chown nfsnobody:nfsnobody /path/to/nfs/shared/directory sudo … Read more

KVM Virsh: Redirect FreeBSD Console To A Serial Port

To redirect the console of a FreeBSD virtual machine running on KVM to a serial port, you can use the virsh tool. The steps are as follows: Create a serial port in your virtual machine configuration file: <serial type=’pty’> <target port=’0’/> </serial> Define the virtual machine with the updated configuration file: virsh define /path/to/your/vm.xml Start … Read more

CentOS / Redhat: Install KVM Virtualization Software

To install KVM virtualization software on CentOS or Red Hat systems, you can follow these steps: Check if your system supports hardware virtualization by running the following command: grep -E –color ‘vmx|svm’ /proc/cpuinfo If the output shows the vmx or svm flags, your system supports hardware virtualization. Install the KVM and related packages by running … Read more

Linux NFS Mount: wrong fs type, bad option, bad superblock on fs2:/data3 Error And Solution

The error message “wrong fs type, bad option, bad superblock on fs2:/data3” typically indicates that the NFS share cannot be mounted because there is a problem with the file system type, mount options, or the superblock of the NFS share. Here are some possible solutions for this error: Check NFS server configuration: Make sure that … Read more