SlideShare a Scribd company logo
Locally run a FIWARE Lab Instance
In another Hypervisor.
José Ignacio Carretero Guarde
FIWARE Cloud & Platform Expert
joseignacio.carrretero@fiware.org
@jicarreterogu
2
Schema
Deploy an instance in FIWARE Lab.
3
4
5
Deploying an Instance in Fw. Lab: A set of steps
Select Image
Select flavor, network,
security group, keypair ...
Launch new Instance selecting a base image...
… And eventually there will
be a running instance!!!
6
●
DHCP Network Configuration.
●
Network is configured using DHCP protocol for new Instances.
●
Cloud Init: Preinstalled Software
●
Retrieves Metadata from Openstack Metadata Server.
●
Retrieves Public Key and injects for user.
●
Retrieves and run configuration scripts.
Inside instance Creation
7
Finally the VM will be up an running.
8
Working with the VM
9
●
Once the work is done, a snapshot of the VM can be created
●
… Another instace can be created from the Snapshot
●
… The Snapshot can be downloaded
Create a Snapshot of our Working VM
Preparing the local environment …
Download the Snapshot
10
11
12
●
https://catalogue.fiware.org/enablers/iaas-ge-fiware-reference-implement
●
“We are using OpenStack Vanilla release for the IaaS GE.”
●
Openstack APIs work:
●
Compute APIs
●
Block Storage APIs
●
Image Service (Glance)
●
Object Storage
●
There are CLIs writen in Python...
IaaS GE – FIWARE Reference Implementation
13
# Assuming Python 2.7, python-dev, pip and virtualenv installed
virtualenv osdemo
source osdemo/bin/activate
pip install python-openstackclient
How to locally install the CLIs
14
# So they can be used later by the Openstack CLI tools
unset OS_TENANT_ID
unset OS_TENANT_NAME
export OS_REGION_NAME="Spain2"
export OS_USERNAME='joseignacio.carretero@fiware.org'
export OS_AUTH_URL=http://cloud.lab.fiware.org:4730
export OS_PROJECT_NAME="jicarretero cloud"
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_IDENTITY_API_VERSION=3
echo -n password: ; read -s OS_PASSWORD
export OS_PASSWORD
Define the OS_ variables
15
Download the Snapshot of the Running VM
# Download the Snapshot locally – This example’s snapshot
# name is inxutchsnp
# This can take a little long time...
openstack image save inxutchsnp > inxutchsnp.qcow2 &
16
●
Will be in QCOW2 Format
●
It will work out of the box on KVM, Openstack.
●
It will need to be converted in order to work in other Hypervisors
like Virtuabox
●
Cloud Init: Preinstalled Software
●
It might be better to have this removed in order to make the
instances boot faster (Not for Openstack)
The Downloaded Image
17
●
Will be accesible using the same private key as the original
instance (If it is builded from a Snapshot)
●
Since the file is not deleted in the Snapshot, it’ll be there.
●
If a Base Image is downloaded the Public Key must be injected
manually.
●
Will NOT have any Keypair at all if a Base Image from FIWARE Lab
is used.
●
Maybe the password must be changed before running a new
instance.
The Downloaded Image (II)
Locally manipulate the Image
… Image Conversions
18
19
20
●
Cloud Init: Preinstalled Software
●
This is the Major Software. It’ll search for an Openstack
Metadata Server and the VM wont be ready until it is done.
●
If the Metadata server is not found, It’ll take a long time to boot
before Cloud Init scripts quit from retrying.
●
This is not a problem is the target Hypervisor is in another
Openstack Based Cloud.
●
This does not apply for Openstacks
Why modify the Image.
21
●
The image can be locally mounted and manipulated:
Locally Manipulate the image:
# libguestfs-tools should be installed:
guestmount -a ${image} -i ${tempdir}
mount -o bind /dev ${tempdir}/dev
mount -o bind /proc ${tempdir}/proc
mount -o bind /sys ${tempdir}/sys
chroot ${tempdir}
22
●
Uninstall cloudinit (debian / Ubuntu)
Locally Manipulate the image (II):
# Remove using Apt
apt-get -y purge cloud-init cloud-guest-utils
●
Uninstall cloudinit (CentOS)
# Remove using yum
yum remove cloud-init
23
●
A password to the user(centos/debian/ubuntu) could be set
●
The user name depends on the Operating System of the image
Locally Manipulate the image (III):
# Create the password for the User – Type and retype the password
passwd ubuntu # Or centos or debian
24
●
After manipulating, umount “things”
Locally Manipulate the image (IV):
# Clean unmounting is a must
exit ## From chroot…
umount ${tempdir}/dev
umount ${tempdir}/proc
umount ${tempdir}/sys
umount ${tempdir}
25
●
Unfortunatelly, most Hypervisors doesn’t work with Qcow2 Format.
●
Need to convert the images to the Hypervisor image format.
●
Every Hypervisor has its own tools to import Raw images.
●
Convert qcow2 Image Format to Raw Image format
●
Raw format can be exported to other Hypervisors
●
Raw format can be exported to other Cloud solutions (i.e. AWS)
Image conversions
# qemu-utils must be installed:
qemu-img convert -f qcow2 -O raw ${qcow2imagefile} ${rawimagefile}
26
●
Convert raw Image to VDI (VirtualBox Format)
Image conversions (II)
●
Convert raw or qcow2 Image to vmdk (vmware Format)
# qemu-utils must be installed:
qemu-img convert -O vdi ${qcow2_or_raw_imagefile} ${vdi_imagefile}
# qemu-utils must be installed:
qemu-img convert -O vmdk ${qcow2_or_raw_imagefile} ${vmdk_imagefile}
Examples Creating new Vms:
Libvirt / Virtmanager (Linux Only)
VirtualBox (almost Universal)
27
28
29
●
Free Software For Linux
●
Spain Node uses this one (and likely every FIWARE Lab Region)
●
Recently, Amazon anounced they were moving to KVM
●
We will use virtmanager
●
A graphical interface which will help us to create a new VM.
●
The image we downloaded will work:
●
Qcow2 format is supported by KVM
Hypervisor KVM (Kernel-based Virtual Machine)
30
New VM with virt-manager
File → New Vm
Choose existing disk
Some other configurations
31
At the end our VM is up..
● There are some minor limitations:
● This DHCP server doesn’t provide a
name for the VM as Openstack DHCP
server does.
● The disk image should be placed in
/var/lib/libvirt/images
● The image should be owned by root
32
●
Oracle Virtual Box
●
It is free to Use – GPL V2.0
●
It is available in the most used Operating Systems.
●
It needs qcow2 to vdi conversion.
●
Quite Tricky migration to Virtual Box, but possible.
●
Create password for the user (ubuntu/centos/debian)
●
Modify grub.cfg – nomodeset
●
Modify network configurations – Maybe “eth0” is not appropiate
Virtual Box
33
Manually change grub
●
Not a solution itself but a work around to boot the 1st time.
●
Prevent the instance hanging on boot.
# libguestfs-tools must be installed:
guestmount -a ${vdi_imagefile} -i ${mount_directory}
sed -i 's|console=tty1 console=ttyS0|nomodeset|g' 
${mount_directory}/boot/grub/grub.cfg 
${mount_directory}/etc/default/grub.d/50-cloudimg-settings.cfg
# Do not forget to umount!!!
umount ${mount_directory}
34
Manually change grub (example)
35
Create Virtual Machine in Virtual Box:
36
At the end our VM is up..
● There can be a problem with the
network interface name which can be
solved using chroot.
● It shoud be considered configuring the
hardware of the VM (paravirtualized
network, SATA/IDE disk, etc.) – But this
is out of the Scope of this presentation.
37
Modify network configurations
●
Once the VM boots the 1st time (It might have no network)
●
Change the configuration files if needed so (i.e. Ubuntu 16.04,
CentOS 7).
# Ubuntu / Debian based images
/etc/network/interfaces
# CentOS based images
/etc/sysconfig/network-scripts/ifcfg-xxx
38
https://github.com/jicarretero/SummitMalaga2017
Thank You!
39
http://fiware.org
Follow @FIWARE on Twitter

