HP ProLiant MicroServer Gen8 + Debian 9.3 + Qemu+KVM

Былау меня как-то попытка развернуть на кубике (HP Microserver Gen8) гипервизор под centos-ью, с идеей фикс проборосить видиюшечку (VGA passthrough) в гостя. Под центосью что-то у меня не завелось, зато завелось под debian testing c 4-каким-то ядром. В госте (винда, никсы) видюшечка робила, но при просмотре видосиков всё жутко лагало и фризило. Пичаль-бида. Победить не удалось. Плюс не удавалось одолеть некоторые моменты из-за использования EDK2 UEFI firmware. Мануала не создавал, осталось куча линков по которым мутил всё это безобразие. Так и оставил эту затею в виде гостя с файлопомойкой.

И тут я решил бороться с астениней и прокрастинацией. Энергии навалом — надо куда-то девать. Пришло время навести порядок в кубике, облагородить систему. Делать будем всё с нуля, не спеша) и записывая!)

Настройки BIOS оставляем.

Кратенько конфигурация:

Процессор Intel Xeon CPU E3−1230 V2 3.30GHz

Память 2x DDR3 Kingston KVR16E11/8 8Gb DIMM ECC U PC3−12 800 CL11 1600MHz

HDD 2x TOSHIBA DT01ACA200, 2Тб, 64 Мб, 7200об/мин.

2x WD20EZRX 2Тб, 64 Мб, 5400−7200об/мин

SSD GLOWAY VAL T300 223GiB

установка minimal, пара деталей

Специфика кубика такова, что при установке SSD не в корзину, система с него грузиться категорически отказывается. Но радостно бутится с сд-карты (на борту есть незаметный разъём).

первый старт, вот что у нас получилось

даём пользователю sudo — #usermod -a -G sudo username

apt-get install lshw mdadm

root@HP-Boy:~# lshw -short -C disk

H/W path Device Class Description
=============================================================
/0/100/1d/1/1/3/1/0.0.0 /dev/sdd disk 3965MB Internal SD-CARD
/0/100/1d/1/1/3/1/0.0.1 /dev/sde disk 268MB LUN 01 Media 0
/0/1/0.0.0 /dev/sda disk 2TB TOSHIBA DT01ACA2
/0/2/0.0.0 /dev/sdb disk 2TB TOSHIBA DT01ACA2
/0/3/0.0.0 /dev/sdc disk 2TB WDC WD20EZRX-00D
/0/4/0.0.0 /dev/sdf disk 2TB WDC WD20EARX-00P
/0/5/0.0.0 /dev/sdg disk 240GB GLOWAY VAL T300

Сделаем софт-рейд

mdadm

root@HP-Boy:~# mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb

mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
mdadm: size set to 1953383488K
mdadm: automatically enabling write-intent bitmap on large array
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.

root@HP-Boy:~# cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 sdb[1] sda[0]
1953383488 blocks super 1.2 [2/2] [UU]
[>....................] resync = 0.2% (3917312/1953383488) finish=174.1min speed=186538K/sec
bitmap: 15/15 pages [60KB], 65536KB chunk

unused devices: <none>

ещё один

root@HP-Boy:~# mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sdc /dev/sdf

mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
mdadm: size set to 1953383488K
mdadm: automatically enabling write-intent bitmap on large array
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.

root@HP-Boy:~# cat /proc/mdstat

Personalities : [raid1]
md1 : active raid1 sdf[1] sdc[0]
1953383488 blocks super 1.2 [2/2] [UU]
[>....................] resync = 0.0% (578880/1953383488) finish=224.8min speed=144720K/sec
bitmap: 15/15 pages [60KB], 65536KB chunk

md0 : active raid1 sdb[1] sda[0]
1953383488 blocks super 1.2 [2/2] [UU]
[>....................] resync = 1.1% (21520960/1953383488) finish=173.0min speed=186097K/sec
bitmap: 15/15 pages [60KB], 65536KB chunk

unused devices: <none>

root@HP-Boy:~# cat /proc/mdstat

Personalities : [raid1]
md1 : active raid1 sdf[1] sdc[0]
1953383488 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk

md0 : active raid1 sdb[1] sda[0]
1953383488 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk

