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

Установка Windows на Xen очень сильно отличается от развертывания паравиртуализованных гостей — есть отличия как в процессе установки, так и в последующей настройке. Все моменты я постараюсь подробно объяснить в статье.


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


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

Как всегда сначала обратимся к теоретической составляющей.

Типы DomU

В основе Xen лежит понятие паравиртуализации 1. Его суть заключается в том, что ядра ОС непривилегированных доменов (DomU) осведомлены о работе на гипервизоре и оптимизированы для обеспечения лучшей производительности. Вследствие этого им также не нужна дорогостоящая с точки зрения производительности прослойка эмулированных устройств. Такие гостевые ОС называются паравиртуализованными (или PV-guests в английской терминологии).

Установка Windows на Xen 01

Все это, разумеется, относится лишь к свободно распространяемым операционным системам. ОС с закрытым кодом, такие как Windows, не могут похвастаться «пропатченным» под Xen ядром, в этой связи им необходима эмуляция оборудования. Такие ОС называются полностью виртуализованными гостями (или HVM-guests — Hardware-assisted virtualizion).

Примечание: многие ошибочно считают паравиртуализацию исключительным преимуществом Xen. Это было бы действительно так, если бы сейчас на дворе был 2007 год, а не 2017. На данный момент любые широко распространенные ОС либо имеют «PV-драйверы», либо уже пропатчены на уровне ядра для нативной поддержки виртуализации. Это можно сказать и про Windows, но лишь в отношении работы под Hyper-V (речь особенно про виртуальные машины 2 поколения). Кстати, поддержка Hyper-V через службы интеграции внедрена уже и в UNIX/Linux-системах. Все это привело к тому, что погрешности в производительности гостевых ОС между различными платформами виртуализации практически сравнялись. Сейчас же достоинства той или иной платформы оцениваются скорее в возможностях масштабирования, управления, мониторинга и т.п.. Надеюсь эти факты наконец закончат бесконечные споры о том какой гипервизор лучше.

В плане производительности PV и HVM — это две крайности.

Чтобы как-то улучшить показатели гостей HVM, были разработаны специальные драйверы, называемые PVHVM-drivers 2. Подобные драйверы для PV-гостей уже встроены в ядро, а потому в их установке нет никакой необходимости.

Примечание: если быть более точным, то PV drivers и PV HVM drivers вроде бы как разные понятия. Как минимум в официальной документации 3 представляется именно так. Тем не менее, для себя я эту тонкую грань уловить так и не смог и маны в этом не помогли: We use different abbreviations to refer to these configurations, called HVM with PV drivers, PVHVM and PVH.

Сводную таблицу с типами гостей вы можете найти в официальной документации:

Установка Windows на Xen 02

В любом случае рассмотренных выше понятий для базового понимания виртуализации на основе Xen вполне достаточно, а потому движемся дальше.

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

Итоговый файл конфигурации:

Найти информацию о создании сетевого моста и виртуальных жестких дисков вы можете в моих недавних статьях — Установка гипервизора Xen и Виртуальные жесткие диски в Xen соответственно. В данном примере я используют реализацию дисковой подсистемы гостя на основе LVM. MAC-адрес в настройках адаптера взят для примера, измените его у себя.

Примечание: большинство ресурсов 4 в интернете содержат перегруженные ненужной информацией файлы конфигурации для HVM-Гостей (возможно так оно и надо для более ранних версий гостевых ОС и самого гипервизора Xen). В своем примере я собрал лишь необходимые параметры, все остальные являются опциональными. Как минимум это справедливо для Windows Server 2012 R2, с которой я проводил эксперименты.

Обратите внимание на активацию консоли VNC. Это необходимо для установки Windows в ручном режиме.

Если потребуется, вы можете воспользоваться дополнительными параметрами конфигурации 5.

Как только все будет готово к созданию ВМ, выполните команду:

где vmconfig.cfg — только что созданный файл конфигурации.

Установка Windows

Качаем VNC Viewer 6 с официального сайта, подключаемся к виртуальной машине. Вы увидите что-то подобное:

Установка Windows на Xen 03

Устанавливайте систему как вы делаете это обычно.

