KVM INSTALLATION
egrep -c '(vmx|svm)' /proc/cpuinfo
check if output > 2 else no installation
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser ‘username of the system we can use whoami to know’ libvirt
sudo adduser ‘username of the system we can use whoami to know’ kvm
sudo systemctl enable --now libvirtd
sudo apt install virt-manager
sudo virt-manager
#do through GUI form here
_______________________________________________________________________________________________________________________
OpenStack
add the iso
login id and password openstack
sudo dhclient enp0s3
sudo ifconfig enp0s3 up
localhost:8888
login web
id :- admin
password :- openstack
_______________________________________________________________________________________________________________________
REST
crud
npm init -y
create index.js
npm I express
node index.js
MTOM
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
using System.Web.Hosting;
using System.Web.Http;
using System.Web.Mvc;
namespace DownloadImageAPI.Controllers
{
public class FileController : ApiController
{
private readonly string DefaultImage = HostingEnvironment.MapPath("~/Content/default.png");
public HttpResponseMessage Get()
{
Image baseImage = Image.FromFile(DefaultImage);
using (var memoryImage = new MemoryStream())
{
baseImage.Save(memoryImage, ImageFormat.Png);
byte[] imgData = memoryImage.ToArray();
MemoryStream ms = new MemoryStream(imgData);
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
response.Content = new StreamContent(ms);
response.Content.Headers.ContentType = new
System.Net.Http.Headers.MediaTypeHeaderValue("image/png");
return response;
}
}
}
}