Nethence Newdoc Olddoc Lab Your IP BBDock  

Setting up XEN on Ubuntu

tested on /amd64 16.04, 17.04, 17.10

simple as hell

apt install xen-system-amd64
dpkg -l | grep qemu
dpkg -l | grep grub-xen
#grub-install /dev/sda
#update-grub
ls -l /etc/default/grub.d/xen.cfg
grep default= /boot/grub/grub.cfg
grep 'menuentry ' /boot/grub/grub.cfg
reboot

dmesg | grep xen
dmesg | grep xen | tee ~/dmesg.xen
systemctl list-unit-files | grep xen
systemctl status xen.service
systemctl status xend.service
systemctl status xendomains.service
systemctl status xenstored.service
xl dmesg | tee ~/dmesg.xl
xl list

restarting the services

systemctl list-unit-files | grep xen
systemctl status xen.service
systemctl status xend.service
systemctl status xendomains.service
systemctl status xenstored.service

systemctl stop xend.service
systemctl stop xendomains.service
systemctl stop xenstored.service

systemctl start xenstored.service
systemctl start xendomains.service
systemctl start xend.service

xl li

network bridge

cleaning-up and defining xenbr0 as bridge,

cd /etc/xen/
mv -i xend-config.sxp xend-config.sxp.dist
echo > xend-config.sxp <-EOF
(network-script 'network-bridge netdev=xenbr0')
EOF
sed '/^#/d; /^$/d' xend-config.sxp.dist >> xend-config.sxp

setting up the bridge,

cp -pi /etc/network/interfaces /etc/network/interfaces.dist
vi /etc/network/interfaces

iface IFNAME inet manual

auto xenbr0
iface xenbr0 inet dhcp
        bridge_ports eno1

rescuing NetBSD guests

vi /etc/default/grub

GRUB_CMDLINE_XEN="pv-linear-pt=true"

update-grub
grep linear /boot/grub/grub.cfg
reboot # or shutdown -r now to avoid some misuses on BSD

ref. https://xenbits.xen.org/xsa/advisory-240.txt

references


Home | GitHub | Docker Hub | Donate | Contact