unused devices: <none>
root@HP-Boy:~#

root@HP-Boy:~# mdadm --detail --scan --verbose

ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2 name=HP-Boy:0 UUID=8eabc73e:47f4b112:db400a25:4f7bb207
devices=/dev/sda,/dev/sdb
ARRAY /dev/md1 level=raid1 num-devices=2 metadata=1.2 name=HP-Boy:1 UUID=760f2927:36bac34e:f1de2b2c:6f59b89c
devices=/dev/sdc,/dev/sdf

зафиксируем

root@HP-Boy:~# echo «DEVICE partitions» > /etc/mdadm/mdadm.conf
root@HP-Boy:~# cat /etc/mdadm/mdadm.conf

DEVICE partitions

root@HP-Boy:~# mdadm --detail --scan --verbose | awk '/ARRAY/ {print}' >> /etc/mdadm/mdadm.conf
root@HP-Boy:~# cat /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2 name=HP-Boy:0 UUID=8eabc73e:47f4b112:db400a25:4f7bb207
ARRAY /dev/md1 level=raid1 num-devices=2 metadata=1.2 name=HP-Boy:1 UUID=760f2927:36bac34e:f1de2b2c:6f59b89c
root@HP-Boy:~#

Гостевые машины будут у нас на lvm разделах, для этого:

root@HP-Boy:~# apt-get install lvm2

Инициализация дисков

root@HP-Boy:~# pvcreate /dev/md0

Physical volume "/dev/md0" successfully created.

root@HP-Boy:~# pvcreate /dev/md1

Physical volume "/dev/md1" successfully created.

Показать информацию о физическом томе

root@HP-Boy:~# pvs

PV VG Fmt Attr PSize PFree
/dev/md0 lvm2 --- 1,82t 1,82t
/dev/md1 lvm2 --- 1,82t 1,82t
root@HP-Boy:~#

Показать список всех физических томов

root@HP-Boy:~# pvscan

PV /dev/md1 lvm2 [1,82 TiB]
PV /dev/md0 lvm2 [1,82 TiB]
Total: 2 [3,64 TiB] / in use: 0 [0 ] / in no VG: 2 [3,64 TiB]
root@HP-Boy:~#

Создаём группы томов

root@HP-Boy:~# vgcreate vg0 /dev/md0

Volume group "vg0" successfully created

root@HP-Boy:~# vgcreate vg1 /dev/md1

Volume group "vg1" successfully created
root@HP-Boy:~#

Смотрим список всех физических томов

root@HP-Boy:~# pvscan

PV /dev/md1 VG vg1 lvm2 [1,82 TiB / 1,82 TiB free]
PV /dev/md0 VG vg0 lvm2 [1,82 TiB / 1,82 TiB free]
Total: 2 [3,64 TiB] / in use: 2 [3,64 TiB] / in no VG: 0 [0 ]
root@HP-Boy:~#

Смотрим сколько екстентов свободно

root@HP-Boy:~# pvdisplay --maps

--- Physical volume ---
PV Name /dev/md1
VG Name vg1
PV Size 1,82 TiB / not usable 1,06 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 476900
Free PE 476900
Allocated PE 0
PV UUID dQbhvZ-Y7NJ-oh7f-PVlN-8z5k-f2kN-KnNxFD

--- Physical Segments ---
Physical extent 0 to 476899:
FREE

--- Physical volume ---
PV Name /dev/md0
VG Name vg0
PV Size 1,82 TiB / not usable 1,06 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 476900
Free PE 476900
Allocated PE 0
PV UUID gVtjM5-uZ53-qh8I-KuSW-yMSs-PSlD-wWx2wW

--- Physical Segments ---
Physical extent 0 to 476899:
FREE

root@HP-Boy:~#

lvcreate www.ibm.com/developerworks/ru/library/l-lvm2/

оптимизация SSD linuxoidblog.blogspot.ru/2017/07/debian-9-ssd.html

cron serveradmin.ru/gde-v-debian-logi-cron/

репы

#mcedit /etc/apt/sources.list

в строку deb ftp.us.debian.org/debian/ stretch main

допишем «contrib non-free»

ну, и

#apt-get update

