Установка Windows на KVM

Установка Windows на KVM для опытных системных администраторов не составит труда. Тем не менее, в процессе развертывания ОС и создания под неё виртуальной машины могут встретиться ряд нетривиальных проблем, связанных с особенностями KVM. О них я и расскажу.


Если вам интересна тематика Debian и связанных с ним приложений, рекомендую обратиться к тегу Debian на моем блоге


Установка Windows на KVM

К настоящему моменту у меня уже есть сервер с KVM. На нем также сконфигурирована сеть и хранилище гостевых дисков. Все это я подробно расписал в своей предыдущей статье Установка гипервизора KVM.

Для создания виртуальной машины я буду использовать утилиту virt-install.

Конфигурация виртуальной машины

Есть ряд базовых параметров, без указания которых создание виртуальной машины с помощью virt-install невозможно — это имя ВМ, объем оперативной памяти, настройки диска и параметры установки. Тем не менее, для наглядности я укажу и другие опции, которые так или иначе используются не реже обязательных.

Команда для создания виртуальной машины:

Некоторые пояснения:

  • -os-type windows — Устанавливает более подходящие аппаратные настройки для конкретной ветки ОС;
  • —disk pool=guest_images — Создает виртуальные диски в данном хранилище;
  • —graphics vnc,listen=0.0.0.0 — Устанавливаем тип графики. Адрес прослушки необходим, чтобы к vnc могли подключаться удаленные админы. По дефолту разрешены только локальные подключения.

Назначение остальных параметров очевидно.

Примечание: забегая вперед скажу, что во время установки нужно будет подсунуть дополнительный iso-диск с PV-драйверами. Возможно у вас возникнет искушение сразу в команде создания ВМ прописать два загрузочных диска CDROM. Должен предостеречь от этого. Дело в том, что одновременно два загрузочных диска не поддерживается и, более того, система по умолчанию будет грузиться с указанного последним диска. Если этот диск не загрузочный, то вы увидите ошибку Could not read from CDROM (code 0004) и вероятнее всего будете думать а что же не так с моим виндовым исошником, но по факту система даже не дойдет до того, чтобы начать с него грузиться.

Если в процессе создания виртуальной машины вы получили ошибку:

То нужно сделать как указано в статье Features/HelperNetworking, а именно (под пользователем root, разумеется):

  • создаем каталог, если он отсутствует:

  • создаем конфиг и сразу добавляем в него нужную запись (kvmbr0 — имя моста):

  • в дополнение к сделанному выставляем права 1:

Перезапускаем команду создания ВМ. Если все ОК, пришло время развернуть гостевую ОС.

Установка Windows

Подключаемся по VNC к только что созданной машине. Порт по умолчанию — 5900.

Примечание: если к настоящему моменту виртуальных машин уже несколько и все используют VNC, то нужно определить порт подлючения. Для этого выполните команду

virsh vncdisplay 2012r2test01

Результат будет например вот такой — :1 — к нему нужно приплюсовать 5900 и, таким образом, корректный порт будет 5901.

Как только дойдете до этапа разметки дисков, доступных устройств для установки ОС вы не увидите, вместо этого будет предупреждение:

Нужно подсунуть драйверы VirtIO (исошник я взял отсюда 2), выполнив команду:

Далее возвращайтесь в окно установки ОС и найдите драйверы хранилища на только что смонтированном диске. Как драйверы будут найдены и система их определит, в списке дисков появятся нужные вам устройства. Но! Нужно не забыть вернуть диск с исошником ОС обратно в дисковод (иначе будет светиться предупреждение о невозможности установки ОС на HDD), для этого выполните команду:

Весь процесс более подробно вы можете увидеть ниже:

Дожидайтесь копирования файлов и установки системы. После этого нужно будет произвести небольшую настройку.

Настройка Windows

После установки ОС в системе останется часть не определенных устройств (например сетевой адаптер). Установить для них драйверы придется вручную через диспетчер устройств Windows как показано на записи ниже:

После установки всех драйверов система готова к работе.

