Message-ID: <13375563.513.1711727174850.JavaMail.serveradmin@t01app> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_512_29184631.1711727174844" ------=_Part_512_29184631.1711727174844 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Not ready for others to use.
Google Cloud's Compute Engine uses KVM as the hypervisor= . Nuff said in terms of longevity, security and sup= port. The other advantage and reason I settled on KVM is that unlike other hypervi= sors it works with pretty much any hardware (which I found out the hard way= trying to get my old Dell laptop working with other options first).
What is outlined here can be considered foundational home Cloud to gain = an under the hoods look at Google Cloud engine.
Setup Ubuntu Server on Dell laptop (really don't use Dell because it has= various challenges... ).
I initially did this using seutpadmin (and noticed after that it somehow= got added to the group libvirtd)... which is required to manage libvirtd.<= /p>
This is a true server, so no GUI to keep down maintenance.
Install KVM using Ubuntu instructions. = Will manage using VirtManager= .
To get things going here simply... do not setup ssh key only authentication yet. Instead just enable key authentication, (keep lin= e x commented out) and you will have both password and key authentication w= orking.
It looks like by default the account used to install KVM gets added to t= he group libvirtd (to confirm this).
If you want an account to manage KVM, you must add the group libvirtd to= the account on the Hypervisor host. In this case, I would like my staff ac= count tin.pham for both local and later remove client administration of KVM= .
In keeping things simple, I do not start out with tin.pham enabled to us= e ssh key authentication.
Best to use Ubuntu default Desktop. I'm using the Ubuntu default desktop= in a VMWare Fusion on my iMac (link to this as separate article where the = Ubuntu desktop is also stripped down).
I like consistency, but you don't need to do same... I plan to manage wi= th tin.pham so I create the exact same user with same id. Note it looks lik= e the (period) in tin.pham causes a bug in the gui Desktop so I manually cr= eate the user and add the groups required,
# to pu= t instructions here... but basically create at terminal like normal, then l= ook at the initial default setup user, in this case setupadmin and replicat= e the groups=20
Install Virtual Manager,
sudo ap= t-get install virt-manager=20
Install passkey,
Install SSH Ask Pass Addon to Ubuntu Gnome Desktop= ,
sudo ap= t-get install ssh-askpass-gnome=20
Ignore the extra virt-manager login during intial login.
Change some defaults,
Edit, Preferences,
Then View, Graph and enable Memory Usage.
... instructions from screenshots to put up
... show and talk about error if user account being used does not have l= ibvirtd in groups.
... then delete and enable authentication
... tip having trouble make sure both passphrase and key work and use tw= o distinct accounts to test
Upload ISO images into /var/lib/libvirt/images ... I can customize by mo= difying gui to add storage pool but what exactly is the concept ?.
/opt/kvm-data/iso-images/
There's a tricky thing here &= nbsp;"Spice server" to "VNC server" ... look up how to make "VNC serve= r" the default for VM creations.
VNC... Ensure you have good enough resolution... lookup how to refresh v= nc screen....
I setup using direct ISO loads.
Easy and one via iso load. Just link to slimming down.
Windows unlike Linux requires virtio drivers to get features for the VM = to,
Note though that I found with VirtIO Disk I lost the ability to take sna= pshots though with VirtIO Disk... I believe this is just a bug though and w= ill get fixed in the future (July 2017).
...
Download and load the Virtio Floppy Disk (virtio-win amd64 floppy).
Start the Windows 7 setup as normal but you will be prompted the V= irtio Hard Disk drivers which you point to on the floppy.
Don't update Windows yet. Shutdown and load Windows 7 ISO (virtio-win = iso) from RedHat. B= oot up.
Going into device manager you will see something missing, it'= s the memory driver so load it.
Shutdown again you then need to set the min (current allocation) a= nd max (maximum allocation) to properly use the vritio memory driver). You = might want to watch your actual memory usage to determine best min because = ballooning likely (need to check) take resources and you also want to not s= et yourself up to be over allocated if other systems ballon too. For m= y needs Win 7 I find it usually stays at 1.6GB, so I allocate 1.6GB - 4GB.<= /span>
Finally, the default realtek network should work, but to get bette= r performance switch to the virtio network card and repeat.
Not supported officially yet. Windows 7 is more than fine given it won't= drop support for next few years. Unofficial here,
Finally Good more decent instructions - http://www.techotopia.com/index.php/C= reating_a_CentOS_6_KVM_Networked_Bridge_Interface
Instructions - http://bart= .vanhauwaert.org/hints/installing-win10-on-KVM.html
Ubuntu KVM Guest Drivers - http= s://launchpad.net/kvm-guest-drivers-windows/+download
KVM can setup up a Public Bridge during boot of the VM and this can be m= anipulated using VMM (Virtual Machine Manager).
First confirm the name of your active network card.
(to put instructions here)
Using VMM. Turn off you VM if not already off. Load Information window, = choose NIC, change Network source to Host device macvtap. Notice KVM auto g= enerated a unique mac.
Boot and now your VM exists like a real machine on your existing network= ....
But this is not really a good solution and problematic as I foun= d with Ubuntu Desktop... leading to the real solution which is to use VMM a= t the higher level and configure a proper bridge.
Finally found the clarity by following instructions at techotopia.com. Note as= you follow the VMM GUI instructions you will find VMM will get disconnecte= d after it executes the changes. Just reconnect after the changes are done.=
Abridged notes...
You end up with /etc/network/interfaces going from this,
... put original file here...
To this
... to pu here ...
Additionally if you want to use a static IP,
Go from this,
# This = file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp2s0 iface enp2s0 inet static address 192.168.0.7 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1=20
And after using VMM to configure the bridge it should look like this,
This f= ile describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto br0 iface br0 inet dhcp bridge_ports enp2s0 bridge_stp on bridge_fd 0.0=20
And then you need to manually edit to give br0 the static ip,
# This = file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto br0 iface br0 inet static address 192.168.0.7 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 bridge_ports enp2s0 bridge_stp on bridge_fd 0.0=20
If interested, you may want to read more details about bridge networking for vir= tualization.
...
Did not work retrofitting... so this time trying during vm setup before = install,
Network selection, Host device macvtp, Bridge... hmmm what is Passthroug= h
...
Understanding Dynamic Memory...
Windows zero's memory on boot so uses it all.
Some Linux (check Ubuntu and how LXD goes into this) is smart with ballo= on drivers which release memory back to host if not used.
Hypervisor view of managing resources - http://www.altaro.com/hyper-v/common-hyper-v-deployment-mi= stakes/
Q&A... Memory aspect was new to new to me - http://= www.linux-kvm.org/page/FAQ
Alternative Container Manager and similar to Virtual Machine Manager can= also be used for Linux Containers.
This article can help this person... when completed follow-up with a pos= t - https://askubuntu.com/question= s/28056/kvm-with-windows-xp