#apt-get dist-upgrade

время

#apt-get -y install ntp

root@HP-Boy:~# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
1.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
2.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
3.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
-78.140.251.2 194.190.168.1 2 u 358 1024 377 12.864 -8.247 24.057
-195.161.115.4 95.140.94.2 3 u 219 1024 377 13.059 -6.842 7.933
+195.141.190.190 162.23.41.10 2 u 521 1024 377 0.176 6.804 3.662
+213.141.136.201 89.109.251.23 2 u 494 1024 377 12.614 -0.706 3.261
*195.91.239.8 .PPS. 1 u 390 1024 377 13.342 0.452 2.447
-89.163.241.149 193.175.73.151 2 u 35 1024 377 39.073 -0.021 8.284
root@HP-Boy:~#

lsof //habrahabr.ru/company/ruvds/blog/337 934/

bash-completion //blablacode.ru/linux/21

logwatch //kamaok.org.ua/?p=75

mtr-tiny //packages.debian.org/ru/wheezy/mtr-tiny

policycoreutils-python //defcon.ru/os-security/1264/

sysstat //blog.102web.ru/poleznye-komandy-linux/sysstat-utilita-dlya-izmereniya-proizvoditelnosti/

lm-sensors //pro-voip.com.ua/debian-temperature-cpu/

#echo «vm.swappiness = 10» >> /etc/sysctl.conf

_______________________________________________________________________________

root@HP-Boy:~# apt-get install qemu

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binfmt-support ipxe-qemu libaio1 libasound2 libasound2-data libasyncns0 libbluetooth3 libbrlapi0.6 libcaca0 libcacard0 libfdt1
libflac8 libice6 libjpeg62-turbo libnspr4 libnss3 libogg0 libopus0 libpixman-1-0 libpulse0 libsdl1.2debian libsm6 libsndfile1
libspice-server1 libusbredirparser1 libvdeplug2 libvorbis0a libvorbisenc2 libx11-xcb1 libxen-4.8 libxenstore3.0 libxi6 libxtst6
libyajl2 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-common
qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils
seabios x11-common
Suggested packages:
libasound2-plugins alsa-utils opus-tools pulseaudio qemu-user-static samba vde2 qemu-block-extra sgabios ovmf debootstrap
The following NEW packages will be installed:
binfmt-support ipxe-qemu libaio1 libasound2 libasound2-data libasyncns0 libbluetooth3 libbrlapi0.6 libcaca0 libcacard0 libfdt1
libflac8 libice6 libjpeg62-turbo libnspr4 libnss3 libogg0 libopus0 libpixman-1-0 libpulse0 libsdl1.2debian libsm6 libsndfile1
libspice-server1 libusbredirparser1 libvdeplug2 libvorbis0a libvorbisenc2 libx11-xcb1 libxen-4.8 libxenstore3.0 libxi6 libxtst6
libyajl2 openbios-ppc openbios-sparc openhackware qemu qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-common
qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils
seabios x11-common
0 upgraded, 53 newly installed, 0 to remove and 0 not upgraded.
Need to get 60.9 MB of archives.
After this operation, 472 MB of additional disk space will be used.
Do you want to continue? [Y/n]

