Add fedora-incus.md
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user