TP sysres IMA2a5 2019/2020 G1 : Différence entre versions
De Wiki d'activités IMA
(Page créée avec « Maxime Hirt - Fabien Cavalier ») |
|||
Ligne 1 : | Ligne 1 : | ||
Maxime Hirt - Fabien Cavalier | Maxime Hirt - Fabien Cavalier | ||
+ | |||
+ | Connexion à cordouan : | ||
+ | |||
+ | ssh root@cordouan.insecserv.deule.net | ||
+ | |||
+ | Installation de la machine virtuelle : | ||
+ | |||
+ | |||
+ | xen-create-image --hostname=ima2a5-zerofun --dhcp --dir=/usr/local/xen --dist=ascii | ||
+ | --apt-proxy=http://proxy.polytech-lille.fr:3128 | ||
+ | |||
+ | Creation fichier de config: | ||
+ | |||
+ | xl create ima2a5-zerofun.cfg | ||
+ | |||
+ | Fichier de config : | ||
+ | |||
+ | nano ima2a5-zerofun.cfg | ||
+ | |||
+ | # | ||
+ | # Configuration file for the Xen instance ima2a5-zerofun, created | ||
+ | # by xen-tools 4.7 on Fri Nov 8 08:57:54 2019. | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Kernel + memory size | ||
+ | # | ||
+ | kernel = '/boot/vmlinuz-4.9.0-6-amd64' | ||
+ | extra = 'elevator=noop' | ||
+ | ramdisk = '/boot/initrd.img-4.9.0-6-amd64' | ||
+ | |||
+ | vcpus = '1' | ||
+ | memory = '256' | ||
+ | |||
+ | |||
+ | # | ||
+ | # Disk device(s). | ||
+ | # | ||
+ | root = '/dev/xvda2 ro' | ||
+ | disk = [ | ||
+ | 'file:/usr/local/xen/domains/ima2a5-zerofun/disk.img,xvda2,w', | ||
+ | 'file:/usr/local/xen/domains/ima2a5-zerofun/swap.img,xvda1,w', | ||
+ | ] | ||
+ | |||
+ | |||
+ | # | ||
+ | # Physical volumes | ||
+ | # | ||
+ | |||
+ | |||
+ | # | ||
+ | # Hostname | ||
+ | # | ||
+ | name = 'ima2a5-zerofun' | ||
+ | |||
+ | # | ||
+ | # Networking | ||
+ | # | ||
+ | dhcp = 'dhcp' | ||
+ | vif = [ 'mac=00:16:3E:92:4D:4E, bridge=IMA2a5' ] | ||
+ | |||
+ | # | ||
+ | # Behaviour | ||
+ | # | ||
+ | on_poweroff = 'destroy' | ||
+ | on_reboot = 'restart' | ||
+ | on_crash = 'restart' |
Version du 8 novembre 2019 à 11:17
Maxime Hirt - Fabien Cavalier
Connexion à cordouan :
ssh root@cordouan.insecserv.deule.net
Installation de la machine virtuelle :
xen-create-image --hostname=ima2a5-zerofun --dhcp --dir=/usr/local/xen --dist=ascii
--apt-proxy=http://proxy.polytech-lille.fr:3128
Creation fichier de config:
xl create ima2a5-zerofun.cfg
Fichier de config :
nano ima2a5-zerofun.cfg
- Configuration file for the Xen instance ima2a5-zerofun, created
- by xen-tools 4.7 on Fri Nov 8 08:57:54 2019.
- Kernel + memory size
kernel = '/boot/vmlinuz-4.9.0-6-amd64' extra = 'elevator=noop' ramdisk = '/boot/initrd.img-4.9.0-6-amd64'
vcpus = '1' memory = '256'
- Disk device(s).
root = '/dev/xvda2 ro' disk = [
'file:/usr/local/xen/domains/ima2a5-zerofun/disk.img,xvda2,w', 'file:/usr/local/xen/domains/ima2a5-zerofun/swap.img,xvda1,w', ]
- Physical volumes
- Hostname
name = 'ima2a5-zerofun'
- Networking
dhcp = 'dhcp' vif = [ 'mac=00:16:3E:92:4D:4E, bridge=IMA2a5' ]
- Behaviour
on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart'