xen-tools
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| xen-tools [2015/08/14 16:05] – [Les disques des domU] pascal | xen-tools [2023/07/04 10:55] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| ==== Les disques des domU ==== | ==== Les disques des domU ==== | ||
| - | | # dir = /home/xen | Pour définir le répertoire pour les fichiers si on utilise ce procédé pour les disques | + | | dir | /home/xen | Répertoire de stockage des disques |
| - | |image | + | |image |
| - | | lvm = vg0 | Groupe de volume des partitions lvm si on utilise | + | | lvm | vg0 | Nom du groupe |
| - | |ext4_options | + | | size | 4G | Taille |
| - | |ext3_options | + | |swap | 256M | Taille du swap | |
| - | |ext2_options | + | Le type de disque est choisi lors du lancement de la commande de création. Il est possible de créer plusieurs disques ou partitions via un fichier |
| - | |xfs_options | + | |
| - | |reiserfs_options = defaults| | | + | |
| - | |btrfs_options | + | |
| - | |fs = ext4 | file system utilisé | | + | |
| - | | size | + | |
| - | |swap = 256M | + | |
| - | ==== Installation ==== | + | |
| - | | install-method = debootstrap | Méthode d' | + | |
| - | |# cache = no|| | + | |
| - | |# cachedir = / | + | |
| - | |dist = `xt-guess-suite-and-mirror --suite`| Permet d' | + | |
| - | |kernel = / | + | |
| - | |initrd = / | + | |
| - | |# pygrub = 1|| | + | |
| - | |# arch = [i386|amd64]|| | + | |
| - | |mirror = `xt-guess-suite-and-mirror --mirror`|| | + | |
| - | |# apt_proxy =|| | + | |
| - | ==== Caractéristiques des domU ==== | + | |
| - | | memory = 256M | Taille mémoire, peut être configurée | + | |
| - | |# output | + | |
| - | |# extension = .cfg|| | + | |
| - | ==== Réseau ==== | + | |
| - | |# gateway | + | |
| - | |# netmask | + | |
| - | |# broadcast | + | |
| - | |# dhcp = 1|| | + | |
| - | |# nameserver = 192.168.1.1|| | + | |
| - | |# bridge = xendmz|| | + | |
| - | |# copyhosts = 0 # default|| | + | |
| - | ==== Utilisateurs ==== | + | |
| - | |# genpass = 0|| | + | |
| - | |# genpass_len = 8|| | + | |
| - | |# hash_method = sha256|| | + | |
| - | |# passwd = 1|| | + | |
| - | |# accounts = 1|| | + | |
| - | ==== Autres ==== | + | |
| - | |# boot = 1|| | + | |
| - | |# serial_device = hvc0 # | + | |
| - | |# serial_device = tty1|| | + | |
| - | |# disk_device = xvda # | + | |
| - | |# disk_device = sda|| | + | |
| - | ==== Exemple ==== | + | La taille peut être disque (size) et du swap est plutôt fixée lors du lancement de la commande de création. |
| - | < | + | |
| - | ## | + | |
| - | # / | + | |
| - | ## | + | |
| - | # | + | |
| - | # This is the global configuration file for the scripts included | + | |
| - | # within the xen-tools package. | + | |
| - | # | + | |
| - | # For more details please see: | + | |
| - | # | + | |
| - | # http:// | + | |
| - | # | + | |
| - | ## | + | |
| - | ## | ||
| - | # | ||
| - | # File Format | ||
| - | # ----------- | ||
| - | # | ||
| - | # Anything following a '#' | ||
| - | # | ||
| - | # Otherwise the format of this file "key = value" | ||
| - | # any keys in this file may be constructed via the output of a command. | ||
| - | # | ||
| - | # For example: | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | ## | ||
| + | ==== File system ==== | ||
| + | |fs | ext4 | | ||
| + | |ext4_options | ||
| + | |ext3_options | ||
| + | |ext2_options | ||
| + | |xfs_options | ||
| + | |reiserfs_options | defaults| | ||
| + | |btrfs_options | ||
| + | Permet de choisir le type se file system et les paramètres associés dans le fichier /etc/fstab de la domU. | ||
| - | # | + | ==== Installation ==== |
| - | ## | + | | install-method | debootstrap |
| - | # Output directory for storing loopback images. | + | | cache | no | Utilisation d'un cache pour les paquets |
| - | # | + | | cachedir |
| - | # If you choose to use loopback images, which are simple to manage but | + | | dist | `xt-guess-suite-and-mirror --suite` | Permet d' |
| - | # slower than LVM partitions, then specify a directory here and uncomment | + | | pygrub |
| - | # the line. | + | | kernel |
| - | # | + | | initrd |
| - | # New instances will be stored in subdirectories named after their | + | | arch | amd64 | i386 ou amd64 | |
| - | # hostnames. | + | | mirror |
| - | # | + | | apt_proxy |
| - | ## | + | ==== Caractéristiques des domU ==== |
| - | # dir = /home/xen | + | | memory |
| - | # | + | | output |
| + | | extension | .cfg | Extension des fichiers de configuration de domU | | ||
| + | ==== Réseau ==== | ||
| + | | gateway | ||
| + | | netmask | ||
| + | | broadcast | ||
| + | | dhcp | 1 | | ||
| + | | nameserver | 10.1.1.254 | ||
| + | | bridge | ||
| + | | copyhosts | ||
| + | " | ||
| - | # | + | Les autres paramètres permettent de renseigner le fichier / |
| - | ## | + | |
| - | # | + | |
| - | # If you don't wish to use loopback images then you may specify an | + | |
| - | # LVM volume group here instead | + | |
| - | # | + | |
| - | ## | + | |
| - | # lvm = vg0 | + | |
| + | La dom0 comporte un serveur de nom qui sera utilisé par les domU. | ||
| - | # | + | ==== Utilisateurs ==== |
| - | ## | + | | genpass |
| - | # | + | | genpass_len | 8 | Utile uniquement si le mot de passe est généré | |
| - | # Installation method. | + | | hash_method | sha256 | Codage des mots de passe | |
| - | # | + | | accounts |
| - | # There are four distinct methods which you may to install a new copy | + | | passwd |
| - | # of Linux to use in your Xen guest domain: | + | |
| - | # | + | |
| - | # - Installation via the debootstrap command. | + | |
| - | # - Installation via the rpmstrap command. | + | |
| - | # - Installation via the rinse command. | + | |
| - | # - Installation by copying a directory containing a previous installation. | + | |
| - | # - Installation by untarring a previously archived image. | + | |
| - | # | + | |
| - | # NOTE That if you use the " | + | |
| - | # that the image you're left with matches the 'dist' setting later in | + | |
| - | # this file. | + | |
| - | # | + | |
| - | # | + | |
| - | ## | + | |
| - | # | + | |
| - | # | + | |
| - | # install-method = [ debootstrap | + | |
| - | # | + | |
| - | # | + | |
| - | install-method = debootstrap | + | |
| - | # | + | ==== Autres |
| - | # If you're using the " | + | | boot | 0 | |
| - | # need to specify the source location to copy from, or the source | + | | # serial_device |
| - | # .tar file to unpack. | + | | # serial_device |
| - | # | + | | # disk_device |
| - | # You may specify that with a line such as: | + | | # disk_device |
| - | # | + | |
| - | # install-source | + | |
| - | # install-source | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | ## | + | |
| - | # Command definitions. | + | |
| - | ## | + | |
| - | # | + | |
| - | # The " | + | |
| - | # the script, but if you wish to modify the commands which are executed | + | |
| - | # when installing new systems by a " | + | |
| - | # you can do so here: | + | |
| - | # | + | |
| - | # (This allows you to install from a .tar.bz file, rather than a plain | + | |
| - | # tar file, use cdebootstrap, | + | |
| - | # | + | |
| - | # install-method | + | |
| - | # copy-cmd | + | |
| - | # | + | |
| - | # install-method | + | |
| - | # debootstrap-cmd | + | |
| - | # | + | |
| - | # install-method | + | |
| - | # tar-cmd | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | # | + | |
| - | ## | + | |
| - | # Disk and Sizing options. | + | |
| - | ## | + | |
| - | # | + | |
| - | size = 4G # Root disk, suffix (G, M, k) required | + | |
| - | memory = 128M # Suffix (G, M, k) required | + | |
| - | #maxmem = 256M # Suffix (G, M, k) optional | + | |
| - | swap = 128M # Suffix (G, M, k) required | + | |
| - | # noswap = 1 # Don't use swap at all for new systems. | + | |
| - | fs = ext3 # Default file system for any disk | + | |
| - | dist = `xt-guess-suite-and-mirror --suite` | + | |
| - | # Default distribution is determined by Dom0's distribution | + | |
| - | image = sparse | + | |
| - | + | ||
| - | # | + | |
| - | # See the README for currently supported and tested distributions. You can | + | |
| - | # either find it in the root directory of the unpacked source or, on Debian | + | |
| - | # and Ubuntu based systems, in / | + | |
| - | # | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ## | + | |
| - | # Networking setup values. | + | |
| - | ## | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment and adjust these network settings if you wish to give your | + | |
| - | # new instances static IP addresses. | + | |
| - | # | + | |
| - | # gateway | + | |
| - | # netmask | + | |
| - | # broadcast | + | |
| - | # | + | |
| - | # Uncomment this if you wish the images to use DHCP | + | |
| - | # | + | |
| - | # dhcp = 1 | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment and adjust this setting if you wish to give your new | + | |
| - | # instances a specific nameserver. | + | |
| - | # | + | |
| - | # By default, nameserver is not set, and Dom0's / | + | |
| - | # be copied to guest. | + | |
| - | # | + | |
| - | # nameserver = 192.168.1.1 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # Setup bridge name for host vif. Usefull if you use bridged networking | + | |
| - | # for guests. | + | |
| - | # | + | |
| - | # bridge = xendmz | + | |
| - | # | + | |
| - | + | ||
| - | ## | + | |
| - | # Misc options | + | |
| - | ## | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment the following line if you wish to disable the caching | + | |
| - | # of downloaded .deb files when using debootstrap to install images. | + | |
| - | # | + | |
| - | # cache = no | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # The default cachedir is, / | + | |
| - | # does not exist it will default to / | + | |
| - | # Uncomment the line below to set it to something else. | + | |
| - | # | + | |
| - | # cachedir = / | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment the following line if you wish not to generate a new root | + | |
| - | # password for the new guest. | + | |
| - | # | + | |
| - | # genpass = 0 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # You can also change the password length by uncommenting and | + | |
| - | # changing the line below | + | |
| - | # | + | |
| - | # genpass_len = 8 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # You can yet change the hashing method to encrypt the generated | + | |
| - | # password by changing the line below. | + | |
| - | # Valid values : md5, sha256 and sha512. | + | |
| - | # | + | |
| - | # hash_method = sha256 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment the following line if you wish to interactively setup a | + | |
| - | # new root password for images. | + | |
| - | # | + | |
| - | # passwd = 1 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # If you'd like all accounts on your host system which are not present | + | |
| - | # on the guest system to be copied over then uncomment the following line. | + | |
| - | # | + | |
| - | # accounts = 1 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # Default kernel and ramdisk to use for the virtual servers | + | |
| - | # | + | |
| - | kernel = /boot/ | + | |
| - | initrd = / | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment the following line if you wish to use pygrub by default | + | |
| - | # for all distributions. | + | |
| - | # | + | |
| - | # pygrub = 1 | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # The architecture to use when using debootstrap, | + | |
| - | # | + | |
| - | # This is most useful on 64 bit host machines, for other systems it | + | |
| - | # doesn' | + | |
| - | # | + | |
| - | # arch = [i386|amd64] | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | # The default mirror for debootstrap to install Debian-derived distributions | + | |
| - | # | + | |
| - | mirror = `xt-guess-suite-and-mirror --mirror` | + | |
| - | + | ||
| - | # | + | |
| - | # A mirror suitable for use when installing the Dapper release of Ubuntu. | + | |
| - | # | + | |
| - | # mirror = http:// | + | |
| - | + | ||
| - | # | + | |
| - | # If you like you could use per-distribution mirrors, which will | + | |
| - | # be more useful if you're working in an environment where you want | + | |
| - | # to regularly use multiple distributions. The following are the | + | |
| - | # default values used (for Debian the GeoIP feature is used, see | + | |
| - | # http:// | + | |
| - | # | + | |
| - | # mirror_sarge = http:// | + | |
| - | # mirror_etch = http:// | + | |
| - | # mirror_lenny = http:// | + | |
| - | # mirror_squeeze = http:// | + | |
| - | # mirror_wheezy = http:// | + | |
| - | # mirror_jessie = http:// | + | |
| - | # mirror_sid = http:// | + | |
| - | # mirror_dapper = http:// | + | |
| - | # mirror_edgy = http:// | + | |
| - | # mirror_feisty = http:// | + | |
| - | # mirror_gutsy = http:// | + | |
| - | # mirror_hardy = http:// | + | |
| - | # mirror_intrepid = http:// | + | |
| - | # mirror_jaunty = http:// | + | |
| - | # mirror_karmic = http:// | + | |
| - | # mirror_lucid = http:// | + | |
| - | # mirror_maverick = http:// | + | |
| - | # mirror_natty = http:// | + | |
| - | # mirror_oneiric = http:// | + | |
| - | # mirror_precise = http:// | + | |
| - | # mirror_quantal = http:// | + | |
| - | # mirror_raring = http:// | + | |
| - | # mirror_saucy = http:// | + | |
| - | # mirror_trusty = http:// | + | |
| - | # mirror_utopic = http:// | + | |
| - | # mirror_vivid = http:// | + | |
| - | + | ||
| - | # If this is defined it will be used by debootstrap, | + | |
| - | # proxy for the guest | + | |
| - | # | + | |
| - | # apt_proxy = | + | |
| - | + | ||
| - | # | + | |
| - | # Filesystem options for the different filesystems we support. | + | |
| - | # | + | |
| - | ext4_options | + | |
| - | ext3_options | + | |
| - | ext2_options | + | |
| - | xfs_options | + | |
| - | reiserfs_options = defaults | + | |
| - | btrfs_options | + | |
| - | + | ||
| - | # | + | |
| - | # Uncomment if you wish newly created images to boot once they' | + | |
| - | # created. | + | |
| - | # | + | |
| - | # boot = 1 | + | |
| - | + | ||
| - | + | ||
| - | # | + | |
| - | # If you're using the lenny or later version of the Xen guest kernel you will | + | |
| - | # need to make sure that you use ' | + | |
| - | # and ' | + | |
| - | # | + | |
| - | # You may specify the things to use here: | + | |
| - | # | + | |
| - | # serial_device | + | |
| - | # serial_device | + | |
| - | # | + | |
| - | # disk_device | + | |
| - | # disk_device | + | |
| - | # | + | |
| + | Le paramètre " | ||
| - | # | ||
| - | # Here we specify the output directory which the Xen configuration | ||
| - | # files will be written to, and the suffix to give them. | ||
| - | # | ||
| - | # Historically xen-tools have created configuration files in /etc/xen, | ||
| - | # and given each file the name $hostname.cfg. | ||
| - | # that behaviour you may do so here. | ||
| - | # | ||
| - | # | ||
| - | # output | ||
| - | # extension = .cfg | ||
| - | # | ||
| - | # | ||
| - | # Here you can control weather your dom0's /etc/hosts file should be | ||
| - | # appended with the new guest, and also if your dom0's /etc/hosts file | ||
| - | # should be copied to the new guest. | ||
| - | # | ||
| - | # Change the following options to 1 to set them | ||
| - | # nohosts - don't touch the dom0's /etc/hosts file | ||
| - | # copyhosts - copy the dom0's /etc/hosts to the guest | ||
| - | # | ||
| - | # by default new guests ARE added to the dom0's /etc/hosts file | ||
| - | # nohosts = 0 # default | ||
| - | # | ||
| - | # by default the dom0's /etc/hosts IS NOT copied | ||
| - | # copyhosts = 0 # default | ||
| - | # | ||
| - | </ | ||
xen-tools.1439568304.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)