Re: Fwd: Re: installing and accessing a VM? - newbie question maybe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks for the feedback

>> You can install virt-manager and virt-viewer on the KVM server, and access both GUIs from your laptop through ssh X11 forwarding

... my laptop is a W7 machine though ... I would be surprised whether X11 (not present on the KVM server, neither on a W7 machine) would be firing from on such a setup, nevertheless I'll try that out

still ... I tend to find all this completely not necessary if you just could use the KVM hosts console to get inside of the VM's console.

Honestly I am not really clear how a standard install .iso even works without interaction [which only can be done when you actually 'see' what happening] during the installation process and I wouldn't know [the machine itself not being aware to be a VM] how that was to be different whether you are in a VM or on bare metal)

for now still mysterious to some degree.

On August 30, 2016 at 1:43 AM Markos Gogoulos <mgogoulos@xxxxxxx> wrote:

You can install virt-manager and virt-viewer on the KVM server, and access both GUIs from your laptop through ssh X11 forwarding

ssh to the KVM server with the -X switch

ssh root@server -X

now you can run 
virt-viewer VM 

or 

virt-manager

Wait a few seconds and the GUIs will appear on your laptop's screen. It's slower of course but works from any place that can access the KVM server (without the need to install a desktop environment there)

Hope this helps, 
Markos



On Mon, Aug 29, 2016 at 8:24 AM, <gunnar.wagner@xxxxxxxxxxxxx> wrote:


Thanks for your suggestion regarding virt-viewer. But I am on a server without any graphical Desktop

Is there a CLI version of virt-viewer (or an equivalent tool CLI [which I though virsh --connect would have been)?

Or does virt-viewer run in a CLI mode once you don't have a GUI?


On August 28, 2016 at 9:52 PM Nicolas Bock <nicolasbock@xxxxxxxxx> wrote:

Have you tried to run virt-viewer and then select your VM?

On Sun, Aug 28, 2016 at 6:50 AM, <vrms@xxxxxxxxxxxxx> wrote:

I am new to this list and hope it's the right place to address my issue. I
also do not have much insight in libvirt/qemu yet

host OS is ubuntu-server 1404. What I am trying to achieve is installing an
ubunt1604 server on to an existing (qemu-img create) qcow2 image file with
the following command ...

sudo virt-install --name myVM --ram 512 \
--disk path=/path/to/image.qcow2 \
--location /path/to/ubuntu-16.04.1-server-amd64.iso

... and then access the machine (through my hosts terminal).

the command above results into

Starting install... Retrieving file version.info...
| 116 B 00:00 ... Retrieving file linux...
| 13 MB 00:00 ... Retrieving file initrd.gz...
| 72 MB 00:00 ... Creating domain...
| 0 B 00:01 Connected to domain myVM Escape character is ^]

after that, nothing.Not having ^ on my keyboard I don't get to escape
from this

When I check on another console window (virsh list --all) in my host I see
that the domain myVM is marked as 'running.

naturally There is not way to access it via ssh yet and I'd expect to be a
given that is should be possible to acces a VM's command line from my host
directly

virsh connect qemu:///system myVM is something I came up with but that
only returns an error

"error: unexpected data 'myVM'"

Furthermore I am unable to stop the machine (virsh shutdown myVM) either,
it just keeps running until killing it

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux