vm-ubuntu-docker/ServerUbuntu.md

1.3 KiB

Server Ubuntu

Ubuntu

Instalace

  1. Iso image

  2. Vytvořit VM -> nainstalovat

  3. Po instalaci doplnit .bashrc

    PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ '
    alias lo='exit'
    
  4. sudo bey hesla sudo visudo

    # Allow user maska to execute sudo without password
    maska ALL=(ALL) NOPASSWD:ALL
    

Qemu-guest-agent

  1. Povolit pro VM agenta v GUI VM / Options / GEMU Guest Agent
    nebo pomocí CLI qm set VMID --agent 1

  2. Nainstalovat agenta do VM

    sudo apt-get install qemu-guest-agent
    
  3. Spustit agenta

    sudo systemctl start qemu-guest-agent
    
  4. Nastavit autostart (pokud není)

    sudo systemctl enable qemu-guest-agent
    

DNS

Zatím nevím, proč nefunguje korektně. Nastavím /etc/resolv.conf ručně.
bylo: resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

```shell
sudo -i
rm -f /etc/resolv.conf
cat > /etc/resolv.conf << EOF
nameserver 192.168.88.101
nameserver 192.168.88.1
domain habad.eu
search habad.eu
EOF
```