[libvirt-users] Fwd: Re: installing and accessing a VM? - newbie question maybe

Markos Gogoulos mgogoulos at mist.io
Mon Aug 29 17:43:06 UTC 2016


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 at 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 at netcologne.de> 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 at gmail.com> wrote:
>
> Have you tried to run virt-viewer and then select your VM?
>
> On Sun, Aug 28, 2016 at 6:50 AM, <vrms at netcologne.de> 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 at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160829/44b337b9/attachment.htm>


More information about the libvirt-users mailing list