use existing disk image
- create a vm
- note down the vm id, disk location and disk size.
- enter directory and make sure size is correct
- replace the disk.raw file
- enter command:
qm rescan
# Linux: /home/me/.ssh/config | |
# macOS: /Users/me/.ssh/config | |
# Windows: C:\Users\me\.ssh\config | |
# macOS - localhost - fish shell | |
HOST localhost | |
Hostname localhost | |
User me | |
Port 22 | |
IdentityFile /Users/me/.ssh/id_ed25519 |
/** | |
* get a random Integer number ∈ [minValue, maxValue) | |
*/ | |
public Integer getRandomNumberBetween(Integer minValue, Integer maxValue) { | |
if (minValue > maxValue) { | |
// swap position | |
Integer tmp = minValue; | |
minValue = maxValue; | |
maxValue = tmp; |
qm rescan
=> /etc/samba/credentials
username=myuser123
password=xxxxxxxx
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 400 ~/.ssh/authorized_keys
Get-Disk | |
Get-Partition | |
Remove-PartitionAccessPath -DiskNumber YOUR_DISK_NUMBER -PartitionNumber YOUR_PARTITION_NUMBER -Accesspath CURRENT_DRIVE_LETTER: |
Admin powershell:
Repair-WindowsImage -Online -ScanHealth
Repair-WindowsImage -Online -RestoreHealth
/etc/default/grub should contain: GRUB_RECORDFAIL_TIMEOUT=10
sudo apt install xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp