How can I reconfigure my VM to have console on serial not graphical card? The Next CEO of Stack OverflowInstalling centos and freebsd with serial consolehow can I create a KVM guest 100% as a non root user?kvm console not working at login [centos on centos]How to set up KVM guest serial consoleHow to tell virsh: save state of VM and vdisk, but not attached disk?non root user can not use -enable-kvmHow to flush all the DHCP leases with virsh. So all not just one with net-update default delete ip-dhcp-hostHow can I enable a virtual machine on KVM to use the WiFi connection on my Ubuntu 18 laptop?How can I use multiple mounted folders in KVM?How can I not give a virtual graphics card at all to your VM and have the console on serial?
What flight has the highest ratio of timezone difference to flight time?
How to avoid supervisors with prejudiced views?
Help/tips for a first time writer?
Are the names of these months realistic?
What was Carter Burke's job for "the company" in Aliens?
How do I fit a non linear curve?
Can Sneak Attack be used when hitting with an improvised weapon?
Is it ok to trim down a tube patch?
From jafe to El-Guest
How many extra stops do monopods offer for tele photographs?
Does the Idaho Potato Commission associate potato skins with healthy eating?
Decide between Polyglossia and Babel for LuaLaTeX in 2019
Pulling the principal components out of a DimensionReducerFunction?
Does higher Oxidation/ reduction potential translate to higher energy storage in battery?
Expectation in a stochastic differential equation
What connection does MS Office have to Netscape Navigator?
Yu-Gi-Oh cards in Python 3
What happened in Rome, when the western empire "fell"?
TikZ: How to fill area with a special pattern?
IC has pull-down resistors on SMBus lines?
Players Circumventing the limitations of Wish
Can I board the first leg of the flight without having final country's visa?
What CSS properties can the br tag have?
Graph of the history of databases
How can I reconfigure my VM to have console on serial not graphical card?
The Next CEO of Stack OverflowInstalling centos and freebsd with serial consolehow can I create a KVM guest 100% as a non root user?kvm console not working at login [centos on centos]How to set up KVM guest serial consoleHow to tell virsh: save state of VM and vdisk, but not attached disk?non root user can not use -enable-kvmHow to flush all the DHCP leases with virsh. So all not just one with net-update default delete ip-dhcp-hostHow can I enable a virtual machine on KVM to use the WiFi connection on my Ubuntu 18 laptop?How can I use multiple mounted folders in KVM?How can I not give a virtual graphics card at all to your VM and have the console on serial?
I created a Debian virtual machine with LVM encryption in virt-manager.
When I start the VM from virt-manager, I am asked to provide password for the LVM encryption.
But now when I start the VM and access it from virsh, why does it hang?
$ virsh start debian9.8
Domain debian9.8 started
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
Is it correct that I should reconfigure it
- to remove virtual graphics card from the VM , and
- to have the console on serial
so that I can access that console from a terminal emulator on the host? How?
In the vm's xml file, do I have to change
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
and
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
?
I didn't edit the xml file directly, but removed the Graphics in virt-manager. Now I still can't connect to the VM:
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
error: operation failed: Active console session exists for this domain
What shall I do?
Thanks.
/etc/libvirt/qemu/debian9.8.xml:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit debian9.8
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>debian9.8</name>
<uuid>45462948-154e-454b-baea-ea78603cda0c</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<cpu mode='custom' match='exact' check='partial'>
<model fallback='allow'>Opteron_G3</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/t/VirtualMachines/debian9.8.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:23:08:56'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='3'/>
</input>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='1'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
virtual-machine kvm virsh
|
show 1 more comment
I created a Debian virtual machine with LVM encryption in virt-manager.
When I start the VM from virt-manager, I am asked to provide password for the LVM encryption.
But now when I start the VM and access it from virsh, why does it hang?
$ virsh start debian9.8
Domain debian9.8 started
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
Is it correct that I should reconfigure it
- to remove virtual graphics card from the VM , and
- to have the console on serial
so that I can access that console from a terminal emulator on the host? How?
In the vm's xml file, do I have to change
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
and
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
?
I didn't edit the xml file directly, but removed the Graphics in virt-manager. Now I still can't connect to the VM:
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
error: operation failed: Active console session exists for this domain
What shall I do?
Thanks.
/etc/libvirt/qemu/debian9.8.xml:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit debian9.8
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>debian9.8</name>
<uuid>45462948-154e-454b-baea-ea78603cda0c</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<cpu mode='custom' match='exact' check='partial'>
<model fallback='allow'>Opteron_G3</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/t/VirtualMachines/debian9.8.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:23:08:56'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='3'/>
</input>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='1'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
virtual-machine kvm virsh
1
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
1
If you're not running anything on/dev/ttyS0inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.
– Stephen Harris
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago
|
show 1 more comment
I created a Debian virtual machine with LVM encryption in virt-manager.
When I start the VM from virt-manager, I am asked to provide password for the LVM encryption.
But now when I start the VM and access it from virsh, why does it hang?
$ virsh start debian9.8
Domain debian9.8 started
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
Is it correct that I should reconfigure it
- to remove virtual graphics card from the VM , and
- to have the console on serial
so that I can access that console from a terminal emulator on the host? How?
In the vm's xml file, do I have to change
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
and
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
?
I didn't edit the xml file directly, but removed the Graphics in virt-manager. Now I still can't connect to the VM:
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
error: operation failed: Active console session exists for this domain
What shall I do?
Thanks.
/etc/libvirt/qemu/debian9.8.xml:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit debian9.8
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>debian9.8</name>
<uuid>45462948-154e-454b-baea-ea78603cda0c</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<cpu mode='custom' match='exact' check='partial'>
<model fallback='allow'>Opteron_G3</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/t/VirtualMachines/debian9.8.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:23:08:56'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='3'/>
</input>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='1'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
virtual-machine kvm virsh
I created a Debian virtual machine with LVM encryption in virt-manager.
When I start the VM from virt-manager, I am asked to provide password for the LVM encryption.
But now when I start the VM and access it from virsh, why does it hang?
$ virsh start debian9.8
Domain debian9.8 started
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
Is it correct that I should reconfigure it
- to remove virtual graphics card from the VM , and
- to have the console on serial
so that I can access that console from a terminal emulator on the host? How?
In the vm's xml file, do I have to change
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
and
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
?
I didn't edit the xml file directly, but removed the Graphics in virt-manager. Now I still can't connect to the VM:
$ virsh console debian9.8
Connected to domain debian9.8
Escape character is ^]
error: operation failed: Active console session exists for this domain
What shall I do?
Thanks.
/etc/libvirt/qemu/debian9.8.xml:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit debian9.8
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>debian9.8</name>
<uuid>45462948-154e-454b-baea-ea78603cda0c</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<cpu mode='custom' match='exact' check='partial'>
<model fallback='allow'>Opteron_G3</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/t/VirtualMachines/debian9.8.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:23:08:56'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<input type='tablet' bus='usb'>
<address type='usb' bus='0' port='3'/>
</input>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='1'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
virtual-machine kvm virsh
virtual-machine kvm virsh
edited 2 days ago
Tim
asked 2 days ago
TimTim
28.3k78269490
28.3k78269490
1
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
1
If you're not running anything on/dev/ttyS0inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.
– Stephen Harris
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago
|
show 1 more comment
1
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
1
If you're not running anything on/dev/ttyS0inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.
– Stephen Harris
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago
1
1
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
1
1
If you're not running anything on
/dev/ttyS0 inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.– Stephen Harris
2 days ago
If you're not running anything on
/dev/ttyS0 inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.– Stephen Harris
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago
|
show 1 more comment
0
active
oldest
votes
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509448%2fhow-can-i-reconfigure-my-vm-to-have-console-on-serial-not-graphical-card%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509448%2fhow-can-i-reconfigure-my-vm-to-have-console-on-serial-not-graphical-card%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

1
Have you done any research online into this topic?
– 0xSheepdog
2 days ago
1
If you're not running anything on
/dev/ttyS0inside the VM then you'll see nothing there. The GUI virt-manager may be connecting you to the video console, not the serial one.– Stephen Harris
2 days ago
@StephenHarris Now that the virtual machine has been created in virt-manager, how can I start and access it from virsh?
– Tim
2 days ago
You need to add a serial port to the machine definition and then configure the client OS to use the serial port as the console
– Stephen Harris
2 days ago
@StephenHarris Thanks. Could you tell me how to add a serial port to the machine definition and then configure the client OS to use the serial port as the console?
– Tim
2 days ago