Followup to my "how to use virt-manager" and how to get a small VM study.

Here is the standard way to do a graphical VM, using virt-manager, with a
guest image that is not too large. I'll use Centos 7 for the guest.

1. Use virt-manager to install Centos 7 in the standard fashion -- I will
leave out the details. I believe my Centos 7 DVD did not have any options
for graphical images, so it should just install a minimal, non-graphical
image.

2. Run the virtual machine, making certain you are connected to the
Internet.

3. sudo yum groupinstall "X Window System" #seems to be there but
unadvertised
4. sudo yum install xterm #not sure if this step is needed
5. sudo yum install gnome-classic-session
6. sudo yum install gnome-terminal
7. sudo yum install liberation-mono-fonts

Now everything for a graphical login is present

8. systemctl isolate graphical.target

About 7 years ago I installed a full Ubuntu guest, and things just worked.
Why are things more difficult now? One important factor is that I was using
a high quality 19" CRT monitor. That will hide any graphics imperfections
much better than a 1280x800 laptop LCD display.

9. Use Gnome's Settings -> Displays to choose 1280x800. And then if on
virt-manager I select View->Fullscreen, I get the cleanest graphics. But
then you do not have easy access to your host machine. So we're back to
VirtualBox, except for geek interest.

10. The documentation usually does not tell you where to put the spice
server and the spice client. I think they both go on the host. If you set
up your VM with spice rather than VNC, you can copy/paste between host and
guest, if the guest is graphical, and if you can deal with the Fullscreen
issue.

11. For copy/paste, you need to have both spice-agent and spice-agentd
running in the guest. spice-agent seems to get started automatically, but I
have to
$ sudo spice-agentd
to make it run. Then copy/paste work.

12. Seems like suspending the laptop without first suspending the guest
leads to locked up guest. I changed a setting that should fix this; it did
not. Maybe the setting got reverted.

SIZE OF A GUEST SYSTEM

Here are some numbers, in 1024 byte blocks as I installed things, and some
things I did a bit out of order

1055100  bare Centos7
1198236  after installing X Window System group
1684400 after gnome-classic-session
1699140 after gnome-terminal
2376500 after git, gitk, traceroute, net-tools, gcc, deltarpm, autoconf,
automake
                     libtool, java-1.8.0-openjdk-devel, epel-release, and a
yum update
2457844 after cloning VPP
2632000 after ganglia-devel, lcov, libconfuse-devel, redhat-lsb,
glibc-static, yum-utils,
                    openssl-devel, apr-devel, chrpath, libffi-devel, nasm,
python-devel
2663880 after byacc flex and make bootstrap
4262260 after  make build-release
4319884 after make pkg-rpm

Burt



​
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to