Compare commits

...

3 Commits

3 changed files with 56 additions and 13 deletions

View File

@ -10,14 +10,7 @@ cat /proc/cpuinfo | grep -Ec '(vmx|svm)'
In this command, we are printing the contents of `/proc/cpuinfo`, then using grep for pattern matching. `vmx` is the name for Intel's virtualization and `svm` is AMD's. If the output is 0, virtualization is disabled in BIOS, otherwise it's on.
2. Check if KVM virtualization is enabled.
```shell
sudo apt install -y cpu-checker
kvm-ok
```
3. Install required packages
2. Install required packages
```shell
sudo apt install -y qemu-kvm virt-manager libvirt-daemon-system virtinst libvirt-clients
@ -29,7 +22,7 @@ sudo apt install -y qemu-kvm virt-manager libvirt-daemon-system virtinst libvirt
- virtinst A set of command-line utilities for provisioning and modifying virtual machines.
- libvirt-clients A set of client-side libraries and APIs for managing and controlling virtual machines & hypervisors from the command line.
4. Start and enable virtualization daemon
3. Start and enable virtualization daemon
```shell
sudo systemctl enable libvirtd
@ -37,13 +30,18 @@ sudo systemctl start libvirtd
sudo systemctl status libvirtd
```
5. Add user to KVM and libvirt group
> [!TIP]
> After viewing status of the `libvirtd` service, press `q` to exit out of the view.
4. Add user to KVM and libvirt group
```shell
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
```
6. Launch KVM Virtual Machine Manager from App Launcher.
5. Launch KVM Virtual Machine Manager from App Launcher.
7. <WILL ADD LATER>
6. `QEMU/KVM` should show _connecting_ followed by _connected_ in the app. Now, you can launch as many virtual machines as you want!
---

View File

@ -1 +0,0 @@
/run/media/overnion/persistence/Files/git/sppu-te-comp-content/CC/Notes/Unit 3 - Virtualization in Cloud Computing/Type 1 vs. Type 2 Hypervisors.pdf

View File

@ -0,0 +1,46 @@
# Steps for using Apex to create new accounts in Salesforce (for Developers)
This file contains instructions for Assignment-3.
---
## Code
In the Developer Console, after creating a new `Apex Class` with the name `user`, paste the below code:
```
public class user {
public static void createAccount(String accountName) {
// Create a new Account instance
Account newAccount = new Account();
newAccount.Name = accountName;
// Insert the Account into the database
try {
insert newAccount;
System.debug('Account created with Id: ' + newAccount.Id);
} catch (DmlException e) {
System.debug('Error creating account: ' + e.getMessage());
}
}
}
```
## Execution
- In the Developer Console itself, after pasting the above code, press `Ctrl+S` to save the changes, then
- Press `Ctrl+E` to open execute anonymous window,
- Paste the below content and hit `Execute`.
```apex
user.createAccount('Test-1');
user.createAccount('Test-2');
```
> [!TIP]
> Visit `Accounts` section from App Launcher to view the changes.
> [!NOTE]
> For account deletion, you have to do it directly from the `Accounts` section in App Launcher.
---