Child pages
  • How to create a XEN dom0 with Buster
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Follow these instructions to create a XEN dom0 from scratch that uses pvgrub.

Prerequisites

  1. Debian Buster
  2. Internet

Create dom0

  1. Install the xen-system package:

    apt-get install xen-system-amd64 -y


  2. Create the bridged network:

    apt-get install bridge-utils -y
    cat /etc/network/interfaces.d/xen
    auto xenbr0
    iface xenbr0 inet dhcp
    bridge_ports enp2s0
  3. Install and configure xen-tools:

    apt-get install xen-tools
    ##Edit /etc/xen-tools/xen-tools.conf
    
    dir = /home/bl/ ##Change to your normal user
    passwd = 1      ##This enables a private root password for each domU
  4. Create a trial domU:

    xen-create-image --hostname trial.blue.av --vcpus 2 --pygrub --dist buster
    xen create /etc/xen/trial.blue.av.cfg

Use PVgrub instead of pygrub

  1. Boot the image using pygrub first then run these commands:

    mkdir /boot/grub
    apt-get install linux-image-amd64
    apt-get install grub2-common
    update-grub
  2. Destroy the container:
    xen destroy $id
  3. Change parameters in the config file:

    ##Change from 
    
    bootloader = 'pygrub'
    
    ##To 
    
    kernel          = /usr/lib/grub-xen/grub-x86_64-xen.bin
  4. Recreate the container:
    xen create /etc/xen/trial.blue.av.cfg




  • No labels