More Related Content

PDF
OpenNebula Conf 2014 | OpenNebula and MooseFS for disaster recovery: real clo...
PDF
Open nebula is evolving paris techday 2015
PDF
Open nebula froscon
PDF
Build a private cloud – prototype and test with open nebula
PDF
TechDay - Cambridge 2016 - OpenNebula at Knight Point Systems
PDF
OpenNebulaConf 2016 - ONEDock: Docker as a hypervisor in ONE by Carlos de Alf...
PDF
OpenNebulaConf2017EU: One (Windows) Image to Rule them All by Paul Batchelor,...
PDF
OpenNebula 5.4 Hands-on Tutorial
OpenNebula Conf 2014 | OpenNebula and MooseFS for disaster recovery: real clo...
Open nebula is evolving paris techday 2015
Open nebula froscon
Build a private cloud – prototype and test with open nebula
TechDay - Cambridge 2016 - OpenNebula at Knight Point Systems
OpenNebulaConf 2016 - ONEDock: Docker as a hypervisor in ONE by Carlos de Alf...
OpenNebulaConf2017EU: One (Windows) Image to Rule them All by Paul Batchelor,...
OpenNebula 5.4 Hands-on Tutorial

What's hot (20)

PDF
Hâpy eole-gnu-linux-distribution
PDF
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
PDF
OpenNebulaConf 2016 - LAB ONE - Vagrant running on OpenNebula? by Florian Heigl
PDF
An OpenNebula Private Cloud
PDF
Docker Introduction + what is new in 0.9
PDF
LXC, Docker, and the future of software delivery | LinuxCon 2013
PDF
OpenNebula - OpenNebula and tips for CentOS 7
PDF
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
PDF
Your first dive into systemd!
PDF
TechDay - Cambridge 2016 - OpenNebula at Harvard Univerity
PDF
Getting Started Hacking OpenNebula - Fosdem-2013
PDF
Let's Containerize New York with Docker!
PDF
Containers with systemd-nspawn
PDF
Docker and Containers for Development and Deployment — SCALE12X
PDF
Effective service and resource management with systemd
PDF
OpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime Melis
PDF
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
PDF
Lightweight Virtualization: LXC containers & AUFS
PDF
Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !
PDF
OpenNebula TechDay Waterloo 2015 - Open nebula hands on workshop
Hâpy eole-gnu-linux-distribution
OpenNebulaConf 2013 - Hands-on Tutorial: 1. Introduction and Architecture
OpenNebulaConf 2016 - LAB ONE - Vagrant running on OpenNebula? by Florian Heigl
An OpenNebula Private Cloud
Docker Introduction + what is new in 0.9
LXC, Docker, and the future of software delivery | LinuxCon 2013
OpenNebula - OpenNebula and tips for CentOS 7
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
Your first dive into systemd!
TechDay - Cambridge 2016 - OpenNebula at Harvard Univerity
Getting Started Hacking OpenNebula - Fosdem-2013
Let's Containerize New York with Docker!
Containers with systemd-nspawn
Docker and Containers for Development and Deployment — SCALE12X
Effective service and resource management with systemd
OpenNebulaConf2015 2.03 Docker-Machine and OpenNebula - Jaime Melis
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Lightweight Virtualization: LXC containers & AUFS
Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !
OpenNebula TechDay Waterloo 2015 - Open nebula hands on workshop
Ad

