Compare commits
No commits in common. "3828895ac2b8480dd3b0fba60bb3bd5b8284ce68" and "655eec922ee8b926ce8a631c6828bc80d663e0ec" have entirely different histories.
3828895ac2
...
655eec922e
@ -10,7 +10,14 @@ 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.
|
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. Install required packages
|
2. Check if KVM virtualization is enabled.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo apt install -y cpu-checker
|
||||||
|
kvm-ok
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Install required packages
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install -y qemu-kvm virt-manager libvirt-daemon-system virtinst libvirt-clients
|
sudo apt install -y qemu-kvm virt-manager libvirt-daemon-system virtinst libvirt-clients
|
||||||
@ -22,7 +29,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.
|
- 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.
|
- libvirt-clients – A set of client-side libraries and APIs for managing and controlling virtual machines & hypervisors from the command line.
|
||||||
|
|
||||||
3. Start and enable virtualization daemon
|
4. Start and enable virtualization daemon
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo systemctl enable libvirtd
|
sudo systemctl enable libvirtd
|
||||||
@ -30,18 +37,13 @@ sudo systemctl start libvirtd
|
|||||||
sudo systemctl status libvirtd
|
sudo systemctl status libvirtd
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!TIP]
|
5. Add user to KVM and libvirt group
|
||||||
> After viewing status of the `libvirtd` service, press `q` to exit out of the view.
|
|
||||||
|
|
||||||
4. Add user to KVM and libvirt group
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo usermod -aG kvm $USER
|
sudo usermod -aG kvm $USER
|
||||||
sudo usermod -aG libvirt $USER
|
sudo usermod -aG libvirt $USER
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Launch KVM Virtual Machine Manager from App Launcher.
|
6. Launch KVM Virtual Machine Manager from App Launcher.
|
||||||
|
|
||||||
6. `QEMU/KVM` should show _connecting_ followed by _connected_ in the app. Now, you can launch as many virtual machines as you want!
|
7. <WILL ADD LATER>
|
||||||
|
|
||||||
---
|
|
||||||
|
1
Practical/Assignment-2/Type 1 vs. Type 2 Hypervisors.pdf
Symbolic link
1
Practical/Assignment-2/Type 1 vs. Type 2 Hypervisors.pdf
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/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
|
@ -1,46 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
---
|
|
Loading…
x
Reference in New Issue
Block a user