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

Dominique Ramaekers dominique.ramaekers at cometal.be
Tue Aug 30 07:19:53 UTC 2016


You can also get de virt-viewer windows client. So you connect to the guest from a windows desktop…

Van: libvirt-users-bounces at redhat.com [mailto:libvirt-users-bounces at redhat.com] Namens gunnar.wagner at netcologne.de
Verzonden: maandag 29 augustus 2016 7:25
Aan: libvirt-users at redhat.com
Onderwerp: [libvirt-users] Fwd: Re: installing and accessing a VM? - newbie question maybe




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<mailto: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<mailto: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<mailto: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/20160830/345ce8f0/attachment.htm>


More information about the libvirt-users mailing list