LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-28-2022, 09:17 PM   #1
csj79
LQ Newbie
 
Registered: Aug 2022
Posts: 17

Rep: Reputation: 0
Unable to create VM from command line from ssh session


Hello Everyone,
I am running a Ubuntu Server 20.04 and am connected remotely using ssh from a Ubuntu workstation 22.04
I need to install a VM on the Ubuntu Server and have already installed all required packages. When I run the command below, the installation just sits there and I get warnings about the display that is not set.

I have also connectde to the ssh session using the -X option and also uncommented the X11forwarding in the sshd config file and I still receive an error about the X system. see below
Can anyone point me in the right direction?

virt-install --name='CentOSVM2' --os-variant=centos7.0 --vcpu=1 --ram=1200 --disk path=/VirtualMachines/VM/CentOSVM.img,size=8 --cdrom=/VirtualMachines/ISO/CentOS-7-x86_64-Minimal-2009.iso --graphics=vnc
WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING No console to launch for the guest, defaulting to --wait -1
Starting install...
Allocating 'CentOSVM.img' | 8.0 GB 00:00:00
Domain installation still in progress.
Waiting for installation to complete.



Starting install...
Allocating 'CentOSVM5.img' | 8.0 GB 00:00:00
connect /tmp/.X11-unix/X0: Permission denied
Unable to init server: Could not connect: Connection refused

(virt-viewer:319952): Gtk-WARNING **: 20:05:17.248: cannot open display: localhost:10.0
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
 
Old 09-23-2022, 08:44 PM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome 2lq.org!!!

It looks like you got a solution in this (dup) post:
https://www.linuxquestions.org/quest...on-4175716230/

You can Mark threads [SOLVED]:
To mark a thread 'SOLVED' click on the 'Thread Tools' at the very top and click 'Mark Thread Solved'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to create VM from command line from ssh session csj79 Linux - Virtualization and Cloud 6 09-02-2022 07:28 AM
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM
editing a file in command line during ssh session...need advise! reddog1 SUSE / openSUSE 8 05-31-2006 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration