Category Archives: Virtualization

System Center Virtual Machine Manager 2012 R2: Вступление и оглавление

scvmm-2012-powershell-logo-high-res-r2Как я и обещал, в начале года публикую небольшой практический цикл статей по Hyper-V и Virtual Machine Manager 2012 R2. Теоретическую подготовку рекомендую получить в MVA, материалов там более чем достаточно. Также рекомендую пройти лабораторные работы.

Строго говоря, VMM это продукт, который управляет ресурсами фабрики (датацентром). Основной ценностью представляется возможность автоматизации развертывания сервисов, а не отдельных виртуальных машин. Очевидно, что эти возможности нужны только тем компаниям, которые имеют действительно большой объем ресурсов и большое количество типовых операций.

С другой стороны, Hyper-V, как и Windows Server достаточно распространен и в небольших компаниях, которые не используют VMware из-за высокой цены с сложности в управлении. Учитывая изменения в лицензировании System Center, многие компании которые ранее использовали один или несколько продуктов сейчас получили возможность использовать все продукты. Как правило, у таких компаний используется небольшое количество оборудования начального уровня, например iSCSI Storage или SMB Scale-out Fileshare на базе Windows Server. Изменения в инфраструктуру вносятся редко, никакой автоматизации не предполагается.

В этом цикле, я попытаюсь рассказать о том, как VMM может быть применен в таких компаниях.

Сразу скажу, что каких-либо преимуществ для бизнеса использование VMM в таких условиях не приносит, но для ИТ определенные плюсы есть.

План статей цикла таков:

Continue reading

Hypervisor performance on regular desktop

Choosing hypervisor for regular desktop/laptop running Windows seems to be easy – Hyper-V was and still the best.

But for some activities (such as running Vagrant) VirtualBox might be more suitable.

If you have to deal with server infrastructure running VMware it’s reasonable to use VMware Desktop because you can easily transfer VMs.

From CPU & RAM perspective all hypervisors are more or less the same, and I don’t care about GPU because I have a deal with servers.

Talking about networking VMware is good enough, but Hyper-V with “gate VM” is much more powerful and flexible.

But what’s really matters is HDD performance. I’ve tested it with simple tool called CrystalDiskMark , and here’re results:

Screen Shot 2016-08-16 at 22.12.29

PS On my MacBook Pro 15″, MacBook 12″ and iMac 27″ Parallels are much faster than VMware Fusion, and networking is definitely better – it’s really matters when you’re working with servers.

I hope this info will be useful for you, and if you need any help feel free to use contact from on the main page.

Vagrant for DevOps: Boxes

Boxes can be obtained from Atlas repos , from whatever other repos or created by ourselves with Packer or manually.
Please pay attention that almost all boxes are OK with VirtualBox , but only some can be used with other providers like Parallels, Hyper-V, AWS, etc.
Boxes are stored separately from VMs, in ~/.vagrant.d and during VM deploy process box is cloned to hypervisor default location.

Continue reading

Vagrant for DevOps: Vagrantfile

Vagrantfile is used to deploy the whole infrastructure from scratch on any machine running Vagrant.
Vagrantfile describes environment configuration – stuff like VMs, shares, networking, etc.
Vagrantfile should be stored in VCS, such as Git – we’ll be able to share environment configurations within the team and switch between different environment versions.

Vagrantfile should be stored in the project directory, but if it’s not found there, vagrant will search for it in all dirs from project to / :

Screen Shot 2016-05-25 at 17.02.05
And for security reasons you might want to store Vagrantfiles in a private dir, in this case use environment variable VAGRANT_CWD to specify a path.
If you have a few Vagrantfiles, vagrant will automatically merge them, but it’s not really common practice.

We can generate simple vagrant file with vagrant init command, but we’ll construct our own configuration which would be a bit more complex.
Vagrantfiles are ruby-based, so it’s really easy to have a deal with syntax.

Continue reading

Vagrant for DevOps

vagrant_chillingIntroduction

With Vagrant we can build and share reproducible and predictable environments using environment-as-code principles.
Vagrant can deploy both on-premise environments based on VirtualBox, VMware, Hyper-V, Parallels and cloud, such as DigitalOcean, Azure and AWS.
I prefer to use tools like CloudFormation to build cloud environments, so I’ll focus on on-premise in this post.

Vagrant can also work with Docker, but now we have native Docker not only on Linux, but also on Windows and OS X, so Vagrant can be used only for complex or legacy Docker scenarios.

Typically Vagrant is used to deploy infrastructure (servers) and Chef, Puppet or Ansible are used to deploy software to those servers.
You can find a full list of providers, provisioners and all other stuff here – https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins

Continue reading

Hyper-V backups with PowerShell

backup_iconНередко встречаются случаи, когда в организации используется один или несколько хостов под управлением Hyper-V, на которых расположены виртуальные машины с “инфраструктурой” и “бизнес-приложениями” (в кавычках, потому что граница между ними достаточно размыта).
В таком случае разумно выполнять резервное копирование виртуальных машин (расписание для “инфраструктурных” и “бизнесовых” обычно разное), резервное копирование конфигурации хостов и резервное копирования баз SQL сервера.
Резервное копирование в таких случаях чаще всего выполняется на USB диск или сетевую шару. Неплохо держать на UBS или локальном диске резервную копию “на подхвате”, а на сетевой шаре хранить бэкап на случай если что-то случится с основной площадкой.
Для таких задач использование “тяжелых” систем резервного копирования вроде SC DPM, Symantec, Acronis очевидно излишне.
Поэтому я решил написать несколько скриптов, которые будут создавать резервные копии, удалять старые и отправлять отчеты на электронную почту с шифрованием.
Continue reading