XEN host telepítése
By Honka Adam in 2023.07.01.
# feltettem egy ubuntu 16.04 gépet
# feltettem a xen-t
root@xenhost:~# apt-get install xen-system-amd64
root@xenhost:~# apt-get install bridge-utils
root@xenhost:~# vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto br0
iface br0 inet dhcp
bridge_ports eno1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
root@xenhost:~# reboot
root@xenhost:~# vim /etc/xen-tools/xen-tools.conf
lvm = store
install-method = debootstrap
#
##
# Disk and Sizing options.
##
#
size = 4G # Root disk, suffix (G, M, k) required
#memory = 512M # Suffix (G, M, k) required
memory = 1G # Suffix (G, M, k) required
#maxmem = 1G # Suffix (G, M, k) optional
swap = 512M # Suffix (G, M, k) required
# noswap = 1 # Don't use swap at all for new systems.
fs = ext4 # Default file system for any disk
dist = `xt-guess-suite-and-mirror --suite`
# Default distribution is determined by Dom0's distribution
image = full # Specify sparse vs. full disk images (file based images only)
#
gateway = 192.168.2.1
netmask = 255.255.255.0
broadcast = 192.168.2.255
nameserver = 192.168.2.1
bridge = br0
passwd = 1
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`
pygrub = 1
mirror = `xt-guess-suite-and-mirror --mirror`
ext4_options = noatime,nodiratime,errors=remount-ro
ext3_options = noatime,nodiratime,errors=remount-ro
ext2_options = noatime,nodiratime,errors=remount-ro
xfs_options = defaults
reiserfs_options = defaults
btrfs_options = defaults
output = /etc/xen/vm
extension = .cfg
nohosts = 1
# Példa gép létrehozása
xen-create-image --dist=xenial --hostname=xenteszt --ip=192.168.2.4 --mirror=http://archive.ubuntu.com/ubuntu
Comments (0)