Debian Desktop avec Libvirt

Debian Desktop avec Libvirt.

1/ Création d’un disque dur virtuel.

root@server01virt:/home/admin# qemu-img create vhda.raw 8G
Formatting 'vhda.raw', fmt=raw size=8589934592

2/ Installation d’une machine virtuelle Debian 8 Jessie.

root@server01virt:/home/admin# virt-install --name VM01 --vcpus 2 --memory 2048 --disk vhda.raw --network default --graphics vnc,password=Mot2Passe --location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/'
WARNING  KVM acceleration not available, using 'qemu'
WARNING  Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING  No console to launch for the guest, defaulting to --wait -1
Starting install...
Retrieving file linux...                                                                                              | 3.0 MB  00:00:00
Retrieving file initrd.gz...                                                                                          |  14 MB  00:00:04
Creating domain...                                                                                                    |    0 B  00:00:00
Domain installation still in progress. Waiting for installation to complete.

3/ Création d’un tunnel ssh.

[~] ➔ ssh admin@95.142.162.206 -L 5900:localhost:5900
admin@95.142.162.206's password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-21-lowlatency x86_64)
...
Last login: Sun Apr 16 00:48:59 2017 from 86.223.254.173
admin@server01virt:~$

4/ Installation du système Debian : Visualisation via VNC.

[~] ➔ vncviewer localhost:0
VNC Viewer Free Edition 4.1.1 for X - built Jul 31 2015 19:05:51
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Sun Apr 16 01:30:14 2017
 CConn:       connected to host localhost port 5900
 CConnection: Server supports RFB protocol version 3.8
 CConnection: Using RFB protocol version 3.8
Password:
Sun Apr 16 01:30:18 2017
 TXImage:     Using default colormap and visual, TrueColor, depth 24.
 CConn:       Using pixel format depth 6 (8bpp) rgb222
 CConn:       Using ZRLE encoding

5/ Vérification.

root@server01virt:/home/admin# virsh list
setlocale: No such file or directory
 Id    Name                           State
----------------------------------------------------
 8     VM01                           running

6/ Lancement de la machine virtuelle.

root@server01virt:/home/admin# virsh start VM01
Domain VM01 started

7/ Lien.

https://raymii.org/s/articles/virt-install_introduction_and_copy_paste_distro_install_commands.html

Comments are closed, but trackbacks and pingbacks are open.