После завершения установки заглушите виртуальную машину и в файле конфигурации закомментируйте строку boot = «d». Буква d означает загрузку с DVD-ROM. На ваше усмотрение вы можете прописать значения «cd», означающие загрузку сначала с жесткого диска, а потом с DVD-ROM.

Настройка Windows

После установки системы необходимо поставить PV-драйверы 7, о которых я говорил в самом начале, благо для Windows они существуют.

У меня все заработало и без этих драйверов, но например скорость подключения по сети упиралась в 100 Мбит/сек, что уж совсем неприлично, имея гигабитный адаптер.

Как только драйверы будут установлены, после перезагрузки виртуальной машины в диспетчере устройств вы увидите:

Установка Windows на Xen 04

На этом установка завершена.

comments powered by HyperComments
3beneficiary
2022-07-04 22:58:47
<strong>1industries</strong>
tips on writing a dissertation
2022-07-05 15:13:14
<strong>writing a phd dissertation https://professionaldissertationwriting.org/</strong>
dissertation proofreading services
2022-07-05 19:03:52
<strong>uf dissertation award https://professionaldissertationwriting.com/</strong>
writing your doctoral dissertation
2022-07-05 21:37:48
<strong>dissertation editing services https://helpwithdissertationwritinglondon.com/</strong>
dissertation template
2022-07-06 00:26:55
<strong>writing a proposal for your dissertation https://dissertationwritingcenter.com/</strong>
chicago illinois dissertation help
2022-07-06 01:19:35
<strong>dissertation proposal writing service https://dissertationhelpexpert.com/</strong>
dissertation help scam
2022-07-06 04:14:50
<strong>what does dissertation mean https://accountingdissertationhelp.com/</strong>
doctoral dissertation help your
2022-07-06 07:31:19
<strong>dissertation help service binding https://examplesofdissertation.com/</strong>
dissertation crossword clue
2022-07-06 08:55:09
<strong>dissertation meaning https://writing-a-dissertation.net/</strong>
writing a dissertation in a day
2022-07-06 12:36:07
<strong>dissertation help service binding https://bestdissertationwritingservice.net/</strong>
dissertation help online free
2022-07-06 13:54:27
<strong>best dissertation writing service review https://businessdissertationhelp.com/</strong>
help tutor
2022-07-06 16:47:29
<strong>thesis and dissertation writing https://customdissertationwritinghelp.com/</strong>
custom dissertation writing services
2022-07-07 00:49:53
<strong>dissertation https://dissertationhelpspecialist.com/</strong>
writing a dissertation methodology
2022-07-07 04:11:58
<strong>dissertation help service quality https://dissertationhelperhub.com/</strong>
dissertation crossword clue
2022-07-07 07:23:52
<strong>phd thesis https://customthesiswritingservices.com/</strong>
gta online casino
2022-07-25 19:47:19
<strong>vegas casino online no deposit bonus codes 2021 https://download-casino-slots.com/</strong>
greektown online casino
2022-07-25 21:45:59
<strong>online casino no deposit promo codes https://firstonlinecasino.org/</strong>
harrahs casino online
2022-07-26 00:53:24
<strong>no deposit bonus codes for online casino https://onlinecasinofortunes.com/</strong>
best online casino sign up bonus
2022-07-26 04:30:35
<strong>online casino canada https://trust-online-casino.com/</strong>
golden dragon online casino
2022-07-26 10:06:11
<strong>online casino new jersey https://9lineslotscasino.com/</strong>
best online casino canada
2022-07-26 13:02:19
<strong>win real money online casino https://free-online-casinos.net/</strong>
vegas casino online no deposit bonus codes 2021
2022-07-26 18:07:13
<strong>online casino that accepts visa https://cybertimeonlinecasino.com/</strong>
no min deposit online casino
2022-07-26 21:05:20
<strong>online casino with free bonus without deposit https://1freeslotscasino.com/</strong>
lucky casino online
2022-07-27 06:20:40
<strong>casino online free games https://onlineplayerscasino.com/</strong>
liberty online casino
2022-07-27 11:37:48
<strong>lucky lady casino online https://all-online-casino-games.com/</strong>
best vpn canada
2022-08-07 14:59:24
<strong>virtual shield vpn https://freevpnconnection.com/</strong>
best vpn browser
2022-08-07 16:50:06
<strong>hotspot shield vpn proxy free https://shiva-vpn.com/</strong>
vpn software free
2022-08-07 19:24:06
<strong>best vpn app https://freehostingvpn.com/</strong>
best vpn for apple
2022-08-07 22:30:36
<strong>buy secure vpn https://ippowervpn.net/</strong>
best vpn for price
2022-08-08 00:33:37
<strong>zenmate vpn https://imfreevpn.net/</strong>
buy a vpn server
2022-08-08 02:31:23
<strong>best vpn for porn https://superfreevpn.net/</strong>
best rated vpn 2018
2022-08-08 04:19:42
<strong>free vpn software https://free-vpn-proxy.com/</strong>
manhunt gay dating site login page
2022-08-23 13:40:05
<strong>completely free gay dating sites https://gay-singles-dating.com/</strong>
chubby gay mens dating sites
2022-08-23 16:27:12
<strong>gay dating show youtube https://gayedating.com/</strong>
does pof allow for gay dating
2022-08-23 19:06:42
<strong>chicago gay dating hotlines free https://datinggayservices.com/</strong>
adult online dating
2022-08-24 12:11:11
<strong>100% dating site https://freephotodating.com/</strong>
100% free dating sites no fees
2022-08-24 14:22:30
<strong>personals online https://onlinedatingbabes.com/</strong>
top online dating
2022-08-24 16:57:24
<strong>dating usa https://adult-singles-online-dating.com/</strong>
positive singles
2022-08-24 19:58:47
<strong>fdating 100 free dating site free https://adult-classifieds-online-dating.com/</strong>
chat with singles
2022-08-24 21:47:20
<strong>totally free dating sites no fees ever https://online-internet-dating.net/</strong>
danting site
2022-08-24 23:34:16
<strong>mature woman dating pictures https://speedatingwebsites.com/</strong>
free online chat
2022-08-25 02:48:21
<strong>skycouger gf https://datingpersonalsonline.com/</strong>
topchatsites
2022-08-25 06:24:10
<strong>online marriage sites in usa https://lavaonlinedating.com/</strong>
intitle:dating
2022-08-25 10:05:17
<strong>free sites https://freeadultdatingpasses.com/</strong>
dating meet singles
2022-08-25 11:12:31
<strong>100% free dating sites no fees https://virtual-online-dating-service.com/</strong>
online free
2022-08-25 15:01:16
<strong>flirting dating site https://zonlinedating.com/</strong>
free good
2022-08-25 15:54:50
<strong>free chat sites dating https://onlinedatingservicesecrets.com/</strong>
online casino nj
2022-08-30 11:12:09
<strong>new online casino no deposit bonus https://onlinecasinos4me.com/</strong>
stardust online casino
2022-08-30 13:37:30
<strong>online casino florida https://online2casino.com/</strong>
black lotus online casino
2022-08-30 16:46:25
<strong>cabaret club online casino https://casinosonlinex.com/</strong>
springfield mo gay chat room
2022-09-03 00:37:11
<strong>free gay video chat https://newgaychat.com/</strong>
nc gay chat room
2022-09-03 07:26:13
<strong>gay chat apps for pc https://gaychatcams.net/</strong>
gay universe man chat
2022-09-03 11:25:27
<strong>free gay chat nrooms https://gaychatspots.com/</strong>
nc gay free chat room
2022-09-03 16:05:48
<strong>gay chat roul https://gay-live-chat.net/</strong>
live video streaming gay chat
2022-09-03 19:10:39
<strong>free asain gay chat lines https://chatcongays.com/</strong>
gay male chat
2022-09-04 04:03:48
<strong>gay chat ru=oulette https://gayphillychat.com/</strong>
gay tennessee chat rooms
2022-09-04 06:34:04
<strong>gay universe men chat https://gaychatnorules.com/</strong>
free gay chat no sign up
2022-09-04 12:21:48
<strong>rhode island free chat gay https://gaymusclechatrooms.com/</strong>
denver gay chat
2022-09-04 14:51:23
<strong>gay bisexual chat rooms https://free-gay-sex-chat.com/</strong>
gay male incest chat
2022-09-05 00:01:39
<strong>gay video chat sites realty to dirtyrouletty https://gayinteracialchat.com/</strong>
gay roleplay chat
2022-10-20 16:53:00
<strong>gay chat ohio https://gaymanchatrooms.com/</strong>
write my paper cheap
2022-10-20 18:30:12
<strong>do my papers https://term-paper-help.org/</strong>
someone write my paper
2022-10-20 20:05:47
<strong>professional paper writers https://sociologypapershelp.com/</strong>
buy academic papers
2022-10-20 20:53:41
<strong>order a paper https://uktermpaperwriters.com/</strong>
custom paper writing
2022-10-21 01:10:54
<strong>buy cheap paper online https://write-my-paper-for-me.org/</strong>
custom paper writing services
2022-10-21 04:18:48
<strong>where can i buy resume paper https://top100custompapernapkins.com/</strong>
pay to write paper
2022-10-21 05:38:45
<strong>order a paper online https://researchpaperswriting.org/</strong>
best write my paper website
2022-10-21 07:54:30
<strong>psychology paper writing service https://writingpaperservice.net/</strong>
pay someone to write your paper
2022-10-21 10:29:37
<strong>buy college paper online https://mypaperwritinghelp.com/</strong>
help writing a college paper
2022-10-21 12:09:37
<strong>buying college papers online https://writemypaperquick.com/</strong>
paper writing services for college students
2022-10-21 12:55:00
<strong>buy resume paper https://essaybuypaper.com/</strong>
buy psychology papers
2022-10-21 15:43:40
<strong>paper writing help https://premiumpapershelp.com/</strong>
custom written paper
2022-10-21 16:58:18
<strong>custom papers writing https://ypaywallpapers.com/</strong>
online paper writing services
2022-10-21 18:50:32
<strong>write my paper one day https://studentpaperhelp.com/</strong>
1quantities
2023-01-27 00:29:06
<strong>3allurement</strong>
coursework history
2023-02-05 14:30:01
<strong>buy coursework online https://brainycoursework.com/</strong>
creative writing english coursework
2023-02-05 16:41:51
<strong>creative writing english coursework https://courseworkninja.com/</strong>
design technology coursework
2023-02-05 16:59:00
<strong>coursework online https://writingacoursework.com/</strong>
coursework in english
2023-02-05 18:30:16
<strong>data analysis coursework https://mycourseworkhelp.net/</strong>
coursework masters
2023-02-05 20:44:20
<strong>coursework samples https://courseworkdownloads.com/</strong>
custom coursework
2023-02-05 21:35:45
<strong>coursework https://courseworkinfotest.com/</strong>
coursework in english
2023-02-05 23:14:14
<strong>creative writing english coursework https://coursework-expert.com/</strong>
cpa coursework
2023-02-06 00:06:56
<strong>creative writing coursework ideas https://teachingcoursework.com/</strong>
coursework project
2023-02-06 01:25:31
<strong>help with coursework https://buycoursework.org/</strong>
design coursework
2023-02-06 03:25:51
<strong>online coursework https://courseworkdomau.com/</strong>
best site dating
2023-02-08 15:03:52
<strong>internet dating site https://jewish-dating-online.net/</strong>
sex dating free
2023-02-08 16:34:13
<strong>pof dating app https://free-dating-sites-free-personals.com/</strong>
westminster dating app the world
2023-02-08 17:55:17
<strong>absolutely free local dating site https://sexanddatingonline.com/</strong>
no credit card dating sites
2023-02-08 18:32:11
<strong>ourtime logga in https://onlinedatingsurvey.com/</strong>
online-dating-ukraine
2023-02-08 19:47:02
<strong>plenty of fish https://onlinedatingsuccessguide.com/</strong>
international dating site usa
2023-02-08 21:25:55
<strong>free online go https://onlinedatinghunks.com/</strong>
women for free
2023-02-08 22:14:42
<strong>online dating app https://datingwebsiteshopper.com/</strong>
online dating
2023-02-09 01:07:14
<strong>dating naked https://freedatinglive.com/</strong>
Яндекс.Метрика