Configure /etc/xen-tools/xen-tools.conf
# vi /etc/xen-tools/xen-tools.conf
...
# lvm = vg0
lvm = volGroup1
...
install-method = debootstrap
...
debootstrap-cmd = /usr/sbin/debootstrap
...
size = 80G # Root disk, suffix (G, M, k) required
memory = 2G # Suffix (G, M, k) required
#maxmem = 2G # Suffix (G, M, k) optional
swap = 3G # 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
...
gateway = [your_ip_gateway]
netmask = [your_ip_netmask]
broadcast = [your_ip_broadcast]
...
nameserver = 8.8.8.8
...
bridge = br0
...
passwd = 1
...
pygrub = 1
...
mirror = `xt-guess-suite-and-mirror --mirror`
...
You can create your guest by command
# xen-create-image --hostname=ubuntu1601 --ip=[your_ip] --size=67gb --vcpu=4 --dist=xenial --mirror=http://kambing.ui.ac.id/ubuntu
...
Setting up root password
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
All done
Logfile produced at:
/var/log/xen-tools/ubuntu1601.log
Installation Summary
---------------------
Hostname : ubuntu1601
Distribution : xenial
MAC Address : 00:16:3E:CC:B3:5E
IP Address(es) : [your_ip]
SSH Fingerprint : SHA256:lvyAvapyE6Z+NGghQrw2SbqanHuejwqhxpo7u38kw/s (DSA)
SSH Fingerprint : SHA256:oSZgN9IdMdfQNeOy0pnPk/wcr0JouNEH+1hdvl8hpfM (ECDSA)
SSH Fingerprint : SHA256:eY/7/FFhMLC6XV4Gk8RmMIbBJBaYLUkBr8yOHno/uXY (ED25519)
SSH Fingerprint : SHA256:Zc2CIx8fadkEhUN/PXL8M+DADAFXa9g0YMcfBd0dQVE (RSA)
Root Password : N/A
Note: you can choose closest ubuntu mirror.
Start your guest
Start your guest
# xl create /etc/xen/ubuntu1601.cfg
# xl list
# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 11815 24 r----- 653.2
ubuntu1601 23 2048 4 -b---- 16.4
ubuntu1601 23 2048 4 -b---- 16.4
State:
- r - running
- b - blocked
- p - paused
- s - shutdown
- c - crashed
- d - dying
Connect to your guest
# xl connect ubuntu1601
To make your guest start after boot/restart
# mkdir /etc/xen/auto
# ln -s /etc/xen/ubuntu1601.cfg /etc/xen/auto/ubuntu1601.cfg
References:
- http://blog.noviantech.com/2010/06/23/debian-kernels-and-tigon-tg3-firmware/
- https://wiki.debian.org/Firmware
- https://wiki.debian.org/LVM
- https://wiki.debian.org/LinuxRaidForAdmins
- https://ycnrg.org/xen-install-os-from-iso-pv/
- http://hwraid.le-vert.net/
No comments:
Post a Comment