Add fedora-incus.md

This commit is contained in:
root
2026-07-06 18:49:31 +03:00
parent 3a91140429
commit 308eb47077
2 changed files with 23 additions and 4 deletions
+20
View File
@@ -0,0 +1,20 @@
# Fedora incus
## Create
```bash
incus launch images:fedora/44 fc-test -d eth0,hwaddr=00:16:3e:00:09:66 -d eth0,host_name=veth66
```
## Enter
```bash
incus shell cont-name
```
## Install packages
```bash
dnf install bc git jq mc openssh-server tmux net-tools cmp-profile
systemctl disable --now sshd.socket && systemctl enable --now sshd
```
+3 -4
View File
@@ -35,7 +35,6 @@ dnf repoquery --duplicates
dnf remove --duplicates
# xz2
dnf list --extras
dnf remove $(dnf repoquery --extras --exclude=kernel,kernel-\*,kmod-\*)
@@ -43,8 +42,8 @@ dnf remove $(dnf repoquery --extras --exclude=kernel,kernel-\*,kmod-\*)
```
```
sudo rm /boot/*rescue*
sudo kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz"
rm /boot/*rescue*
kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz"
sudo dnf install dracut-config-rescue
dnf install dracut-config-rescue
```