Create the „Ubuntu Server“-VM using KVM on top of the „Ubuntu Desktop“-VM
Run the „Virtual Machine Manager“
Create a new virtual Machine:
(1) Create a new virtual Machine
(2) Select the Installation ISO
* and deselect „auto OS Detection“
(3) Choose Memory and CPU Settings
(4) Create a virtual Hard-Disk for the VM
(5) Give a name to the VM
Boot the KVM-VM („Ubuntu Server“)
Basic Setup:
- Language: Englisch
- my territory: other/Europe/Germany
- locale: en_US.UTF_8
- Keyboard: German
- hostname: ubuntu-server
- user / password
- no home-directory encryption
- timezone Europe/Berlin
- use entire virtual disk (no need for „LVM…“ i think)
- no HTTP-Proxy
- no automatic updates
- [x] SSH-Server
- install GRUB
After the first login, as always:
sudo apt-get update && sudo apt-get upgrade –y
sudo reboot
Enable the Virtual-„Console“-Port of the Ubuntu-Server-VM
- enable a virtual „CON“ serial-port at the linux vm
sudo joe /lib/systemd/system/ttyS0.service
Example-Script for the 16.04 System-CTL Service:
[Unit] Description=Serial Console Service [Service] ExecStart=/sbin/getty -L 9600 ttyS0 vt102 Restart=always [Install] WantedBy=multi-user.target
Reload systemctl, enable the TTY-service and then start it:
sudo systemctl daemon-reload
sudo systemctl enable ttyS0
sudo systemctl start ttyS0
Verify the service state:
user@ubuntu-server:~$ sudo systemctl status ttyS0
● ttyS0.service - Serial Console Service
Loaded: loaded (/lib/systemd/system/ttyS0.service; enabled; vendor preset: en
Active: active (running) since Sat 2018-02-03 20:21:20 CET; 1h 19min ago
Main PID: 831 (login)
Tasks: 0
Memory: 672.0K
CPU: 196ms
CGroup: /system.slice/ttyS0.service
‣ 831 /bin/login --
Add your „Network Application“ to the VM:
I want to use my Service-Container for network-management (Centralized access to device-configuration and other state-information using NAPALM and Linux: SNMP with Python ):
sudo apt-get install -y joe
sudo apt-get install –y libsnmp-dev snmp-mibs-downloader
sudo apt-get install –y gcc python-dev python-pip libssl-dev libffi-dev python-cffi
pip install easysnmp
pip install napalm
That’s all
Shutdown the VM