<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 9, 2021 at 7:42 PM Erik Skultety <<a href="mailto:eskultet@redhat.com">eskultet@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Aug 04, 2021 at 08:54:13PM +0530, Kaushal Shriyan wrote:<br>
> Hi,<br>
> <br>
> #cat /etc/redhat-release<br>
> CentOS Linux release 7.8.2003 (Core)<br>
> #virt-install --version<br>
> 1.5.0<br>
> #virt-install -n snipeitassetmanagementubuntu --ram 8096 --vcpus 2<br>
> --virt-type kvm --os-type linux --os-variant ubuntu18.04 --graphics none<br>
> --location '<br>
> <a href="http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/" rel="noreferrer" target="_blank">http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/</a>'<br>
> --extra-args "console=tty0 console=ttyS0,115200n8" --disk<br>
> path=/linuxkvmguestosdisk/snipeitassetmanagementubuntu.img,size=30<br>
> <br>
> I am unable to connect to the guest VM instance. Any clue and i look<br>
> forward to hearing from you. Thanks in advance.<br>
<br>
Can you elaborate on what connection type is not working for you - serial<br>
console or SSH?<br>
I will presume you're talking about the former in which case<br>
--extra-args "console=..." is not a permanent setting, it is only placed on the<br>
kernel cmdline the first time the machine boots, IOW when it's being installed.<br>
That's how '--extra-args' works. Afterwards, the args will be lost, so you need<br>
to use some kind of automation management SW like Ansible to tweak the grub<br>
config after the OS installation if you want to keep using serial console.<br>
<br>
If by any chance you were talking about the latter, then I guess you haven't<br>
installed the SSH server in the VM.<br>
<br>
Regards,<br>
Erik<br></blockquote><div><br></div><div>Hi Erik,</div><div><br></div>$virsh console snipeitassetmanagemeubuntu<br>Connected to domain snipeitassetmanagementubuntu<br>Escape character is ^]<br><br>The screen is frozen. To connect it to the VM guest instance, I need to configure the static private IP for this VM instance and later I can SSH login to the server using private IP. <br><br>Please suggest. Thanks in advance.<br><br>Best Regards,<br><br>Kaushal<div class="gmail-yj6qo"></div><br class="gmail-Apple-interchange-newline"><div> </div></div></div>