#apt -y install qemu-kvm libvirt-daemon libvirt-daemon-system virtinst bridge-utils

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core augeas-lenses ca-certificates dconf-gsettings-backend dconf-service dns-root-data dnsmasq-base
ebtables fontconfig fontconfig-config fonts-dejavu-core freepats gir1.2-freedesktop gir1.2-glib-2.0 gir1.2-libosinfo-1.0
glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas gstreamer1.0-libav
gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x gtk-update-icon-cache
hicolor-icon-theme i965-va-driver iso-codes libaa1 libaacs0 libass5 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatomic1
libatspi2.0-0 libaugeas0 libavahi-client3 libavahi-common-data libavahi-common3 libavc1394-0 libavcodec57 libavfilter6
libavformat57 libavresample3 libavutil55 libbdplus0 libbluray1 libboost-iostreams1.62.0 libboost-random1.62.0
libboost-system1.62.0 libboost-thread1.62.0 libbs2b0 libcairo-gobject2 libcairo2 libcap2-bin libcdparanoia0 libchromaprint1
libcolord2 libcroco3 libcrystalhd3 libcups2 libcurl3-gnutls libdatrie1 libdc1394-22 libdca0 libdconf1 libde265-0 libdrm-amdgpu1
libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libdv4 libdvdnav4 libdvdread4 libebur128-1 libegl1-mesa libepoxy0 libfaad2
libfftw3-double3 libflite1 libfluidsynth1 libfontconfig1 libgail-common libgail18 libgbm1 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgirepository-1.0-1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgme0 libgomp1 libgovirt-common
libgovirt2 libgraphite2-3 libgsm1 libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0
libgtk-3-bin libgtk-3-common libgtk-vnc-2.0-0 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libgvnc-1.0-0
libharfbuzz0b libiec61883-0 libilmbase12 libjack-jackd2-0 libjbig0 libjson-glib-1.0-0 libjson-glib-1.0-common libkate1
liblcms2-2 liblilv-0-0 libllvm3.9 libmjpegutils-2.1-0 libmms0 libmodplug1 libmp3lame0 libmpcdec6 libmpeg2encpp-2.1-0 libmpg123-0
libmplex2-2.1-0 libnetcf1 libnghttp2-14 libnl-3-200 libnl-route-3-200 libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5
libopencv-core2.4v5 libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5
libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenexr22 libopenjp2-7 libopenmpt0 liborc-0.4-0 libosinfo-1.0-0 libpam-cap
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libparted2 libpciaccess0 libpgm-5.2-0 libphodav-2.0-0 libphodav-2.0-common
libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpostproc54 libproxy1v5 libpulse-mainloop-glib0
libpython-stdlib librados2 libraw1394-11 librbd1 librest-0.7-0 librsvg2-2 librsvg2-common librtmp1 librubberband2 libsamplerate0
libsbc1 libserd-0-0 libshine3 libshout3 libsnappy1v5 libsndio6.1 libsodium18 libsord-0-0 libsoundtouch1 libsoup-gnome2.4-1
libsoup2.4-1 libsoxr0 libspandsp2 libspeex1 libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libsratom-0-0 libsrtp0
libssh-gcrypt-4 libswresample2 libswscale4 libtag1v5 libtag1v5-vanilla libtbb2 libthai-data libthai0 libtheora0 libtiff5
libtwolame0 libtxc-dxtn-s2tc libusbredirhost1 libv4l-0 libv4lconvert0 libva-drm1 libva-x11-1 libva1 libvdpau-va-gl1 libvdpau1
libvirt-clients libvirt-glib-1.0-0 libvirt0 libvisual-0.4-0 libvo-aacenc0 libvo-amrwbenc0 libvorbisfile3 libvpx4 libwavpack1
libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwebp6 libwebpmux2 libwebrtc-audio-processing1
libwildmidi-config libwildmidi2 libx264-148 libx265-95 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxinerama1 libxkbcommon0
libxml2-utils libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxv1 libxvidcore4 libxxf86vm1 libzbar0 libzmq5 libzvbi-common
libzvbi0 mesa-va-drivers mesa-vdpau-drivers netcat-openbsd osinfo-db parted policykit-1 python python-cffi-backend
python-chardet python-cryptography python-enum34 python-gi python-idna python-ipaddr python-ipaddress python-libvirt
python-libxml2 python-minimal python-openssl python-pkg-resources python-pyasn1 python-requests python-setuptools python-six
python-urllib3 python2.7 python2.7-minimal spice-client-glib-usb-acl-helper va-driver-all vdpau-driver-all virt-viewer
Suggested packages:
augeas-doc frei0r-plugins gvfs isoquery augeas-tools libbluray-bdj colord firmware-crystalhd cups-common libdv-bin oss-compat
libdvdcss2 libfftw3-bin libfftw3-dev alsa-base libvisual-0.4-plugins gstreamer1.0-tools jackd2 liblcms2-utils libportaudio2
libosinfo-l10n libparted-dev libparted-i18n libraw1394-doc librsvg2-bin serdi sndiod sordi speex srtp-utils numad radvd auditd
systemtap apparmor nfs-common zfsutils pm-utils parted-doc python-doc python-tk python-cryptography-doc
python-cryptography-vectors python-enum34-doc python-gi-cairo python-openssl-doc python-openssl-dbg doc-base python-socks
python-setuptools-doc python-ntlm python2.7-doc binutils libfglrx-amdxvba1 nvidia-vdpau-driver nvidia-legacy-340xx-vdpau-driver
nvidia-legacy-304xx-vdpau-driver
The following NEW packages will be installed:
adwaita-icon-theme at-spi2-core augeas-lenses bridge-utils ca-certificates dconf-gsettings-backend dconf-service dns-root-data
dnsmasq-base ebtables fontconfig fontconfig-config fonts-dejavu-core freepats gir1.2-freedesktop gir1.2-glib-2.0
gir1.2-libosinfo-1.0 glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas
gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x
gtk-update-icon-cache hicolor-icon-theme i965-va-driver iso-codes libaa1 libaacs0 libass5 libatk-bridge2.0-0 libatk1.0-0
libatk1.0-data libatomic1 libatspi2.0-0 libaugeas0 libavahi-client3 libavahi-common-data libavahi-common3 libavc1394-0
libavcodec57 libavfilter6 libavformat57 libavresample3 libavutil55 libbdplus0 libbluray1 libboost-iostreams1.62.0
libboost-random1.62.0 libboost-system1.62.0 libboost-thread1.62.0 libbs2b0 libcairo-gobject2 libcairo2 libcap2-bin
libcdparanoia0 libchromaprint1 libcolord2 libcroco3 libcrystalhd3 libcups2 libcurl3-gnutls libdatrie1 libdc1394-22 libdca0
libdconf1 libde265-0 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libdv4 libdvdnav4 libdvdread4
libebur128-1 libegl1-mesa libepoxy0 libfaad2 libfftw3-double3 libflite1 libfluidsynth1 libfontconfig1 libgail-common libgail18
libgbm1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgirepository-1.0-1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgme0
libgomp1 libgovirt-common libgovirt2 libgraphite2-3 libgsm1 libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk-vnc-2.0-0 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
libgudev-1.0-0 libgvnc-1.0-0 libharfbuzz0b libiec61883-0 libilmbase12 libjack-jackd2-0 libjbig0 libjson-glib-1.0-0
libjson-glib-1.0-common libkate1 liblcms2-2 liblilv-0-0 libllvm3.9 libmjpegutils-2.1-0 libmms0 libmodplug1 libmp3lame0
libmpcdec6 libmpeg2encpp-2.1-0 libmpg123-0 libmplex2-2.1-0 libnetcf1 libnghttp2-14 libnl-3-200 libnl-route-3-200 libofa0
libopenal-data libopenal1 libopencv-calib3d2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5 libopencv-flann2.4v5
libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenexr22 libopenjp2-7
libopenmpt0 liborc-0.4-0 libosinfo-1.0-0 libpam-cap libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libparted2
libpciaccess0 libpgm-5.2-0 libphodav-2.0-0 libphodav-2.0-common libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0
libpostproc54 libproxy1v5 libpulse-mainloop-glib0 libpython-stdlib librados2 libraw1394-11 librbd1 librest-0.7-0 librsvg2-2
librsvg2-common librtmp1 librubberband2 libsamplerate0 libsbc1 libserd-0-0 libshine3 libshout3 libsnappy1v5 libsndio6.1
libsodium18 libsord-0-0 libsoundtouch1 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspandsp2 libspeex1 libspice-client-glib-2.0-8
libspice-client-gtk-3.0-5 libsratom-0-0 libsrtp0 libssh-gcrypt-4 libswresample2 libswscale4 libtag1v5 libtag1v5-vanilla libtbb2
libthai-data libthai0 libtheora0 libtiff5 libtwolame0 libtxc-dxtn-s2tc libusbredirhost1 libv4l-0 libv4lconvert0 libva-drm1
libva-x11-1 libva1 libvdpau-va-gl1 libvdpau1 libvirt-clients libvirt-daemon libvirt-daemon-system libvirt-glib-1.0-0 libvirt0
libvisual-0.4-0 libvo-aacenc0 libvo-amrwbenc0 libvorbisfile3 libvpx4 libwavpack1 libwayland-client0 libwayland-cursor0
libwayland-egl1-mesa libwayland-server0 libwebp6 libwebpmux2 libwebrtc-audio-processing1 libwildmidi-config libwildmidi2
libx264-148 libx265-95 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
libxcb-xfixes0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxinerama1 libxkbcommon0 libxml2-utils libxrandr2 libxrender1
libxshmfence1 libxslt1.1 libxv1 libxvidcore4 libxxf86vm1 libzbar0 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers
mesa-vdpau-drivers netcat-openbsd osinfo-db parted policykit-1 python python-cffi-backend python-chardet python-cryptography
python-enum34 python-gi python-idna python-ipaddr python-ipaddress python-libvirt python-libxml2 python-minimal python-openssl
python-pkg-resources python-pyasn1 python-requests python-setuptools python-six python-urllib3 python2.7 python2.7-minimal
qemu-kvm spice-client-glib-usb-acl-helper va-driver-all vdpau-driver-all virt-viewer virtinst
0 upgraded, 296 newly installed, 0 to remove and 0 not upgraded.
Need to get 156 MB of archives.
After this operation, 570 MB of additional disk space will be used.

root@HP-Boy:~# apt -y install virt-top

root@HP-Boy:~# apt install virt-manager

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dbus-user-session gconf-service gconf2 gconf2-common gir1.2-atk-1.0 gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gir1.2-gtk-vnc-2.0 gir1.2-libvirt-glib-1.0 gir1.2-pango-1.0
gir1.2-spice-client-glib-2.0 gir1.2-spice-client-gtk-3.0 gir1.2-vte-2.91 gnome-icon-theme libdbus-glib-1-2 libgconf-2-4 libpangoxft-1.0-0 libpcre2-8-0 libvte-2.91-0
libvte-2.91-common libxft2 python-cairo python-dbus python-gi-cairo
Suggested packages:
gconf-defaults-service python-dbus-dbg python-dbus-doc ssh-askpass gnome-keyring gir1.2-secret-1 python-guestfs
The following NEW packages will be installed:
dbus-user-session gconf-service gconf2 gconf2-common gir1.2-atk-1.0 gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gir1.2-gtk-vnc-2.0 gir1.2-libvirt-glib-1.0 gir1.2-pango-1.0
gir1.2-spice-client-glib-2.0 gir1.2-spice-client-gtk-3.0 gir1.2-vte-2.91 gnome-icon-theme libdbus-glib-1-2 libgconf-2-4 libpangoxft-1.0-0 libpcre2-8-0 libvte-2.91-0
libvte-2.91-common libxft2 python-cairo python-dbus python-gi-cairo virt-manager
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.1 MB of archives.
After this operation, 38.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]

root@HP-Boy:~#usermod -aG libvirt username

/etc/ssh/sshd_config

X11Forwarding yes

подготовка сети //losst.ru/nastrojka-seti-debian-9

//wiki.debian.org/QEMU#Host_and_guests_on_same_network

root@HP-Boy:~# ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1c:98:ec:0e:36:f8 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1c:98:ec:0e:36:f9 brd ff:ff:ff:ff:ff:ff
inet 192.168.11.139/24 brd 192.168.11.255 scope global eno2
valid_lft forever preferred_lft forever
inet6 fe80::1e98:ecff:fe0e:36f9/64 scope link
valid_lft forever preferred_lft forever
root@HP-Boy:~#

root@HP-Boy:~#mcedit /etc/network/interfaces

auto br0
iface br0 inet dhcp
bridge_ports eno2
bridge_stp off
bridge_fd 0
bridge_maxwait 0

root@HP-Boy:~# ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1c:98:ec:0e:36:f8 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 1c:98:ec:0e:36:f9 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 1c:98:ec:0e:36:f9 brd ff:ff:ff:ff:ff:ff
inet 192.168.11.139/24 brd 192.168.11.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::1e98:ecff:fe0e:36f9/64 scope link
valid_lft forever preferred_lft forever
root@HP-Boy:~#

fedoraproject.org/wiki/Windows_Virtio_Drivers#ISO_contents