Similar to Locally run a FIWARE Lab Instance In another Hypervisors (20)

ODP
FIWARE Lab Cloud Portal
PDF
OpenNebula 4.14 Hands-on Tutorial
PDF
TechDay - April - Tutorial
PDF
FIWARE Tech Summit - FIWARE Lab Cloud
PDF
OpenNebula TechDay Boston 2015 - installing and basic usage
PDF
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
PDF
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
PDF
NetBSD on Google Compute Engine (en)
PDF
Building a cloud ready linux image locally using KVM
ODP
Deploy Mediawiki Using FIWARE Lab Facilities
ODP
Deploy MediaWiki usgin Fiware Lab Facilities
ODP
How to access your FIWARE Lab Instance.
ODT
openQRM how-to: Setup UEC and openQRM cloud
PDF
Scale Big With Docker — Moboom 2014
DOCX
Krenel Based Virtual Machine In Centos7
PDF
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
PDF
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
PDF
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
PDF
OpenNebula - Key Aspects in CentOS
PDF
Vagrant are you still develop in a non-virtual environment-
FIWARE Lab Cloud Portal
OpenNebula 4.14 Hands-on Tutorial
TechDay - April - Tutorial
FIWARE Tech Summit - FIWARE Lab Cloud
OpenNebula TechDay Boston 2015 - installing and basic usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
NetBSD on Google Compute Engine (en)
Building a cloud ready linux image locally using KVM
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy MediaWiki usgin Fiware Lab Facilities
How to access your FIWARE Lab Instance.
openQRM how-to: Setup UEC and openQRM cloud
Scale Big With Docker — Moboom 2014
Krenel Based Virtual Machine In Centos7
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
OpenNebula - Key Aspects in CentOS
Vagrant are you still develop in a non-virtual environment-
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
top salesforce developer skills in 2025.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
System and Network Administration Chapter 2
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Transform Your Business with a Software ERP System
PPTX
ai tools demonstartion for schools and inter college
wealthsignaloriginal-com-DS-text-... (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Navsoft: AI-Powered Business Solutions & Custom Software Development
Odoo Companies in India – Driving Business Transformation.pdf
Nekopoi APK 2025 free lastest update
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Softaken Excel to vCard Converter Software.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Wondershare Filmora 15 Crack With Activation Key [2025
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Upgrade and Innovation Strategies for SAP ERP Customers
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
top salesforce developer skills in 2025.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
System and Network Administration Chapter 2
Reimagine Home Health with the Power of Agentic AI​
2025 Textile ERP Trends: SAP, Odoo & Oracle
Transform Your Business with a Software ERP System
ai tools demonstartion for schools and inter college

Locally run a FIWARE Lab Instance In another Hypervisors

  • 1. Locally run a FIWARE Lab Instance In another Hypervisor. José Ignacio Carretero Guarde FIWARE Cloud & Platform Expert joseignacio.carrretero@fiware.org @jicarreterogu
  • 3. Deploy an instance in FIWARE Lab. 3
  • 4. 4
  • 5. 5 Deploying an Instance in Fw. Lab: A set of steps Select Image Select flavor, network, security group, keypair ... Launch new Instance selecting a base image... … And eventually there will be a running instance!!!
  • 6. 6 ● DHCP Network Configuration. ● Network is configured using DHCP protocol for new Instances. ● Cloud Init: Preinstalled Software ● Retrieves Metadata from Openstack Metadata Server. ● Retrieves Public Key and injects for user. ● Retrieves and run configuration scripts. Inside instance Creation
  • 7. 7 Finally the VM will be up an running.
  • 9. 9 ● Once the work is done, a snapshot of the VM can be created ● … Another instace can be created from the Snapshot ● … The Snapshot can be downloaded Create a Snapshot of our Working VM
  • 10. Preparing the local environment … Download the Snapshot 10
  • 11. 11
  • 12. 12 ● https://catalogue.fiware.org/enablers/iaas-ge-fiware-reference-implement ● “We are using OpenStack Vanilla release for the IaaS GE.” ● Openstack APIs work: ● Compute APIs ● Block Storage APIs ● Image Service (Glance) ● Object Storage ● There are CLIs writen in Python... IaaS GE – FIWARE Reference Implementation
  • 13. 13 # Assuming Python 2.7, python-dev, pip and virtualenv installed virtualenv osdemo source osdemo/bin/activate pip install python-openstackclient How to locally install the CLIs
  • 14. 14 # So they can be used later by the Openstack CLI tools unset OS_TENANT_ID unset OS_TENANT_NAME export OS_REGION_NAME="Spain2" export OS_USERNAME='joseignacio.carretero@fiware.org' export OS_AUTH_URL=http://cloud.lab.fiware.org:4730 export OS_PROJECT_NAME="jicarretero cloud" export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_IDENTITY_API_VERSION=3 echo -n password: ; read -s OS_PASSWORD export OS_PASSWORD Define the OS_ variables
  • 15. 15 Download the Snapshot of the Running VM # Download the Snapshot locally – This example’s snapshot # name is inxutchsnp # This can take a little long time... openstack image save inxutchsnp > inxutchsnp.qcow2 &
  • 16. 16 ● Will be in QCOW2 Format ● It will work out of the box on KVM, Openstack. ● It will need to be converted in order to work in other Hypervisors like Virtuabox ● Cloud Init: Preinstalled Software ● It might be better to have this removed in order to make the instances boot faster (Not for Openstack) The Downloaded Image
  • 17. 17 ● Will be accesible using the same private key as the original instance (If it is builded from a Snapshot) ● Since the file is not deleted in the Snapshot, it’ll be there. ● If a Base Image is downloaded the Public Key must be injected manually. ● Will NOT have any Keypair at all if a Base Image from FIWARE Lab is used. ● Maybe the password must be changed before running a new instance. The Downloaded Image (II)
  • 18. Locally manipulate the Image … Image Conversions 18
  • 19. 19
  • 20. 20 ● Cloud Init: Preinstalled Software ● This is the Major Software. It’ll search for an Openstack Metadata Server and the VM wont be ready until it is done. ● If the Metadata server is not found, It’ll take a long time to boot before Cloud Init scripts quit from retrying. ● This is not a problem is the target Hypervisor is in another Openstack Based Cloud. ● This does not apply for Openstacks Why modify the Image.
  • 21. 21 ● The image can be locally mounted and manipulated: Locally Manipulate the image: # libguestfs-tools should be installed: guestmount -a ${image} -i ${tempdir} mount -o bind /dev ${tempdir}/dev mount -o bind /proc ${tempdir}/proc mount -o bind /sys ${tempdir}/sys chroot ${tempdir}
  • 22. 22 ● Uninstall cloudinit (debian / Ubuntu) Locally Manipulate the image (II): # Remove using Apt apt-get -y purge cloud-init cloud-guest-utils ● Uninstall cloudinit (CentOS) # Remove using yum yum remove cloud-init
  • 23. 23 ● A password to the user(centos/debian/ubuntu) could be set ● The user name depends on the Operating System of the image Locally Manipulate the image (III): # Create the password for the User – Type and retype the password passwd ubuntu # Or centos or debian
  • 24. 24 ● After manipulating, umount “things” Locally Manipulate the image (IV): # Clean unmounting is a must exit ## From chroot… umount ${tempdir}/dev umount ${tempdir}/proc umount ${tempdir}/sys umount ${tempdir}
  • 25. 25 ● Unfortunatelly, most Hypervisors doesn’t work with Qcow2 Format. ● Need to convert the images to the Hypervisor image format. ● Every Hypervisor has its own tools to import Raw images. ● Convert qcow2 Image Format to Raw Image format ● Raw format can be exported to other Hypervisors ● Raw format can be exported to other Cloud solutions (i.e. AWS) Image conversions # qemu-utils must be installed: qemu-img convert -f qcow2 -O raw ${qcow2imagefile} ${rawimagefile}
  • 26. 26 ● Convert raw Image to VDI (VirtualBox Format) Image conversions (II) ● Convert raw or qcow2 Image to vmdk (vmware Format) # qemu-utils must be installed: qemu-img convert -O vdi ${qcow2_or_raw_imagefile} ${vdi_imagefile} # qemu-utils must be installed: qemu-img convert -O vmdk ${qcow2_or_raw_imagefile} ${vmdk_imagefile}
  • 27. Examples Creating new Vms: Libvirt / Virtmanager (Linux Only) VirtualBox (almost Universal) 27
  • 28. 28
  • 29. 29 ● Free Software For Linux ● Spain Node uses this one (and likely every FIWARE Lab Region) ● Recently, Amazon anounced they were moving to KVM ● We will use virtmanager ● A graphical interface which will help us to create a new VM. ● The image we downloaded will work: ● Qcow2 format is supported by KVM Hypervisor KVM (Kernel-based Virtual Machine)
  • 30. 30 New VM with virt-manager File → New Vm Choose existing disk Some other configurations
  • 31. 31 At the end our VM is up.. ● There are some minor limitations: ● This DHCP server doesn’t provide a name for the VM as Openstack DHCP server does. ● The disk image should be placed in /var/lib/libvirt/images ● The image should be owned by root
  • 32. 32 ● Oracle Virtual Box ● It is free to Use – GPL V2.0 ● It is available in the most used Operating Systems. ● It needs qcow2 to vdi conversion. ● Quite Tricky migration to Virtual Box, but possible. ● Create password for the user (ubuntu/centos/debian) ● Modify grub.cfg – nomodeset ● Modify network configurations – Maybe “eth0” is not appropiate Virtual Box
  • 33. 33 Manually change grub ● Not a solution itself but a work around to boot the 1st time. ● Prevent the instance hanging on boot. # libguestfs-tools must be installed: guestmount -a ${vdi_imagefile} -i ${mount_directory} sed -i 's|console=tty1 console=ttyS0|nomodeset|g' ${mount_directory}/boot/grub/grub.cfg ${mount_directory}/etc/default/grub.d/50-cloudimg-settings.cfg # Do not forget to umount!!! umount ${mount_directory}
  • 35. 35 Create Virtual Machine in Virtual Box:
  • 36. 36 At the end our VM is up.. ● There can be a problem with the network interface name which can be solved using chroot. ● It shoud be considered configuring the hardware of the VM (paravirtualized network, SATA/IDE disk, etc.) – But this is out of the Scope of this presentation.
  • 37. 37 Modify network configurations ● Once the VM boots the 1st time (It might have no network) ● Change the configuration files if needed so (i.e. Ubuntu 16.04, CentOS 7). # Ubuntu / Debian based images /etc/network/interfaces # CentOS based images /etc/sysconfig/network-scripts/ifcfg-xxx