comments powered by HyperComments
2mayonnaise
2022-07-04 20:47:34
<strong>2brainless</strong>
best dissertation writing services uk
2022-07-05 14:21:59
<strong>dissertation online help https://professionaldissertationwriting.org/</strong>
dissertation meaning
2022-07-05 19:16:44
<strong>disertation https://professionaldissertationwriting.com/</strong>
ma dissertation writing service
2022-07-05 19:49:45
<strong>tips for dissertation writing https://helpwithdissertationwritinglondon.com/</strong>
mba dissertation writing services
2022-07-05 22:23:42
<strong>writing editing services https://dissertationwritingcenter.com/</strong>
writing a dissertation methodology
2022-07-06 02:36:20
<strong>dissertation help service general https://dissertationhelpexpert.com/</strong>
buy dissertation writing services
2022-07-06 04:26:16
<strong>professional writing service https://accountingdissertationhelp.com/</strong>
buy dissertations online
2022-07-06 06:43:17
<strong>buy dissertation writing services https://examplesofdissertation.com/</strong>
help with dissertation
2022-07-06 09:52:50
<strong>phd dissertation writing https://writing-a-dissertation.net/</strong>
thesis dissertation writing
2022-07-06 13:33:52
<strong>dissertation format https://bestdissertationwritingservice.net/</strong>
chicago illinois dissertation help
2022-07-06 17:17:48
<strong>help dissertation thesis advice https://customdissertationwritinghelp.com/</strong>
writing paper
2022-07-06 23:47:34
<strong>uk dissertation writing service https://dissertationhelpspecialist.com/</strong>
dissertation help for phd candidates
2022-07-07 02:54:57
<strong>dissertation writing process https://dissertationhelperhub.com/</strong>
buy dissertation writing services
2022-07-07 04:54:19
<strong>books and dissertation about mafa people https://customthesiswritingservices.com/</strong>
hard rock online casino nj
2022-07-25 18:34:48
<strong>top online casino real money https://download-casino-slots.com/</strong>
online casino code
2022-07-25 21:59:32
<strong>spain online casino https://firstonlinecasino.org/</strong>
mgm grand online casino michigan
2022-07-26 01:01:09
<strong>hard rock casino online https://onlinecasinofortunes.com/</strong>
play online casino for real money
2022-07-26 02:00:23
<strong>$1 deposit online casino usa https://newlasvegascasinos.com/</strong>
ocean casino online login
2022-07-26 05:43:23
<strong>hollywood casino online promo code https://trust-online-casino.com/</strong>
las atlantis online casino
2022-07-26 07:09:17
<strong>valley forge casino online https://onlinecasinosdirectory.org/</strong>
greektown online casino
2022-07-26 10:22:33
<strong>dover downs online casino https://9lineslotscasino.com/</strong>
online casino usa accepted
2022-07-26 12:31:16
<strong>best online casino canada https://free-online-casinos.net/</strong>
online casino real money free bonus
2022-07-26 14:49:06
<strong>777 online casino https://internet-casinos-online.net/</strong>
twin river online casino
2022-07-26 18:02:35
<strong>what is the most legit online casino https://cybertimeonlinecasino.com/</strong>
online casino no deposit bonus codes 2020
2022-07-26 20:33:53
<strong>usa real money online casino https://1freeslotscasino.com/</strong>
free online casino slot machines
2022-07-26 22:29:31
<strong>no deposit online casino bonus codes https://vrgamescasino.com/</strong>
casino online for real money
2022-07-27 03:42:18
<strong>free casino slot games online https://casino-online-jackpot.com/</strong>
online casino arizona
2022-07-27 07:56:44
<strong>online casino with free sign up bonus https://onlineplayerscasino.com/</strong>
hollywood casino online pa
2022-07-27 10:48:58
<strong>rsweeps online casino https://ownonlinecasino.com/</strong>
888 casino online support
2022-07-27 13:16:01
<strong>nj casino online sites https://all-online-casino-games.com/</strong>
online casino real money usa no deposit
2022-07-27 15:35:36
<strong>maryland online casino https://casino8online.com/</strong>
best vpn for gaming reddit
2022-08-07 14:23:07
<strong>free gaming vpn https://freevpnconnection.com/</strong>
best free vpn for kodi
2022-08-07 19:25:11
<strong>vpn network https://freehostingvpn.com/</strong>
buy vpn for china
2022-08-07 22:02:00
<strong>free vpn download https://ippowervpn.net/</strong>
avast secure line vpn reviews
2022-08-08 01:26:03
<strong>best free mac vpn https://imfreevpn.net/</strong>
free vpn services
2022-08-08 03:33:35
<strong>best vpn 2018 https://superfreevpn.net/</strong>
vpn change location free
2022-08-08 05:33:44
<strong>how to get a vpn free https://free-vpn-proxy.com/</strong>
best price vpn
2022-08-08 07:47:15
<strong>buy a vpn https://rsvpnorthvalley.com/</strong>
gay dating army scam
2022-08-23 14:58:28
<strong>gay dating sim https://gay-singles-dating.com/</strong>
free gay dating older men
2022-08-23 17:29:52
<strong>gay sadistic men dating cite https://gayedating.com/</strong>
gay dating simulator
2022-08-23 19:17:37
<strong>older gay men dating sites https://datinggayservices.com/</strong>
worldwide internet dating
2022-08-24 13:11:20
<strong>skip the games dating site https://freephotodating.com/</strong>
free chat and dating online
2022-08-24 15:42:42
<strong>free single dating sites https://onlinedatingbabes.com/</strong>
europe free chat
2022-08-24 17:07:33
<strong>christian dating for free https://adult-singles-online-dating.com/</strong>
free se4x
2022-08-24 23:12:53
<strong>dating dating site https://online-internet-dating.net/</strong>
dateing site
2022-08-25 00:18:46
<strong>dating personal ads https://speedatingwebsites.com/</strong>
free dating sites for men
2022-08-25 08:07:20
<strong>tinder gratis https://lavaonlinedating.com/</strong>
local dating sites free
2022-08-25 10:15:44
<strong>best dating https://freeadultdatingpasses.com/</strong>
1 dating sites
2022-08-25 11:45:15
<strong>dating sites our time https://virtual-online-dating-service.com/</strong>
meet singles free
2022-08-25 13:50:03
<strong>totally free dating sites local https://zonlinedating.com/</strong>
free online dating site
2022-08-25 15:52:56
<strong>dating web https://onlinedatingservicesecrets.com/</strong>
windcreek casino online
2022-08-30 09:33:35
<strong>rsweeps online casino 777 https://onlinecasinos4me.com/</strong>
online cash casino
2022-08-30 12:51:14
<strong>real money online casino no deposit bonus https://online2casino.com/</strong>
online casino with no deposit bonus
2022-08-30 19:00:36
<strong>harrah's online casino pa https://casinosonlinex.com/</strong>
boomerang gay chat
2022-09-03 01:17:38
<strong>free gay chat lines in nc https://newgaychat.com/</strong>
gay video chat x4
2022-09-03 07:39:50
<strong>utah gay bi chat https://gaychatcams.net/</strong>
gay chat random x4
2022-09-03 11:22:02
<strong>mature gay chat https://gaychatspots.com/</strong>
chat gay vegas
2022-09-03 17:30:27
<strong>free live gay chat rooms https://gay-live-chat.net/</strong>
free live gay web can chat rooms
2022-09-03 22:15:36
<strong>random gay webcam chat https://chatcongays.com/</strong>
frree gay and bi chat sites in seattle wa
2022-09-04 03:34:20
<strong>oldest free chat line for straigh or gay https://gayphillychat.com/</strong>
ffree gay chat
2022-09-04 06:37:05
<strong>random gay video chat https://gaychatnorules.com/</strong>
snap chat gay boy dick
2022-09-04 12:43:40
<strong>free gay bi chat lines in seattle wa https://gaymusclechatrooms.com/</strong>
gay chat avenue new version
2022-09-04 18:48:45
<strong>bbc gay chat room free https://free-gay-sex-chat.com/</strong>
college papers for sale
2022-10-20 19:36:20
<strong>https://sociologypapershelp.com/</strong>
best paper writers
2022-10-20 20:27:22
<strong>professional paper writing services https://uktermpaperwriters.com/</strong>
help with writing papers
2022-10-20 21:55:36
<strong>college papers to buy https://paperwritinghq.com/</strong>
help writing my paper
2022-10-21 00:10:32
<strong>finished custom writing paper https://writepapersformoney.com/</strong>
custom college papers
2022-10-21 02:52:34
<strong>someone to write my paper for me https://doyourpapersonline.com/</strong>
professional college paper writers
2022-10-21 03:46:36
<strong>buy a college paper https://top100custompapernapkins.com/</strong>
where can i find someone to write my paper
2022-10-21 06:28:12
<strong>paper writing services for college students https://cheapcustompaper.org/</strong>
writing paper services
2022-10-21 08:19:48
<strong>college paper service https://writingpaperservice.net/</strong>
custom papers review
2022-10-21 09:19:17
<strong>custom thesis papers https://buyessaypaperz.com/</strong>
buy psychology papers
2022-10-21 10:46:13
<strong>write my philosophy paper https://mypaperwritinghelp.com/</strong>
ghost writer college papers
2022-10-21 11:55:45
<strong>professional paper writing services https://writemypaperquick.com/</strong>
where can you buy resume paper
2022-10-21 12:49:51
<strong>custom paper writing services https://essaybuypaper.com/</strong>
paper help
2022-10-21 17:40:49
<strong>pay to do paper https://ypaywallpapers.com/</strong>
pay to write papers
2022-10-21 18:39:21
<strong>write my philosophy paper https://studentpaperhelp.com/</strong>
2beacon
2023-01-26 15:03:05
<strong>3humanity</strong>
online coursework
2023-02-05 15:16:24
<strong>design technology coursework https://brainycoursework.com/</strong>
custom coursework writing
2023-02-05 16:10:00
<strong>coursework in english https://courseworkninja.com/</strong>
online coursework
2023-02-05 18:09:11
<strong>buy coursework https://writingacoursework.com/</strong>
creative writing coursework ideas
2023-02-05 19:07:26
<strong>coursework on a resume https://mycourseworkhelp.net/</strong>
coursework history
2023-02-05 20:13:37
<strong>coursework questions https://courseworkdownloads.com/</strong>
coursework writing services
2023-02-05 21:37:28
<strong>coursework paper https://courseworkinfotest.com/</strong>
coursework paper
2023-02-06 00:17:43
<strong>coursework writer uk https://teachingcoursework.com/</strong>
custom coursework writing
2023-02-06 01:41:03
<strong>coursework writers https://buycoursework.org/</strong>
coursework writing service
2023-02-06 02:31:08
<strong>coursework writing services https://courseworkdomau.com/</strong>
free adult personals
2023-02-08 12:47:02
<strong>pof login online https://freewebdating.net/</strong>
free dating online
2023-02-08 14:09:04
<strong>dating online best websites https://jewish-dating-online.net/</strong>
sites online dating
2023-02-08 15:23:07
<strong>beste dating site https://jewish-dating-online.net/</strong>
free dating net
2023-02-08 17:50:22
<strong>online love dating flash iframe https://sexanddatingonline.com/</strong>
the dating game
2023-02-08 21:13:35
<strong>best site dating https://onlinedatinghunks.com/</strong>
free online dating site
2023-02-08 22:40:59
<strong>free single dating online https://datingwebsiteshopper.com/</strong>
mature dating
2023-02-08 23:50:36
<strong>meet singles free https://allaboutdatingsites.com/</strong>
online chatting sites
2023-02-09 01:17:58
<strong>lightdatings life https://freedatinglive.com/</strong>
Яндекс.Метрика