OpenVZ Forum


Home » General » Support » KVM console (KVM console being removed after install)
icon8.gif  KVM console [message #53168] Fri, 09 February 2018 17:55 Go to next message
netmonky is currently offline  netmonky
Messages: 1
Registered: February 2018
Location: UK
Junior Member
Hi All,

New to OpenVZ7. Initially I want to move some KVM's onto my node before having a play with templates. When I try and build a new KVM with the below basic virt-install, I am able to configure the the install via console, see the serial and console in a dumpxml, but as soon as the server reboots to finish install, the below is removed from the xml.

<serial type='pty'>
<source path='/dev/pts/1'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>


dirt-install commands:
virt-install --virt-type kvm --name centos7 --ram 2048 \
--disk centos-7.qcow2,format=qcow2,size=30 \
--os-type=linux --os-variant=rhel7 \
--boot menu=on,useserial=on --serial pty \
--console pty,target_type=serial \
--nographics
--accelerate
--extra-args "console=tty0 console=ttyS0,115200n8 serial" \
--location=/vz/iso/CentOS-7-x86_64-Minimal-1708.iso \
--network network=Bridged


# virsh list
Id Name State
----------------------------------------------------
13 centos7 running

# virsh console centos7
Connected to domain centos7
Escape character is ^]
error: internal error: cannot find character device <null>


can the above be achieved by prlctl ? I do not want to use vnc consoles, standard text console is much easier for none GUI server instances Smile. Any help is greatly appreciated
Re: KVM console [message #53557 is a reply to message #53168] Tue, 16 July 2019 19:11 Go to previous messageGo to next message
andre is currently offline  andre
Messages: 36
Registered: January 2008
Member
Hello,

Have you managed to find a solution?

We are experiencing the same difficult.

Thanks
Re: KVM console [message #53558 is a reply to message #53557] Thu, 18 July 2019 07:32 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Dear all,
you can use virsh for VM tuning, however please keep in mind that prlctl knows nothing about these changes,
and it can owerwrite them in any time.
prlctl allows you configure serial port as well, however I don't know how it's possible to provide kernel commandline arguments,
and I'm goign to clarify this question with our KVM developers.

thank you,
Vasily Averin


Re: KVM console [message #53559 is a reply to message #53558] Thu, 18 July 2019 07:42 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
btw you can use kickstart to modify kernel commandline inside guest.
Or mount image of stopped VM on host and modify guests config files manually.
Previous Topic: container fs broke after outage
Next Topic: Is buyvirtuozzo.com legit for readykernel licenses?
Goto Forum:
  


Current Time: Tue Nov 05 20:05:14 GMT 2024

Total time taken to generate the page: 0.03576 seconds