xen host // debian dom0

deploy

lsb_release -a

apt update

# debian
apt install xen-linux-system-amd64

# ubuntu
apt install xen-system-amd64 bridge-utils vlan
apt install linux-image-extra-virtual
# linux-image-virtual
ls -lh /vmlinuz
ls -lh /boot/vmlinuz # goes generic

#apt install qemu
dpkg -l | grep qemu
dpkg -l | grep grub-xen

ls -lh /boot/xen*
ln -sf boot/xen-4.16-amd64.gz /xen.gz
#dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
update-grub

casual serial console will be gone and will become hvc0

systemctl disable serial-getty@ttyS0

network setup

see network-ubuntu

ready to go

shutdown -r now

and check once rebooted

cat /proc/cmdline
dmesg | grep xen
xl dmesg
xl info | grep xen_commandline
xl list

operations

status

systemctl list-unit-files | grep xen
ls -lhF /etc/init.d/xen*
systemctl status xen.service
systemctl status xend.service
systemctl status xendomains.service
systemctl status xenstored.service

restart all

systemctl stop xen.service
systemctl stop xenstored.service
systemctl start xenstored.service
systemctl start xen.service

Additional notes

deprecated

allow NetBSD guests and switch to Debian network scripts

cp -i /etc/default/grub.d/xen.cfg /etc/default/grub.d/xen.cfg.dist
vi /etc/default/grub.d/xen.cfg

GRUB_CMDLINE_XEN="pv-linear-pt=true"

update-grub
grep linear /boot/grub/grub.cfg

and disable save/restore, which breaks NetBSD guests

systemctl stop xendomains.service
systemctl disable xendomains.service

resources

Xen Security Advisory CVE-2017-15595 / XSA-240 https://xenbits.xen.org/xsa/advisory-240.txt

Xen https://help.ubuntu.com/community/Xen

Xen https://wiki.debian.org/Xen


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun