Skip to content

Instantly share code, notes, and snippets.

View Sorecchione07435's full-sized avatar
🏠
Working from home

Stefor07 Sorecchione07435

🏠
Working from home
View GitHub Profile
@Sorecchione07435
Sorecchione07435 / OpenStack_on_Hyperv.md
Last active September 10, 2024 12:28
OpenStack on Hyper-V

How to Deploy an OpenStack cloud environment on Hyper-V

To have your OpenStack environment on Hyper-V, the computer must meet some requirements:

Minimum requirements

  • Operating System: Windows 8.1+
  • Processor with at least 4 cores
  • Memory: 8GB (For Testing)
  • Hardware-assisted virtualization enabled (IVT)
  • Windows with Hyper-V Support
@Sorecchione07435
Sorecchione07435 / Cinder_Volume_Windows.md
Last active October 29, 2023 15:46
How to Install Cinder Volume for Windows

How to Install Cinder Volume for Windows

This is a separate guide that shows how to create volumes on OpenStack inside Windows

This guide continues the previous one: OpenStack on Hyper-V

This guide is totally OPTIONAL, it is only necessary if you want to create volumes from Windows

Creating SMB Share for Volumes Location

@Sorecchione07435
Sorecchione07435 / Convert_Cloud_Images_for_Hyperv.md
Last active October 29, 2023 15:45
How to convert cloud images to VHD to run on Hyper-V

How to convert cloud images to VHD to run on Hyper-V

If you followed the previous guide where I explained how to obtain a functional OpenStack distribution internally on Windows, and you would like to use Ubuntu, CentOS 7 etc. cloud images

In this guide we will explain how to convert virtual disks of cloud images downloaded from the Internet to VHD format to run instances on the Hyper-V Hypervisor

Create Network SMB Share

Obviously, a network share is required to access the image downloaded on your computer by the OpenStack controller

@Sorecchione07435
Sorecchione07435 / Microstack_Configurer_WSL2_V2.md
Last active December 1, 2023 17:29
Microstack (OpenStack) Configurer WSL2 V2

Microstack (OpenStack) Configurer WSL2 V2

Microstack Configurer WSL2 is a simple SH script that automates WSL2 configuration to install Microstack inside WSL2

Which unlike the previous script here the new script won't need to compile the kernel every time because it will have a vmlinux already compiled with kernel modules too

Requirements:

  • Windows 10 or Windows 11 (22H2)
  • WSL2 with Systemd support
  • Clean WSL Distro with Ubuntu 20.04 or 22.04
@Sorecchione07435
Sorecchione07435 / Portable_VirtualBox.md
Last active April 27, 2024 17:32
A Portable VirtualBox

VirtualBox Portable

VirtualBox Portable is a set of files that allows you to configure 90% of a VirtualBox Portable to which you can take your own portable operating systems an alternative to VBox.me

It is available in Italian and English The current version of VirtualBox may not be the latest but it is quite stable it is 5.1.38

After extracting the files for VirtualBox at the end of the installation you can decide whether to install the Drivers and close, you can do it manually by double-clicking on the "Install.exe" file which will install all the drivers to make VirtualBox work, if you are done using VirtualBox on that computer just run "Uninstall.exe" to uninstall all the Drivers and then you can remove the USB stick (If in case you are using it on Stick)

Your virtual machines will be stored in the "Virtual Machines" folder while all the VirtualBox settings including the VirtualBox.xml will be stored in the Home folder

@Sorecchione07435
Sorecchione07435 / README.md
Last active January 1, 2024 15:02
How to delete undeletable volumes in OpenStack

How to delete undeletable volumes in OpenStack

In this guide I show how to forcibly delete volumes that cannot be deleted on OpenStack

Fetching the IDs

First of all the first thing you need to do is list all the volumes

openstack volume list
@Sorecchione07435
Sorecchione07435 / Get_OpenStack_on_Windows.md
Last active April 4, 2024 20:16
Get OpenStack on Windows

How to deploy OpenStack on Microsoft Windows

Nuovo progetto

What is OpenStack?

OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed and provisioned through APIs with common authentication mechanisms.

A dashboard is also available, giving administrators control while empowering their users to provision resources through a web interface.

@Sorecchione07435
Sorecchione07435 / Preinstalled OpenStack VirtualBox Image.md
Last active December 1, 2023 17:24
Preinstalled OpenStack VirtualBox Image

Preinstalled OpenStack VirtualBox Image

An image with CentOS 7 and OpenStack pre-installed that can be imported directly from VirtualBox

Description

This is a ready-made virtual machine with CentOS7 operating system installed with OpenStack deployed, and can be used to indulge yourself in creating instances, volumes, images, whatever you want, the performance of the instances varies by how much RAM and CPU are allocated to the VM

Port forwarding is already configured

257071578-cac13d54-3108-44e7-a5c4-8e6f51f8f982

@Sorecchione07435
Sorecchione07435 / How_to_connect_to_RDP_to_OpenStack_instances.md
Last active December 7, 2023 20:42
How to connect to RDP to OpenStack instances

How to connect to RDP to OpenStack instances (Hyper-V)

This short guide shows how to connect to instances launched in OpenStack in RDP on Hyper-V, this is useful if you are running Windows inside an OpenStack instance, you will not need to use key pairs

Problem to rule out:

  • Make sure your instance running Windows etc. has access to the Internet, because obviously if the instance doesn't have internet you won't be able to connect

If you want to check that your instance has access to the Internet, you can run the ping command inside the instance

ping 8.8.8.8 or ping google.com

@Sorecchione07435
Sorecchione07435 / How_to_enable_nested_virtualization_in_an_OpenStack_instance_on_Hyper-V.md
Last active February 4, 2024 11:50
How to enable nested virtualization in an OpenStack instance on Hyper-V

How to enable Nested Virtualization in OpenStack on Hyper-V

If you followed my last gist on how to deploy OpenStack on Hyper-V, if anyone has wondered if it is possible to run an OpenStack instance on the Hyperv hypervisor with nested virtualization, this is possible and this gist shows how to do it

Obtaining the VM related to the instance

The hyperv hypervisor if configured correctly with its controller, each instance launched with that hypervisor will run inside Windows, and on the Hyper-V Manager these VMs will have the name like this "instance-0000000x"

Open a PowerShell window as administrator and type the following commands